fix: typo (#601)
parent
e10d2edf0a
commit
3698c022ec
|
@ -129,7 +129,7 @@ export default {
|
||||||
return <Icon type="caret-down" class={`${prefixCls}-switcher-icon`} theme="filled" />;
|
return <Icon type="caret-down" class={`${prefixCls}-switcher-icon`} theme="filled" />;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updataTreeData(treeData) {
|
updateTreeData(treeData) {
|
||||||
const { $slots, $scopedSlots } = this;
|
const { $slots, $scopedSlots } = this;
|
||||||
return treeData.map(item => {
|
return treeData.map(item => {
|
||||||
const {
|
const {
|
||||||
|
@ -159,7 +159,7 @@ export default {
|
||||||
style,
|
style,
|
||||||
};
|
};
|
||||||
if (children) {
|
if (children) {
|
||||||
return { ...treeNodeProps, children: this.updataTreeData(children) };
|
return { ...treeNodeProps, children: this.updateTreeData(children) };
|
||||||
}
|
}
|
||||||
return treeNodeProps;
|
return treeNodeProps;
|
||||||
});
|
});
|
||||||
|
@ -171,7 +171,7 @@ export default {
|
||||||
const checkable = props.checkable;
|
const checkable = props.checkable;
|
||||||
let treeData = props.treeData || treeNodes;
|
let treeData = props.treeData || treeNodes;
|
||||||
if (treeData) {
|
if (treeData) {
|
||||||
treeData = this.updataTreeData(treeData);
|
treeData = this.updateTreeData(treeData);
|
||||||
}
|
}
|
||||||
const vcTreeProps = {
|
const vcTreeProps = {
|
||||||
props: {
|
props: {
|
||||||
|
|
Loading…
Reference in New Issue