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

56 lines
835 B
Vue

<template>
<article>
<section>
<veui-checkbox v-model="disabled">
禁用
</veui-checkbox>
</section>
<section>
<p>
<veui-number-input
v-model="value"
:disabled="disabled"
/>
</p>
<p>
<veui-number-input
v-model="value"
:disabled="disabled"
ui="s"
/>
</p>
<p>
<veui-number-input
v-model="value"
:disabled="disabled"
ui="xs"
/>
</p>
</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 docs>
section,
p {
margin-bottom: 1em;
}
</style>