mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-07 04:38:01 +00:00
fix(upload): disabled prop not effect to upload in the form (#3780)
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Space>
|
<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') }}
|
{{ t('component.upload.upload') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<Tooltip placement="bottom" v-if="showPreview">
|
<Tooltip placement="bottom" v-if="showPreview">
|
||||||
|
@@ -31,6 +31,7 @@ export const previewType = {
|
|||||||
type ListType = 'text' | 'picture' | 'picture-card';
|
type ListType = 'text' | 'picture' | 'picture-card';
|
||||||
|
|
||||||
export const basicProps = {
|
export const basicProps = {
|
||||||
|
disabled: { type: Boolean, default: false },
|
||||||
listType: {
|
listType: {
|
||||||
type: String as PropType<ListType>,
|
type: String as PropType<ListType>,
|
||||||
default: 'picture-card',
|
default: 'picture-card',
|
||||||
|
Reference in New Issue
Block a user