Refactor #3832 Refactor #3833 - Chips update & .d.ts fixes

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-18 10:37:05 +03:00
parent a8f3e2d5e3
commit a42abd68a0
11 changed files with 53 additions and 7 deletions

View file

@ -20,6 +20,7 @@ export interface ChipProps {
label?: string;
/**
* Defines the icon to display.
* @deprecated since v3.27.0. Use 'icon' slot.
*/
icon?: string;
/**
@ -33,6 +34,7 @@ export interface ChipProps {
removable?: boolean;
/**
* Icon of the remove element.
* @deprecated since v3.27.0. Use 'removeicon' slot.
*/
removeIcon?: string;
}
@ -45,6 +47,10 @@ export interface ChipSlots {
* Content can easily be customized with the default slot instead of using the built-in modes.
*/
default(): VNode[];
/**
* Custom icon template.
*/
icon(): VNode[];
/**
* Custom remove icon template of chip component.
* @param {Object} scope - remove icon slot's params.
@ -53,11 +59,11 @@ export interface ChipSlots {
/**
* Remove icon click event
*/
click(): void;
onClick(): void;
/**
* Remove icon keydown event
*/
keydown(): void;
onKeydown(): void;
}): VNode[];
}