How can i use element-plus in petiteVue?? #103
Answered
by
X7md
paradox-lab
asked this question in
Q&A
-
In Vue3, it use element-plus by const app = Vue.createApp(App);
app.use(ElementPlus);
app.mount("#app"); but it doesn't work on petiteVue: <script src="//unpkg.com/element-plus"></script>
...
<script type="module">
import { createApp } from 'https://unpkg.com/petite-vue?module'
createApp({
// exposed to all expressions
message: "0",
// getters
get plusOne() {
return this.count + 1
},
// methods
increment() {
this.count++
}
}).use(ElementPlus).mount()
</script> |
Beta Was this translation helpful? Give feedback.
Answered by
X7md
Dec 1, 2021
Replies: 1 comment
-
You can't, ElementPlus doesn't build to be as petitevue plug-in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
paradox-lab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't, ElementPlus doesn't build to be as petitevue plug-in