Skip to content

Commit

Permalink
fix(Checkbox): types
Browse files Browse the repository at this point in the history
  • Loading branch information
luckydrq authored and youluna committed May 11, 2021
1 parent 319101e commit be38adb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/checkbox/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export interface GroupProps extends HTMLAttributesWeak, CommonProps {
*/
disabled?: boolean;

/**
* 是否为预览态
*/
isPreview?: boolean;

/**
* 可选项列表, 数据项可为 String 或者 Object, 如 `['apple', 'pear', 'orange']` 或者 `[{value: 'apple', label: '苹果',}, {value: 'pear', label: '梨'}, {value: 'orange', label: '橙子'}]`
*/
Expand Down Expand Up @@ -133,6 +138,11 @@ export interface CheckboxProps extends HTMLAttributesWeak, CommonProps {
*/
defaultIndeterminate?: boolean;

/**
* 是否为预览态
*/
isPreview?: boolean;

/**
* 状态变化时触发的事件
*/
Expand Down

0 comments on commit be38adb

Please sign in to comment.