{"id":51636964,"url":"https://github.com/gameorstudy/element-ui-pro-components","last_synced_at":"2026-07-13T15:03:53.626Z","repository":{"id":353012026,"uuid":"1201787526","full_name":"gameorstudy/element-ui-pro-components","owner":"gameorstudy","description":"vue 2 + Element UI 高级组件库：ProTable 查询表格、ProForm 高级表单、DialogForm 弹框表单、EditableProTable 可编辑表格","archived":false,"fork":false,"pushed_at":"2026-06-14T03:14:23.000Z","size":1632,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T05:08:15.344Z","etag":null,"topics":["dialog-form","editable-pro-table","element","element-ui","element-ui-pro-components","pro-form","pro-table","vue2"],"latest_commit_sha":null,"homepage":"https://gameorstudy.github.io/element-ui-pro-components","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gameorstudy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-05T06:43:37.000Z","updated_at":"2026-06-14T03:13:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gameorstudy/element-ui-pro-components","commit_stats":null,"previous_names":["gameorstudy/element-ui-pro-components"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gameorstudy/element-ui-pro-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameorstudy%2Felement-ui-pro-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameorstudy%2Felement-ui-pro-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameorstudy%2Felement-ui-pro-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameorstudy%2Felement-ui-pro-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gameorstudy","download_url":"https://codeload.github.com/gameorstudy/element-ui-pro-components/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gameorstudy%2Felement-ui-pro-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35426086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dialog-form","editable-pro-table","element","element-ui","element-ui-pro-components","pro-form","pro-table","vue2"],"created_at":"2026-07-13T15:03:52.726Z","updated_at":"2026-07-13T15:03:53.610Z","avatar_url":"https://github.com/gameorstudy.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 快速开始\n\n### Element UI Pro Components\n本项目是受 Ant Design Pro Components 的启发，旨在为 Vue 2 + Element UI 生态提供更高级别的模板组件，方便表单、表格功能开发。\n\n#### 架构与组件总览\n\nProComponents 提供了一系列高级组件，覆盖了从布局到表单、表格的核心场景：\n\n*   **ProForm** - 高级表单\n*   **DialogForm** - 弹框表单\n*   **ProTable** - 查询表格\n*   **EditableProTable** - 可编辑表格\n\n#### 前置条件\n\n本组件库依赖以下库，请确保你的项目中已安装：\n\n```json\n{\n  \"el-table-prepend\": \"^1.3.2\",\n  \"element-ui\": \"^2.15.14\",\n  \"vue\": \"^2.6.10\",\n  \"vue-fragment\": \"^1.6.0\"\n}\n```\n\n#### 安装\n\n安装 element-ui-pro-components 库：\n\n```bash\nnpm install element-ui-pro-components\n```\n\n#### 完整引入\n在 main.js 中写入以下内容：\n\n```js\nimport Vue from 'vue'\nimport ElementUI from 'element-ui'\nimport 'element-ui/lib/theme-chalk/index.css'\nimport Fragment from 'vue-fragment'\nimport ElementUIProComponents from 'element-ui-pro-components'\nimport 'element-ui-pro-components/lib/index.css'\n\nVue.use(Fragment.Plugin)\nVue.use(ElementUI)\nVue.use(ElementUIProComponents)\n```\n\n#### 按需引入\n\n借助 babel-plugin-component，我们可以只引入需要的组件，以达到减小项目体积的目的。\n\n首先，安装 babel-plugin-component：\n\n```bash\nnpm install babel-plugin-component -D\n```\n\n然后，将 babel.config.js 修改为：\n\n```js\nmodule.exports = {\n  \"plugins\": [\n    [\n      \"component\",\n      {\n        \"libraryName\": \"element-ui-pro-components\",\n        \"style\": true\n      },\n      'element-ui-pro-components'\n    ]\n  ]\n}\n```\n\n#### 效果\n```js\nimport { ProTable } from 'element-ui-pro-components'\n↓ ↓ ↓ ↓ ↓ ↓\nvar ProTable = require('components/lib/pro-table')\nrequire('components/lib/pro-table/style.css')\n```\n\n接下来，如果你只希望引入部分组件，比如 ProForm 和 ProTable，那么需要在 main.js 中写入以下内容：\n\n```js\nimport Vue from 'vue'\nimport ElementUI from 'element-ui'\nimport 'element-ui/lib/theme-chalk/index.css'\nimport Fragment from 'vue-fragment'\nimport { ProForm, EditableProTable } from 'element-ui-pro-components'\n\nVue.use(Fragment.Plugin)\nVue.use(ElementUI)\nVue.use(ProForm)\nVue.use(EditableProTable)\n```\n\n#### 链接\n\n| | 文档 | GitHub |\n| --- | --- | --- |\n| **Vue 2 + Element UI（本项目）** | [在线文档](https://gameorstudy.github.io/element-ui-pro-components/) | [element-ui-pro-components](https://github.com/gameorstudy/element-ui-pro-components) |\n| **Vue 3 + Element Plus** | [在线文档](https://gameorstudy.github.io/element-plus-pro-components/) | [element-plus-pro-components](https://github.com/gameorstudy/element-plus-pro-components) |\n\n\u003e 如果你正在使用 Vue 3，推荐迁移到 [Element Plus Pro Components](https://gameorstudy.github.io/element-plus-pro-components/)。\n\n#### 注意\n`el-table-prepend` 是在 `element-ui` 的 `table` 源码上添加了一个 `slot`，没有打包 `element-ui`，因此不支持 umd 打包。因此 `element-ui-pro-components` 也不支持 `umd` 打包。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameorstudy%2Felement-ui-pro-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgameorstudy%2Felement-ui-pro-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgameorstudy%2Felement-ui-pro-components/lists"}