lint fix
This commit is contained in:
@@ -96,14 +96,6 @@ const getChildrenWithIcons = (item: ContentNavigationItem) => {
|
||||
return item.children.filter(child => child.title)
|
||||
}
|
||||
|
||||
// 获取描述信息
|
||||
const getDescription = (item: ContentNavigationItem) => {
|
||||
if (item.children && item.children.length > 0) {
|
||||
return `${item.children.length} 个子页面`
|
||||
}
|
||||
return '文档页面'
|
||||
}
|
||||
|
||||
// 导航方法
|
||||
const navigateTo = (path: string) => {
|
||||
if (path) {
|
||||
|
@@ -7,6 +7,7 @@
|
||||
>
|
||||
<template
|
||||
v-for="item in tabItems"
|
||||
:key="item.slot"
|
||||
#[item.slot]="{ item: slotItem }"
|
||||
>
|
||||
<div class="mt-4">
|
||||
@@ -21,7 +22,7 @@ import type { TabsItem } from '@nuxt/ui'
|
||||
|
||||
const slots = useSlots()
|
||||
|
||||
const slotContents = ref<Record<string, any>>({})
|
||||
const slotContents = ref<Record<string, unknown>>({})
|
||||
|
||||
const tabItems = computed(() => {
|
||||
const defaultSlots = slots.default?.() || []
|
||||
|
@@ -1,7 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import type { NavigationMenuItem } from '@nuxt/ui'
|
||||
|
||||
const route = useRoute()
|
||||
const items = ref<NavigationMenuItem[][]>([
|
||||
[
|
||||
{
|
||||
|
Reference in New Issue
Block a user