Refactor #5682 - For Dock, Menubar

This commit is contained in:
tugcekucukoglu 2024-05-06 13:32:30 +03:00
parent 5353635407
commit 89b4e1a76a
4 changed files with 49 additions and 11 deletions

View file

@ -274,12 +274,23 @@ export interface DockSlots {
props: DockRouterBindProps;
}): VNode[];
/**
* @deprecated since v4.0. Use 'itemicon' slot.
* Custom icon content.
* @param {Object} scope - icon slot's params.
* @param {Object} scope - item icon slot's params.
*/
icon(scope: {
/**
* Custom content for icon.
* Custom content for item icon.
*/
item: MenuItem;
}): VNode[];
/**
* Custom icon content.
* @param {Object} scope - item icon slot's params.
*/
itemicon(scope: {
/**
* Custom content for item icon.
*/
item: MenuItem;
}): VNode[];