From db8365833037773b208f5290cf745656ce614be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=8C=E8=A8=80?= <2311595895@qq.com> Date: Wed, 27 Mar 2024 10:25:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(Select):=20=E4=BF=AE=E5=A4=8D=E5=A4=9A?= =?UTF-8?q?=E9=80=89=E6=95=B0=E6=8D=AE=E5=9B=9E=E6=98=BE=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=80=E4=B8=AA=E6=95=B0=E6=8D=AE=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E6=8A=8A=E6=89=80=E6=9C=89=E6=95=B0=E6=8D=AE=E9=83=BD?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E9=97=AE=E9=A2=98=20(#1810)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/select/src/use-select.ts | 6 +++++- packages/devui-vue/package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/devui-vue/devui/select/src/use-select.ts b/packages/devui-vue/devui/select/src/use-select.ts index debfa7ce94..e49d586517 100644 --- a/packages/devui-vue/devui/select/src/use-select.ts +++ b/packages/devui-vue/devui/select/src/use-select.ts @@ -1,4 +1,4 @@ -import { ref, computed, Ref, inject, watch } from 'vue'; +import { ref, computed, Ref, inject, watch, onMounted, nextTick } from 'vue'; import type { SetupContext } from 'vue'; import { SelectProps, OptionObjectItem, UseSelectReturnType } from './select-types'; import { className, KeyType } from './utils'; @@ -362,6 +362,10 @@ export default function useSelect( { flush: 'post' } ); + onMounted(() => { + nextTick(updateInjectOptionsStatus); + }); + return { selectDisabled, selectSize, diff --git a/packages/devui-vue/package.json b/packages/devui-vue/package.json index e0d8e72db0..020273c475 100644 --- a/packages/devui-vue/package.json +++ b/packages/devui-vue/package.json @@ -1,6 +1,6 @@ { "name": "vue-devui", - "version": "1.6.4-markdown.1", + "version": "1.6.4-select.0", "license": "MIT", "description": "DevUI components based on Vite and Vue3", "keywords": [