|
1 | 1 | <template> |
2 | 2 | <transition name="p-message" appear v-bind="ptmi('transition')"> |
3 | 3 | <div v-if="visible" :class="cx('root')" role="alert" aria-live="assertive" aria-atomic="true" :data-p="dataP" v-bind="ptm('root')"> |
4 | | - <slot v-if="$slots.container" name="container" :closeCallback="close"></slot> |
5 | | - <div v-else :class="cx('content')" :data-p="dataP" v-bind="ptm('content')"> |
6 | | - <slot name="icon" :class="cx('icon')"> |
7 | | - <component :is="icon ? 'span' : null" :class="[cx('icon'), icon]" :data-p="dataP" v-bind="ptm('icon')"></component> |
8 | | - </slot> |
9 | | - <div v-if="$slots.default" :class="cx('text')" :data-p="dataP" v-bind="ptm('text')"> |
10 | | - <slot></slot> |
11 | | - </div> |
12 | | - <button v-if="closable" v-ripple :class="cx('closeButton')" :aria-label="closeAriaLabel" type="button" @click="close($event)" :data-p="dataP" |
13 | | - v-bind="{ ...closeButtonProps, ...ptm('closeButton') }"> |
14 | | - <slot name="closeicon"> |
15 | | - <i v-if="closeIcon" :class="[cx('closeIcon'), closeIcon]" :data-p="dataP" v-bind="ptm('closeIcon')" /> |
16 | | - <TimesIcon v-else :class="[cx('closeIcon'), closeIcon]" :data-p="dataP" v-bind="ptm('closeIcon')" /> |
| 4 | + <div :class="cx('contentWrapper')" v-bind="ptm('contentWrapper')"> |
| 5 | + <slot v-if="$slots.container" name="container" :closeCallback="close"></slot> |
| 6 | + <div v-else :class="cx('content')" :data-p="dataP" v-bind="ptm('content')"> |
| 7 | + <slot name="icon" :class="cx('icon')"> |
| 8 | + <component :is="icon ? 'span' : null" :class="[cx('icon'), icon]" :data-p="dataP" v-bind="ptm('icon')"></component> |
17 | 9 | </slot> |
18 | | - </button> |
| 10 | + <div v-if="$slots.default" :class="cx('text')" :data-p="dataP" v-bind="ptm('text')"> |
| 11 | + <slot></slot> |
| 12 | + </div> |
| 13 | + <button v-if="closable" v-ripple :class="cx('closeButton')" :aria-label="closeAriaLabel" type="button" @click="close($event)" :data-p="dataP" |
| 14 | + v-bind="{ ...closeButtonProps, ...ptm('closeButton') }"> |
| 15 | + <slot name="closeicon"> |
| 16 | + <i v-if="closeIcon" :class="[cx('closeIcon'), closeIcon]" :data-p="dataP" v-bind="ptm('closeIcon')" /> |
| 17 | + <TimesIcon v-else :class="[cx('closeIcon'), closeIcon]" :data-p="dataP" v-bind="ptm('closeIcon')" /> |
| 18 | + </slot> |
| 19 | + </button> |
| 20 | + </div> |
19 | 21 | </div> |
20 | 22 | </div> |
21 | 23 | </transition> |
|
0 commit comments