fix: 修复全量类型检查报错
- 收敛可选配置字段并补齐默认值,消除 strict 模式报错 - 补充页面脚本类型定义,移除未使用变量与隐式 any - 修复主题、表格、标签页等公共包类型边界
This commit is contained in:
@@ -3,8 +3,8 @@ import type { Props } from './types';
|
||||
|
||||
import { preferences } from '@easyflow-core/preferences';
|
||||
import {
|
||||
EasyFlowAvatar,
|
||||
Card,
|
||||
EasyFlowAvatar,
|
||||
Tabs,
|
||||
TabsList,
|
||||
TabsTrigger,
|
||||
@@ -29,14 +29,14 @@ const tabsValue = defineModel<string>('modelValue');
|
||||
<Card class="w-[200px]">
|
||||
<div class="mt-4 flex h-40 flex-col items-center justify-center gap-4">
|
||||
<EasyFlowAvatar
|
||||
:src="userInfo?.avatar ?? preferences.app.defaultAvatar"
|
||||
:src="userInfo?.avatar ?? preferences.app.defaultAvatar ?? ''"
|
||||
class="size-20"
|
||||
/>
|
||||
<span class="text-lg font-semibold">
|
||||
{{ userInfo?.realName ?? '' }}
|
||||
{{ (userInfo as any)?.realName ?? userInfo?.nickname ?? '' }}
|
||||
</span>
|
||||
<span class="text-foreground/80 text-sm">
|
||||
{{ userInfo?.username ?? '' }}
|
||||
{{ (userInfo as any)?.username ?? userInfo?.loginName ?? '' }}
|
||||
</span>
|
||||
</div>
|
||||
<!-- <Separator class="my-4" /> -->
|
||||
|
||||
Reference in New Issue
Block a user