feat: add 'maxNumOfOpenTab' to limit the maximum number of tabs with the same name
This commit is contained in:
@@ -107,6 +107,18 @@ const routes: RouteRecordRaw[] = [
|
||||
title: $t('page.demos.features.tabs'),
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'FeatureTabDetailDemo',
|
||||
path: 'tabs/detail/:id',
|
||||
component: () =>
|
||||
import('#/views/demos/features/tabs/tab-detail.vue'),
|
||||
meta: {
|
||||
activePath: '/demos/features/tabs',
|
||||
hideInMenu: true,
|
||||
maxNumOfOpenTab: 3,
|
||||
title: $t('page.demos.features.tabDetail'),
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'HideChildrenInMenuParent',
|
||||
path: 'hide-menu-children',
|
||||
|
Reference in New Issue
Block a user