您当前的位置: 首页>>独家>>

VUE3+ts安装elementplus

2023-04-24 21:51:33 来源:腾讯云


(资料图)

elementplus官网地址:https://element-plus.gitee.io/zh-CN/

1. 在终端输入

npm install element-plus --save
在这里插入图片描述

2. 在main.ts中添加

import ElementPlus from "element-plus"import "element-plus/dist/index.css"createApp(App).use(ElementPlus).mount("#app");
在这里插入图片描述

3. 在HelloWorld.vue中添加

Primary
在这里插入图片描述

出现按钮,就是添加成功了!

如何VUE3+TS学习-项目搭建:链接》》

关键词:
分享到:
x 广告
x 广告

Copyright ©  2015-2022 纵横时尚网版权所有  备案号:浙ICP备2022016517号-12   联系邮箱:51 46 76 11 3 @qq.com