Skip to content

Commit 025501d

Browse files
Correcting third-party
1 parent 541a07f commit 025501d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

example/components/third-party.vue

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<a
77
href="https://element-plus.org/#/en-US/component/collapse"
88
target="_blank"
9-
>Element collapse</a
9+
>Element+ collapse</a
1010
>
1111
</h3>
1212

@@ -41,6 +41,7 @@ export default {
4141
draggable
4242
},
4343
data() {
44+
const activeNames = [1];
4445
return {
4546
list: [
4647
{
@@ -77,24 +78,20 @@ export default {
7778
]
7879
}
7980
],
80-
activeNames: [1],
81+
activeNames,
8182
collapseComponentData: {
8283
on: {
83-
"update:modelValue": this.inputChanged,
84-
change: this.onChanged
84+
"update:modelValue": this.inputChanged
8585
},
8686
props: {
87-
modelValue: this.activeNames
87+
modelValue: activeNames
8888
}
8989
}
9090
};
9191
},
9292
methods: {
9393
inputChanged(val) {
9494
this.activeNames = val;
95-
},
96-
onChanged(evt) {
97-
window.console.log({ evt });
9895
}
9996
}
10097
};

0 commit comments

Comments
 (0)