2021-09-16 19:23:58 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
|
|
|
<section>
|
2021-12-13 18:12:30 +08:00
|
|
|
<veui-checkbox v-model="composition">
|
|
|
|
Composition
|
|
|
|
</veui-checkbox>
|
|
|
|
</section>
|
|
|
|
<section>Input value: {{ value }}</section>
|
|
|
|
<section>
|
2021-09-16 19:23:58 +08:00
|
|
|
<veui-input
|
|
|
|
v-model="value"
|
|
|
|
:composition="composition"
|
|
|
|
/>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-12-13 18:12:30 +08:00
|
|
|
import { Input, Checkbox } from 'veui'
|
2021-09-16 19:23:58 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
'veui-input': Input,
|
2021-12-13 18:12:30 +08:00
|
|
|
'veui-checkbox': Checkbox
|
2021-09-16 19:23:58 +08:00
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
composition: true,
|
|
|
|
value: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2021-12-13 18:12:30 +08:00
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
section {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
</style>
|