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 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};
You can’t perform that action at this time.
0 commit comments