Fixed #1836 - For Tag

pull/1846/head
mertsincan 2021-12-01 23:57:18 +03:00
parent 01e5aa67f2
commit 94195f8c34
1 changed files with 44 additions and 8 deletions

View File

@ -1,17 +1,53 @@
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
interface TagProps {
type TagSeverityType = 'success' | 'info' | 'warning' | 'danger';
export interface TagProps {
/**
* Value to display inside the tag.
*/
value?: any;
severity?: string;
rounded?: boolean;
icon?: string;
/**
* Severity type of the tag.
* @see TagSeverityType
*/
severity?: TagSeverityType;
/**
* Whether the corners of the tag are rounded.
*/
rounded?: boolean | undefined;
/**
* Icon of the tag to display next to the value.
*/
icon?: string | undefined;
}
declare class Tag {
$props: TagProps;
$slots: {
'': VNode[];
export interface TagSlots {
/**
* Custom content template
*/
default: () => VNode[];
}
export declare type TagEmits = {
}
declare class Tag extends ClassComponent<TagProps, TagSlots, TagEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
Tag: GlobalComponentConstructor<Tag>
}
}
/**
*
* Tag component is used to categorize content.
*
* Demos:
*
* - [Tag](https://www.primefaces.org/primevue/showcase/#/tag)
*
*/
export default Tag;