fix: typo (#601)

pull/605/head
Early 2019-03-18 15:10:20 +08:00 committed by tangjinzhou
parent e10d2edf0a
commit 3698c022ec
1 changed files with 3 additions and 3 deletions

View File

@ -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: {