Skip to content

Commit 6a58cbb

Browse files
author
weilei
committed
fix: 更新 ThoughtChain 组件的事件命名,统一为 onExpand
1 parent c71ca3c commit 6a58cbb

File tree

1 file changed

+4
-4
lines changed
  • packages/element-ui-x/src/components/ThoughtChain/src

1 file changed

+4
-4
lines changed

packages/element-ui-x/src/components/ThoughtChain/src/main.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</div>
3131
<el-collapse
3232
v-else-if="!item.isDefaultExpand"
33-
@change="() => handleExpand(item)"
33+
@change="() => onExpand(item)"
3434
>
3535
<el-collapse-item :title="getThinkTitle(item)">
3636
<el-x-typewriter
@@ -43,7 +43,7 @@
4343
<el-collapse
4444
v-else
4545
v-model="defaultActiveNodes"
46-
@change="() => handleExpand(item)"
46+
@change="() => onExpand(item)"
4747
>
4848
<el-collapse-item
4949
:title="getThinkTitle(item)"
@@ -228,8 +228,8 @@
228228
});
229229
},
230230
methods: {
231-
handleExpand(item) {
232-
this.$emit('handleExpand', item);
231+
onExpand(item) {
232+
this.$emit('handle-expand', item);
233233
},
234234
setRadialGradient(colors, ele) {
235235
const length = ele.length;

0 commit comments

Comments
 (0)