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

20 lines
517 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 setup lang="ts">
import { ref } from 'vue'
import { Numeric as TinyNumeric } from '@opentiny/vue'
const value1 = ref(1)
const value2 = ref(0)
const disabled = ref(true)
const min = ref(0)
const max = ref(10)
</script>