From 14753c1c6449fe63932ebbff669d79a84bc21df9 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 15:30:06 +0300 Subject: [PATCH] Fixed #1836 - For Card --- src/components/card/Card.d.ts | 52 +++++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/src/components/card/Card.d.ts b/src/components/card/Card.d.ts index df2e8f13b..eaa6f573a 100755 --- a/src/components/card/Card.d.ts +++ b/src/components/card/Card.d.ts @@ -1,16 +1,50 @@ import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; -interface CardProps {} +export interface CardProps { +} -declare class Card { - $props: CardProps; - $slots: { - header: VNode[]; - title: VNode[]; - subtitle: VNode[]; - content: VNode[]; - footer: VNode[]; +export interface CardSlots { + /** + * Custom header template. + */ + header: () => VNode[]; + /** + * Custom title template. + */ + title: () => VNode[]; + /** + * Custom subtitle template. + */ + subtitle: () => VNode[]; + /** + * Custom content template. + */ + content: () => VNode[]; + /** + * Custom footer template. + */ + footer: () => VNode[]; +} + +export declare type CardEmits = { +} + +declare class Card extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + Card: GlobalComponentConstructor } } +/** + * + * Card is a flexible container component. + * + * Demos: + * + * - [Card](https://www.primefaces.org/primevue/showcase/#/card) + * + */ export default Card;