# Element UI

**Element UI** 是一个面向 Vue.js 2.0 的开源桌面端组件库，最初由饿了么（ele.me）前端工程团队打造——饿了么是中国最大的外卖平台之一——并以 ElemeFE 组织名义发布在 GitHub 上。<sup>[1](https://medium.com/elemefe/element-a-retrospective-1311219be693)</sup> 它提供了一整套常用界面组件，包括表单、表格、日期选择器、对话框和导航元素，视觉风格扁平、面向企业应用，并成为 Vue 2 生态中使用最广泛的 UI 工具包之一，尤其常见于后台管理面板和业务系统。<sup>[1](https://medium.com/elemefe/element-a-retrospective-1311219be693)</sup><sup> • </sup><sup>[2](https://www.faun.dev/toolbox/element-ui-vs-vuetify/)</sup> 它在 Vue 3 上的继任者是独立项目 Element Plus。<sup>[3](https://github.com/element-plus/element-plus)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 一个面向 Web 的 Vue.js 2.0 UI 工具包，通过 `npm install element-ui` 安装，并通过 `Vue.use(Element)` 注册<sup>[4](https://github.com/ElemeFE/element)</sup> |
| 起源 | 由饿了么前端团队创建，约始于 2016 年初，只覆盖常用组件，且从一开始就向社区开放<sup>[1](https://medium.com/elemefe/element-a-retrospective-1311219be693)</sup> |
| 浏览器支持 | 现代浏览器及 Internet Explorer 10+<sup>[4](https://github.com/ElemeFE/element)</sup> |
| 最终版本 | v2.15.14，即 ElemeFE/element 仓库最新打标的发布版本<sup>[5](https://github.com/ElemeFE/element/releases)</sup> |
| 仓库状态 | ElemeFE/element 最后推送于 2024-08-20；Vue 2 本身已于 2023 年 12 月 31 日停止维护<sup>[2](https://www.faun.dev/toolbox/element-ui-vs-vuetify/)</sup><sup> • </sup><sup>[6](https://blog.vuejs.org/posts/vue-2-eol)</sup> |
| 继任者 | Element Plus，一个用 TypeScript 编写的 Vue 3 库，首个稳定版发布于 2022 年 2 月 7 日，MIT 许可，GitHub 星标约 27.8k<sup>[3](https://github.com/element-plus/element-plus)</sup> |

## 起源

Element 脱胎于饿了么的一桩工作量难题。随着公司扩张，前端工程师和[用户体验设计](https://www.edgepedia.org/zh/user-experience-design)团队不得不逐个设计并搭建每个站点几乎每一个页面，于是团队决定构建一个设计语言统一的组件库。经过约两个月的调研，团队定下三条原则：组件库只覆盖常用组件，不做业务专用组件；基于 Vue.js 2.0 构建，因为团队中超过一半的前端开发者已经在使用它；并且向社区开放。<sup>[1](https://medium.com/elemefe/element-a-retrospective-1311219be693)</sup>

社区的贡献很早就塑造了这个项目。到 2017 年 3 月，仓库的 GitHub 星标已超过 9.4 千，Element 支持 26 种语言，其中 24 种由公司外部的开发者贡献。<sup>[1](https://medium.com/elemefe/element-a-retrospective-1311219be693)</sup>

## 特性与用法

**安装与引入。** Element UI 从 npm 安装，并作为 Vue 插件注册。项目可以引入整个库，也可以引入 `Select`、`Button` 等单个组件并分别注册；以 `theme-chalk` 主题分发的样式表必须与 [JavaScript](https://www.edgepedia.org/zh/javascript) 分开引入。<sup>[4](https://github.com/ElemeFE/element)</sup><sup> • </sup><sup>[7](https://develop365.gitlab.io/element-ui-doc/en-US_component_quickstart.html)</sup> 若要减小打包体积，`babel-plugin-component` 包支持按需引入，只打包项目用到的组件。<sup>[7](https://develop365.gitlab.io/element-ui-doc/en-US_component_quickstart.html)</sup> 全量引入相当沉重：在 vue-element-admin 模板中，仅 Element UI 一项经 gzip 压缩后就约占 700 KB，项目通常借助 webpack externals 和 CDN 分发来缓解。<sup>[8](https://doccompiler.ai/api/v1/jobs/shared/job_1776399442459_75922322/download/PanJiaChen__vue-element-admin__AdminGuide.pdf)</sup>

**组件。** 该库内置覆盖广泛组件集的 [TypeScript](https://www.edgepedia.org/zh/typescript) 声明，包括表单控件（Input、Select、Radio、Checkbox、DatePicker、TimePicker、Upload、Transfer）、数据展示（Table、Tag、Tree、Pagination、Calendar、Avatar）、反馈组件（Dialog、Message、MessageBox、Notification、Loading、Popover、Tooltip）以及布局容器（Container、Header、Aside、Main、Footer）。<sup>[9](https://app.unpkg.com/element-ui%402.13.0/files/types/element-ui.d.ts)</sup> 一份第三方注册表摘要称该包提供约 90 个 UI 组件。<sup>[10](https://tessl.io/registry/tessl/npm-element-ui/2.15.0/files/docs/data-display.md)</sup>

**主题定制。** 使用 SCSS 的项目可以覆盖主色等设计变量并重新构建主题；不使用 SCSS 的项目可以使用 `element-theme` 命令行工具，它会初始化一个变量文件，并据此生成定制主题。<sup>[11](https://develop365.gitlab.io/element-ui-doc/en-US_component_custom-theme.html)</sup>

## 采用情况

Element UI 成了 Vue 2 管理后台界面的默认选择。最著名的例子是 vue-element-admin——一个基于 Vue 2.6.10 和 Element UI 2.13.2 构建、被广泛使用的后台模板，它在该库之上提供了 30 多个可复用组件、按角色控制的路由以及 mock API 层。<sup>[8](https://doccompiler.ai/api/v1/jobs/shared/job_1776399442459_75922322/download/PanJiaChen__vue-element-admin__AdminGuide.pdf)</sup> 已发表的工程案例研究也记录了它在生产系统中的使用，例如一个云边 API 安全接入网关，其仪表盘使用 Element UI 完成页面布局、登录表单、主机与告警数据的表格展示，以及大数据集上的分页。<sup>[12](https://eudl.eu/pdf/10.1007/978-3-030-69514-9_6)</sup>

在对比评测中，Element UI 的优点在于组件 API 简单易上手，让团队能快速搭起管理面板，并且可以定制主题以贴合企业品牌；被提及的缺点则包括绑定了日渐老化的 Vue 2 平台、超大数据集下的性能局限、面对特殊需求时组件可定制性有限，以及相对较大的打包体积。<sup>[2](https://www.faun.dev/toolbox/element-ui-vs-vuetify/)</sup><sup> • </sup><sup>[13](https://tsight.io/articles/17281290)</sup> 一份 2026 年的对比按照八项标准给它打出 64 分（满分 100），Vuetify 为 74 分，其中易用性得分最高（76），集成能力得分最低（50），反映出它只能与一个框架集成，即 Vue 2。<sup>[2](https://www.faun.dev/toolbox/element-ui-vs-vuetify/)</sup>

## 停止维护与 Element Plus

Vue 2 于 2023 年 12 月 31 日停止维护，Element UI 赖以生存的基础也随之消失。<sup>[6](https://blog.vuejs.org/posts/vue-2-eol)</sup> 原仓库的开发逐步收尾：最后一次推送是在 2024 年 8 月 20 日，最终版本 v2.15.14 只包含少量缺陷修复、文档更新，以及塞尔维亚语（拉丁字母）和乌兹别克语等翻译的新增。<sup>[2](https://www.faun.dev/toolbox/element-ui-vs-vuetify/)</sup><sup> • </sup><sup>[5](https://github.com/ElemeFE/element/releases)</sup>

Element 团队的延续之作是 **Element Plus**——一个独立项目，使用组合式 API、以 TypeScript 为 Vue 3 重新实现了这个库。其首个可用于生产的稳定版于 2022 年 2 月 7 日发布，项目采用 MIT 许可，GitHub 星标约 2.78 万、复刻约 1.98 万。<sup>[3](https://github.com/element-plus/element-plus)</sup> Element Plus 的 API 与 Element UI 并不完全一致，因此项目发布了破坏性变更清单，并提供基于 gogocode 的迁移工具来转换 Element UI 项目，团队还通过转译 Vue Element Admin 模板对其进行了测试。<sup>[3](https://github.com/element-plus/element-plus)</sup> 如今针对新的 Vue 项目，对比性指南推荐使用 Element Plus 或其他 Vue 3 库，而 Element UI 则留给需要维护既有 Vue 2 应用、并配有迁移计划的场景。<sup>[2](https://www.faun.dev/toolbox/element-ui-vs-vuetify/)</sup>

## References

1. [Element: A Retrospective, Yi Yang, ELEME Frontend Engineering (Medium)](https://medium.com/elemefe/element-a-retrospective-1311219be693)
2. [Element UI vs Vuetify: Vue Component Libraries Comparison, faun.dev](https://www.faun.dev/toolbox/element-ui-vs-vuetify/)
3. [element-plus/element-plus: A Vue.js 3 UI Library made by Element team, GitHub](https://github.com/element-plus/element-plus)
4. [ElemeFE/element: A Vue.js 2.0 UI Toolkit for Web, GitHub](https://github.com/ElemeFE/element)
5. [Releases, ElemeFE/element, GitHub](https://github.com/ElemeFE/element/releases)
6. [Vue 2 is Approaching End Of Life, The Vue Point (Vue.js blog)](https://blog.vuejs.org/posts/vue-2-eol)
7. [Element UI Doc: component quickstart](https://develop365.gitlab.io/element-ui-doc/en-US_component_quickstart.html)
8. [Vue Element Admin Administrator & Developer Guide, DocCompiler.ai](https://doccompiler.ai/api/v1/jobs/shared/job_1776399442459_75922322/download/PanJiaChen__vue-element-admin__AdminGuide.pdf)
9. [element-ui 2.13.0 types/element-ui.d.ts, UNPKG](https://app.unpkg.com/element-ui%402.13.0/files/types/element-ui.d.ts)
10. [npm-element-ui@2.15.0 registry summary, Tessl](https://tessl.io/registry/tessl/npm-element-ui/2.15.0/files/docs/data-display.md)
11. [Element UI Doc: component custom-theme](https://develop365.gitlab.io/element-ui-doc/en-US_component_custom-theme.html)
12. [An Industrial-Grade API Secure Access Gateway in the Cloud-Edge Integration Scenario, EUDL](https://eudl.eu/pdf/10.1007/978-3-030-69514-9_6)
13. [Element UI：大型企业级应用的技术选型深度剖析, TrueSight](https://tsight.io/articles/17281290)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Frontend libraries and UI component frameworks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/element-ui

English original: https://www.edgepedia.org/element-ui
