55 lines
1.3 KiB
JavaScript
55 lines
1.3 KiB
JavaScript
const ConfirmDialogProps = [
|
|
{
|
|
name: 'group',
|
|
type: 'string',
|
|
default: 'null',
|
|
description: 'Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.'
|
|
},
|
|
{
|
|
name: 'breakpoints',
|
|
type: 'object',
|
|
default: 'null',
|
|
description: 'Object literal to define widths per screen size.'
|
|
},
|
|
{
|
|
name: 'draggable',
|
|
type: 'boolean',
|
|
default: 'true',
|
|
description: 'Whether the dialog can be relocated by dragging.'
|
|
},
|
|
{
|
|
name: 'pt',
|
|
type: 'any',
|
|
default: 'null',
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
|
}
|
|
];
|
|
|
|
const ConfirmDialogSlots = [
|
|
{
|
|
name: 'message',
|
|
description: 'Custom icon template.'
|
|
},
|
|
{
|
|
name: 'icon',
|
|
description: 'Custom icon template.'
|
|
},
|
|
{
|
|
name: 'accepticon',
|
|
description: 'Custom accept icon template.'
|
|
},
|
|
{
|
|
name: 'rejecticon',
|
|
description: 'Custom reject icon template.'
|
|
}
|
|
];
|
|
|
|
module.exports = {
|
|
confirmdialog: {
|
|
name: 'ConfirmDialog',
|
|
description: 'ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.',
|
|
props: ConfirmDialogProps,
|
|
slots: ConfirmDialogSlots
|
|
}
|
|
};
|