Skip to content

Commit

Permalink
fix(TreeChecked): 修复 TreeChecked 禁用后复选框没有禁用问题 (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuilanxin committed Apr 12, 2022
1 parent aa162af commit c2ef1a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-tree-checked/src/index.tsx
Expand Up @@ -24,8 +24,8 @@ export default function TreeChecked({ prefixCls = 'w-treechecked', ...props }: T
}
return (
<Fragment>
<Checkbox className={`${prefixCls}-checked`} {...checkedProps} />
{item.label && <span>{item.label}</span>}
<Checkbox className={`${prefixCls}-checked`} disabled={node.disabled} {...checkedProps} />
{item.label && <span className={node.disabledClass}>{item.label}</span>}
</Fragment>
);
}}
Expand Down

0 comments on commit c2ef1a8

Please sign in to comment.