ElementUi【饿了么ui】

简介

饿了么出品的ui组件库,主要是用来做前端页面的这么一个组件库。在此组件库中有丰富的页面组件,使用时直接将需要的组件代码复制进去即可;

官网地址:https://element-plus.org/zh-CN/

快速入门

plain 复制代码
npm install element-plus --save

全局引用:

plain 复制代码
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
//通过 createApp 创建Vue实例 对象
const vm = createApp(App);

vm.use(ElementPlus)
// 通过   mount 绑定页面的容器 id="app"
vm.mount('#app')

部分引用:

plain 复制代码
<template>
  <el-button>我是 ElButton</el-button>
</template>
<script>
  import { ElButton } from 'element-plus'
  export default {
    components: { ElButton },
  }
</script>
相关推荐
有味道的男人几秒前
1688获得商品类目调取商品榜单
java·前端·spring
txwtech7 分钟前
第20篇esp32s3小智设置横屏
前端·html
Exquisite.14 分钟前
企业高性能web服务器---Nginx(2)
服务器·前端·nginx
DFT计算杂谈21 分钟前
VASP+PHONOPY+pypolymlpj计算不同温度下声子谱,附批处理脚本
java·前端·数据库·人工智能·python
广州华水科技25 分钟前
如何选择合适的单北斗变形监测系统来保障水库安全?
前端
Mr_Xuhhh30 分钟前
MySQL表的内连接与外连接详解
java·前端·数据库
Amumu1213830 分钟前
Vue Router(一)
前端·javascript·vue.js
郑州光合科技余经理33 分钟前
可独立部署的Java同城O2O系统架构:技术落地
java·开发语言·前端·后端·小程序·系统架构·uni-app
清山博客33 分钟前
jQuery easyui 扩展datetimebox控件,增加上午、中午、下午快速选择
前端·jquery·easyui
VT.馒头1 小时前
【力扣】2694. 事件发射器
前端·javascript·算法·leetcode·职场和发展·typescript