fix: tree node class props invalid (#3822)

pull/3828/head
叡山电车 4 years ago committed by GitHub
parent 4bdbb2c5d4
commit 75c43683eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -543,7 +543,7 @@ const TreeNode = defineComponent({
return ( return (
<li <li
class={{ class={{
className, [className]: className,
[`${prefixCls}-treenode-disabled`]: disabled, [`${prefixCls}-treenode-disabled`]: disabled,
[`${prefixCls}-treenode-switcher-${expanded ? 'open' : 'close'}`]: !isLeaf, [`${prefixCls}-treenode-switcher-${expanded ? 'open' : 'close'}`]: !isLeaf,
[`${prefixCls}-treenode-checkbox-checked`]: checked, [`${prefixCls}-treenode-checkbox-checked`]: checked,

Loading…
Cancel
Save