From 23b9656e548d654ebd8d8423fdd9fe83321490b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=8C=E8=A8=80?= <2311595895@qq.com> Date: Sun, 28 Apr 2024 10:15:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(EditableSelect):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E6=B8=85=E7=A9=BA=E6=97=B6=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=20(#1838)=20(#1839)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devui/editable-select/src/composables/use-select.ts | 4 +--- packages/devui-vue/package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/devui-vue/devui/editable-select/src/composables/use-select.ts b/packages/devui-vue/devui/editable-select/src/composables/use-select.ts index 7ac279b1d4..6b7f9969da 100644 --- a/packages/devui-vue/devui/editable-select/src/composables/use-select.ts +++ b/packages/devui-vue/devui/editable-select/src/composables/use-select.ts @@ -159,9 +159,7 @@ export function useSelect( watch( () => props.options, (newOptions) => { - if (newOptions.length !== 0) { - cachedOptions.value = newOptions; - } + cachedOptions.value = newOptions; } ); diff --git a/packages/devui-vue/package.json b/packages/devui-vue/package.json index 4cad83e7f8..25094b39ca 100644 --- a/packages/devui-vue/package.json +++ b/packages/devui-vue/package.json @@ -1,6 +1,6 @@ { "name": "vue-devui", - "version": "1.6.16", + "version": "1.6.17", "license": "MIT", "description": "DevUI components based on Vite and Vue3", "keywords": [