Skip to content

Commit

Permalink
fix(upload): disabled prop not effect to upload in the form (#3780)
Browse files Browse the repository at this point in the history
  • Loading branch information
electroluxcode authored Apr 23, 2024
1 parent 504cf72 commit 69a6e90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Upload/src/BasicUpload.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<template>
<div>
<Space>
<a-button type="primary" @click="openUploadModal" preIcon="carbon:cloud-upload">
<a-button
type="primary"
@click="openUploadModal"
preIcon="carbon:cloud-upload"
:disabled="disabled"
>
{{ t('component.upload.upload') }}
</a-button>
<Tooltip placement="bottom" v-if="showPreview">
Expand Down
1 change: 1 addition & 0 deletions src/components/Upload/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const previewType = {
type ListType = 'text' | 'picture' | 'picture-card';

export const basicProps = {
disabled: { type: Boolean, default: false },
listType: {
type: String as PropType<ListType>,
default: 'picture-card',
Expand Down

0 comments on commit 69a6e90

Please sign in to comment.