Fixed #1836 - For InlineMessage

pull/1846/head
mertsincan 2021-12-01 16:43:18 +03:00
parent def2d4b2a9
commit 46db4dff63
1 changed files with 34 additions and 6 deletions

View File

@ -1,14 +1,42 @@
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
interface InlineMessageProps {
severity?: string;
type InlineMessageSeverityType = 'success' | 'info' | 'warn' | 'error';
export interface InlineMessageProps {
/**
* Severity level of the message.
* @see InlineMessageSeverityType
* Default value is 'info'.
*/
severity?: InlineMessageSeverityType;
}
declare class InlineMessage {
$props: InlineMessageProps;
$slots: {
'': VNode[];
export interface InlineMessageSlots {
/**
* Default custom slot.
*/
default: () => VNode[];
}
export declare type InlineMessageEmits = {
}
declare class InlineMessage extends ClassComponent<InlineMessageProps, InlineMessageSlots, InlineMessageEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
InlineMessage: GlobalComponentConstructor<InlineMessage>
}
}
/**
*
* InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms. It has one property, severity of the message.
*
* Demos:
*
* - [InlineMessage](https://www.primefaces.org/primevue/showcase/#/message)
*
*/
export default InlineMessage;