weifuwu 0.93.2 → 0.93.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/components/AppShell/AppShell.d.ts +18 -1
- package/dist/client/components/CronPicker/CronPicker.d.ts +31 -0
- package/dist/client/components/ListScaffold/ListScaffold.d.ts +40 -0
- package/dist/client/components/Menu/Menu.d.ts +2 -0
- package/dist/client/components/StatusDot/StatusDot.d.ts +25 -0
- package/dist/client/components/index.d.ts +6 -0
- package/dist/client/components/index.js +36 -36
- package/dist/client/components/style.css +1 -1
- package/docs/client.md +20 -1
- package/package.json +1 -1
package/docs/client.md
CHANGED
|
@@ -31,7 +31,7 @@ app.router(Router())
|
|
|
31
31
|
|
|
32
32
|
## 2. 组件清单
|
|
33
33
|
|
|
34
|
-
**
|
|
34
|
+
**139 个组件**——源码目录即清单:`src/client/components/<Comp>/<Comp>.ts`(每个含
|
|
35
35
|
`<Comp>.css` + 契约测试)。展示与使用示例:`apps/showcase/`(localhost:3200——
|
|
36
36
|
`/components/<id>` 每组件一页 + demo 源码即用法)。
|
|
37
37
|
|
|
@@ -40,6 +40,8 @@ app.router(Router())
|
|
|
40
40
|
| 类 | 代表组件 |
|
|
41
41
|
| --- | --- |
|
|
42
42
|
| 通用基础 | Button / Card / Badge / Avatar / Alert / EmptyState / Loading / Modal / Drawer |
|
|
43
|
+
| 列表骨架 | ListScaffold(PageHeader+工具栏+状态区+内容插槽)/ StatusDot(状态点—label 缺省只渲染点) |
|
|
44
|
+
| 常用输入 | CronPicker(cron 预设 + 自由编辑——server 解析器语义对齐) |
|
|
43
45
|
| 表单 | Input / Textarea / Select / DatePicker / Upload / Form / Checkbox / Switch / Slider |
|
|
44
46
|
| 数据展示 | Table / VirtualTable / Chart / Tree / CodeBlock / DiffView / Kanban |
|
|
45
47
|
| 导航 | NavBar / TabBar / Breadcrumb / Pagination / Menu / NavMenu / Anchor |
|
|
@@ -228,6 +230,23 @@ style-audit 文件数基线 +1 · 覆盖哨兵跑绿(`scripts/audit-component-
|
|
|
228
230
|
R-03:类名/结构变更**反查测试选择器**(`[class*="..."]` 定位器)·
|
|
229
231
|
行为变化**必带契约测试** · 机制化优先(能进审计不靠记忆)
|
|
230
232
|
|
|
233
|
+
### 5.9 应用层组件入库路径(agent-platform 先例——2027-09)
|
|
234
|
+
|
|
235
|
+
**判别三层**(先探针甄别再动工):
|
|
236
|
+
1. **纯 UI 组件**(零 fetch/零业务类型)→ 迁库(三件套+契约+showcase+demo)
|
|
237
|
+
2. **平台业务部件**(业务元数据/枚举面——TypeBadge/TypeAva)→ 留平台
|
|
238
|
+
`ui/blocks/`(判负登记)
|
|
239
|
+
3. **业务区块**(服务端 API 绑定——Sections/MessageItem)→ `pages/blocks`
|
|
240
|
+
语义降级(判负——推翻条件:API 上抛成纯 props 展示)
|
|
241
|
+
|
|
242
|
+
**样式面**:平台组件迁库后**零自建 style**(wf- 布局组合/库 css 单源)——
|
|
243
|
+
应用层 ap-* 组件样式(壳抽屉/遮罩/徽标)随迁入改名 `wf-*`(词根登记制);
|
|
244
|
+
app.css 只留**页面布局面**(body 链/面板/消息区)。
|
|
245
|
+
|
|
246
|
+
**移动抽屉/断点**:库组件**不内建 useBreakpoint**(node 无 matchMedia 恒回
|
|
247
|
+
基档——SSR≡SPA 首帧不一致 absorb 违例——实证)——`mobile` prop 父层驱动
|
|
248
|
+
(页面级判定——库惯例「响应式交还用户」同 Layout/NavMenu)。
|
|
249
|
+
|
|
231
250
|
---
|
|
232
251
|
|
|
233
252
|
### 6.1 认证接线范式(fullstack W4——onRefresh 时序契约)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weifuwu",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.93.
|
|
4
|
+
"version": "0.93.3",
|
|
5
5
|
"description": "AI SaaS full-stack framework — backend HTTP + frontend VDOM + 129 components + CSS design system + SaaS foundation (auth/queue/AI). Zero-build, zero-dependency.",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|