diff --git a/src/runtime/components/InputMenu.vue b/src/runtime/components/InputMenu.vue index 34b482eb..c2a64ce6 100644 --- a/src/runtime/components/InputMenu.vue +++ b/src/runtime/components/InputMenu.vue @@ -379,6 +379,7 @@ function onSelect(e: Event, item: InputMenuItem) { function isInputItem(item: InputMenuItem): item is _InputMenuItem { return typeof item === 'object' && item !== null } + defineExpose({ inputRef }) diff --git a/src/runtime/components/Select.vue b/src/runtime/components/Select.vue index 1bccd608..2dc88c9e 100644 --- a/src/runtime/components/Select.vue +++ b/src/runtime/components/Select.vue @@ -92,6 +92,8 @@ export interface SelectProps = ArrayOrNested multiple?: M & boolean /** Highlight the ring color like a focus state. */ highlight?: boolean + autofocus?: boolean + autofocusDelay?: number class?: any ui?: Select['slots'] } @@ -134,7 +136,7 @@ export interface SelectSlots<