File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 6
6
<a
7
7
href =" https://element-plus.org/#/en-US/component/collapse"
8
8
target =" _blank"
9
- >Element collapse</a
9
+ >Element+ collapse</a
10
10
>
11
11
</h3 >
12
12
@@ -41,6 +41,7 @@ export default {
41
41
draggable
42
42
},
43
43
data () {
44
+ const activeNames = [1 ];
44
45
return {
45
46
list: [
46
47
{
@@ -77,24 +78,20 @@ export default {
77
78
]
78
79
}
79
80
],
80
- activeNames: [ 1 ] ,
81
+ activeNames,
81
82
collapseComponentData: {
82
83
on: {
83
- " update:modelValue" : this .inputChanged ,
84
- change: this .onChanged
84
+ " update:modelValue" : this .inputChanged
85
85
},
86
86
props: {
87
- modelValue: this . activeNames
87
+ modelValue: activeNames
88
88
}
89
89
}
90
90
};
91
91
},
92
92
methods: {
93
93
inputChanged (val ) {
94
94
this .activeNames = val;
95
- },
96
- onChanged (evt ) {
97
- window .console .log ({ evt });
98
95
}
99
96
}
100
97
};
You can’t perform that action at this time.
0 commit comments