2022-09-12 07:13:52 +00:00
|
|
|
const InlineMessageProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'severity',
|
|
|
|
type: 'string',
|
|
|
|
default: 'error',
|
2022-09-12 07:13:52 +00:00
|
|
|
description: 'Severity level of the message. Valid severities are "success", "info", "warn" and "error".'
|
2023-04-07 18:49:14 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'icon',
|
|
|
|
type: 'string',
|
|
|
|
default: 'undefined',
|
|
|
|
description: 'Display a custom icon for the message.'
|
2023-04-28 11:55:27 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'pt',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
2023-04-07 18:49:14 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const MessageSlots = [
|
|
|
|
{
|
2023-04-18 13:42:36 +00:00
|
|
|
name: 'icon',
|
|
|
|
description: 'Custom icon template.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
inlinemessage: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'InlineMessage',
|
|
|
|
description: 'InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms',
|
|
|
|
'doc-url': 'message',
|
2023-04-07 18:49:14 +00:00
|
|
|
props: InlineMessageProps,
|
|
|
|
slots: MessageSlots
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
};
|