From 95c52117cc75eb9c1cc0ec31e64ea593c723dbcb Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 5 Dec 2025 11:23:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20xtUpload=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/xtUpload.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/xtUpload.vue b/components/xtUpload.vue index 33e178b..ef1e4c5 100644 --- a/components/xtUpload.vue +++ b/components/xtUpload.vue @@ -24,7 +24,7 @@ const emit = defineEmits(["update:modelValue", "update:obj"]); const props = defineProps({ xtype: { type: String, default: "path" }, // path 或 id - modelValue: { type: [Array, String], default: undefined }, + modelValue: { type: [Array, String], default: "pending" }, obj: { type: Object, default: () => ({}) }, accept: { type: String, default: '' }, countMax: { type: Number, default: 1 }, @@ -44,18 +44,14 @@ const action = `${config.baseUrl}/file/` const inited = ref(false) onMounted(() => { - disabled.value = true checkPropsUntilReady() }) const checkPropsUntilReady = () => { if (inited.value) return - if (props.modelValue !== undefined) { + if (props.modelValue !== "pending") { initFileList() - if (props.disabled == false) { - disabled.value = false - } inited.value = true return }