mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: add custom label template for active navigation item in DetailLayout
This commit is contained in:
@@ -102,6 +102,11 @@ defineOptions({ name: 'ClDetailLayout' });
|
||||
:label="navItemLabelFn ? navItemLabelFn(item) : item.label"
|
||||
:value="item.id"
|
||||
/>
|
||||
<template #label>
|
||||
{{
|
||||
navItems.find(item => item.id === activeId)?.label || activeId
|
||||
}}
|
||||
</template>
|
||||
</el-select>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user