Browse Source
fix(upload): disabled prop not effect to upload in the form (#3780)
pull/3781/head
Electrolux
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
1 deletions
-
src/components/Upload/src/BasicUpload.vue
-
src/components/Upload/src/props.ts
|
|
|
@ -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"> |
|
|
|
|
|
|
|
@ -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', |
|
|
|
|