diff --git a/api-generator/components/splitbutton.js b/api-generator/components/splitbutton.js index ecb443eba..bdb6633e6 100644 --- a/api-generator/components/splitbutton.js +++ b/api-generator/components/splitbutton.js @@ -137,6 +137,10 @@ const SplitButtonSlots = [ { name: 'menubuttonicon', description: 'Custom menu button icon template.' + }, + { + name: 'menuitemicon', + description: 'Custom menu item icon template.' } ]; diff --git a/components/lib/splitbutton/SplitButton.d.ts b/components/lib/splitbutton/SplitButton.d.ts index 534366bc9..9d4d49a5e 100755 --- a/components/lib/splitbutton/SplitButton.d.ts +++ b/components/lib/splitbutton/SplitButton.d.ts @@ -205,6 +205,16 @@ export interface SplitButtonSlots { */ class: string; }): VNode[]; + /** + * Custom menu item icon template. + * @param {Object} scope - menubuttonicon slot's params. + */ + menuitemicon(scope: { + /** + * Menuitem instance + */ + item: MenuItem; + }): VNode[]; } /** diff --git a/components/lib/splitbutton/SplitButton.vue b/components/lib/splitbutton/SplitButton.vue index 219e2de60..0fdfd50c2 100755 --- a/components/lib/splitbutton/SplitButton.vue +++ b/components/lib/splitbutton/SplitButton.vue @@ -49,7 +49,11 @@ - + + +