【新增】xn-upload组件新增禁用状态,支持外层组件设置禁用状态

pull/283/head
longbin 2025-09-12 17:52:14 +08:00
parent 76ec2a7c79
commit 8111719330
1 changed files with 11 additions and 1 deletions

View File

@ -11,6 +11,7 @@
@change="handleChange"
:showUploadList="props.showUploadList"
:accept="accept"
:disabled="props.disabled"
>
<a-button>
<upload-outlined />
@ -32,6 +33,7 @@
:progress="progress"
:showUploadList="props.showUploadList"
:accept="accept"
:disabled="props.disabled"
>
<div class="clearfix" v-if="fileList.length < props.uploadNumber">
<plus-outlined />
@ -53,6 +55,7 @@
:progress="progress"
:showUploadList="props.showUploadList"
:accept="accept"
:disabled="props.disabled"
>
<div class="clearfix" v-if="fileList.length < props.uploadNumber">
<plus-outlined />
@ -89,6 +92,7 @@
:progress="progress"
:showUploadList="props.showUploadList"
:accept="accept"
:disabled="props.disabled"
>
<p class="ant-upload-drag-icon">
<inbox-outlined />
@ -189,7 +193,13 @@
type: [String, Array],
default: undefined,
required: false
}
},
//
disabled: {
type: Boolean,
default: false,
required: false
},
})
const action =
props.uploadResultType === 'id'