Fixed #1836 - For Tag
parent
01e5aa67f2
commit
94195f8c34
|
@ -1,17 +1,53 @@
|
||||||
import { VNode } from 'vue';
|
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;
|
value?: any;
|
||||||
severity?: string;
|
/**
|
||||||
rounded?: boolean;
|
* Severity type of the tag.
|
||||||
icon?: string;
|
* @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 {
|
export interface TagSlots {
|
||||||
$props: TagProps;
|
/**
|
||||||
$slots: {
|
* Custom content template
|
||||||
'': VNode[];
|
*/
|
||||||
|
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;
|
export default Tag;
|
||||||
|
|
Loading…
Reference in New Issue