diff --git a/api-generator/components/inlinemessage.js b/api-generator/components/inlinemessage.js
index 1eb2c8843..78616eb77 100644
--- a/api-generator/components/inlinemessage.js
+++ b/api-generator/components/inlinemessage.js
@@ -4,6 +4,19 @@ const InlineMessageProps = [
type: 'string',
default: 'error',
description: 'Severity level of the message. Valid severities are "success", "info", "warn" and "error".'
+ },
+ {
+ name: 'icon',
+ type: 'string',
+ default: 'undefined',
+ description: 'Display a custom icon for the message.'
+ }
+];
+
+const MessageSlots = [
+ {
+ name: 'messageicon',
+ description: 'Custom message icon template.'
}
];
@@ -12,6 +25,7 @@ module.exports = {
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',
- props: InlineMessageProps
+ props: InlineMessageProps,
+ slots: MessageSlots
}
};
diff --git a/api-generator/components/message.js b/api-generator/components/message.js
index 652050e87..440d0668b 100644
--- a/api-generator/components/message.js
+++ b/api-generator/components/message.js
@@ -26,7 +26,7 @@ const MessageProps = [
{
name: 'icon',
type: 'string',
- default: 'null',
+ default: 'undefined',
description: 'Display a custom icon for the message.'
}
];
diff --git a/components/lib/inlinemessage/InlineMessage.d.ts b/components/lib/inlinemessage/InlineMessage.d.ts
index aa597d68b..2adf7fb36 100755
--- a/components/lib/inlinemessage/InlineMessage.d.ts
+++ b/components/lib/inlinemessage/InlineMessage.d.ts
@@ -19,6 +19,10 @@ export interface InlineMessageProps {
* @defaultValue info
*/
severity?: 'success' | 'info' | 'warn' | 'error' | string | undefined;
+ /**
+ * Display a custom icon for the message.
+ */
+ icon?: string | undefined;
}
/**
* Defines valid slots in InlineMessage slots.
@@ -28,6 +32,10 @@ export interface InlineMessageSlots {
* Default custom slot.
*/
default(): VNode[];
+ /**
+ * Custom message icon template.
+ */
+ messageicon(): VNode[];
}
export interface InlineMessageEmits {}
diff --git a/components/lib/inlinemessage/InlineMessage.vue b/components/lib/inlinemessage/InlineMessage.vue
index 853772419..2964400d6 100755
--- a/components/lib/inlinemessage/InlineMessage.vue
+++ b/components/lib/inlinemessage/InlineMessage.vue
@@ -1,17 +1,27 @@
-
+
+
+