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>
相关推荐
倔强的石头1062 分钟前
【Linux指南】动静态库系列(七):符号表与重定位:链接器如何把函数调用接起来
linux·前端·javascript
图扑软件43 分钟前
中篇・运笔|统一 DataModel 底座,HT UI 组件万物同源
javascript·低代码·ui·性能优化·数据可视化
a1117761 小时前
3D 脑图谱 / Bilingual 3D Brain Atlas 项目
前端
T1mzhou1 小时前
ARM64 Linux 6.10内核启动流程2-rootfs 怎么挂上
linux·服务器·前端
小小尚@2 小时前
WebGIS/ECharts 地图开发|MapLand 在线行政区划边界一键下载 GeoJSON 工具
前端·javascript·echarts
默_笙3 小时前
🚍 一条 Todo 的奇幻漂流:TypeScript 全栈类型安全的"护照检查"
前端·javascript
计算机魔术师3 小时前
NVIDIA 以 129.3 亿美元收购 Hugging Face
前端
平头哥技术团队3 小时前
Day 01 | 用 HTML 写第一个网页:双击就能在浏览器打开
前端
weixin_422555424 小时前
el-menu子菜单点击就被激活,恢复之前的激活状态
javascript·vue.js·elementui
计算机魔术师4 小时前
两年翻45倍!英伟达靠买买买建成千亿投资帝国
前端