From d654e34266cb8e142096caad0b41c8727f3940c2 Mon Sep 17 00:00:00 2001
From: liusuY <851209312@qq.com>
Date: Sun, 10 Oct 2021 23:17:20 +0800
Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dissues/I4CSFU?=
=?UTF-8?q?=E7=A9=BA=E7=99=BD=E5=9B=9E=E8=BD=A6=E8=BE=93=E5=85=A5=E5=BC=82?=
=?UTF-8?q?=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
devui/tag-input/src/tag-input.tsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/devui/tag-input/src/tag-input.tsx b/devui/tag-input/src/tag-input.tsx
index 8ed491cb..192d180b 100644
--- a/devui/tag-input/src/tag-input.tsx
+++ b/devui/tag-input/src/tag-input.tsx
@@ -137,6 +137,10 @@ export default defineComponent({
mergedSuggestions.value.length === 0 && (tagInputVal.value = '');
};
const onInputKeydown = ($event: KeyboardEvent) => {
+ if (!tagInputVal.value) {
+ return;
+ }
+
switch ($event.key) {
case KEYS_MAP.tab:
case KEYS_MAP.enter:
--
Gitee
From 441059b831fd91fa241ff26f9b76cc742153ff55 Mon Sep 17 00:00:00 2001
From: liusuY <851209312@qq.com>
Date: Sun, 10 Oct 2021 23:40:31 +0800
Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/components/tag-input/index.md | 38 ++++++++++++++++++++++++------
1 file changed, 31 insertions(+), 7 deletions(-)
diff --git a/docs/components/tag-input/index.md b/docs/components/tag-input/index.md
index 80bd047c..edf24c7d 100644
--- a/docs/components/tag-input/index.md
+++ b/docs/components/tag-input/index.md
@@ -9,12 +9,13 @@
### 基本用法
+v-model:tags="state.tags"
+v-model:suggestionList="state.suggestionList"
+display-property="name"
+placeholder="请输入名字"
+no-data="暂无数据"
+
+>
```html
\ No newline at end of file
+
+
+:::
+
+### d-tags-input
+
+| 参数 | 类型 | 默认值 | 说明 |
+| --------------- | --------- | ------------------------- | ------------------------------------ |
+| tags | `Array` | [] | 必选,记录输入的标签和选择的标签列表 |
+| displayProperty | `String` | `name` | 可选,列表项使用的属性名 |
+| placeholder | `Boolean` | | 可选,输入框的 placeholder |
+| maxTags | `Number` | `Number.MAX_SAFE_INTEGER` | 可选,输入标签内容的最大长度 |
+| maxTagsText | `String` | | 可选,- |
+| spellcheck | `Boolean` | true | 可选,input 输入框是否开启拼写检查的 |
+| suggestionList | `Array` | [] | 可选,下拉选项,默认可选择的标签列表 |
+| disabled | `Boolean` | false | 是否禁用 |
+| disabledText | `String` | | 可选,- |
+| noData | `String` | | 可选,- |
+
+### d-tags-input 事件
+
+| 参数 | 类型 | 说明 |
+| ----------- | ------------------- | -------------------------------------------------------- |
+| valueChange | `EventEmitter` | 当选中某个选项项后,将会调用此函数,参数为当前选择项的值 |
--
Gitee
From 8d20e408a6d566e17dd117a58e93db72651db91c Mon Sep 17 00:00:00 2001
From: liusuY <851209312@qq.com>
Date: Mon, 11 Oct 2021 10:47:46 +0800
Subject: [PATCH 3/3] =?UTF-8?q?fix:=20link=20#I4CSFU=E3=80=81link=20https:?=
=?UTF-8?q?//gitee.com/devui/vue-devui/issues/I4CSFU?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/components/tag-input/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/components/tag-input/index.md b/docs/components/tag-input/index.md
index edf24c7d..bc04caa9 100644
--- a/docs/components/tag-input/index.md
+++ b/docs/components/tag-input/index.md
@@ -65,4 +65,4 @@ export default defineComponent({
| 参数 | 类型 | 说明 |
| ----------- | ------------------- | -------------------------------------------------------- |
-| valueChange | `EventEmitter` | 当选中某个选项项后,将会调用此函数,参数为当前选择项的值 |
+| valueChange | `EventEmitter` | 当选中某个选项项后,将会调用此函数,参数为当前选择项的值 |
--
Gitee