Skip to content

Commit

Permalink
feat: finish checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny-117 committed Feb 20, 2023
1 parent 3ba5835 commit fb98bdf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/docs/zh-CN/components/checkbox.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Checkbox

<script setup>

import Basic from '../../examples/checkbox/basic.vue'

</script>

常用的 Checkbox 操作

## 基本使用

:::info

<Basic />

:::

::: details code

```vue
<div class="container">
<LCheckbox :value="true" @input="handleInput"> 北京 </LCheckbox>
<LCheckbox :value="false" :disabled="true"> 上海 </LCheckbox>
<LCheckbox :true-value="true"> 广州 </LCheckbox>
<LCheckbox :false-value="false"> 杭州 </LCheckbox>
</div>
```

:::

## API

| Name | Description | Type | Default |
| ----------- | -------------------- | -------- | ------- |
| value | checkbox value | boolean | false |
| true-value | checkbox true-value | boolean | true |
| false-value | checkbox false-value | boolean | false |
| disabled | checkbox disabled | boolean | false |
| input | input event | function | null |

0 comments on commit fb98bdf

Please sign in to comment.