diff --git a/apps/web-antd/GLASSMORPHISM_SUMMARY.md b/apps/web-antd/GLASSMORPHISM_SUMMARY.md index 38b7cf680..140f39afb 100644 --- a/apps/web-antd/GLASSMORPHISM_SUMMARY.md +++ b/apps/web-antd/GLASSMORPHISM_SUMMARY.md @@ -16,12 +16,14 @@ **文件位置:** `packages/@core/base/design/src/design-tokens/` #### 新增变量(浅色主题) + - `--glass-surface`: 45% 透明度白色背景 - `--glass-border`: 60% 透明度白色边框 - `--glass-shadow`: 玻璃阴影效果 - `--glass-shadow-hover`: 悬浮时阴影增强 #### 深色主题适配 + - 所有 17 个主题变体均已适配 - 深色模式下自动降低透明度(8% 背景,10% 边框) @@ -30,6 +32,7 @@ **文件位置:** `packages/@core/base/design/src/css/global.css` #### 新增工具类 + - `.glass-card`: 基础毛玻璃卡片(32px 圆角) - `.glass-border`: 玻璃边框 - `.glass-shadow`: 玻璃阴影 @@ -41,6 +44,7 @@ **文件位置:** `packages/@core/ui-kit/shadcn-ui/src/ui/card/Card.vue` #### 自动应用特性 + - ✅ 超大圆角:32px (`rounded-[2rem]`) - ✅ 毛玻璃背景:45% 透明度 + 24px 模糊 - ✅ 玻璃边框:60% 透明度 @@ -49,6 +53,7 @@ - ✅ 流畅过渡:300ms ease-out **使用方式:** + ```vue @@ -65,13 +70,13 @@ ### 性能指标 -| 指标 | 影响 | 状态 | -|------|------|------| -| 首次绘制 (FCP) | +8% | ✅ 优秀 | -| 最大内容绘制 (LCP) | +11% | ✅ 优秀 | -| 交互时间 (TTI) | +5% | ✅ 优秀 | -| 滚动 FPS | 58-60 FPS | ✅ 优秀 | -| GPU 内存 | +50% | ✅ 可接受 | +| 指标 | 影响 | 状态 | +| ------------------ | --------- | --------- | +| 首次绘制 (FCP) | +8% | ✅ 优秀 | +| 最大内容绘制 (LCP) | +11% | ✅ 优秀 | +| 交互时间 (TTI) | +5% | ✅ 优秀 | +| 滚动 FPS | 58-60 FPS | ✅ 优秀 | +| GPU 内存 | +50% | ✅ 可接受 | ### 性能优化建议 @@ -84,14 +89,14 @@ ## 🎨 视觉特性 -| 特性 | 值 | 说明 | -|------|-----|------| -| 背景透明度 | 45% | 浅色主题 `rgba(255, 255, 255, 0.45)` | -| 模糊半径 | 24px | `backdrop-filter: blur(24px)` | -| 边框透明度 | 60% | `rgba(255, 255, 255, 0.6)` | -| 圆角大小 | 32px | `rounded-[2rem]` | -| 顶部高光 | 1px | 渐变高光线,70% 透明度 | -| 悬浮动画 | -4px | 上移 + 阴影增强 | +| 特性 | 值 | 说明 | +| ---------- | ---- | ------------------------------------ | +| 背景透明度 | 45% | 浅色主题 `rgba(255, 255, 255, 0.45)` | +| 模糊半径 | 24px | `backdrop-filter: blur(24px)` | +| 边框透明度 | 60% | `rgba(255, 255, 255, 0.6)` | +| 圆角大小 | 32px | `rounded-[2rem]` | +| 顶部高光 | 1px | 渐变高光线,70% 透明度 | +| 悬浮动画 | -4px | 上移 + 阴影增强 | --- @@ -118,7 +123,9 @@ ```vue -
+
自定义内容
``` @@ -127,13 +134,13 @@ ## 🌐 浏览器兼容性 -| 浏览器 | 版本 | 支持状态 | -|--------|------|---------| -| Chrome | 76+ | ✅ 完全支持 | -| Safari | 9+ | ✅ 完全支持 | -| Edge | 79+ | ✅ 完全支持 | -| Firefox | 103+ | ⚠️ 需手动启用 | -| IE 11 | - | ❌ 不支持(已停止支持) | +| 浏览器 | 版本 | 支持状态 | +| ------- | ---- | ----------------------- | +| Chrome | 76+ | ✅ 完全支持 | +| Safari | 9+ | ✅ 完全支持 | +| Edge | 79+ | ✅ 完全支持 | +| Firefox | 103+ | ⚠️ 需手动启用 | +| IE 11 | - | ❌ 不支持(已停止支持) | **覆盖率:** ~98% 的用户 @@ -143,11 +150,11 @@ ## 📐 圆角规范 -| 类名 | 像素值 | 用途 | -|------|--------|------| -| `rounded-[2rem]` | 32px | 主要卡片(默认) | -| `rounded-xl` | 12px | 小卡片、图标容器 | -| `rounded-lg` | 8px | 按钮、标签 | +| 类名 | 像素值 | 用途 | +| ---------------- | ------ | ---------------- | +| `rounded-[2rem]` | 32px | 主要卡片(默认) | +| `rounded-xl` | 12px | 小卡片、图标容器 | +| `rounded-lg` | 8px | 按钮、标签 | --- @@ -177,6 +184,7 @@ ### Q2: 性能下降明显? **解决方案:** + 1. 减少页面上的毛玻璃卡片数量 2. 降低模糊半径至 16px 3. 禁用悬浮效果 @@ -225,4 +233,3 @@ **文档版本:** v1.0.0 **最后更新:** 2025-12-19 **维护人员:** 前端开发团队 - diff --git a/apps/web-antd/src/components/glass-card/GlassCard.vue b/apps/web-antd/src/components/glass-card/GlassCard.vue index 59f28350f..468dbfdc3 100644 --- a/apps/web-antd/src/components/glass-card/GlassCard.vue +++ b/apps/web-antd/src/components/glass-card/GlassCard.vue @@ -1,20 +1,14 @@ - diff --git a/apps/web-antd/src/components/glass-card/index.ts b/apps/web-antd/src/components/glass-card/index.ts index d5c580c75..e0528f696 100644 --- a/apps/web-antd/src/components/glass-card/index.ts +++ b/apps/web-antd/src/components/glass-card/index.ts @@ -1,2 +1 @@ export { default as GlassCard } from './GlassCard.vue'; - diff --git a/apps/web-antd/src/views/dashboard/workspace/index.vue b/apps/web-antd/src/views/dashboard/workspace/index.vue index 555e0ba0c..c9da4c1ca 100644 --- a/apps/web-antd/src/views/dashboard/workspace/index.vue +++ b/apps/web-antd/src/views/dashboard/workspace/index.vue @@ -492,7 +492,9 @@ function getColorClass(color: string, type: 'bg' | 'text') { class="mt-1 flex items-center gap-3 text-xs text-slate-500" > {{ task.location }} - • {{ task.createTime }} + • {{ task.createTime }} • {{ task.assignee }}
@@ -662,9 +664,7 @@ function getColorClass(color: string, type: 'bg' | 'text') { class="text-xs text-white" /> - AI Copilot + AI Copilot