From c06284941d307bdda61ce79ae8f760959c0104e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 1 Mar 2023 17:13:12 +0300 Subject: [PATCH] Tag .d.ts updated --- components/tag/Tag.d.ts | 48 ++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/components/tag/Tag.d.ts b/components/tag/Tag.d.ts index 66bd60de2..1c38bd155 100644 --- a/components/tag/Tag.d.ts +++ b/components/tag/Tag.d.ts @@ -1,8 +1,18 @@ +/** + * + * Tag component is used to categorize content. + * + * [Live Demo](https://www.primevue.org/tag) + * + * @module tag + * + */ import { VNode } from 'vue'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; -type TagSeverityType = 'success' | 'info' | 'warning' | 'danger' | undefined; - +/** + * Defines valid properties in Tag component. + */ export interface TagProps { /** * Value to display inside the tag. @@ -10,11 +20,11 @@ export interface TagProps { value?: any; /** * Severity type of the tag. - * @see TagSeverityType */ - severity?: TagSeverityType; + severity?: 'success' | 'info' | 'warning' | 'danger' | undefined; /** * Whether the corners of the tag are rounded. + * @defaultValue false */ rounded?: boolean | undefined; /** @@ -23,15 +33,32 @@ export interface TagProps { icon?: string | undefined; } +/** + * Defines valid slots in Tag component. + */ export interface TagSlots { /** * Custom content template */ - default: () => VNode[]; + default(): VNode[]; } -export declare type TagEmits = {}; +/** + * Defines valid emits in Tag component. + */ +export interface TagEmits {} +/** + * **PrimeVue - Tag** + * + * _Tag component is used to categorize content._ + * + * [Live Demo](https://www.primevue.org/tag/) + * --- --- + * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) + * + * @group Component + */ declare class Tag extends ClassComponent {} declare module '@vue/runtime-core' { @@ -40,13 +67,4 @@ declare module '@vue/runtime-core' { } } -/** - * - * Tag component is used to categorize content. - * - * Demos: - * - * - [Tag](https://www.primefaces.org/primevue/tag) - * - */ export default Tag;