message slot added
parent
93b6b04cdf
commit
67320fb0d8
|
@ -13,10 +13,18 @@ const ConfirmDialogProps = [
|
|||
}
|
||||
];
|
||||
|
||||
const ConfirmDialogSlots = [
|
||||
{
|
||||
name: "message",
|
||||
description: "Custom content for the component."
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
confirmdialog: {
|
||||
name: "ConfirmDialog",
|
||||
description: "ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.",
|
||||
props: ConfirmDialogProps
|
||||
props: ConfirmDialogProps,
|
||||
slots: ConfirmDialogSlots
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import { VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
import { ConfirmationOptions } from '../confirmationoptions';
|
||||
|
||||
export interface ConfirmDialogBreakpoints {
|
||||
/**
|
||||
|
@ -32,6 +34,13 @@ export interface ConfirmDialogProps {
|
|||
}
|
||||
|
||||
export interface ConfirmDialogSlots {
|
||||
/**
|
||||
* Custom message template.
|
||||
* @param {Object} scope - message slot's params.
|
||||
*/
|
||||
message: (scope: {
|
||||
message: ConfirmationOptions;
|
||||
}) => VNode[];
|
||||
}
|
||||
|
||||
export declare type ConfirmDialogEmits = {
|
||||
|
|
|
@ -278,7 +278,7 @@ export default {
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<h5>Slots</h5>
|
||||
<h5>Slots</h5>
|
||||
<div class="doc-tablewrapper">
|
||||
<table class="doc-table">
|
||||
<thead>
|
||||
|
|
Loading…
Reference in New Issue