weifuwu 0.66.0 → 0.67.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 +11 -11
- package/dist/client/index.js +4 -4
- package/dist/client/types.d.ts +8 -0
- package/dist/components/DiffView/DiffView.d.ts +24 -0
- package/dist/components/DiffView/diff-utils.d.ts +19 -0
- package/dist/components/Editor/tools/format.d.ts +1 -1
- package/dist/components/Kanban/Kanban.d.ts +28 -0
- package/dist/components/Pipeline/Pipeline.d.ts +27 -0
- package/dist/components/Pipeline/dag-utils.d.ts +36 -0
- package/dist/components/Sparkline/Sparkline.d.ts +21 -0
- package/dist/components/Sparkline/sparkline-utils.d.ts +16 -0
- package/dist/components/Tour/Tour.d.ts +34 -0
- package/dist/components/Tree/Tree.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelect.d.ts +24 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +15 -13
- package/dist/components/style.css +427 -0
- package/dist/index.js +3 -1
- package/dist/layout/weifuwu-layout.css +7 -0
- package/docs/components-map.md +17 -0
- package/docs/custom-components.md +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Component } from '../../client/vnode.ts';
|
|
2
|
+
import type { TreeNode } from '../Tree/Tree.ts';
|
|
3
|
+
export interface TreeSelectProps {
|
|
4
|
+
/** 树选项(复用 TreeNode 结构) */
|
|
5
|
+
options: TreeNode[];
|
|
6
|
+
/** 受控:单选 string / 多选 string[] */
|
|
7
|
+
value?: string | string[];
|
|
8
|
+
/** 受控回调:单选 key / 多选 keys[] */
|
|
9
|
+
onChange?: (value: any) => void;
|
|
10
|
+
/** 多选(checkable 父子联动语义) */
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** 在树中按 key 找 label(选中显示用) */
|
|
16
|
+
export declare function findLabel(nodes: TreeNode[], key: string): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* TreeSelect — 树形选择(Tree + 下拉组合)。
|
|
19
|
+
* 下拉经 createPortal + position:fixed(usePopupPosition 定位/跟随/夹紧)——
|
|
20
|
+
* 与 DatePicker 同模式:父容器 overflow/transform 不影响弹出层。
|
|
21
|
+
* 单选 selectedKeys / 多选 checkable checkedKeys(父子联动)。
|
|
22
|
+
* 受控纪律:value 受控无 onChange → warn。
|
|
23
|
+
*/
|
|
24
|
+
export declare const TreeSelect: Component<TreeSelectProps>;
|
|
@@ -195,3 +195,11 @@ export { QRCode } from './QRCode/QRCode.ts';
|
|
|
195
195
|
export type { QRCodeProps } from './QRCode/QRCode.ts';
|
|
196
196
|
export { generateQr } from './QRCode/qr.ts';
|
|
197
197
|
export type { QrMatrix, QrEcLevel } from './QRCode/qr.ts';
|
|
198
|
+
export { DiffView } from './DiffView/DiffView.ts';
|
|
199
|
+
export { Sparkline } from './Sparkline/Sparkline.ts';
|
|
200
|
+
export { Tour } from './Tour/Tour.ts';
|
|
201
|
+
export { Kanban } from './Kanban/Kanban.ts';
|
|
202
|
+
export { Pipeline } from './Pipeline/Pipeline.ts';
|
|
203
|
+
export { layoutGraph, computeLayers, detectCycle } from './Pipeline/dag-utils.ts';
|
|
204
|
+
export { TreeSelect } from './TreeSelect/TreeSelect.ts';
|
|
205
|
+
export { findLabel } from './TreeSelect/TreeSelect.ts';
|