weifuwu 0.93.0 → 0.93.2

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.
Files changed (163) hide show
  1. package/README.md +1 -1
  2. package/dist/client/components/Accordion/Accordion.d.ts +3 -2
  3. package/dist/client/components/ActionSheet/ActionSheet.d.ts +1 -0
  4. package/dist/client/components/Affix/Affix.d.ts +3 -2
  5. package/dist/client/components/AiChat/AiChat.d.ts +2 -1
  6. package/dist/client/components/Alert/Alert.d.ts +3 -2
  7. package/dist/client/components/AlertGroup/AlertGroup.d.ts +3 -2
  8. package/dist/client/components/Anchor/Anchor.d.ts +3 -2
  9. package/dist/client/components/AppShell/AppShell.d.ts +5 -4
  10. package/dist/client/components/ApprovalCard/ApprovalCard.d.ts +3 -2
  11. package/dist/client/components/AspectRatio/AspectRatio.d.ts +3 -2
  12. package/dist/client/components/AuthPage/AuthPage.d.ts +3 -2
  13. package/dist/client/components/AutoComplete/AutoComplete.d.ts +3 -2
  14. package/dist/client/components/Avatar/Avatar.d.ts +1 -0
  15. package/dist/client/components/AvatarGroup/AvatarGroup.d.ts +1 -0
  16. package/dist/client/components/BackTop/BackTop.d.ts +3 -2
  17. package/dist/client/components/Badge/Badge.d.ts +3 -2
  18. package/dist/client/components/Breadcrumb/Breadcrumb.d.ts +1 -0
  19. package/dist/client/components/Button/Button.d.ts +3 -2
  20. package/dist/client/components/Calendar/Calendar.d.ts +1 -0
  21. package/dist/client/components/Card/Card.d.ts +3 -2
  22. package/dist/client/components/Carousel/Carousel.d.ts +3 -2
  23. package/dist/client/components/Cascader/Cascader.d.ts +1 -0
  24. package/dist/client/components/Chart/Chart.d.ts +1 -0
  25. package/dist/client/components/Chart/chart-utils.d.ts +1 -0
  26. package/dist/client/components/ChatInput/ChatInput.d.ts +1 -0
  27. package/dist/client/components/Checkbox/Checkbox.d.ts +1 -0
  28. package/dist/client/components/CheckboxGroup/CheckboxGroup.d.ts +1 -0
  29. package/dist/client/components/CitationCard/CitationCard.d.ts +2 -1
  30. package/dist/client/components/CodeBlock/CodeBlock.d.ts +1 -0
  31. package/dist/client/components/CodeBlock/highlight.d.ts +1 -0
  32. package/dist/client/components/CodeEditor/CodeEditor.d.ts +1 -0
  33. package/dist/client/components/Collapse/Collapse.d.ts +5 -4
  34. package/dist/client/components/ColorPicker/ColorPicker.d.ts +1 -0
  35. package/dist/client/components/Command/Command.d.ts +3 -2
  36. package/dist/client/components/Confirm/Confirm.d.ts +3 -2
  37. package/dist/client/components/ContextMenu/ContextMenu.d.ts +4 -3
  38. package/dist/client/components/CopyButton/CopyButton.d.ts +1 -0
  39. package/dist/client/components/DatePicker/DatePicker.d.ts +1 -0
  40. package/dist/client/components/DatePicker/calendar-utils.d.ts +1 -0
  41. package/dist/client/components/Descriptions/Descriptions.d.ts +4 -3
  42. package/dist/client/components/DiffView/DiffView.d.ts +1 -0
  43. package/dist/client/components/DiffView/diff-utils.d.ts +1 -0
  44. package/dist/client/components/Divider/Divider.d.ts +3 -2
  45. package/dist/client/components/Drawer/Drawer.d.ts +4 -3
  46. package/dist/client/components/DropZone/DropZone.d.ts +3 -2
  47. package/dist/client/components/Dropdown/Dropdown.d.ts +3 -2
  48. package/dist/client/components/Editor/Editor.d.ts +1 -0
  49. package/dist/client/components/Editor/edit-events.d.ts +1 -0
  50. package/dist/client/components/Editor/model/apply.d.ts +1 -0
  51. package/dist/client/components/Editor/model/diff.d.ts +1 -0
  52. package/dist/client/components/Editor/model/dom.d.ts +1 -0
  53. package/dist/client/components/Editor/model/history.d.ts +1 -0
  54. package/dist/client/components/Editor/model/html.d.ts +1 -0
  55. package/dist/client/components/Editor/model/inverse.d.ts +1 -0
  56. package/dist/client/components/Editor/model/types.d.ts +1 -0
  57. package/dist/client/components/Editor/tools/table.d.ts +1 -0
  58. package/dist/client/components/Editor/tools/toolbar.d.ts +1 -0
  59. package/dist/client/components/Editor/tools/types.d.ts +1 -0
  60. package/dist/client/components/EmptyState/EmptyState.d.ts +3 -2
  61. package/dist/client/components/ExportCSV/ExportCSV.d.ts +4 -3
  62. package/dist/client/components/Field/Field.d.ts +3 -2
  63. package/dist/client/components/FilePreview/FilePreview.d.ts +1 -0
  64. package/dist/client/components/FilePreview/markdown.d.ts +1 -0
  65. package/dist/client/components/FileTree/FileTree.d.ts +1 -0
  66. package/dist/client/components/FileUpload/FileUpload.d.ts +3 -2
  67. package/dist/client/components/FloatButton/FloatButton.d.ts +5 -4
  68. package/dist/client/components/Form/Form.d.ts +3 -2
  69. package/dist/client/components/Grid/Grid.d.ts +4 -3
  70. package/dist/client/components/Highlight/Highlight.d.ts +1 -0
  71. package/dist/client/components/HoverCard/HoverCard.d.ts +4 -3
  72. package/dist/client/components/Icon/Icon.d.ts +1 -0
  73. package/dist/client/components/ImageCropper/ImageCropper.d.ts +1 -0
  74. package/dist/client/components/Img/Img.d.ts +1 -0
  75. package/dist/client/components/InView/InView.d.ts +4 -3
  76. package/dist/client/components/InfiniteScroll/InfiniteScroll.d.ts +3 -2
  77. package/dist/client/components/Input/Input.d.ts +1 -0
  78. package/dist/client/components/InputNumber/InputNumber.d.ts +1 -0
  79. package/dist/client/components/JSONViewer/JSONViewer.d.ts +1 -0
  80. package/dist/client/components/JsonSchemaForm/JsonSchemaForm.d.ts +1 -0
  81. package/dist/client/components/Kanban/Kanban.d.ts +1 -0
  82. package/dist/client/components/Label/Label.d.ts +3 -2
  83. package/dist/client/components/Layout/Layout.d.ts +8 -7
  84. package/dist/client/components/Link/Link.d.ts +4 -3
  85. package/dist/client/components/List/List.d.ts +4 -3
  86. package/dist/client/components/Loading/Loading.d.ts +1 -0
  87. package/dist/client/components/LogViewer/LogViewer.d.ts +1 -0
  88. package/dist/client/components/Markdown/Markdown.d.ts +1 -0
  89. package/dist/client/components/Markdown/parser.d.ts +1 -0
  90. package/dist/client/components/MarkdownEditor/MarkdownEditor.d.ts +1 -0
  91. package/dist/client/components/Math/Math.d.ts +1 -0
  92. package/dist/client/components/Mentions/Mentions.d.ts +1 -0
  93. package/dist/client/components/Menu/Menu.d.ts +4 -3
  94. package/dist/client/components/Menubar/Menubar.d.ts +3 -2
  95. package/dist/client/components/MessageBubble/MessageBubble.d.ts +4 -3
  96. package/dist/client/components/Modal/Modal.d.ts +4 -3
  97. package/dist/client/components/NavBar/NavBar.d.ts +1 -0
  98. package/dist/client/components/NavMenu/NavMenu.d.ts +3 -2
  99. package/dist/client/components/Notification/Notification.d.ts +1 -0
  100. package/dist/client/components/PageHeader/PageHeader.d.ts +3 -2
  101. package/dist/client/components/Pagination/Pagination.d.ts +1 -0
  102. package/dist/client/components/PasswordInput/PasswordInput.d.ts +1 -0
  103. package/dist/client/components/PinInput/PinInput.d.ts +1 -0
  104. package/dist/client/components/Pipeline/Pipeline.d.ts +1 -0
  105. package/dist/client/components/Pipeline/dag-utils.d.ts +1 -0
  106. package/dist/client/components/Popconfirm/Popconfirm.d.ts +5 -4
  107. package/dist/client/components/Popover/Popover.d.ts +4 -3
  108. package/dist/client/components/ProgressBar/ProgressBar.d.ts +1 -0
  109. package/dist/client/components/PromptTemplate/PromptTemplate.d.ts +1 -0
  110. package/dist/client/components/QRCode/QRCode.d.ts +1 -0
  111. package/dist/client/components/QRCode/qr.d.ts +1 -0
  112. package/dist/client/components/RadioGroup/RadioGroup.d.ts +1 -0
  113. package/dist/client/components/Rate/Rate.d.ts +1 -0
  114. package/dist/client/components/ReasoningBlock/ReasoningBlock.d.ts +1 -0
  115. package/dist/client/components/RelationGraph/RelationGraph.d.ts +1 -0
  116. package/dist/client/components/Resizable/Resizable.d.ts +1 -0
  117. package/dist/client/components/Result/Result.d.ts +4 -3
  118. package/dist/client/components/Scrollbar/Scrollbar.d.ts +3 -2
  119. package/dist/client/components/SearchInput/SearchInput.d.ts +1 -0
  120. package/dist/client/components/SegmentedControl/SegmentedControl.d.ts +1 -0
  121. package/dist/client/components/Select/Select.d.ts +3 -2
  122. package/dist/client/components/SessionList/SessionList.d.ts +1 -0
  123. package/dist/client/components/SheetGrid/SheetGrid.d.ts +1 -0
  124. package/dist/client/components/Skeleton/Skeleton.d.ts +1 -0
  125. package/dist/client/components/SlideCanvas/SlideCanvas.d.ts +1 -0
  126. package/dist/client/components/Slider/Slider.d.ts +1 -0
  127. package/dist/client/components/SortableList/SortableList.d.ts +1 -0
  128. package/dist/client/components/Space/Space.d.ts +3 -2
  129. package/dist/client/components/Sparkline/Sparkline.d.ts +1 -0
  130. package/dist/client/components/Sparkline/sparkline-utils.d.ts +1 -0
  131. package/dist/client/components/StatCard/StatCard.d.ts +1 -0
  132. package/dist/client/components/Steps/Steps.d.ts +1 -0
  133. package/dist/client/components/Switch/Switch.d.ts +1 -0
  134. package/dist/client/components/TabBar/TabBar.d.ts +1 -0
  135. package/dist/client/components/Table/Table.d.ts +3 -2
  136. package/dist/client/components/Tabs/Tabs.d.ts +3 -2
  137. package/dist/client/components/Tag/Tag.d.ts +3 -2
  138. package/dist/client/components/TagsInput/TagsInput.d.ts +1 -0
  139. package/dist/client/components/Textarea/Textarea.d.ts +1 -0
  140. package/dist/client/components/ThemeSwitch/ThemeSwitch.d.ts +1 -0
  141. package/dist/client/components/Timeline/Timeline.d.ts +5 -4
  142. package/dist/client/components/Toast/Toast.d.ts +1 -0
  143. package/dist/client/components/ToggleGroup/ToggleGroup.d.ts +4 -3
  144. package/dist/client/components/ToolCallCard/ToolCallCard.d.ts +1 -0
  145. package/dist/client/components/Tooltip/Tooltip.d.ts +3 -2
  146. package/dist/client/components/Tour/Tour.d.ts +1 -0
  147. package/dist/client/components/Transfer/Transfer.d.ts +1 -0
  148. package/dist/client/components/Tree/Tree.d.ts +3 -2
  149. package/dist/client/components/TreeSelect/TreeSelect.d.ts +1 -0
  150. package/dist/client/components/Typography/Typography.d.ts +5 -4
  151. package/dist/client/components/VideoPlayer/VideoPlayer.d.ts +1 -0
  152. package/dist/client/components/VirtualList/VirtualList.d.ts +4 -3
  153. package/dist/client/components/VirtualTable/VirtualTable.d.ts +1 -0
  154. package/dist/client/components/Watermark/Watermark.d.ts +3 -2
  155. package/dist/client/components/Wave/Wave.d.ts +3 -2
  156. package/dist/client/components/WordCloud/WordCloud.d.ts +1 -0
  157. package/dist/client/components/index.js +39 -39
  158. package/dist/client/components/style.css +1 -1
  159. package/dist/client/layout/weifuwu-layout.css +1 -1
  160. package/dist/server/index.js +20 -7
  161. package/docs/client.md +22 -2
  162. package/docs/layout.md +1 -1
  163. package/package.json +3 -2
@@ -1,3 +1,4 @@
1
+ /** Pipeline:Agent 工作流 DAG:分层布局 + 贝塞尔连线 + 状态语义色 + 环检测(showcase /components/pipeline) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export type NodeStatus = 'default' | 'success' | 'running' | 'error' | 'pending';
3
4
  export interface PipelineNode {
@@ -1,3 +1,4 @@
1
+ /** Pipeline:Agent 工作流 DAG:分层布局 + 贝塞尔连线 + 状态语义色 + 环检测(showcase /components/pipeline) */
1
2
  export interface DagNodeInput {
2
3
  id: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /** Popconfirm:气泡确认:危险操作防误触 + 复用 usePopup 基座(showcase /components/popconfirm) */
1
2
  /**
2
3
  * weifuwu/components — Popconfirm 气泡确认
3
4
  *
@@ -13,10 +14,10 @@
13
14
  * - 确认后自动关闭(onConfirm 后 setOpen(false))
14
15
  * - 裁剪(CS-05,见 docs/client.md):不做气泡内表单/自定义箭头
15
16
  */
16
- import type { Component } from '../../vdom/index.ts';
17
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
17
18
  import type { Placement } from '../../vdom/hooks/popup.ts';
18
19
  export interface PopconfirmProps {
19
- title?: any;
20
+ title?: VNodeChild;
20
21
  okText?: string;
21
22
  cancelText?: string;
22
23
  okType?: 'primary' | 'danger';
@@ -28,7 +29,7 @@ export interface PopconfirmProps {
28
29
  open?: boolean;
29
30
  onOpenChange?: (open: boolean) => void;
30
31
  disabled?: boolean;
31
- icon?: any;
32
- children?: any;
32
+ icon?: VNodeChild;
33
+ children?: VNodeChild;
33
34
  }
34
35
  export declare const Popconfirm: Component<PopconfirmProps>;
@@ -1,3 +1,4 @@
1
+ /** Popover:通用弹出层,click/hover 触发,4 方向(showcase /components/popover) */
1
2
  /**
2
3
  * weifuwu/components — Popover
3
4
  *
@@ -5,16 +6,16 @@
5
6
  * (hover 触屏自动降级 tap)+ 受控 open + 外部点击(document 级,取代原 overlay)
6
7
  * + 定位/视口 clamp + Escape。
7
8
  */
8
- import type { Component } from '../../vdom/index.ts';
9
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
9
10
  import type { Placement } from '../../vdom/hooks/popup.ts';
10
11
  export type PopoverPosition = Placement;
11
12
  export interface PopoverProps {
12
- content?: any;
13
+ content?: VNodeChild;
13
14
  trigger?: 'click' | 'hover';
14
15
  position?: PopoverPosition;
15
16
  open?: boolean;
16
17
  onOpenChange?: (open: boolean) => void;
17
18
  disabled?: boolean;
18
- children?: any;
19
+ children?: VNodeChild;
19
20
  }
20
21
  export declare const Popover: Component<PopoverProps>;
@@ -1,3 +1,4 @@
1
+ /** ProgressBar:进度条,支持 label/showValue(showcase /components/progressbar) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface ProgressBarProps {
3
4
  /** 进度值;undefined = indeterminate(不确定态,动画扫动) */
@@ -1,3 +1,4 @@
1
+ /** PromptTemplate:提示词模板编辑器——变量 chips 插入 + 实时预览填充(AI 场景痛点)(showcase /components/prompttemplate) */
1
2
  /**
2
3
  * weifuwu/components — PromptTemplate 提示词模板编辑器(AI 场景)
3
4
  *
@@ -1,3 +1,4 @@
1
+ /** QRCode:二维码:自研 QR 编码(Reed-Solomon + 8 掩码)零依赖 SVG(showcase /components/qrcode) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  import type { QrEcLevel } from './qr.ts';
3
4
  export interface QRCodeProps {
@@ -1,3 +1,4 @@
1
+ /** QRCode:二维码:自研 QR 编码(Reed-Solomon + 8 掩码)零依赖 SVG(showcase /components/qrcode) */
1
2
  /**
2
3
  * weifuwu QR 编码器(零依赖自研)
3
4
  *
@@ -1,3 +1,4 @@
1
+ /** RadioGroup:单选组,支持 inline/options/value(showcase /components/radiogroup) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface RadioOption {
3
4
  value: string;
@@ -1,3 +1,4 @@
1
+ /** Rate:评分:键盘方向键 / allowClear / readOnly,新增 star 图标(showcase /components/rate) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface RateProps {
3
4
  /** 当前评分值(0..count) */
@@ -1,3 +1,4 @@
1
+ /** ReasoningBlock:CoT 推理折叠展示:aria-expanded + 键盘可达 + 流式脉冲(thinking 模式 reasoning_content)(showcase /components/reasoningblock) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  import type { UIContext } from '../../vdom/index.ts';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /** RelationGraph:关系图谱——环形/网格布局 + 类型着色 + 选中交互(人物/组织/网络)(showcase /components/relationgraph) */
1
2
  /**
2
3
  * weifuwu/components — RelationGraph
3
4
  *
@@ -1,3 +1,4 @@
1
+ /** Resizable:拖拽分割面板:pointer + 键盘方向键 + clamp(shadcn)(showcase /components/resizable) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface ResizableProps {
3
4
  /** horizontal 左右分割(默认)/ vertical 上下分割 */
@@ -1,3 +1,4 @@
1
+ /** Result:结果页:success/error/warning/info + extra 操作区(showcase /components/result) */
1
2
  /**
2
3
  * weifuwu/components — Result
3
4
  *
@@ -5,13 +6,13 @@
5
6
  * 用于注册完成/操作成功/404/403 页。
6
7
  * 裁剪(CS-05,见 docs/client.md):不做内置路由跳转(页面自身处理)。
7
8
  */
8
- import type { Component } from '../../vdom/index.ts';
9
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
9
10
  export type ResultStatus = 'success' | 'error' | 'warning' | 'info';
10
11
  export interface ResultProps {
11
12
  status?: ResultStatus;
12
- title: any;
13
+ title?: VNodeChild;
13
14
  desc?: any;
14
- extra?: any;
15
+ extra?: VNodeChild;
15
16
  className?: string;
16
17
  }
17
18
  export declare const Result: Component<ResultProps>;
@@ -1,3 +1,4 @@
1
+ /** Scrollbar:自定义滚动容器:webkit 样式 + hover 显示(showcase /components/scrollbar) */
1
2
  /**
2
3
  * weifuwu/components — Scrollbar 自定义滚动容器
3
4
  *
@@ -8,14 +9,14 @@
8
9
  *
9
10
  * 裁剪(CS-05,见 docs/client.md):不做虚拟滚动/拖动滚动条 thumb(VirtualList 覆盖虚拟化)。
10
11
  */
11
- import type { Component } from '../../vdom/index.ts';
12
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
12
13
  export interface ScrollbarProps {
13
14
  maxHeight?: number | string;
14
15
  height?: number | string;
15
16
  orientation?: 'vertical' | 'horizontal';
16
17
  /** 常显滚动条(默认 hover 显示) */
17
18
  always?: boolean;
18
- children?: any;
19
+ children?: VNodeChild;
19
20
  style?: any;
20
21
  }
21
22
  export declare const Scrollbar: Component<ScrollbarProps>;
@@ -1,3 +1,4 @@
1
+ /** SearchInput:搜索输入框,带清除按钮(showcase /components/searchinput) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface SearchInputProps {
3
4
  value?: string;
@@ -1,3 +1,4 @@
1
+ /** SegmentedControl:分段单选(模式切换/筛选/模板),支持 sm/block(showcase /components/segmentedcontrol) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface SegmentedOption {
3
4
  value: string;
@@ -1,4 +1,5 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** Select:原生下拉选择器(showcase /components/select) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface SelectOption {
3
4
  value: string;
4
5
  label: string;
@@ -23,7 +24,7 @@ export interface SelectProps {
23
24
  disabled?: boolean;
24
25
  error?: string;
25
26
  onChange?: (value: string | string[]) => void;
26
- children?: any;
27
+ children?: VNodeChild;
27
28
  /** 启用搜索过滤 */
28
29
  searchable?: boolean;
29
30
  /** 多选模式(searchable 下生效;value/onChange 为数组) */
@@ -1,3 +1,4 @@
1
+ /** SessionList:会话管理列表:分组(今天/昨天/更早)+ 搜索 + 选中 + 重命名/删除/新建 + 键盘导航(showcase /components/sessionlist) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  import type { UIContext } from '../../vdom/index.ts';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /** SheetGrid:weifuwu/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座) 设计():文档 = fold(事件流)——SheetGrid 的每个(showcase /components/sheetgrid) */
1
2
  /**
2
3
  * weifuwu/components/SheetGrid — xlsx 网格编辑器(ODES 事件流底座)
3
4
  *
@@ -1,3 +1,4 @@
1
+ /** Skeleton:text/circle/rect/image/avatar/table 六种变体(showcase /components/skeleton) */
1
2
  /**
2
3
  * weifuwu/components — Skeleton
3
4
  */
@@ -1,3 +1,4 @@
1
+ /** SlideCanvas:weifuwu/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3) 设计():文档 = fold(事件流)——每个编辑 =(showcase /components/slidecanvas) */
1
2
  /**
2
3
  * weifuwu/components/SlideCanvas — pptx 画布编辑器(ODES 事件流——阶段 3)
3
4
  *
@@ -1,3 +1,4 @@
1
+ /** Slider:范围滑块,支持 min/max/step/label(showcase /components/slider) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface SliderMark {
3
4
  value: number;
@@ -1,3 +1,4 @@
1
+ /** SortableList:拖拽排序列表——useDragDrop 原语 + keyed 身份(任务/字段/配置排序)(showcase /components/sortablelist) */
1
2
  /**
2
3
  * SortableList — 拖拽排序列表(useDragDrop 原语 + keyed 复用)
3
4
  *
@@ -1,16 +1,17 @@
1
+ /** Space:间距容器:size/direction/wrap + split 分隔符(showcase /components/space) */
1
2
  /**
2
3
  * weifuwu/components — Space 间距容器
3
4
  *
4
5
  * 三库等价:antd Space / EP Space。flex gap 布局原语组件化:
5
6
  * size/direction/wrap/align + split 分隔符。
6
7
  */
7
- import type { Component } from '../../vdom/index.ts';
8
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
8
9
  export interface SpaceProps {
9
10
  size?: number | 'sm' | 'md' | 'lg';
10
11
  direction?: 'horizontal' | 'vertical';
11
12
  wrap?: boolean;
12
13
  align?: 'start' | 'center' | 'end' | 'baseline';
13
14
  split?: any;
14
- children?: any;
15
+ children?: VNodeChild;
15
16
  }
16
17
  export declare const Space: Component<SpaceProps>;
@@ -1,3 +1,4 @@
1
+ /** Sparkline:迷你趋势线:SVG 自绘 + 归一化 + 平滑曲线 + 面积填充(showcase /components/sparkline) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface SparklineProps {
3
4
  /** 数据序列 */
@@ -1,3 +1,4 @@
1
+ /** Sparkline:迷你趋势线:SVG 自绘 + 归一化 + 平滑曲线 + 面积填充(showcase /components/sparkline) */
1
2
  export interface SparklinePoint {
2
3
  x: number;
3
4
  y: number;
@@ -1,3 +1,4 @@
1
+ /** StatCard:KPI 指标卡,支持 trend/icon(showcase /components/statcard) */
1
2
  import type { Component, VNode } from '../../vdom/index.ts';
2
3
  export interface StatCardProps {
3
4
  label: string;
@@ -1,3 +1,4 @@
1
+ /** Steps:分步指示器,支持 active/current(showcase /components/steps) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface StepItem {
3
4
  key: string;
@@ -1,3 +1,4 @@
1
+ /** Switch:开关切换,视觉替代 checkbox(showcase /components/switch) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface SwitchProps {
3
4
  label?: string;
@@ -1,3 +1,4 @@
1
+ /** TabBar:底部标签栏——移动端 App 主导航(3-5 tab + icon/badge/受控激活 + safe-area 避让)(showcase /components/tabbar) */
1
2
  /**
2
3
  * weifuwu/components — TabBar 底部标签栏(移动端导航)
3
4
  *
@@ -1,4 +1,5 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** Table:可排序 + 自定义 render + 空状态(showcase /components/table) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface TableColumn {
3
4
  key: string;
4
5
  label: string;
@@ -8,7 +9,7 @@ export interface TableColumn {
8
9
  /** 自定义排序函数,默认按字符串比较 */
9
10
  sorter?: (a: any, b: any) => number;
10
11
  /** 自定义渲染 */
11
- render?: (value: any, row: any, index: number) => any;
12
+ render?: (value: VNodeChild, row: any, index: number) => any;
12
13
  /** 行内编辑(点击单元格 → input → Enter/失焦提交)——需配合 TableProps.onCellEdit */
13
14
  editable?: boolean;
14
15
  /** 固定列(横向滚动时保持可见)——fixed='left'/'right' 必须显式 width */
@@ -1,8 +1,9 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** Tabs:标签页切换,支持 active/onChange(showcase /components/tabs) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface TabItem {
3
4
  key: string;
4
5
  label: string;
5
- content?: any;
6
+ content?: VNodeChild;
6
7
  /** 单个 tab 禁用关闭(closable 模式下的白名单豁免) */
7
8
  closable?: boolean;
8
9
  }
@@ -1,8 +1,9 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** Tag:标签,支持 closable/onClose(showcase /components/tag) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface TagProps {
3
4
  closable?: boolean;
4
5
  onClose?: () => void;
5
6
  variant?: 'default' | 'primary' | 'success' | 'danger';
6
- children?: any;
7
+ children?: VNodeChild;
7
8
  }
8
9
  export declare const Tag: Component<TagProps>;
@@ -1,3 +1,4 @@
1
+ /** TagsInput:标签输入:回车/逗号添加 + 中文输入法感知(showcase /components/tagsinput) */
1
2
  /**
2
3
  * weifuwu/components — TagsInput
3
4
  *
@@ -1,3 +1,4 @@
1
+ /** Textarea:多行文本,支持 rows/label/error/hint(showcase /components/textarea) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface TextareaProps {
3
4
  label?: string;
@@ -1,3 +1,4 @@
1
+ /** ThemeSwitch:主题切换:auto/light/dark,localStorage 持久化(showcase /components/themeswitch) */
1
2
  /**
2
3
  * weifuwu/components — ThemeSwitch 主题切换器
3
4
  *
@@ -1,3 +1,4 @@
1
+ /** Timeline:时间线:节点状态色 + 时间 + 内容(执行日志/审批历史)(showcase /components/timeline) */
1
2
  /**
2
3
  * weifuwu/components — Timeline
3
4
  *
@@ -6,16 +7,16 @@
6
7
  * 用于执行日志、审批历史、审计记录、步骤进度。
7
8
  * 裁剪(CS-05,见 docs/client.md):不做折叠节点。
8
9
  */
9
- import type { Component } from '../../vdom/index.ts';
10
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
10
11
  export type TimelineStatus = 'default' | 'info' | 'success' | 'warning' | 'error';
11
12
  export interface TimelineItem {
12
13
  key: string;
13
- title: any;
14
+ title?: VNodeChild;
14
15
  time?: string;
15
- content?: any;
16
+ content?: VNodeChild;
16
17
  status?: TimelineStatus;
17
18
  /** 自定义节点内容(覆盖状态圆点) */
18
- dot?: any;
19
+ dot?: VNodeChild;
19
20
  onClick?: () => void;
20
21
  }
21
22
  export interface TimelineProps {
@@ -1,3 +1,4 @@
1
+ /** Toast:5 种位置 + 自动消失 + 数量限制(showcase /components/toast) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export type ToastType = 'success' | 'error' | 'info' | 'warning';
3
4
  export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center';
@@ -1,4 +1,5 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** ToggleGroup:(无 demo 卡片——组件目录存在)(showcase /components/togglegroup) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface ToggleProps {
3
4
  /** 按下状态(受控) */
4
5
  pressed?: boolean;
@@ -7,13 +8,13 @@ export interface ToggleProps {
7
8
  size?: 'sm' | 'md' | 'lg';
8
9
  disabled?: boolean;
9
10
  'aria-label'?: string;
10
- children?: any;
11
+ children?: VNodeChild;
11
12
  className?: string;
12
13
  [key: string]: any;
13
14
  }
14
15
  export interface ToggleGroupOption {
15
16
  value: string;
16
- label?: any;
17
+ label?: VNodeChild;
17
18
  disabled?: boolean;
18
19
  }
19
20
  export interface ToggleGroupProps {
@@ -1,3 +1,4 @@
1
+ /** ToolCallCard:工具调用卡片:running / ok / error 状态机(call/progress/result 三字段驱动)(showcase /components/toolcallcard) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  import type { WfToolCall, WfToolProgress, WfToolResult } from '../../../server/ai/types.ts';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /** Tooltip:hover 浮动提示,4 方向(showcase /components/tooltip) */
1
2
  /**
2
3
  * weifuwu/components — Tooltip
3
4
  *
@@ -5,13 +6,13 @@
5
6
  * (触屏自动降级 tap)+ 定位/视口 clamp + Escape + 外部点击关闭。
6
7
  * 移动端友好由构造保证——tap 可显、44px 命中区走 base coarse 清单。
7
8
  */
8
- import type { Component } from '../../vdom/index.ts';
9
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
9
10
  import type { Placement } from '../../vdom/hooks/popup.ts';
10
11
  export type TooltipPosition = Placement;
11
12
  export interface TooltipProps {
12
13
  content: string;
13
14
  position?: TooltipPosition;
14
- children: any;
15
+ children?: VNodeChild;
15
16
  disabled?: boolean;
16
17
  }
17
18
  export declare const Tooltip: Component<TooltipProps>;
@@ -1,3 +1,4 @@
1
+ /** Tour:新手引导:步骤气泡 + 目标高亮 + 遮罩 + 键盘 Escape(showcase /components/tour) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export type TourPlacement = 'top' | 'bottom' | 'left' | 'right';
3
4
  export interface TourStep {
@@ -1,3 +1,4 @@
1
+ /** Transfer:穿梭框:双列表 + 选中移动(antd/EP Transfer)(showcase /components/transfer) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  export interface TransferItem {
3
4
  key: string;
@@ -1,10 +1,11 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** Tree:树形:递归模型 + 勾选父子联动 + indeterminate(antd/EP Tree)(showcase /components/tree) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface TreeNode {
3
4
  key: string;
4
5
  label: string;
5
6
  children?: TreeNode[];
6
7
  disabled?: boolean;
7
- icon?: any;
8
+ icon?: VNodeChild;
8
9
  }
9
10
  export interface TreeProps {
10
11
  data?: TreeNode[];
@@ -1,3 +1,4 @@
1
+ /** TreeSelect:树形选择:单选/多选(父子联动)+ 选中 label 回显 + 受控纪律(showcase /components/treeselect) */
1
2
  import type { Component } from '../../vdom/index.ts';
2
3
  import type { TreeNode } from '../Tree/Tree.ts';
3
4
  export interface TreeSelectProps {
@@ -1,9 +1,10 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** Typography:Title/Text/Paragraph:语义标签 + 语义色 -text 变体 + mark/code/删除线(showcase /components/typography) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export type TextType = 'secondary' | 'success' | 'warning' | 'danger';
3
4
  export interface TitleProps {
4
5
  /** 1-5,默认 1(h1-h5) */
5
6
  level?: 1 | 2 | 3 | 4 | 5;
6
- children?: any;
7
+ children?: VNodeChild;
7
8
  className?: string;
8
9
  style?: Record<string, string>;
9
10
  [key: string]: any;
@@ -19,7 +20,7 @@ export interface TextProps {
19
20
  /** 行内代码 */
20
21
  code?: boolean;
21
22
  size?: 'xs' | 'sm' | 'md' | 'lg';
22
- children?: any;
23
+ children?: VNodeChild;
23
24
  className?: string;
24
25
  [key: string]: any;
25
26
  }
@@ -27,7 +28,7 @@ export interface ParagraphProps {
27
28
  type?: TextType;
28
29
  /** 单行截断(ellipsis) */
29
30
  ellipsis?: boolean;
30
- children?: any;
31
+ children?: VNodeChild;
31
32
  className?: string;
32
33
  [key: string]: any;
33
34
  }
@@ -1,3 +1,4 @@
1
+ /** VideoPlayer:视频播放器——原生 video 封装(controls/封面/宽高比/事件——零依赖)(showcase /components/videoplayer) */
1
2
  /**
2
3
  * VideoPlayer — 视频播放器(原生 video 封装——零依赖)
3
4
  *
@@ -1,14 +1,15 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** VirtualList:虚拟列表:spacer + 可见窗口,200 条只渲染 ~12 个 DOM(showcase /components/virtuallist) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface VirtualListProps {
3
4
  items?: any[];
4
5
  /** 视口高度(px) */
5
6
  height?: number;
6
7
  /** 固定 item 高度(px)——虚拟滚动的基础 */
7
8
  itemHeight?: number;
8
- renderItem?: (item: any, index: number) => any;
9
+ renderItem?: (item: VNodeChild, index: number) => any;
9
10
  /** 可见区外额外渲染数量 */
10
11
  overscan?: number;
11
- keyBy?: (item: any, index: number) => string | number;
12
+ keyBy?: (item: VNodeChild, index: number) => string | number;
12
13
  /** 空数据占位(F2 状态矩阵——容器类基线) */
13
14
  emptyText?: string;
14
15
  className?: string;
@@ -1,3 +1,4 @@
1
+ /** VirtualTable:虚拟表格:10k 行固定表头 + 可见窗口渲染 + 排序(showcase /components/virtualtable) */
1
2
  /**
2
3
  * weifuwu/components — VirtualTable
3
4
  *
@@ -1,4 +1,5 @@
1
- import type { Component } from '../../vdom/index.ts';
1
+ /** Watermark:水印:canvas 平铺绘制 + overlay(antd Watermark)(showcase /components/watermark) */
2
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
2
3
  export interface WatermarkProps {
3
4
  /** 水印文字 */
4
5
  text?: string;
@@ -11,7 +12,7 @@ export interface WatermarkProps {
11
12
  rotate?: number;
12
13
  /** 平铺间距(px),默认 100 */
13
14
  gap?: number;
14
- children?: any;
15
+ children?: VNodeChild;
15
16
  className?: string;
16
17
  }
17
18
  /** 水印(对应 antd Watermark):canvas 绘制平铺文字 + overlay 覆盖内容(pointer-events none)。
@@ -1,3 +1,4 @@
1
+ /** Wave:点击水波纹动效——包装任意可点击元素(纯 CSS,reduced-motion 自动降级)(showcase /components/wave) */
1
2
  /**
2
3
  * Wave — 点击水波纹动效(antd Wave 等价,纯 CSS 实现零依赖)
3
4
  *
@@ -5,9 +6,9 @@
5
6
  * 实现:点击 → 在点击坐标生成波纹元素(absolute 圆形)→ 动画扩散消失
6
7
  * 纪律:动效走 --wf-dur-*;reduced-motion 自动降级(_base.css)
7
8
  */
8
- import type { Component } from '../../vdom/index.ts';
9
+ import type { Component, VNodeChild } from '../../vdom/index.ts';
9
10
  export interface WaveProps {
10
- children?: any;
11
+ children?: VNodeChild;
11
12
  className?: string;
12
13
  /** 波纹颜色(默认 currentColor 12% 透明) */
13
14
  color?: string;
@@ -1,3 +1,4 @@
1
+ /** WordCloud:词云——权重→字号映射 · 圆心同心环发散布局 · SVG textLength 定宽(零依赖自绘——SSR 一致零重叠)(showcase /components/wordcloud) */
1
2
  /**
2
3
  * weifuwu/components — WordCloud
3
4
  *