Skip to content

Commit

Permalink
docs: fix prop desc (#5881)
Browse files Browse the repository at this point in the history
Co-authored-by: 07akioni <07akioni2@gmail.com>
  • Loading branch information
jizai1125 and 07akioni authored Aug 11, 2024
1 parent c42bf9d commit 21b34b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/checkbox/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ focus.vue
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| checked | `boolean` | `false` | Whether the checkbox is being checked manually. |
| checked-value | `string \| boolean \| number` | `true` | Value of checked state. |
| default-checked | `boolean` | `false` | Whether the checkbox is checked by default. |
| disabled | `boolean` | `false` | Whether the checkbox is disabled. |
| focusable | `boolean` | `true` | Whether the checkbox gains focus after being checked. |
| indeterminate | `boolean` | `false` | Whether the checkbox can have a third indeterminate state. |
| label | `string` | `undefined` | Checkbox label. |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | The size of the checkbox. |
| unchecked-value | `string \| boolean \| number` | `false` | Value of unchecked state. |
| value | `string \| number` | `undefined` | The value of the checkbox to be used in a checkbox group. |
| on-update:checked | `(checked: boolean) => void` | `undefined` | Callback function triggered on a checked status change. |

Expand Down
2 changes: 2 additions & 0 deletions src/checkbox/demos/zhCN/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ rtl-debug.vue
| 名称 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| checked | `boolean` | `false` | 受控状态下是否选中 |
| checked-value | `string \| boolean \| number` | `true` | 选中时对应的值 |
| default-checked | `boolean` | `false` | 非受控模式下默认是否选中 |
| disabled | `boolean` | `false` | 是否禁用 |
| focusable | `boolean` | `true` | 是否可被 focus |
| indeterminate | `boolean` | `false` | 是否部分选中 |
| label | `string` | `undefined` | Checkbox 的标签 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 组件尺寸 |
| unchecked-value | `string \| boolean \| number` | `false` | 未选中时对应的值 |
| value | `string \| number` | `undefined` | Checkbox 在 checkbox group 中使用的值 |
| on-update:checked | `(checked: boolean) => void` | `undefined` | 当 checked 改变时触发的回调函数 |

Expand Down
2 changes: 1 addition & 1 deletion src/switch/demos/enUS/index.demo-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ icon.vue
| round | `boolean` | `true` | Whether the switch has rounded corners. | |
| rubber-band | `boolean` | `true` | Whether the switch button has rubber band effect. | 2.28.3 |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | The size of the switch. | |
| unchecked-value | `string \| boolean \| number` | `false` | Value of checked state. | |
| unchecked-value | `string \| boolean \| number` | `false` | Value of unchecked state. | |
| value | `string \| number \| boolean \| undefined` | `undefined` | Value when being set manually. | |
| on-update:value | `(value: boolean) => void` | `undefined` | Callback when the component's value changes. | |

Expand Down

0 comments on commit 21b34b6

Please sign in to comment.