mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update #3965 - For Rating
This commit is contained in:
parent
e63fd3fef2
commit
a6d6fd7562
3 changed files with 134 additions and 77 deletions
20
components/lib/rating/Rating.d.ts
vendored
20
components/lib/rating/Rating.d.ts
vendored
|
@ -168,6 +168,11 @@ export interface RatingProps {
|
|||
* @type {RatingPassThroughOptions}
|
||||
*/
|
||||
pt?: RatingPassThroughOptions;
|
||||
/**
|
||||
* When enabled, it removes component related styles in the core.
|
||||
* @defaultValue false
|
||||
*/
|
||||
unstyled?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -177,7 +182,12 @@ export interface RatingSlots {
|
|||
/**
|
||||
* Custom cancel icon template.
|
||||
*/
|
||||
cancelicon(): VNode[];
|
||||
cancelicon(scope: {
|
||||
/**
|
||||
* Style class of the icon.
|
||||
*/
|
||||
class: string;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom on icon template.
|
||||
* @param {Object} scope - on icon slot's params.
|
||||
|
@ -187,6 +197,10 @@ export interface RatingSlots {
|
|||
* Item value
|
||||
*/
|
||||
value: number;
|
||||
/**
|
||||
* Style class of the icon.
|
||||
*/
|
||||
class: string;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom off icon template.
|
||||
|
@ -197,6 +211,10 @@ export interface RatingSlots {
|
|||
* Item value
|
||||
*/
|
||||
value: number;
|
||||
/**
|
||||
* Style class of the icon.
|
||||
*/
|
||||
class: string;
|
||||
}): VNode[];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue