diff --git a/components/_util/use/useModel.ts b/components/_util/use/useModel.ts index 783e657e..43ec1afd 100644 --- a/components/_util/use/useModel.ts +++ b/components/_util/use/useModel.ts @@ -21,10 +21,10 @@ export const useNormalModel = < > = ModelValuePropKey, EventName extends string = string, >( - props: Props, - emit: (eventName: EventName, ...args: any[]) => void, - config: UseNormalModelOptions = {}, - ): [WritableComputedRef, (val: Props[Key]) => void] => { + props: Props, + emit: (eventName: EventName, ...args: any[]) => void, + config: UseNormalModelOptions = {}, +): [WritableComputedRef, (val: Props[Key]) => void] => { const { prop = 'modelValue', deep = false, @@ -106,13 +106,13 @@ export const useArrayModel = < > = Extract>, EventName extends string = string, >( - props: Props, - emit: (eventName: EventName, ...args: any[]) => void, - config: UseNormalModelOptions = {}, - ): [ - WritableComputedRef, - (val: ArrayOrItem) => void, - ] => { + props: Props, + emit: (eventName: EventName, ...args: any[]) => void, + config: UseNormalModelOptions = {}, +): [ + WritableComputedRef, + (val: ArrayOrItem) => void, +] => { const [computedValue, updateCurrentValue] = useNormalModel(props, emit, { ...config, defaultValue: [] as Props[Key], diff --git a/components/select/props.ts b/components/select/props.ts index 0c1a8a07..1e288e14 100644 --- a/components/select/props.ts +++ b/components/select/props.ts @@ -93,6 +93,10 @@ export const selectProps = { type: Boolean, default: false, }, + passive: { + type: Boolean, + default: true, + }, popperClass: [String, Array, Object] as PropType, triggerClass: [String, Array, Object] as PropType, triggerStyle: [Object, String] as PropType, diff --git a/components/select/select.vue b/components/select/select.vue index fde3b1ec..2e368828 100644 --- a/components/select/select.vue +++ b/components/select/select.vue @@ -74,10 +74,10 @@ + +