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

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

View File

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

View File

@@ -100,7 +100,7 @@ const modalClass = computed(() => {
return cn(
'w-[calc(100vw-24px)] max-w-[calc(100vw-24px)] sm:max-w-[min(calc(100vw-48px),1120px)]',
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))]"
>
<template
v-for="(chunk, chunkIndex) in getHighlightedChunks(
v-for="chunk in getHighlightedChunks(
item.name || '',
keyword,
)"
:key="`${item.path}-${chunkIndex}`"
:key="`${item.path}-${chunk.text}-${chunk.matched}`"
>
<span
:class="