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

14 lines
281 B
Vue

<template>
<div>
<tiny-switch v-model="value" true-value="yes" false-value="no"> </tiny-switch>
当前值: {{ value }}
</div>
</template>
<script setup>
import { ref } from 'vue'
import { Switch as TinySwitch } from '@opentiny/vue'
const value = ref('yes')
</script>