We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 504cf72 commit 69a6e90Copy full SHA for 69a6e90
src/components/Upload/src/BasicUpload.vue
@@ -1,7 +1,12 @@
1
<template>
2
<div>
3
<Space>
4
- <a-button type="primary" @click="openUploadModal" preIcon="carbon:cloud-upload">
+ <a-button
5
+ type="primary"
6
+ @click="openUploadModal"
7
+ preIcon="carbon:cloud-upload"
8
+ :disabled="disabled"
9
+ >
10
{{ t('component.upload.upload') }}
11
</a-button>
12
<Tooltip placement="bottom" v-if="showPreview">
src/components/Upload/src/props.ts
@@ -31,6 +31,7 @@ export const previewType = {
31
type ListType = 'text' | 'picture' | 'picture-card';
32
33
export const basicProps = {
34
+ disabled: { type: Boolean, default: false },
35
listType: {
36
type: String as PropType<ListType>,
37
default: 'picture-card',
0 commit comments