Refactor #3965 - For TriStateCheckbox

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-24 17:39:47 +03:00
parent d7c9a3937a
commit f46d5e3154
3 changed files with 110 additions and 52 deletions

View file

@ -138,6 +138,11 @@ export interface TriStateCheckboxProps {
* @type {TriStateCheckboxPassThroughOptions}
*/
pt?: TriStateCheckboxPassThroughOptions;
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
*/
unstyled?: boolean;
}
/**
@ -147,15 +152,30 @@ export interface TriStateCheckboxSlots {
/**
* Custom check icon template.
*/
checkicon(): VNode[];
checkicon(scope: {
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
/**
* Custom uncheck icon template.
*/
uncheckicon(): VNode[];
uncheckicon(scope: {
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
/**
* Custom nullable icon template.
*/
nullableicon(): VNode[];
nullableicon(scope: {
/**
* Style class of the icon.
*/
class: string;
}): VNode[];
}
/**