mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update #3797 - Card updates
This commit is contained in:
parent
f9074c68a6
commit
463a07a39e
2 changed files with 62 additions and 15 deletions
48
components/lib/card/Card.d.ts
vendored
48
components/lib/card/Card.d.ts
vendored
|
@ -10,10 +10,56 @@
|
|||
import { VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type CardPassThroughOptionType = CardPassThroughAttributes | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link CardProps.pt}
|
||||
*/
|
||||
export interface CardPassThroughOptions {
|
||||
/**
|
||||
* Uses to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: CardPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the body's DOM element.
|
||||
*/
|
||||
body?: CardPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the title's DOM element.
|
||||
*/
|
||||
title?: CardPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the subtitle's DOM element.
|
||||
*/
|
||||
subtitle?: CardPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the content's DOM element.
|
||||
*/
|
||||
content?: CardPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the footer's DOM element.
|
||||
*/
|
||||
footer?: CardPassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough attributes for each DOM elements
|
||||
*/
|
||||
export interface CardPassThroughAttributes {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Card component.
|
||||
*/
|
||||
export interface CardProps {}
|
||||
export interface CardProps {
|
||||
/**
|
||||
* Uses to pass attributes to DOM elements inside the component.
|
||||
* @type {CardPassThroughOptions}
|
||||
*/
|
||||
pt?: CardPassThroughOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in Card component.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue