Skip to content

Commit 3698c02

Browse files
zhuzhuaicodingtangjinzhou
authored andcommitted
fix: typo (#601)
1 parent e10d2ed commit 3698c02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/tree/Tree.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default {
129129
return <Icon type="caret-down" class={`${prefixCls}-switcher-icon`} theme="filled" />;
130130
}
131131
},
132-
updataTreeData(treeData) {
132+
updateTreeData(treeData) {
133133
const { $slots, $scopedSlots } = this;
134134
return treeData.map(item => {
135135
const {
@@ -159,7 +159,7 @@ export default {
159159
style,
160160
};
161161
if (children) {
162-
return { ...treeNodeProps, children: this.updataTreeData(children) };
162+
return { ...treeNodeProps, children: this.updateTreeData(children) };
163163
}
164164
return treeNodeProps;
165165
});
@@ -171,7 +171,7 @@ export default {
171171
const checkable = props.checkable;
172172
let treeData = props.treeData || treeNodes;
173173
if (treeData) {
174-
treeData = this.updataTreeData(treeData);
174+
treeData = this.updateTreeData(treeData);
175175
}
176176
const vcTreeProps = {
177177
props: {

0 commit comments

Comments
 (0)