Element-Plus基于Vue3,面向设计师和开发者的组件库。下面web建站小编给大家介绍一下如何引入Element-Plus!
1、安装脚手架
npm install element-plus
2、全局引入
//在main.ts文件中加入以下代码: import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' const app = createApp(App) app.use(ElementPlus)
3、局部引入
import { init } from 'vue'
// 局部引入
import { ElButton } from 'element-plus'
import 'element-plus/theme-chalk/el-button.css'
import 'element-plus/theme-chalk/base.css'
export default init({
components: { ElButton },
setup() {
return {}
}
})
4、组件引入
<el-button type="primary">Primary</el-button>
上面是“vuejs实现element-plus脚手架的引入介绍”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_2315.html
workflows工作流
半透明的玻璃苹果ComfyUI工作流
3D圆形玉雕图案comfyui工作流
一个熙熙攘攘的市场场景,里面摆满了南瓜
一座巨大的野兽派建筑漂浮在热带风景中的贫民
森林里一只邪恶的树妖ComfyUI工作流
一只透明老虎骨骼标本ComfyUI工作流
水中一台精致而破旧的老式电视鱼缸ComfyUI工作流
一个港口配备了小型船只、起重机、集装箱和码头
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

在线生成金属文字
如何利用svg做一个有趣的loading动画加载
用svg画出游泳池动画效果
3D立体人物效果
iframe开发admin后台
如何利用css3+js做一个下雨效果
jquery鼠标滑过图片边框特效(jquery.focus-follow插件)
css3动画loading效果







