diff --git a/snowy-admin-web/src/components/XnUpload/index.vue b/snowy-admin-web/src/components/XnUpload/index.vue index aa9b7bf4..b54427b3 100644 --- a/snowy-admin-web/src/components/XnUpload/index.vue +++ b/snowy-admin-web/src/components/XnUpload/index.vue @@ -11,6 +11,7 @@ @change="handleChange" :showUploadList="props.showUploadList" :accept="accept" + :disabled="props.disabled" > @@ -32,6 +33,7 @@ :progress="progress" :showUploadList="props.showUploadList" :accept="accept" + :disabled="props.disabled" >
@@ -53,6 +55,7 @@ :progress="progress" :showUploadList="props.showUploadList" :accept="accept" + :disabled="props.disabled" >
@@ -89,6 +92,7 @@ :progress="progress" :showUploadList="props.showUploadList" :accept="accept" + :disabled="props.disabled" >

@@ -189,7 +193,13 @@ type: [String, Array], default: undefined, required: false - } + }, + // 组件禁用状态 + disabled: { + type: Boolean, + default: false, + required: false + }, }) const action = props.uploadResultType === 'id'