Skip to content

Commit

Permalink
fix(Menu): fix function usage of menu group title (#3497)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Feb 20, 2025
1 parent 20363a8 commit 77b2976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/menu/menu-group.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineComponent } from '@vue/composition-api';
import props from './menu-group-props';
import { usePrefixClass } from '../hooks/useConfig';
import { renderTNodeJSX } from '../utils/render-tnode';

export default defineComponent({
name: 'TMenuGroup',
Expand All @@ -14,7 +15,7 @@ export default defineComponent({
render() {
return (
<div class={`${this.classPrefix}-menu-group`}>
<div class={`${this.classPrefix}-menu-group__title`}>{this.title}</div>
<div class={`${this.classPrefix}-menu-group__title`}>{renderTNodeJSX(this, 'title')}</div>
{this.$slots.default}
</div>
);
Expand Down

0 comments on commit 77b2976

Please sign in to comment.