Browse Source

fix: checked 非必须 (#27717)

* fix: checked 非必须

* docs: desc

* fix: 😶

* Update CheckableTag.tsx

Co-authored-by: 二货机器人 <smith3816@gmail.com>
pull/27745/head
叶枫 4 years ago
committed by GitHub
parent
commit
1155d44321
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/tag/CheckableTag.tsx

4
components/tag/CheckableTag.tsx

@ -6,6 +6,10 @@ export interface CheckableTagProps {
prefixCls?: string;
className?: string;
style?: React.CSSProperties;
/**
* @description it is an absolute controlled component and has no uncontrolled mode.
* @description.zh-CN
*/
checked: boolean;
onChange?: (checked: boolean) => void;
onClick?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;

Loading…
Cancel
Save