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": [