From 911ceca0799e076a329c0611998bead6d263e9a4 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Sat, 11 Jul 2026 01:00:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(design+desktop):=20Select=20=E7=9C=9F?= =?UTF-8?q?=E7=9B=B8=E6=BA=90=E7=BB=84=E4=BB=B6=20+=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E6=97=A0=E8=BE=B9=E6=A1=86=EF=BC=8812A=20?= =?UTF-8?q?=E5=AE=9E=E6=B5=8B=E5=8F=8D=E9=A6=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Select 组件(用户拍板:下拉框全端共用一个真相源): - design/components/forms/Select.jsx:自绘下拉——触发器同 Input (control-sm/radius-sm/border-1 + chevronDown),弹层同菜单 (radius-md/shadow-menu、选中项前置对勾、hover surface-2), 外点/Esc 收起;登记簿加卡;icons.js 新增 chevronDown 并登记 icon-map - 原型 SettingsTray 与桌面 SettingsApp 同步换用(替换原生 select—— 其系统弹层样式/位置不可控,即 12A 截图问题) 原型组件运行时可再生(修复单源缺口): - design-pipeline/bundle-components.mjs:用 desktop 现成 esbuild 重建 _ds_bundle.js(此前为 Claude 导出产物、仓库内无法再生,组件一改即 过期);import 'react' 经全局 shim,命名空间不变;已实测原型页正常 - _ds_bundle.js 重建(15 个组件,含 Select/Icon) 设置窗口无边框: - tauri.conf settings 窗口 titleBarStyle=Overlay + hiddenTitle, 系统红绿灯悬浮左上;SettingsApp 自绘顶条(surface-2 + 下边框 + data-tauri-drag-region 可拖拽),对齐原型 MacWindow 规格 合并 feat/design-truth-source(真相源与闸体系)进本分支 Co-Authored-By: Claude Fable 5 --- design-pipeline/bundle-components.mjs | 85 + design/SKILL.md | 1 + design/_ds_bundle.js | 2718 +++-------------- design/components/forms/Select.d.ts | 18 + design/components/forms/Select.jsx | 110 + design/icon-map.json | 1 + design/icons.js | 2 + design/index.html | 1 + design/ui_kits/desktop/SettingsTray.jsx | 19 +- desktop/src-tauri/tauri.conf.json | 4 +- desktop/src/settings/SettingsApp.jsx | 28 +- .../uploads/fb/fb103fb8c043ce426f84e367/1.png | Bin 0 -> 12 bytes .../uploads/fb/fb6c6ae356b05e421fa9b16e/1.png | Bin 0 -> 12 bytes 13 files changed, 592 insertions(+), 2395 deletions(-) create mode 100644 design-pipeline/bundle-components.mjs create mode 100644 design/components/forms/Select.d.ts create mode 100644 design/components/forms/Select.jsx create mode 100644 server/internal/httpapi/var/uploads/fb/fb103fb8c043ce426f84e367/1.png create mode 100644 server/internal/httpapi/var/uploads/fb/fb6c6ae356b05e421fa9b16e/1.png diff --git a/design-pipeline/bundle-components.mjs b/design-pipeline/bundle-components.mjs new file mode 100644 index 0000000..a697acf --- /dev/null +++ b/design-pipeline/bundle-components.mjs @@ -0,0 +1,85 @@ +#!/usr/bin/env node +/** + * bundle-components.mjs — 重建 design/_ds_bundle.js(原型页组件运行时) + * + * ui_kits 预览页经