forked from opentiny/tiny-vue
25 lines
534 B
Vue
25 lines
534 B
Vue
<template>
|
|
<tiny-checkbox-group v-model="checkboxGroup" vertical text-color="#fff">
|
|
<tiny-checkbox v-for="city in cities" :label="city" :key="city">
|
|
{{ city }}
|
|
</tiny-checkbox>
|
|
</tiny-checkbox-group>
|
|
</template>
|
|
|
|
<script>
|
|
import { CheckboxGroup, Checkbox } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyCheckboxGroup: CheckboxGroup,
|
|
TinyCheckbox: Checkbox
|
|
},
|
|
data() {
|
|
return {
|
|
checkboxGroup: ['上海'],
|
|
cities: ['上海', '北京', '广州', '深圳']
|
|
}
|
|
}
|
|
}
|
|
</script>
|