mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 12:37:42 +08:00
fix: treeNode dataRef is undefined
This commit is contained in:
parent
f66fae47e3
commit
5f9ebe8b45
@ -134,20 +134,23 @@ const TreeSelect = {
|
||||
|
||||
const clearIcon = <Icon type="close-circle" class={`${prefixCls}-clear-icon`} theme="filled" />;
|
||||
const VcTreeSelectProps = {
|
||||
props: {
|
||||
switcherIcon: nodeProps => this.renderSwitcherIcon(prefixCls, nodeProps),
|
||||
inputIcon,
|
||||
removeIcon,
|
||||
clearIcon,
|
||||
...rest,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
dropdownClassName: classNames(dropdownClassName, `${prefixCls}-tree-dropdown`),
|
||||
prefixCls,
|
||||
dropdownStyle: { maxHeight: '100vh', overflow: 'auto', ...dropdownStyle },
|
||||
treeCheckable: checkable,
|
||||
notFoundContent: notFoundContent || renderEmpty(h, 'Select'),
|
||||
__propsSymbol__: Symbol(),
|
||||
},
|
||||
props: Object.assign(
|
||||
{
|
||||
switcherIcon: nodeProps => this.renderSwitcherIcon(prefixCls, nodeProps),
|
||||
inputIcon,
|
||||
removeIcon,
|
||||
clearIcon,
|
||||
...rest,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
dropdownClassName: classNames(dropdownClassName, `${prefixCls}-tree-dropdown`),
|
||||
prefixCls,
|
||||
dropdownStyle: { maxHeight: '100vh', overflow: 'auto', ...dropdownStyle },
|
||||
treeCheckable: checkable,
|
||||
notFoundContent: notFoundContent || renderEmpty(h, 'Select'),
|
||||
__propsSymbol__: Symbol(),
|
||||
},
|
||||
treeData ? { treeData } : {},
|
||||
),
|
||||
class: cls,
|
||||
on: { ...this.$listeners, change: this.onChange },
|
||||
ref: 'vcTreeSelect',
|
||||
|
Loading…
Reference in New Issue
Block a user