Fixed #4728 - Change slot parameter function name on* to *CallBack

This commit is contained in:
tugcekucukoglu 2023-10-31 15:52:10 +03:00
parent 6f342ad243
commit 2cc5e637ae
14 changed files with 69 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<template>
<transition name="p-message" appear v-bind="ptm('transition')">
<div v-show="visible" :class="cx('root')" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('root')" data-pc-name="message">
<slot v-if="$slots.container" name="container" :onClose="close"></slot>
<slot v-if="$slots.container" name="container" :onClose="close" :closeCallback="close"></slot>
<div v-else :class="cx('wrapper')" v-bind="ptm('wrapper')">
<slot name="messageicon" class="p-message-icon">
<component :is="icon ? 'span' : iconComponent" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></component>