diff --git a/README.md b/README.md index 75119c1..d911195 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 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. -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. +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. You can click here to see [how to migration from el-form-renderer](https://leezng.github.io/element-patch/). ## Links diff --git a/README.zh-CN.md b/README.zh-CN.md index bb30241..2ea1c58 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -2,7 +2,7 @@ 基于 [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` 将提供按需加载方式。 +从 `el-form-renderer` 升级到 `element-patch`,`el-form-renderer` 已成为一个历史[独立分支](https://github.com/leezng/element-patch/tree/el-form-renderer),将不再进行单独维护。[点击这里查看如何从 el-form-renderer 迁移](https://leezng.github.io/element-patch/)。 ## Links diff --git a/package.json b/package.json index bdfe329..259c1ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "element-patch", - "version": "1.1.0", + "version": "1.1.1", "description": "A Vue.js project", "author": "leezng ", "main": "lib/element-patch.js", diff --git a/src/plugs/tree-select/index.vue b/src/plugs/tree-select/index.vue index 5b934a9..086576d 100644 --- a/src/plugs/tree-select/index.vue +++ b/src/plugs/tree-select/index.vue @@ -104,6 +104,12 @@ methods: { // 在data中找到当前项 getCurrentItem (data, value) { + if (!value) { + return { + label: '', + value: '' + } + } let arr = [...data] while (arr.length) { const item = arr.shift()