mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4728 - Change slot parameter function name on* to *CallBack
This commit is contained in:
parent
6f342ad243
commit
2cc5e637ae
14 changed files with 69 additions and 7 deletions
5
components/lib/toast/Toast.d.ts
vendored
5
components/lib/toast/Toast.d.ts
vendored
|
@ -305,8 +305,13 @@ export interface ToastSlots {
|
|||
message: any;
|
||||
/**
|
||||
* Close toast function
|
||||
* @deprecated since v3.39.0. Use 'closeCallback' property instead.
|
||||
*/
|
||||
onClose: () => void;
|
||||
/**
|
||||
* Close sidebar function.
|
||||
*/
|
||||
closeCallback: () => void;
|
||||
}): VNode[];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div :class="[cx('container'), message.styleClass]" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('container')">
|
||||
<component v-if="templates.container" :is="templates.container" :message="message" :onClose="onCloseClick" />
|
||||
<component v-if="templates.container" :is="templates.container" :message="message" :onClose="onCloseClick" :closeCallback="onCloseClick" />
|
||||
<div v-else :class="[cx('content'), message.contentStyleClass]" v-bind="ptm('content')">
|
||||
<template v-if="!templates.message">
|
||||
<component :is="templates.icon ? templates.icon : iconComponent && iconComponent.name ? iconComponent : 'span'" :class="cx('icon')" v-bind="ptm('icon')" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue