From fb5f5c259a02874b32f34b5aedaaddf599558bfd Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Sun, 6 Jan 2019 22:39:58 +0800 Subject: [PATCH 01/10] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6665658..db13904 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ 基于 [element-ui](https://github.com/ElemeFE/element) 的扩展包。我们对一些组件,例如 Table, Menu, Form 等进行扩展,丰富其特性与功能,同时增加了一些常用组件与场景,便于进行快速的方案构建。 +从 `el-form-renderer` 升级到 `element-patch`,`el-form-renderer` 已成为一个历史[独立分支](https://github.com/leezng/element-patch/tree/el-form-renderer),将不再进行单独维护,后续 `element-patch` 将提供按需加载方式。 + ## Links - [文档与例子](https://leezng.github.io/element-patch/) From 644cbe8745794bd6427633c423a07b508774de01 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Sun, 6 Jan 2019 22:41:54 +0800 Subject: [PATCH 02/10] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index db13904..eea86f2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ import ElementPatch from 'element-patch' import 'element-patch/index.css' Vue.use(ElementPatch) - ``` ## Features From 51f30e8067a194cdf2eac3d26887489256438982 Mon Sep 17 00:00:00 2001 From: leezng Date: Fri, 11 Jan 2019 23:36:35 +0800 Subject: [PATCH 03/10] update README --- README.md | 21 +++++++++++---------- README.zh-CN.md | 10 ++++++---- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index eea86f2..75119c1 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # element-patch -基于 [element-ui](https://github.com/ElemeFE/element) 的扩展包。我们对一些组件,例如 Table, Menu, Form 等进行扩展,丰富其特性与功能,同时增加了一些常用组件与场景,便于进行快速的方案构建。 +An [element-ui](https://github.com/ElemeFE/element) based extension package. We extend some components, such as Table, Menu, Form, etc., to enrich their features and functions, such as dynamically rendered forms and menus, draggable tables, and more. At the same time, we have added some common components and scenarios, such as tree selectors, to provide a fast solution. -从 `el-form-renderer` 升级到 `element-patch`,`el-form-renderer` 已成为一个历史[独立分支](https://github.com/leezng/element-patch/tree/el-form-renderer),将不再进行单独维护,后续 `element-patch` 将提供按需加载方式。 +From `el-form-renderer` to `element-patch`, `el-form-renderer` has become a historically independent [branch](https://github.com/leezng/element-patch/tree/el-form-renderer) that will no longer be maintained separately, and subsequent `element-patch` will provide an on-demand installation. ## Links -- [文档与例子](https://leezng.github.io/element-patch/) +- [Docs](https://leezng.github.io/element-patch/) +- [中文介绍](./README.zh-CN.md) ## Quick start @@ -24,12 +25,12 @@ Vue.use(ElementPatch) ## Features -- 通过配置数据生成的表单 -- 可拖拽的表格 -- 集成分页功能的表格 -- 通过配置数据生成的菜单 -- 支持权限控制的菜单 -- 树型选择器 -- 标签选择器 +- Dynamically rendered Form +- Dynamically rendered Menus +- Draggable Table +- Table supporting pagination +- Menu that supports permission control +- Tree selector +- Tag selector ... diff --git a/README.zh-CN.md b/README.zh-CN.md index 6665658..bb30241 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,10 +1,13 @@ # element-patch -基于 [element-ui](https://github.com/ElemeFE/element) 的扩展包。我们对一些组件,例如 Table, Menu, Form 等进行扩展,丰富其特性与功能,同时增加了一些常用组件与场景,便于进行快速的方案构建。 +基于 [element-ui](https://github.com/ElemeFE/element) 的扩展包。我们对一些组件,例如 Table, Menu, Form 等进行扩展,丰富其特性与功能,例如动态渲染的表单与菜单,可拖拽的表格等。同时增加了一些常用组件与场景,例如树型选择器等,致力于提供一套快速的解决方案。 + +从 `el-form-renderer` 升级到 `element-patch`,`el-form-renderer` 已成为一个历史[独立分支](https://github.com/leezng/element-patch/tree/el-form-renderer),将不再进行单独维护,后续 `element-patch` 将提供按需加载方式。 ## Links - [文档与例子](https://leezng.github.io/element-patch/) +- [Introduce](./README.md) ## Quick start @@ -18,15 +21,14 @@ import ElementPatch from 'element-patch' import 'element-patch/index.css' Vue.use(ElementPatch) - ``` ## Features -- 通过配置数据生成的表单 +- 通过动态数据渲染的表单 - 可拖拽的表格 - 集成分页功能的表格 -- 通过配置数据生成的菜单 +- 通过动态数据渲染的菜单 - 支持权限控制的菜单 - 树型选择器 - 标签选择器 From 5d15aa3c576a4e0741f713909499a928fb146c62 Mon Sep 17 00:00:00 2001 From: leezng Date: Sun, 13 Jan 2019 21:34:26 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BD=8D=E7=BD=AE=E6=8C=87=E7=A4=BA=E7=BA=BF?= =?UTF-8?q?=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/index.html | 2 +- src/plugs/table/index.js | 31 +++++++++++++++++++++++++++- src/plugs/table/index.scss | 6 ++++++ src/utils/dom.js | 41 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 src/utils/dom.js diff --git a/example/index.html b/example/index.html index fd2b928..7966665 100644 --- a/example/index.html +++ b/example/index.html @@ -2,7 +2,7 @@ - el-form-renderer + element-patch diff --git a/example/demo-block.vue b/example/demo-block.vue index 40198c8..60c40c3 100644 --- a/example/demo-block.vue +++ b/example/demo-block.vue @@ -43,7 +43,7 @@ padding: 15px; } .title > *:first-child { - font-weight: 500; + font-weight: bold; } .source { border-bottom: 1px solid #e9e9e9; diff --git a/example/doc/changelog.md b/example/doc/changelog.md new file mode 100644 index 0000000..ebe6756 --- /dev/null +++ b/example/doc/changelog.md @@ -0,0 +1,11 @@ +## 更新日志 + +### 1.1.0 + +- Table 组件增加拖拽排序的位置提示线条 +- 提供按需加载到使用方式 + + +### 1.0.0 + +- 从 `el-form-renderer` 升级到 `element-patch`,[迁移指南](#/start) diff --git a/example/doc/start.md b/example/doc/start.md index 5ed9b50..0097450 100644 --- a/example/doc/start.md +++ b/example/doc/start.md @@ -1,12 +1,14 @@ -## 快速开始 +## 开始 -基于 [element-ui](https://github.com/ElemeFE/element) 的扩展包。我们对一些组件,例如 Table, Menu, Form 等进行扩展,丰富其特性与功能,同时增加了一些常用组件与场景,便于进行快速的方案构建。 +基于 vue, [element-ui](https://github.com/ElemeFE/element) 的扩展包。我们对一些组件,例如 Table, Menu, Form 等进行扩展,丰富其特性与功能,同时增加了一些常用组件与场景,便于进行快速的方案构建。 ### 安装 ```html // Make sure you have properly installed element-ui and used it correctly. yarn add element-patch +or +npm i element-patch -S ``` ### 完整引入 @@ -27,3 +29,17 @@ new Vue({ render: h => h(App) }); ``` + +### 按需引入 + +```html +import ElxTable from 'element-patch/lib/table'; +import ElxFormRenderer from 'element-patch/lib/form-renderer'; + +export default { + components: { + ElxTable, + ElxFormRenderer + } +} +``` diff --git a/example/router-config.js b/example/router-config.js index d5e7c52..b512026 100644 --- a/example/router-config.js +++ b/example/router-config.js @@ -1,4 +1,5 @@ import Start from './doc/start.md' +import Changelog from './doc/changelog.md' import TagSelect from './doc/tag-select.md' import MenuRenderer from './doc/menu-renderer.md' import FormRenderer from './doc/form-renderer.md' @@ -7,8 +8,9 @@ import TreeSelect from './doc/tree-select.md' const routerConfig = { routes: [ - {path: '/', redirect: '/start'}, + { path: '/', redirect: '/start' }, { path: '/start', component: Start }, + { path: '/changelog', component: Changelog }, { path: '/tag-select', component: TagSelect }, { path: '/menu-renderer', component: MenuRenderer }, { path: '/form-renderer', component: FormRenderer },