Skip to content

Commit 494429e

Browse files
authored
fix(Select): 修复多选数据回显后,删除一个数据,会把所有数据都删除的问题 (#1810) (#1811)
1 parent 7bdd798 commit 494429e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/devui-vue/devui/select/src/use-select.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ref, computed, Ref, inject, watch } from 'vue';
1+
import { ref, computed, Ref, inject, watch, onMounted, nextTick } from 'vue';
22
import type { SetupContext } from 'vue';
33
import { SelectProps, OptionObjectItem, UseSelectReturnType } from './select-types';
44
import { className, KeyType } from './utils';
@@ -362,6 +362,10 @@ export default function useSelect(
362362
{ flush: 'post' }
363363
);
364364

365+
onMounted(() => {
366+
nextTick(updateInjectOptionsStatus);
367+
});
368+
365369
return {
366370
selectDisabled,
367371
selectSize,

packages/devui-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-devui",
3-
"version": "1.6.4-markdown.1",
3+
"version": "1.6.4-select.0",
44
"license": "MIT",
55
"description": "DevUI components based on Vite and Vue3",
66
"keywords": [

0 commit comments

Comments
 (0)