docs_vue2/one/docs/demo/number-input/disabled.vue
2021-12-13 18:12:30 +08:00

54 lines
811 B
Vue

<template>
<article>
<section>
<veui-checkbox v-model="disabled">
禁用
</veui-checkbox>
</section>
<section>
section
<veui-number-input
v-model="value"
:disabled="disabled"
/>
</section>
<section>
<veui-number-input
v-model="value"
:disabled="disabled"
ui="s"
/>
</section>
<section>
<veui-number-input
v-model="value"
:disabled="disabled"
ui="xs"
/>
</section>
</article>
</template>
<script>
import { NumberInput, Checkbox } from 'veui'
export default {
components: {
'veui-number-input': NumberInput,
'veui-checkbox': Checkbox
},
data () {
return {
disabled: true,
value: 0
}
}
}
</script>
<style lang="less" scoped>
section {
margin-bottom: 20px;
}
</style>