parent
2c81ccc6f0
commit
24ce72ef83
|
@ -211,6 +211,7 @@ export default {
|
||||||
const prefixCls = getPrefixCls('tree', customizePrefixCls);
|
const prefixCls = getPrefixCls('tree', customizePrefixCls);
|
||||||
const { _expandedKeys: expandedKeys, _selectedKeys: selectedKeys } = this.$data;
|
const { _expandedKeys: expandedKeys, _selectedKeys: selectedKeys } = this.$data;
|
||||||
const listeners = getListeners(this);
|
const listeners = getListeners(this);
|
||||||
|
const { $scopedSlots } = this;
|
||||||
warning(!listeners.doubleclick, '`doubleclick` is deprecated. please use `dblclick` instead.');
|
warning(!listeners.doubleclick, '`doubleclick` is deprecated. please use `dblclick` instead.');
|
||||||
const treeProps = {
|
const treeProps = {
|
||||||
props: {
|
props: {
|
||||||
|
@ -230,6 +231,7 @@ export default {
|
||||||
dblclick: this.onDoubleClick,
|
dblclick: this.onDoubleClick,
|
||||||
expand: this.onExpand,
|
expand: this.onExpand,
|
||||||
},
|
},
|
||||||
|
scopedSlots: $scopedSlots,
|
||||||
};
|
};
|
||||||
return <Tree {...treeProps}>{this.$slots.default}</Tree>;
|
return <Tree {...treeProps}>{this.$slots.default}</Tree>;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue