-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8ba7e0
commit 14753c1
Showing
1 changed file
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,50 @@ | ||
import { VNode } from 'vue'; | ||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; | ||
|
||
interface CardProps {} | ||
export interface CardProps { | ||
} | ||
|
||
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<CardProps, CardSlots, CardEmits> { } | ||
|
||
declare class Card { | ||
$props: CardProps; | ||
$slots: { | ||
header: VNode[]; | ||
title: VNode[]; | ||
subtitle: VNode[]; | ||
content: VNode[]; | ||
footer: VNode[]; | ||
declare module '@vue/runtime-core' { | ||
interface GlobalComponents { | ||
Card: GlobalComponentConstructor<Card> | ||
} | ||
} | ||
|
||
/** | ||
* | ||
* Card is a flexible container component. | ||
* | ||
* Demos: | ||
* | ||
* - [Card](https://www.primefaces.org/primevue/showcase/#/card) | ||
* | ||
*/ | ||
export default Card; |