Commit e3637e7af4e5bd44f07381bcc7b02547079c6a3f
Committed by
GitHub
1 parent
b41e3939
fix: 修复Tree组件如果重新定义fieldNames的title字段后设置actionList失效的问题 (#1778)
Co-authored-by: miaojingu <miaojingu@zclhgroup.com>
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Tree/src/Tree.vue
@@ -381,7 +381,7 @@ | @@ -381,7 +381,7 @@ | ||
381 | ) : ( | 381 | ) : ( |
382 | title | 382 | title |
383 | ); | 383 | ); |
384 | - item.title = ( | 384 | + item[titleField] = ( |
385 | <span | 385 | <span |
386 | class={`${bem('title')} pl-2`} | 386 | class={`${bem('title')} pl-2`} |
387 | onClick={handleClickNode.bind(null, item[keyField], item[childrenField])} | 387 | onClick={handleClickNode.bind(null, item[keyField], item[childrenField])} |