Skip to content

Commit 541a07f

Browse files
Adding new third party example
1 parent 7dd3399 commit 541a07f

File tree

4 files changed

+217
-92
lines changed

4 files changed

+217
-92
lines changed

example/not-migrated-components/third-party.vue renamed to example/components/third-party.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h3>
55
Integration with
66
<a
7-
href="https://element.eleme.io/#/en-US/component/collapse#collapse"
7+
href="https://element-plus.org/#/en-US/component/collapse"
88
target="_blank"
99
>Element collapse</a
1010
>
@@ -80,17 +80,21 @@ export default {
8080
activeNames: [1],
8181
collapseComponentData: {
8282
on: {
83-
input: this.inputChanged
83+
"update:modelValue": this.inputChanged,
84+
change: this.onChanged
8485
},
8586
props: {
86-
value: this.activeNames
87+
modelValue: this.activeNames
8788
}
8889
}
8990
};
9091
},
9192
methods: {
9293
inputChanged(val) {
9394
this.activeNames = val;
95+
},
96+
onChanged(evt) {
97+
window.console.log({ evt });
9498
}
9599
}
96100
};

example/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import { createRouter, createWebHistory } from "vue-router";
55
import routes from "./route";
66
import rawDisplayer from "./components/infra/raw-displayer";
77
import store from "./store";
8+
import ElementPlus from "element-plus";
89
import "bootstrap/dist/css/bootstrap.min.css";
910
import "font-awesome/css/font-awesome.css";
11+
import "element-plus/lib/theme-chalk/index.css";
1012

1113
require("bootstrap");
1214

@@ -18,5 +20,6 @@ const router = createRouter({
1820
const app = createApp(App);
1921
app.use(store);
2022
app.use(router);
23+
app.use(ElementPlus);
2124
app.component("rawDisplayer", rawDisplayer);
2225
router.isReady().then(() => app.mount("#app"));

0 commit comments

Comments
 (0)