Skip to content

Commit

Permalink
docs: 更新文档错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Dec 23, 2023
1 parent 14042f9 commit 289109e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/components/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ type CheckboxGroupChange = (val: string[]) => void
import demo1Vue from './demos/checkbox/demo1.vue'
const option1 = ref(false)
const option2 = ref([])
const option2 = ref(['汉堡'])
const option3 = ref([])
const option4 = ref(['选项三'])
</script>
14 changes: 11 additions & 3 deletions start/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<script lang="ts" setup></script>
<template>
<f-checkbox-group v-model="option2">
<f-checkbox label="鸡肉卷" />
<f-checkbox label="鸡排" />
<f-checkbox label="汉堡" />
</f-checkbox-group>
</template>

<template></template>
<script lang="ts" setup>
import { ref } from 'vue'
<style lang="scss" scoped></style>
const option2 = ref(['汉堡'])
</script>

0 comments on commit 289109e

Please sign in to comment.