diff --git a/src/components/TreeSelect/index.vue b/src/components/TreeSelect/index.vue index 21d3e590..5d0087be 100644 --- a/src/components/TreeSelect/index.vue +++ b/src/components/TreeSelect/index.vue @@ -38,7 +38,7 @@ export default defineComponent({ name: 'ElTreeSelect', props: { placeholder: { - type: String, + type: [String,Number], default: '' }, user: { @@ -50,7 +50,7 @@ export default defineComponent({ // 选项列表数据(树形结构的对象数组) options: { type: Array, required: true }, // 初始值 - defalut: { type: String, default: null }, + defalut: { type: [String,Number], default: null }, // 可清空选项 clearable: { type: Boolean, default: true }, // 自动收起 @@ -163,7 +163,9 @@ export default defineComponent({