Fixed #6255
parent
079977c6a0
commit
1900ad9e9c
|
@ -274,16 +274,6 @@ export interface FileUploadPassThroughOptions {
|
||||||
* Used to pass attributes to the empty's DOM element.
|
* Used to pass attributes to the empty's DOM element.
|
||||||
*/
|
*/
|
||||||
empty?: FileUploadPassThroughOptionType;
|
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.
|
* Used to manage all lifecycle hooks.
|
||||||
* @see {@link BaseComponent.ComponentHooks}
|
* @see {@link BaseComponent.ComponentHooks}
|
||||||
|
|
|
@ -55,11 +55,23 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="isBasic" :class="cx('root')" v-bind="ptmi('root')">
|
<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>
|
<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="ptm('pcButton')">
|
<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">
|
<template #icon="iconProps">
|
||||||
<slot name="chooseicon">
|
<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>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in New Issue