tiny-vue/example/src/demo/mobile/checkbox/true-false-label.vue

28 lines
455 B
Vue
Raw 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="checkbox-wrap">
<tiny-checkbox v-model="checked" false-label="no" true-label="yes">复选框</tiny-checkbox>
<br />
当前选中状态的值为{{ checked }}
</div>
</template>
<script>
import { Checkbox } from '@opentiny/vue'
export default {
components: {
TinyCheckbox: Checkbox
},
data() {
return {
checked: 'yes'
}
}
}
</script>
<style>
.checkbox-wrap {
padding: 20px;
}
</style>