From b3c22f96d80c77eea21a36b4201e8bf32244bc55 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Fri, 7 Aug 2020 12:10:13 +0800 Subject: [PATCH] =?UTF-8?q?perf(tagSearch):=20=E4=BC=98=E5=8C=96=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E5=8A=9F=E8=83=BD=20(#286)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf(tagSearch): 优化搜索组件增加编辑选项功能 * 优化Tag细节 * 优化Tag细节 Co-authored-by: OrangeM21 --- src/components/AutoDataSearch/index.vue | 2 + src/components/TagSearch/index.vue | 64 +++++++++++++++++++++---- 2 files changed, 57 insertions(+), 9 deletions(-) diff --git a/src/components/AutoDataSearch/index.vue b/src/components/AutoDataSearch/index.vue index 5a0de843e..ef8574ec6 100644 --- a/src/components/AutoDataSearch/index.vue +++ b/src/components/AutoDataSearch/index.vue @@ -47,7 +47,9 @@ export default { } const option = { label: field.label, + type: field.type, value: name + } if (field.type === 'choice' && field.choices) { option.children = field.choices.map(item => { diff --git a/src/components/TagSearch/index.vue b/src/components/TagSearch/index.vue index f399e5d00..7b4ff291f 100644 --- a/src/components/TagSearch/index.vue +++ b/src/components/TagSearch/index.vue @@ -1,14 +1,35 @@