Browse Source
fix: 修复Tree组件如果重新定义fieldNames的title字段后设置actionList失效的问题 (#1778)
Co-authored-by: miaojingu <miaojingu@zclhgroup.com>
pull/1820/head
jenson
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/components/Tree/src/Tree.vue
|
|
|
@ -381,7 +381,7 @@ |
|
|
|
) : ( |
|
|
|
title |
|
|
|
); |
|
|
|
item.title = ( |
|
|
|
item[titleField] = ( |
|
|
|
<span |
|
|
|
class={`${bem('title')} pl-2`} |
|
|
|
onClick={handleClickNode.bind(null, item[keyField], item[childrenField])} |
|
|
|
|