Skip to content

Commit 69a6e90

Browse files
fix(upload): disabled prop not effect to upload in the form (vbenjs#3780)
1 parent 504cf72 commit 69a6e90

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/Upload/src/BasicUpload.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<template>
22
<div>
33
<Space>
4-
<a-button type="primary" @click="openUploadModal" preIcon="carbon:cloud-upload">
4+
<a-button
5+
type="primary"
6+
@click="openUploadModal"
7+
preIcon="carbon:cloud-upload"
8+
:disabled="disabled"
9+
>
510
{{ t('component.upload.upload') }}
611
</a-button>
712
<Tooltip placement="bottom" v-if="showPreview">

src/components/Upload/src/props.ts

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const previewType = {
3131
type ListType = 'text' | 'picture' | 'picture-card';
3232

3333
export const basicProps = {
34+
disabled: { type: Boolean, default: false },
3435
listType: {
3536
type: String as PropType<ListType>,
3637
default: 'picture-card',

0 commit comments

Comments
 (0)