Skip to content

Commit

Permalink
fix: 原生组件 Switch 的 types 增加对 disabled 的类型定义 (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoux authored and luckyadam committed Dec 29, 2018
1 parent 8974e97 commit 9e28464
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/taro-components/types/Switch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ interface SwitchProps extends StandardProps, FormItemProps {
*/
checked?: boolean,

/**
* 是否禁用
*
* 默认值:`false`
*/
disabled?: boolean,

/**
* 样式,有效值:switch, checkbox
*
Expand Down

0 comments on commit 9e28464

Please sign in to comment.