docs_vue2/one/docs/demo/ui.vue
2020-08-13 11:47:56 +08:00

42 lines
564 B
Vue

<template>
<article>
<veui-button ui="primary">
Primary
</veui-button>
<veui-button ui="secondary">
Custom
</veui-button>
</article>
</template>
<script>
import { Button } from 'veui'
export default {
components: {
'veui-button': Button
}
}
</script>
<style lang="less" scoped docs>
.veui-button {
width: 120px;
margin-right: 1em;
}
</style>
<style lang="less" scoped>
.veui-button[ui~="secondary"] {
background-color: #e5e5ff;
&:hover {
background-color: #ddf;
}
&:active {
background-color: #ccf;
}
}
</style>