fix: 修复Tree组件如果重新定义fieldNames的title字段后设置actionList失效的问题 (#1778)

Co-authored-by: miaojingu <miaojingu@zclhgroup.com>
This commit is contained in:
jenson 2022-04-13 19:46:08 +08:00 committed by GitHub
parent b41e3939ac
commit e3637e7af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@
) : (
title
);
item.title = (
item[titleField] = (
<span
class={`${bem('title')} pl-2`}
onClick={handleClickNode.bind(null, item[keyField], item[childrenField])}