feat: add wellbeing preference hide news (#2026)
This commit is contained in:
parent
cbba846c4f
commit
5c3b8be055
6 changed files with 15 additions and 1 deletions
|
@ -7,6 +7,7 @@ export interface CommonRouteTabOption {
|
|||
disabled?: boolean
|
||||
name?: string
|
||||
icon?: string
|
||||
hide?: boolean
|
||||
}
|
||||
const { options, command, replace, preventScrollTop = false } = $defineProps<{
|
||||
options: CommonRouteTabOption[]
|
||||
|
@ -31,7 +32,7 @@ useCommands(() => command
|
|||
<template>
|
||||
<div flex w-full items-center lg:text-lg of-x-auto scrollbar-hide border="b base">
|
||||
<template
|
||||
v-for="(option, index) in options"
|
||||
v-for="(option, index) in options.filter(item => !item.hide)"
|
||||
:key="option?.name || index"
|
||||
>
|
||||
<NuxtLink
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue