fix: tree node class props invalid (#3822)

pull/3828/head
叡山电车 2021-03-19 17:21:46 +08:00 committed by GitHub
parent 4bdbb2c5d4
commit 75c43683eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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