Vue3.x引入element-ui
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element
免费下载资源
·
PS:2021/8/24更新
最近貌似使用最新的vue-cli通过npm安装element-plus会炸,版本不兼容,还是可以使用下面的方法来进行安装:
vue add element-plus
会自动帮助我们适配版本
注意目前element-ui
只支持Vue2.6以下的版本,如果想在Vue3.0使用这个组件库,就要使用element-plus
注意!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
不叫element-ui了,叫element-plus,去他喵的.......
安装起来也很简单,进入到根目录,然后
vue add element-plus
即可,会自动安装
然后在 main.js 中引入即可
import { createApp } from 'vue'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import App from './App.vue';
const app = createApp(App)
app.use(ElementPlus)
app.mount('#app')
后面的使用,就和element-ui一样了
GitHub 加速计划 / eleme / element
54.06 K
14.63 K
下载
A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:2 个月前 )
c345bb45
6 个月前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 6 个月前
更多推荐
已为社区贡献3条内容
所有评论(0)