我希望为多个链接突出显示选项卡。我不确定我是否误解了功能。以下是我的代码。
<div class="row">
<div class="col-12">
<nb-card size="small">
<nb-route-tabset [tabs]="tabs" fullWidth activeLinkOptions="{exact:
false}"></nb-route-tabset>
</nb-card>
</div>
</div>
我的组件:
tabs: any[] = [
{
title: 'Contacts',
route: '/addressbook/contact',
icon: 'person-outline',
responsive: true,
},
{
title: 'Companies',
route: '/addressbook/company',
icon: 'people-outline',
responsive: true,
},
{
title: 'Company Types',
route: '/addressbook/companytype/index',
icon: 'grid-outline',
responsive: true,
},
];
呈现的html:
<li _ngcontent-eap-c56="" class="route-tab responsive ng-star-inserted" routerlinkactive="active" tabindex="0" ng-reflect-router-link="/addressbook/companytype/index" ng-reflect-router-link-active-options="{exact:
false}" ng-reflect-router-link-active="active">
我希望每当我访问“/addressbook/companytype/create”时都会突出显示“公司类型”选项卡。这是“exact:false”的预期行为吗?
任何帮助将不胜感激!