tiny-vue/examples/sites/demos/pc/app/numeric/dynamic-disabled.vue

28 lines
543 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="f-r f-box-center">
<span>全部禁用</span>
<tiny-numeric v-model="value1" :disabled="disabled" class="mr20"></tiny-numeric>
<span>部分禁用:</span>
<tiny-numeric v-model="value2" :min="min" :max="max"></tiny-numeric>
</div>
</template>
<script lang="ts">
import { Numeric } from '@opentiny/vue'
export default {
components: {
TinyNumeric: Numeric
},
data() {
return {
value1: 1,
value2: 0,
disabled: true,
min: 0,
max: 10
}
}
}
</script>