Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element 能在nuxt3中全量引入吗?包括Elmessage,Elcomfirm #29

Open
LY-Net opened this issue May 10, 2022 · 4 comments
Open

Element 能在nuxt3中全量引入吗?包括Elmessage,Elcomfirm #29

LY-Net opened this issue May 10, 2022 · 4 comments

Comments

@LY-Net
Copy link

LY-Net commented May 10, 2022

No description provided.

@LY-Net LY-Net changed the title Element 能在nuxt Element 能在nuxt3中全量引入吗?包括Elmessage,Elcomfirm May 10, 2022
@YunYouJun
Copy link
Member

可以。

@moonwaystudio
Copy link

怎么引入法

@moonwaystudio
Copy link

可以。

怎么引入法

@YunYouJun
Copy link
Member

你可以参考 nuxt 文档获取 vueApp。

https://nuxt.com/docs/api/composables/use-nuxt-app#vueapp

随后在 app.vue 中正常全量引入即可。

https://element-plus.org/zh-CN/guide/quickstart.html#%E5%AE%8C%E6%95%B4%E5%BC%95%E5%85%A5

未经测试的一个简要示意:

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

nuxtApp.vueApp.use(ElementPlus)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants