2021-09-16 19:23:58 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
|
|
|
<section>
|
2021-12-13 18:12:30 +08:00
|
|
|
<veui-checkbox v-model="isStable">
|
|
|
|
Stable layout
|
|
|
|
</veui-checkbox>
|
2021-09-16 19:23:58 +08:00
|
|
|
</section>
|
2021-12-13 18:12:30 +08:00
|
|
|
<veui-check-button-group
|
|
|
|
v-model="flavor"
|
|
|
|
:items="flavors"
|
|
|
|
:ui="isStable ? 'stable' : ''"
|
|
|
|
/>
|
2021-09-16 19:23:58 +08:00
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-12-13 18:12:30 +08:00
|
|
|
import { CheckButtonGroup, Checkbox } from 'veui'
|
2021-09-16 19:23:58 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
'veui-check-button-group': CheckButtonGroup,
|
2021-12-13 18:12:30 +08:00
|
|
|
'veui-checkbox': Checkbox
|
2021-09-16 19:23:58 +08:00
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
isStable: true,
|
|
|
|
flavor: null,
|
|
|
|
flavors: [
|
|
|
|
{ value: 'LATTE', label: 'Latte' },
|
|
|
|
{ value: 'MOCHA', label: 'Mocha' },
|
|
|
|
{ value: 'AMERICANO', label: 'Americano' }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
section {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
</style>
|