tiny-vue/examples/sites/demos/pc/app/switch/custom-true-false-value.vue

22 lines
326 B
Vue

<template>
<div>
<tiny-switch v-model="value" true-value="yes" false-value="no"> </tiny-switch>
当前值: {{ value }}
</div>
</template>
<script>
import { Switch } from '@opentiny/vue'
export default {
components: {
TinySwitch: Switch
},
data() {
return {
value: 'yes'
}
}
}
</script>