fix: 修复管理端类型检查阻塞问题

- 修正面板弹窗和对话框覆盖层的类型收敛

- 清理标签滚动与全局搜索中的无效类型和未使用项

- 补齐 API Key 页面弹窗缺失参数以通过 vue-tsc 校验
This commit is contained in:
2026-03-07 21:10:14 +08:00
parent 6dcc6ce893
commit c3e3ba505d
5 changed files with 8 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ const dialogVisible = ref(false);
<EasyFlowPanelModal <EasyFlowPanelModal
v-model:open="dialogVisible" v-model:open="dialogVisible"
:centered="true" :centered="true"
title=""
width="xl" width="xl"
:show-footer="false" :show-footer="false"
> >

View File

@@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import type { StyleValue } from 'vue';
import { computed, inject, useAttrs } from 'vue'; import { computed, inject, useAttrs } from 'vue';
import { useScrollLock } from '@easyflow-core/composables'; import { useScrollLock } from '@easyflow-core/composables';
@@ -19,11 +21,12 @@ const overlayClass = computed(() => {
customClass, customClass,
); );
}); });
const overlayStyle = computed(() => attrs.style as StyleValue);
</script> </script>
<template> <template>
<div <div
:data-dismissable-modal="id" :data-dismissable-modal="id"
:class="overlayClass" :class="overlayClass"
:style="$attrs.style" :style="overlayStyle"
></div> ></div>
</template> </template>

View File

@@ -4,8 +4,6 @@ import type { ComponentPublicInstance } from 'vue';
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue'; import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
import { EasyFlowScrollbar } from '@easyflow-core/shadcn-ui';
import { useDebounceFn } from '@vueuse/core'; import { useDebounceFn } from '@vueuse/core';
type DomElement = Element | null | undefined; type DomElement = Element | null | undefined;

View File

@@ -100,7 +100,7 @@ const modalClass = computed(() => {
return cn( return cn(
'w-[calc(100vw-24px)] max-w-[calc(100vw-24px)] sm:max-w-[min(calc(100vw-48px),1120px)]', 'w-[calc(100vw-24px)] max-w-[calc(100vw-24px)] sm:max-w-[min(calc(100vw-48px),1120px)]',
widthClassMap[widthKey] || widthClassMap.lg, widthClassMap[widthKey] || widthClassMap.lg,
attrs.class, attrs.class as string | undefined,
); );
}); });

View File

@@ -237,11 +237,11 @@ onMounted(() => {
class="block truncate text-sm font-medium leading-6 text-[hsl(var(--text-strong))]" class="block truncate text-sm font-medium leading-6 text-[hsl(var(--text-strong))]"
> >
<template <template
v-for="(chunk, chunkIndex) in getHighlightedChunks( v-for="chunk in getHighlightedChunks(
item.name || '', item.name || '',
keyword, keyword,
)" )"
:key="`${item.path}-${chunkIndex}`" :key="`${item.path}-${chunk.text}-${chunk.matched}`"
> >
<span <span
:class=" :class="