Fixed #1836 - For Card
parent
b8ba7e0008
commit
14753c1c64
|
@ -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<CardProps, CardSlots, CardEmits> { }
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue