Fixed #6255
parent
079977c6a0
commit
1900ad9e9c
|
@ -274,16 +274,6 @@ export interface FileUploadPassThroughOptions {
|
|||
* Used to pass attributes to the empty's DOM element.
|
||||
*/
|
||||
empty?: FileUploadPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the messages' DOM element.
|
||||
* @see {@link MessagePassThroughOptions}
|
||||
*/
|
||||
pcMessages?: MessagePassThroughOptions<FileUploadPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the basic mode's button's DOM element.
|
||||
* @see {@link ButtonPassThroughOptions}
|
||||
*/
|
||||
pcButton?: ButtonPassThroughOptions<FileUploadPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to manage all lifecycle hooks.
|
||||
* @see {@link BaseComponent.ComponentHooks}
|
||||
|
|
|
@ -55,11 +55,23 @@
|
|||
</div>
|
||||
</div>
|
||||
<div v-else-if="isBasic" :class="cx('root')" v-bind="ptmi('root')">
|
||||
<Message v-for="msg of messages" :key="msg" severity="error" @close="onMessageClose" :unstyled="unstyled" :pt="ptm('pcMessages')">{{ msg }}</Message>
|
||||
<Button :label="chooseButtonLabel" :class="chooseButtonClass" :style="style" :disabled="disabled" :unstyled="unstyled" @mouseup="onBasicUploaderClick" @keydown.enter="choose" @focus="onFocus" @blur="onBlur" v-bind="ptm('pcButton')">
|
||||
<Message v-for="msg of messages" :key="msg" severity="error" @close="onMessageClose" :unstyled="unstyled" :pt="ptm('pcMessage')">{{ msg }}</Message>
|
||||
<Button
|
||||
:label="chooseButtonLabel"
|
||||
:class="chooseButtonClass"
|
||||
:style="style"
|
||||
:disabled="disabled"
|
||||
:unstyled="unstyled"
|
||||
@mouseup="onBasicUploaderClick"
|
||||
@keydown.enter="choose"
|
||||
@focus="onFocus"
|
||||
@blur="onBlur"
|
||||
v-bind="chooseButtonProps"
|
||||
:pt="ptm('pcChooseButton')"
|
||||
>
|
||||
<template #icon="iconProps">
|
||||
<slot name="chooseicon">
|
||||
<component :is="chooseIcon ? 'span' : 'PlusIcon'" :class="[iconProps.class, chooseIcon]" aria-hidden="true" v-bind="ptm('pcButton')['icon']" />
|
||||
<component :is="chooseIcon ? 'span' : 'PlusIcon'" :class="[iconProps.class, chooseIcon]" aria-hidden="true" v-bind="ptm('pcChooseButton')['icon']" />
|
||||
</slot>
|
||||
</template>
|
||||
</Button>
|
||||
|
|
Loading…
Reference in New Issue