tiny-vue/examples/sites/demos/mobile/app/checkbox/true-false-label.vue

29 lines
463 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="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 scoped>
.checkbox-wrap {
padding: 20px;
}
</style>