Code Format
parent
05489b8127
commit
b5225b9adc
|
@ -15,14 +15,32 @@
|
|||
</template>
|
||||
<component v-else :is="$slots.message" :message="confirmation"></component>
|
||||
<div :class="cx('footer')" v-bind="ptm('footer')">
|
||||
<CPButton :label="rejectLabel" @click="reject()" @keydown="onRejectKeydown" :autofocus="autoFocusReject" :class="[cx('rejectButton'), confirmation.rejectClass]" :unstyled="unstyled" :pt="ptm('rejectButton')" data-pc-name="rejectbutton">
|
||||
<CPButton
|
||||
:label="rejectLabel"
|
||||
@click="reject()"
|
||||
@keydown="onRejectKeydown"
|
||||
:autofocus="autoFocusReject"
|
||||
:class="[cx('rejectButton'), confirmation.rejectClass]"
|
||||
:unstyled="unstyled"
|
||||
:pt="ptm('rejectButton')"
|
||||
data-pc-name="rejectbutton"
|
||||
>
|
||||
<template v-if="rejectIcon || $slots.rejecticon" #icon="iconProps">
|
||||
<slot name="rejecticon">
|
||||
<span :class="[rejectIcon, iconProps.class]" v-bind="ptm('rejectButton')['icon']" data-pc-name="rejectbuttonicon" />
|
||||
</slot>
|
||||
</template>
|
||||
</CPButton>
|
||||
<CPButton :label="acceptLabel" @click="accept()" @keydown="onAcceptKeydown" :autofocus="autoFocusAccept" :class="[cx('acceptButton'), confirmation.acceptClass]" :unstyled="unstyled" :pt="ptm('acceptButton')" data-pc-name="acceptbutton">
|
||||
<CPButton
|
||||
:label="acceptLabel"
|
||||
@click="accept()"
|
||||
@keydown="onAcceptKeydown"
|
||||
:autofocus="autoFocusAccept"
|
||||
:class="[cx('acceptButton'), confirmation.acceptClass]"
|
||||
:unstyled="unstyled"
|
||||
:pt="ptm('acceptButton')"
|
||||
data-pc-name="acceptbutton"
|
||||
>
|
||||
<template v-if="acceptIcon || $slots.accepticon" #icon="iconProps">
|
||||
<slot name="accepticon">
|
||||
<span :class="[acceptIcon, iconProps.class]" v-bind="ptm('acceptButton')['icon']" data-pc-name="acceptbuttonicon" />
|
||||
|
|
Loading…
Reference in New Issue