weifuwu 0.93.2 → 0.94.0
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/README.md +5 -5
- package/dist/client/components/ActionSheet/ActionSheet.d.ts +1 -1
- package/dist/client/components/AlertGroup/AlertGroup.d.ts +1 -1
- package/dist/client/components/Anchor/Anchor.d.ts +1 -1
- package/dist/client/components/AppShell/AppShell.d.ts +20 -3
- package/dist/client/components/AuthPage/AuthPage.d.ts +1 -1
- package/dist/client/components/AutoComplete/AutoComplete.d.ts +1 -1
- package/dist/client/components/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/client/components/Button/Button.d.ts +8 -2
- package/dist/client/components/Chart/Chart.d.ts +1 -1
- package/dist/client/components/Chart/chart-utils.d.ts +1 -1
- package/dist/client/components/ChatInput/ChatInput.d.ts +3 -1
- package/dist/client/components/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/client/components/CodeBlock/highlight.d.ts +1 -1
- package/dist/client/components/Confirm/Confirm.d.ts +1 -1
- package/dist/client/components/CronPicker/CronPicker.d.ts +31 -0
- package/dist/client/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/client/components/DatePicker/calendar-utils.d.ts +1 -1
- package/dist/client/components/Descriptions/Descriptions.d.ts +1 -1
- package/dist/client/components/Drawer/Drawer.d.ts +4 -1
- package/dist/client/components/DropZone/DropZone.d.ts +1 -1
- package/dist/client/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/client/components/Editor/Editor.d.ts +1 -1
- package/dist/client/components/Editor/edit-events.d.ts +1 -1
- package/dist/client/components/Editor/model/apply.d.ts +1 -1
- package/dist/client/components/Editor/model/diff.d.ts +1 -1
- package/dist/client/components/Editor/model/dom.d.ts +1 -1
- package/dist/client/components/Editor/model/history.d.ts +1 -1
- package/dist/client/components/Editor/model/html.d.ts +1 -1
- package/dist/client/components/Editor/model/inverse.d.ts +1 -1
- package/dist/client/components/Editor/model/types.d.ts +1 -1
- package/dist/client/components/Editor/tools/table.d.ts +1 -1
- package/dist/client/components/Editor/tools/toolbar.d.ts +1 -1
- package/dist/client/components/Editor/tools/types.d.ts +1 -1
- package/dist/client/components/FilePreview/FilePreview.d.ts +1 -1
- package/dist/client/components/FilePreview/markdown.d.ts +1 -1
- package/dist/client/components/FileTree/FileTree.d.ts +1 -1
- package/dist/client/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/client/components/FloatButton/FloatButton.d.ts +1 -1
- package/dist/client/components/Grid/Grid.d.ts +1 -1
- package/dist/client/components/Highlight/Highlight.d.ts +1 -1
- package/dist/client/components/HoverCard/HoverCard.d.ts +1 -1
- package/dist/client/components/Icon/Icon.d.ts +1 -1
- package/dist/client/components/Img/Img.d.ts +1 -1
- package/dist/client/components/InView/InView.d.ts +1 -1
- package/dist/client/components/Input/Input.d.ts +6 -0
- package/dist/client/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/client/components/JSONViewer/JSONViewer.d.ts +1 -1
- package/dist/client/components/Layout/Layout.d.ts +1 -1
- package/dist/client/components/Link/Link.d.ts +1 -1
- package/dist/client/components/List/List.d.ts +1 -1
- package/dist/client/components/ListScaffold/ListScaffold.d.ts +40 -0
- package/dist/client/components/LogViewer/LogViewer.d.ts +1 -1
- package/dist/client/components/Markdown/Markdown.d.ts +1 -1
- package/dist/client/components/Markdown/parser.d.ts +1 -1
- package/dist/client/components/Menu/Menu.d.ts +3 -1
- package/dist/client/components/MessageBubble/MessageBubble.d.ts +1 -1
- package/dist/client/components/Modal/Modal.d.ts +5 -1
- package/dist/client/components/NavBar/NavBar.d.ts +1 -1
- package/dist/client/components/NavMenu/NavMenu.d.ts +1 -1
- package/dist/client/components/OfficeEditor/ai/ai-bridge.d.ts +1 -1
- package/dist/client/components/OfficeEditor/model/apply.d.ts +1 -1
- package/dist/client/components/OfficeEditor/model/types.d.ts +1 -1
- package/dist/client/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/client/components/Popconfirm/Popconfirm.d.ts +1 -1
- package/dist/client/components/Popover/Popover.d.ts +1 -1
- package/dist/client/components/PromptTemplate/PromptTemplate.d.ts +1 -1
- package/dist/client/components/RelationGraph/RelationGraph.d.ts +1 -1
- package/dist/client/components/Result/Result.d.ts +1 -1
- package/dist/client/components/Scrollbar/Scrollbar.d.ts +1 -1
- package/dist/client/components/SheetGrid/SheetGrid.d.ts +2 -2
- package/dist/client/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/client/components/SlideCanvas/SlideCanvas.d.ts +2 -2
- package/dist/client/components/Space/Space.d.ts +1 -1
- package/dist/client/components/StatusDot/StatusDot.d.ts +25 -0
- package/dist/client/components/TabBar/TabBar.d.ts +1 -1
- package/dist/client/components/TagsInput/TagsInput.d.ts +1 -1
- package/dist/client/components/Textarea/Textarea.d.ts +6 -0
- package/dist/client/components/ThemeSwitch/ThemeSwitch.d.ts +1 -1
- package/dist/client/components/Timeline/Timeline.d.ts +1 -1
- package/dist/client/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/client/components/VirtualTable/VirtualTable.d.ts +1 -1
- package/dist/client/components/WordCloud/WordCloud.d.ts +1 -1
- package/dist/client/components/index.d.ts +9 -3
- package/dist/client/components/index.js +36 -36
- package/dist/client/components/style.css +1 -1
- package/dist/client/layout/decl.d.ts +9 -0
- package/dist/client/layout/define.d.ts +41 -0
- package/dist/client/layout/index.d.ts +20 -0
- package/dist/client/layout/index.js +17 -0
- package/dist/client/layout/weifuwu-layout.css +1 -1
- package/dist/client/vdom/context/UIContext.d.ts +1 -1
- package/dist/client/vdom/core/create-component.d.ts +42 -0
- package/dist/client/vdom/core/create-item.d.ts +52 -0
- package/dist/client/vdom/core/vnode.d.ts +8 -2
- package/dist/client/vdom/hooks/env.d.ts +12 -0
- package/dist/client/vdom/hooks/field.d.ts +54 -0
- package/dist/client/vdom/hooks/overlay.d.ts +60 -0
- package/dist/client/vdom/hooks/signal.d.ts +25 -0
- package/dist/client/vdom/index.d.ts +9 -2
- package/dist/client/vdom/index.js +3 -3
- package/dist/client/vdom/jsx-runtime.d.ts +4 -4
- package/dist/client/vdom/jsx-runtime.js +1 -1
- package/dist/client/vdom/testing.js +2 -2
- package/dist/dev/index.js +7 -6
- package/dist/server/ai/index.js +7 -0
- package/dist/server/ai/types.d.ts +1 -1
- package/dist/server/email/index.js +1 -0
- package/dist/server/index.js +235 -5
- package/dist/server/messager/index.js +1 -0
- package/dist/server/postgres/index.js +56 -0
- package/dist/server/queue/index.js +1 -0
- package/dist/server/redis/index.js +3 -0
- package/dist/server/scheduler/index.js +1 -0
- package/dist/server/ui/index.d.ts +1 -1
- package/dist/server/ui/index.js +15 -0
- package/dist/server/user/index.js +1 -0
- package/dist/server/user/token.d.ts +1 -1
- package/dist/server/workflows/index.js +24 -0
- package/dist/shared/router/index.js +2 -0
- package/docs/client.md +143 -10
- package/docs/layout.md +14 -14
- package/docs/server.md +1 -1
- package/package.json +66 -12
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** ListScaffold:列表页骨架(PageHeader + 工具栏 + loading/empty + 内容插槽)(showcase /components/listscaffold) */
|
|
2
|
+
import type { Component, VNodeChild } from '../../vdom/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* weifuwu/client/components — ListScaffold
|
|
5
|
+
*
|
|
6
|
+
* 列表页骨架原语:PageHeader + 搜索/工具区 + loading/empty 态 + 内容插槽。
|
|
7
|
+
* 各页面差异在内容循环(render 插槽)——头部/状态区单点一致。
|
|
8
|
+
* 组合 PageHeader/EmptyState/Loading(库内组合——无自有样式——布局类单源)。
|
|
9
|
+
*
|
|
10
|
+
* **empty 显式契约**(agent-platform ListScaffold 空态与列表并存 bug 修复——
|
|
11
|
+
* 2027-09 沉淀入库):empty 仅在 `isEmpty` 时渲染——**有数据也显示空态**
|
|
12
|
+
* 的空态/列表并存已消除(原实现 empty 条件缺失 isEmpty——双段显示)。
|
|
13
|
+
* loading 优先于 empty(加载中不闪空态)——空态在 loading 后判断。
|
|
14
|
+
*
|
|
15
|
+
* 来源:agent-platform ListScaffold(>1 消费者 Agents/Departments——
|
|
16
|
+
* 入库判负登记已推翻:用户指令 = 框架层第二消费面确立)。
|
|
17
|
+
*/
|
|
18
|
+
export interface ListScaffoldProps {
|
|
19
|
+
/** 页面标题(PageHeader title) */
|
|
20
|
+
title: string;
|
|
21
|
+
/** 标题副文案 */
|
|
22
|
+
sub?: string;
|
|
23
|
+
/** header 右区(按钮组——JSX 子元素面) */
|
|
24
|
+
actions?: VNodeChild;
|
|
25
|
+
/** 搜索/筛选工具区(loading 时仍渲染——搜索框可用) */
|
|
26
|
+
toolbar?: VNodeChild;
|
|
27
|
+
/** 加载中(loading 优先于 empty——不闪空态) */
|
|
28
|
+
loading?: boolean;
|
|
29
|
+
/** 空态定义(图标/文案/提示) */
|
|
30
|
+
empty?: {
|
|
31
|
+
icon?: string | null;
|
|
32
|
+
text?: string;
|
|
33
|
+
hint?: string;
|
|
34
|
+
};
|
|
35
|
+
/** 内容空(empty 仅在 isEmpty 时显示) */
|
|
36
|
+
isEmpty?: boolean;
|
|
37
|
+
/** 内容插槽(页面核心循环——children 在 empty 之后——有数据时渲染) */
|
|
38
|
+
children?: VNodeChild;
|
|
39
|
+
}
|
|
40
|
+
export declare const ListScaffold: Component<ListScaffoldProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** LogViewer:日志流:ANSI 着色 + 虚拟滚动 + 自动跟随 + 复制(showcase /components/logviewer) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — LogViewer
|
|
3
|
+
* weifuwu/client/components — LogViewer
|
|
4
4
|
*
|
|
5
5
|
* 日志流查看器(Agent 执行日志 / CI 输出):ANSI 着色 + 虚拟滚动 + 自动跟随。
|
|
6
6
|
* 复用 VirtualList 滚动基座(useScrollPosition + rAF 节流)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Markdown:AI 回复渲染:安全子集 parser + 代码块 + 链接白名单(showcase /components/markdown) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Markdown 安全子集 parser
|
|
3
|
+
* weifuwu/client/components — Markdown 安全子集 parser
|
|
4
4
|
*
|
|
5
5
|
* 零依赖自研解析器,输出结构化 token(非 HTML 字符串)——
|
|
6
6
|
* 组件层以 VNode 渲染,天然转义任何用户/AI 内容(无 innerHTML 注入面)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Menu:侧栏导航:分组 + 图标 + 选中态 + 方向键(showcase /components/menu) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Menu
|
|
3
|
+
* weifuwu/client/components — Menu
|
|
4
4
|
*
|
|
5
5
|
* 导航菜单(侧栏导航):分组项 + 图标 + 选中态 + 方向键导航 + Enter 激活 + 子菜单 + 折叠。
|
|
6
6
|
* 用于 SaaS 应用侧边导航(替代手写 nav-item 循环)。
|
|
@@ -15,6 +15,8 @@ export interface MenuItem {
|
|
|
15
15
|
group?: string;
|
|
16
16
|
active?: boolean;
|
|
17
17
|
danger?: boolean;
|
|
18
|
+
/** 计数徽标(数字 → Badge count 胶囊——99+ 溢出;label 直传自定义形态) */
|
|
19
|
+
badge?: string | number;
|
|
18
20
|
onClick?: () => void;
|
|
19
21
|
/** 子菜单项(有 children 即渲染为可展开子菜单) */
|
|
20
22
|
children?: MenuItem[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** MessageBubble:消息气泡:user/assistant + streaming/error 状态 + actions(showcase /components/messagebubble) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — MessageBubble
|
|
3
|
+
* weifuwu/client/components — MessageBubble
|
|
4
4
|
*
|
|
5
5
|
* 独立消息气泡(从 AiChat 气泡层抽取,业务聊天页复用)。
|
|
6
6
|
* 复用 layout 的 wf-bubble 原语:user → --own,assistant → --ai。
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** Modal:自定义宽度 + closable 控制关闭按钮(showcase /components/modal) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Modal
|
|
3
|
+
* weifuwu/client/components — Modal
|
|
4
|
+
*
|
|
5
|
+
* 行为面(2027-09 分层抽象 W2):openPopup 生命周期/焦点 trap/滚动锁/Esc/
|
|
6
|
+
* 遮罩点击 → useOverlay 契约(手搓面消除——行为正确性结构性保证)。
|
|
7
|
+
* 组件只写皮:overlay(遮罩)+ content(面板)+ 关闭按钮/标题/footer。
|
|
4
8
|
*/
|
|
5
9
|
import type { Component, VNodeChild } from '../../vdom/index.ts';
|
|
6
10
|
export interface ModalProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** NavBar:移动端顶栏——left 槽(返回/菜单)+ 标题截断 + right 槽(antd-mobile NavBar 对位)(showcase /components/navbar) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — NavBar 移动端顶栏(antd-mobile NavBar / MUI AppBar 对位)
|
|
3
|
+
* weifuwu/client/components — NavBar 移动端顶栏(antd-mobile NavBar / MUI AppBar 对位)
|
|
4
4
|
*
|
|
5
5
|
* 移动端 App 应用外壳顶栏:left 槽(返回/菜单按钮)+ 标题(单行截断)+ right 槽
|
|
6
6
|
* (操作按钮)——消费侧手搓实证 agent-platform `ap-topbar`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** NavMenu:顶部导航:多级 hover 弹出 + 键盘(shadcn NavigationMenu)(showcase /components/navmenu) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — NavMenu 顶部导航
|
|
3
|
+
* weifuwu/client/components — NavMenu 顶部导航
|
|
4
4
|
*
|
|
5
5
|
* 三库等价:shadcn NavigationMenu(特有——antd/EP 用 Menu 横向模式)。
|
|
6
6
|
* 顶部水平导航 + 多级 hover 弹出 + 键盘(→ 进入子菜单 / ← 返回 / Escape 关闭):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Popconfirm:气泡确认:危险操作防误触 + 复用 usePopup 基座(showcase /components/popconfirm) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Popconfirm 气泡确认
|
|
3
|
+
* weifuwu/client/components — Popconfirm 气泡确认
|
|
4
4
|
*
|
|
5
5
|
* 三库等价:antd Popconfirm / Element Plus Popconfirm。
|
|
6
6
|
* 复用 openPopup 内核(Popover 同级基座)——验证弹层体系可组合性:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Popover:通用弹出层,click/hover 触发,4 方向(showcase /components/popover) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Popover
|
|
3
|
+
* weifuwu/client/components — Popover
|
|
4
4
|
*
|
|
5
5
|
* 命令式弹窗(一个形态——ctx.ui.openPopup——toast 心智):click/hover 双触发
|
|
6
6
|
* (hover 触屏自动降级 tap)+ 受控 open + 外部点击(document 级,取代原 overlay)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** PromptTemplate:提示词模板编辑器——变量 chips 插入 + 实时预览填充(AI 场景痛点)(showcase /components/prompttemplate) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — PromptTemplate 提示词模板编辑器(AI 场景)
|
|
3
|
+
* weifuwu/client/components — PromptTemplate 提示词模板编辑器(AI 场景)
|
|
4
4
|
*
|
|
5
5
|
* agent-platform 类应用的提示词管理痛点:变量占位 `{{var}}` 记忆/拼写错误 +
|
|
6
6
|
* 填充结果不可见。组件提供:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** RelationGraph:关系图谱——环形/网格布局 + 类型着色 + 选中交互(人物/组织/网络)(showcase /components/relationgraph) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — RelationGraph
|
|
3
|
+
* weifuwu/client/components — RelationGraph
|
|
4
4
|
*
|
|
5
5
|
* 关系图谱可视化(人物关系/社会网络/组织协作——agent 世界的核心交互面):
|
|
6
6
|
* 确定性布局(环形/网格——零物理模拟——组件库零依赖纪律)+ SVG 渲染
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** SheetGrid:weifuwu/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座) 设计():文档 = fold(事件流)——SheetGrid 的每个(showcase /components/sheetgrid) */
|
|
1
|
+
/** SheetGrid:weifuwu/client/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座) 设计():文档 = fold(事件流)——SheetGrid 的每个(showcase /components/sheetgrid) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座)
|
|
3
|
+
* weifuwu/client/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座)
|
|
4
4
|
*
|
|
5
5
|
* 设计():文档 = fold(事件流)——SheetGrid 的每个
|
|
6
6
|
* 编辑操作 = OfficeOp(cell-set/insert-rows/...)→ editEmit('office') → commit
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Skeleton:text/circle/rect/image/avatar/table 六种变体(showcase /components/skeleton) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — Skeleton
|
|
3
|
+
* weifuwu/client/components — Skeleton
|
|
4
4
|
*/
|
|
5
5
|
import type { Component } from '../../vdom/index.ts';
|
|
6
6
|
export type SkeletonVariant = 'text' | 'circle' | 'rect' | 'image' | 'avatar' | 'table';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** SlideCanvas:weifuwu/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3) 设计():文档 = fold(事件流)——每个编辑 =(showcase /components/slidecanvas) */
|
|
1
|
+
/** SlideCanvas:weifuwu/client/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3) 设计():文档 = fold(事件流)——每个编辑 =(showcase /components/slidecanvas) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3)
|
|
3
|
+
* weifuwu/client/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3)
|
|
4
4
|
*
|
|
5
5
|
* 设计():文档 = fold(事件流)——每个编辑 =
|
|
6
6
|
* OfficeOp(shape-add/remove/move/resize/set)→ editEmit('office') → commit。
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** StatusDot:状态点(on/tone 语义——label 缺省只渲染点)(showcase /components/statusdot) */
|
|
2
|
+
import type { Component, VNodeChild } from '../../vdom/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* weifuwu/client/components — StatusDot
|
|
5
|
+
*
|
|
6
|
+
* 状态点原语(颜色语义——一个状态一个声音)。
|
|
7
|
+
* 契约(agent-platform StatusDot 语言化——原名「自带默认文案的运行中/已暂停」
|
|
8
|
+
* 与调用方状态标签撞车——双标签实证修复):
|
|
9
|
+
* - **label 缺省只渲染点**(文字是调用方职责——防双标签)
|
|
10
|
+
* - tone 覆盖点/文字色:success 绿(健康运行)· warning 黄(降级)·
|
|
11
|
+
* error 红(故障)· default 灰(非活跃)
|
|
12
|
+
* - on 是主开关(true→success · false→default)——tone 仅在非绿非灰时传
|
|
13
|
+
*
|
|
14
|
+
* 来源:agent-platform ui.tsx StatusDot(平台原语——库无状态点面——
|
|
15
|
+
* 入库:通用状态语义组件)。
|
|
16
|
+
*/
|
|
17
|
+
export interface StatusDotProps {
|
|
18
|
+
/** 状态开关(true→success · false→default) */
|
|
19
|
+
on?: boolean;
|
|
20
|
+
/** 状态文案(缺省只渲染点——文字是调用方职责) */
|
|
21
|
+
label?: VNodeChild;
|
|
22
|
+
/** 覆盖色(非绿非灰时传——降级/故障) */
|
|
23
|
+
tone?: 'success' | 'warning' | 'error' | 'default';
|
|
24
|
+
}
|
|
25
|
+
export declare const StatusDot: Component<StatusDotProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** TabBar:底部标签栏——移动端 App 主导航(3-5 tab + icon/badge/受控激活 + safe-area 避让)(showcase /components/tabbar) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — TabBar 底部标签栏(移动端导航)
|
|
3
|
+
* weifuwu/client/components — TabBar 底部标签栏(移动端导航)
|
|
4
4
|
*
|
|
5
5
|
* 3-5 个底部 tab(icon + label + 可选 badge 角标)——移动端 App 主导航
|
|
6
6
|
* (MUI BottomNavigation 对位;examples/patterns/Mobile.tsx 手搓底部导航的组件化)。
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/** Textarea:多行文本,支持 rows/label/error/hint(showcase /components/textarea) */
|
|
2
|
+
/**
|
|
3
|
+
* weifuwu/client/components — Textarea
|
|
4
|
+
*
|
|
5
|
+
* 2027-09 原语全面化 W2:label/required/error/hint 块 + aria 连接 → useField
|
|
6
|
+
* 契约——组件只写输入面(textarea + showCount 业务)。
|
|
7
|
+
*/
|
|
2
8
|
import type { Component } from '../../vdom/index.ts';
|
|
3
9
|
export interface TextareaProps {
|
|
4
10
|
label?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** VirtualTable:虚拟表格:10k 行固定表头 + 可见窗口渲染 + 排序(showcase /components/virtualtable) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — VirtualTable
|
|
3
|
+
* weifuwu/client/components — VirtualTable
|
|
4
4
|
*
|
|
5
5
|
* 虚拟表格(数据密集场景):固定表头 + 虚拟滚动表体,10k+ 行只渲染可见窗口。
|
|
6
6
|
* 复用 VirtualList 滚动基座(useScrollPosition 像素级 scrollTop + rAF 节流)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** WordCloud:词云——权重→字号映射 · 圆心同心环发散布局 · SVG textLength 定宽(零依赖自绘——SSR 一致零重叠)(showcase /components/wordcloud) */
|
|
2
2
|
/**
|
|
3
|
-
* weifuwu/components — WordCloud
|
|
3
|
+
* weifuwu/client/components — WordCloud
|
|
4
4
|
*
|
|
5
5
|
* 词云——权重→字号映射 · **中心同心环发散布局**(SVG textLength 定宽——
|
|
6
6
|
* 渲染宽度精确 = 估算宽——同输入同输出——SSR≡SPA 零差异 + 词矩形零重叠)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* weifuwu/components — HTML 原语
|
|
2
|
+
* weifuwu/client/components — HTML 原语
|
|
3
3
|
*
|
|
4
4
|
* 使用方式:
|
|
5
|
-
* import { Button, Input } from 'weifuwu/components'
|
|
6
|
-
* import 'weifuwu/components/style.css'
|
|
5
|
+
* import { Button, Input } from 'weifuwu/client/components'
|
|
6
|
+
* import 'weifuwu/client/components/style.css'
|
|
7
7
|
*/
|
|
8
8
|
export { Icon } from './Icon/Icon.ts';
|
|
9
9
|
export type { IconProps, IconName } from './Icon/Icon.ts';
|
|
@@ -290,3 +290,9 @@ export { Math } from './Math/Math.ts';
|
|
|
290
290
|
export type { MathProps } from './Math/Math.ts';
|
|
291
291
|
export { WordCloud } from './WordCloud/WordCloud.ts';
|
|
292
292
|
export type { WordCloudProps, WordCloudData } from './WordCloud/WordCloud.ts';
|
|
293
|
+
export { CronPicker } from './CronPicker/CronPicker.ts';
|
|
294
|
+
export type { CronPickerProps } from './CronPicker/CronPicker.ts';
|
|
295
|
+
export { ListScaffold } from './ListScaffold/ListScaffold.ts';
|
|
296
|
+
export type { ListScaffoldProps } from './ListScaffold/ListScaffold.ts';
|
|
297
|
+
export { StatusDot } from './StatusDot/StatusDot.ts';
|
|
298
|
+
export type { StatusDotProps } from './StatusDot/StatusDot.ts';
|