From cbfedfe8ab1f0634d72eb065105299cfb3adff81 Mon Sep 17 00:00:00 2001 From: pengYYY Date: Wed, 16 Aug 2023 15:18:44 +0800 Subject: [PATCH] test: fix select test --- src/select/props.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/select/props.ts b/src/select/props.ts index 1c8f5d9e48..5190389a1b 100644 --- a/src/select/props.ts +++ b/src/select/props.ts @@ -41,6 +41,7 @@ export default { /** 输入框的值 */ inputValue: { type: [String, Number] as PropType, + default: undefined, }, /** 输入框的值,非受控属性 */ defaultInputValue: { @@ -94,7 +95,10 @@ export default { type: Object as PropType, }, /** 是否显示下拉框 */ - popupVisible: Boolean, + popupVisible: { + type: Boolean, + default: undefined, + }, /** 是否显示下拉框,非受控属性 */ defaultPopupVisible: Boolean, /** 组件前置图标 */ @@ -159,10 +163,12 @@ export default { /** 选中值 */ value: { type: [String, Number, Boolean, Object, Array] as PropType, + default: undefined, }, /** 选中值,非受控属性 */ defaultValue: { type: [String, Number, Boolean, Object, Array] as PropType, + default: undefined, }, /** 自定义选中项呈现的内容 */ valueDisplay: {