@robot-admin/naive-ui-components 0.31.5 → 0.33.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/CHANGELOG.md +18 -0
- package/README.md +11 -5
- package/README_EN.md +11 -5
- package/dist/C_AutoComplete.cjs +1 -0
- package/dist/C_AutoComplete.css +36 -0
- package/dist/C_AutoComplete.d.cts +4 -0
- package/dist/C_AutoComplete.d.ts +4 -0
- package/dist/C_AutoComplete.js +1 -0
- package/dist/C_AutoComplete2.cjs +1 -0
- package/dist/C_AutoComplete2.js +1 -0
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_BatchResult.d.cts +1 -1
- package/dist/C_BatchResult.d.ts +1 -1
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.css +235 -31
- package/dist/C_DataPicker.d.cts +2 -2
- package/dist/C_DataPicker.d.ts +2 -2
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_Form.base.css +68 -1
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +68 -1
- package/dist/C_Form.d.cts +3 -3
- package/dist/C_Form.d.ts +5 -3
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.cjs +1 -1
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +3 -1
- package/dist/C_FormModal.js +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +160 -72
- package/dist/C_FormSearch.d.cts +3 -3
- package/dist/C_FormSearch.d.ts +3 -3
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.cts +2 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Select.css +32 -1
- package/dist/C_Select.d.cts +4 -2
- package/dist/C_Select.d.ts +4 -2
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +214 -147
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +146 -146
- package/dist/C_Table.d.cts +3 -3
- package/dist/C_Table.d.ts +13 -10
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +4 -3
- package/dist/C_Table2.js +4 -3
- package/dist/C_TagsView.css +51 -51
- package/dist/C_TagsView.d.cts +2 -2
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.cjs +1 -1
- package/dist/C_Tree.css +60 -23
- package/dist/C_Tree.d.cts +2 -2
- package/dist/C_Tree.d.ts +12 -9
- package/dist/C_Tree.js +1 -1
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/OptionStatus.cjs +1 -0
- package/dist/OptionStatus.js +1 -0
- package/dist/SearchFieldSettings.cjs +1 -0
- package/dist/SearchFieldSettings.js +1 -0
- package/dist/constants4.d.cts +9 -9
- package/dist/constants4.d.ts +9 -9
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +2 -1
- package/dist/data.d.ts +2 -1
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/dateRange.d.cts +52 -7
- package/dist/dateRange.d.ts +52 -7
- package/dist/editors.cjs +1 -0
- package/dist/{useTableQuery.d.cts → editors.d.cts} +120 -13
- package/dist/{useTableQuery.d.ts → editors.d.ts} +120 -13
- package/dist/editors.js +1 -0
- package/dist/fieldRenderers.cjs +1 -0
- package/dist/fieldRenderers.js +1 -0
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +79 -29
- package/dist/formField.d.ts +79 -29
- package/dist/formField.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +63 -59
- package/dist/index.d.ts +63 -58
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +5 -5
- package/dist/index.vue.d.ts +5 -5
- package/dist/index10.vue.d.cts +27 -35
- package/dist/index10.vue.d.ts +37 -80
- package/dist/index11.vue.d.cts +37 -80
- package/dist/index11.vue.d.ts +83 -16
- package/dist/index12.vue.d.cts +83 -16
- package/dist/index12.vue.d.ts +16 -59
- package/dist/index13.vue.d.cts +16 -59
- package/dist/index13.vue.d.ts +57 -17
- package/dist/index14.vue.d.cts +57 -17
- package/dist/index14.vue.d.ts +18 -55
- package/dist/index15.vue.d.cts +18 -55
- package/dist/index15.vue.d.ts +53 -124
- package/dist/index16.vue.d.cts +53 -124
- package/dist/index16.vue.d.ts +123 -51
- package/dist/index17.vue.d.cts +123 -51
- package/dist/index17.vue.d.ts +52 -25
- package/dist/index18.vue.d.cts +52 -25
- package/dist/index18.vue.d.ts +25 -12
- package/dist/index19.vue.d.cts +25 -12
- package/dist/index19.vue.d.ts +13 -129
- package/dist/index2.vue.d.cts +26 -82
- package/dist/index2.vue.d.ts +26 -82
- package/dist/index20.vue.d.cts +13 -129
- package/dist/index20.vue.d.ts +129 -76
- package/dist/index21.vue.d.cts +129 -76
- package/dist/index21.vue.d.ts +78 -72
- package/dist/index22.vue.d.cts +75 -97
- package/dist/index22.vue.d.ts +68 -96
- package/dist/index23.vue.d.cts +91 -40
- package/dist/index23.vue.d.ts +91 -40
- package/dist/index24.vue.d.cts +49 -23
- package/dist/index24.vue.d.ts +49 -23
- package/dist/index25.vue.d.cts +19 -46
- package/dist/index25.vue.d.ts +19 -46
- package/dist/index26.vue.d.cts +25 -98
- package/dist/index26.vue.d.ts +25 -98
- package/dist/index27.vue.d.cts +95 -37
- package/dist/index27.vue.d.ts +95 -37
- package/dist/index28.vue.d.cts +34 -8
- package/dist/index28.vue.d.ts +34 -8
- package/dist/index29.vue.d.cts +9 -86
- package/dist/index29.vue.d.ts +9 -86
- package/dist/index3.vue.d.cts +80 -30
- package/dist/index3.vue.d.ts +80 -30
- package/dist/index30.vue.d.cts +85 -99
- package/dist/index30.vue.d.ts +85 -99
- package/dist/index31.vue.d.cts +94 -63
- package/dist/index31.vue.d.ts +94 -63
- package/dist/index32.vue.d.cts +79 -0
- package/dist/index32.vue.d.ts +79 -0
- package/dist/index4.vue.d.cts +30 -19
- package/dist/index4.vue.d.ts +30 -19
- package/dist/index5.vue.d.cts +19 -128
- package/dist/index5.vue.d.ts +17 -34
- package/dist/index6.vue.d.cts +127 -35
- package/dist/index6.vue.d.ts +30 -22
- package/dist/index7.vue.d.cts +30 -22
- package/dist/index7.vue.d.ts +25 -118
- package/dist/index8.vue.d.cts +25 -118
- package/dist/index8.vue.d.ts +112 -21
- package/dist/index9.vue.d.cts +112 -21
- package/dist/index9.vue.d.ts +27 -35
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/optionSource.d.cts +30 -0
- package/dist/optionSource.d.ts +30 -0
- package/dist/public.d.ts +2 -0
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/selectPresentation.cjs +1 -1
- package/dist/selectPresentation.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/sourceControls.cjs +1 -0
- package/dist/sourceControls.js +1 -0
- package/dist/style.css +513 -324
- package/dist/types2.d.cts +29 -103
- package/dist/types2.d.ts +30 -55
- package/dist/types3.d.cts +106 -55
- package/dist/types3.d.ts +60 -0
- package/dist/types4.d.cts +60 -0
- package/dist/types4.d.ts +50 -0
- package/dist/types5.d.cts +50 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDataResource.cjs +1 -1
- package/dist/useDataResource.js +1 -1
- package/dist/useDraggableLayout.d.cts +2 -2
- package/dist/useDraggableLayout.d.ts +2 -2
- package/dist/useDynamicFormState.d.cts +17 -3
- package/dist/useDynamicFormState.d.ts +17 -3
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormConfig.d.cts +5 -2
- package/dist/useFormConfig.d.ts +5 -2
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useGlobalSearch.d.cts +8 -0
- package/dist/useGlobalSearch.d.ts +8 -0
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useWorkflowValidation.d.cts +4 -4
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/dist/verification.d.cts +6 -6
- package/dist/verification.d.ts +6 -6
- package/docs/architecture.md +3 -1
- package/docs/components.en.md +2 -1
- package/docs/components.md +2 -1
- package/docs/engineering.en.md +11 -1
- package/docs/engineering.md +11 -1
- package/docs/guides/component-contracts.md +72 -0
- package/docs/guides/data-picker.md +37 -1
- package/docs/guides/remote-options.md +117 -0
- package/docs/guides/search-workflows.md +162 -2
- package/docs/guides/table-editing.md +79 -0
- package/docs/guides/tree.en.md +41 -0
- package/docs/guides/tree.md +80 -1
- package/docs/search-selection-coverage.md +59 -0
- package/docs/wl-ui-produce-coverage.md +2 -0
- package/package.json +6 -3
- package/dist/helpers2.cjs +0 -1
- package/dist/helpers2.js +0 -1
- package/dist/temporalField.cjs +0 -1
- package/dist/temporalField.js +0 -1
- package/dist/useTableQuery.cjs +0 -1
- package/dist/useTableQuery.js +0 -1
package/dist/index23.vue.d.cts
CHANGED
|
@@ -1,47 +1,98 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { CSSProperties } from "vue";
|
|
3
2
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
indicatorTextColor?: string;
|
|
24
|
-
offsetDegree?: number;
|
|
25
|
-
railColor?: string | string[];
|
|
26
|
-
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
-
showIndicator?: boolean;
|
|
28
|
-
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
-
strokeWidth?: number;
|
|
30
|
-
unit?: string;
|
|
3
|
+
//#region src/components/C_OrgChart/types.d.ts
|
|
4
|
+
/** 节点数据 */
|
|
5
|
+
interface OrgChartNode {
|
|
6
|
+
/** 唯一标识 */
|
|
7
|
+
id: string | number;
|
|
8
|
+
/** 节点标题(姓名/部门名) */
|
|
9
|
+
label: string;
|
|
10
|
+
/** 副标题(职位/描述) */
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/** 头像 URL */
|
|
13
|
+
avatar?: string;
|
|
14
|
+
/** 子节点 */
|
|
15
|
+
children?: OrgChartNode[];
|
|
16
|
+
/** 自定义 CSS 类 */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** 节点是否默认折叠 */
|
|
19
|
+
collapsed?: boolean;
|
|
20
|
+
/** 节点额外数据(透传给插槽/事件) */
|
|
21
|
+
data?: Record<string, unknown>;
|
|
31
22
|
}
|
|
32
|
-
|
|
23
|
+
/** 布局方向 */
|
|
24
|
+
type OrgChartDirection = 'vertical' | 'horizontal';
|
|
25
|
+
/** 连线样式 */
|
|
26
|
+
type OrgChartLineStyle = 'straight' | 'rounded' | 'stepped';
|
|
27
|
+
/** C_OrgChart Props */
|
|
28
|
+
interface OrgChartProps {
|
|
29
|
+
/** 树形数据 */
|
|
30
|
+
data: OrgChartNode;
|
|
31
|
+
/** 布局方向 */
|
|
32
|
+
direction?: OrgChartDirection;
|
|
33
|
+
/** 连线样式 */
|
|
34
|
+
lineStyle?: OrgChartLineStyle;
|
|
35
|
+
/** 连线颜色 */
|
|
36
|
+
lineColor?: string;
|
|
37
|
+
/** 连线宽度(px) */
|
|
38
|
+
lineWidth?: number;
|
|
39
|
+
/** 节点间距(px) */
|
|
40
|
+
nodeSpacing?: number;
|
|
41
|
+
/** 层级间距(px) */
|
|
42
|
+
levelSpacing?: number;
|
|
43
|
+
/** 是否支持缩放 */
|
|
44
|
+
zoomable?: boolean;
|
|
45
|
+
/** 是否支持平移 */
|
|
46
|
+
pannable?: boolean;
|
|
47
|
+
/** 初始缩放比例 */
|
|
48
|
+
initialZoom?: number;
|
|
49
|
+
/** 首次渲染与数据、布局变化时适配完整树形范围。 */
|
|
50
|
+
fitOnInit?: boolean;
|
|
51
|
+
/** 最小缩放 */
|
|
52
|
+
minZoom?: number;
|
|
53
|
+
/** 最大缩放 */
|
|
54
|
+
maxZoom?: number;
|
|
55
|
+
/** 是否可折叠 */
|
|
56
|
+
collapsible?: boolean;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/C_OrgChart/index.vue.d.ts
|
|
60
|
+
declare var __VLS_12: {
|
|
61
|
+
node: OrgChartNode;
|
|
62
|
+
isLeaf: boolean;
|
|
63
|
+
isExpanded: boolean;
|
|
64
|
+
};
|
|
33
65
|
type __VLS_Slots = {} & {
|
|
34
|
-
|
|
66
|
+
node?: (props: typeof __VLS_12) => any;
|
|
35
67
|
};
|
|
36
|
-
declare const __VLS_base: vue.DefineComponent<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
68
|
+
declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
|
|
69
|
+
zoomIn: () => void;
|
|
70
|
+
zoomOut: () => void;
|
|
71
|
+
resetView: () => void;
|
|
72
|
+
fitView: () => Promise<void>;
|
|
73
|
+
zoom: vue.Ref<number, number>;
|
|
74
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
|
+
"node-click": (node: OrgChartNode) => any;
|
|
76
|
+
"node-expand": (node: OrgChartNode) => any;
|
|
77
|
+
"node-collapse": (node: OrgChartNode) => any;
|
|
78
|
+
}, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
|
|
79
|
+
"onNode-click"?: ((node: OrgChartNode) => any) | undefined;
|
|
80
|
+
"onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
|
|
81
|
+
"onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
direction: OrgChartDirection;
|
|
84
|
+
lineColor: string;
|
|
85
|
+
lineWidth: number;
|
|
86
|
+
lineStyle: OrgChartLineStyle;
|
|
87
|
+
nodeSpacing: number;
|
|
88
|
+
levelSpacing: number;
|
|
89
|
+
zoomable: boolean;
|
|
90
|
+
pannable: boolean;
|
|
91
|
+
initialZoom: number;
|
|
92
|
+
fitOnInit: boolean;
|
|
93
|
+
minZoom: number;
|
|
94
|
+
maxZoom: number;
|
|
95
|
+
collapsible: boolean;
|
|
45
96
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
97
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
98
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,4 +102,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
51
102
|
};
|
|
52
103
|
};
|
|
53
104
|
//#endregion
|
|
54
|
-
export { _default as t };
|
|
105
|
+
export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
|
package/dist/index23.vue.d.ts
CHANGED
|
@@ -1,47 +1,98 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { CSSProperties } from "vue";
|
|
3
2
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
indicatorTextColor?: string;
|
|
24
|
-
offsetDegree?: number;
|
|
25
|
-
railColor?: string | string[];
|
|
26
|
-
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
-
showIndicator?: boolean;
|
|
28
|
-
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
-
strokeWidth?: number;
|
|
30
|
-
unit?: string;
|
|
3
|
+
//#region src/components/C_OrgChart/types.d.ts
|
|
4
|
+
/** 节点数据 */
|
|
5
|
+
interface OrgChartNode {
|
|
6
|
+
/** 唯一标识 */
|
|
7
|
+
id: string | number;
|
|
8
|
+
/** 节点标题(姓名/部门名) */
|
|
9
|
+
label: string;
|
|
10
|
+
/** 副标题(职位/描述) */
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/** 头像 URL */
|
|
13
|
+
avatar?: string;
|
|
14
|
+
/** 子节点 */
|
|
15
|
+
children?: OrgChartNode[];
|
|
16
|
+
/** 自定义 CSS 类 */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** 节点是否默认折叠 */
|
|
19
|
+
collapsed?: boolean;
|
|
20
|
+
/** 节点额外数据(透传给插槽/事件) */
|
|
21
|
+
data?: Record<string, unknown>;
|
|
31
22
|
}
|
|
32
|
-
|
|
23
|
+
/** 布局方向 */
|
|
24
|
+
type OrgChartDirection = 'vertical' | 'horizontal';
|
|
25
|
+
/** 连线样式 */
|
|
26
|
+
type OrgChartLineStyle = 'straight' | 'rounded' | 'stepped';
|
|
27
|
+
/** C_OrgChart Props */
|
|
28
|
+
interface OrgChartProps {
|
|
29
|
+
/** 树形数据 */
|
|
30
|
+
data: OrgChartNode;
|
|
31
|
+
/** 布局方向 */
|
|
32
|
+
direction?: OrgChartDirection;
|
|
33
|
+
/** 连线样式 */
|
|
34
|
+
lineStyle?: OrgChartLineStyle;
|
|
35
|
+
/** 连线颜色 */
|
|
36
|
+
lineColor?: string;
|
|
37
|
+
/** 连线宽度(px) */
|
|
38
|
+
lineWidth?: number;
|
|
39
|
+
/** 节点间距(px) */
|
|
40
|
+
nodeSpacing?: number;
|
|
41
|
+
/** 层级间距(px) */
|
|
42
|
+
levelSpacing?: number;
|
|
43
|
+
/** 是否支持缩放 */
|
|
44
|
+
zoomable?: boolean;
|
|
45
|
+
/** 是否支持平移 */
|
|
46
|
+
pannable?: boolean;
|
|
47
|
+
/** 初始缩放比例 */
|
|
48
|
+
initialZoom?: number;
|
|
49
|
+
/** 首次渲染与数据、布局变化时适配完整树形范围。 */
|
|
50
|
+
fitOnInit?: boolean;
|
|
51
|
+
/** 最小缩放 */
|
|
52
|
+
minZoom?: number;
|
|
53
|
+
/** 最大缩放 */
|
|
54
|
+
maxZoom?: number;
|
|
55
|
+
/** 是否可折叠 */
|
|
56
|
+
collapsible?: boolean;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/C_OrgChart/index.vue.d.ts
|
|
60
|
+
declare var __VLS_12: {
|
|
61
|
+
node: OrgChartNode;
|
|
62
|
+
isLeaf: boolean;
|
|
63
|
+
isExpanded: boolean;
|
|
64
|
+
};
|
|
33
65
|
type __VLS_Slots = {} & {
|
|
34
|
-
|
|
66
|
+
node?: (props: typeof __VLS_12) => any;
|
|
35
67
|
};
|
|
36
|
-
declare const __VLS_base: vue.DefineComponent<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
68
|
+
declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
|
|
69
|
+
zoomIn: () => void;
|
|
70
|
+
zoomOut: () => void;
|
|
71
|
+
resetView: () => void;
|
|
72
|
+
fitView: () => Promise<void>;
|
|
73
|
+
zoom: vue.Ref<number, number>;
|
|
74
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
|
+
"node-click": (node: OrgChartNode) => any;
|
|
76
|
+
"node-expand": (node: OrgChartNode) => any;
|
|
77
|
+
"node-collapse": (node: OrgChartNode) => any;
|
|
78
|
+
}, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
|
|
79
|
+
"onNode-click"?: ((node: OrgChartNode) => any) | undefined;
|
|
80
|
+
"onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
|
|
81
|
+
"onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
direction: OrgChartDirection;
|
|
84
|
+
lineColor: string;
|
|
85
|
+
lineWidth: number;
|
|
86
|
+
lineStyle: OrgChartLineStyle;
|
|
87
|
+
nodeSpacing: number;
|
|
88
|
+
levelSpacing: number;
|
|
89
|
+
zoomable: boolean;
|
|
90
|
+
pannable: boolean;
|
|
91
|
+
initialZoom: number;
|
|
92
|
+
fitOnInit: boolean;
|
|
93
|
+
minZoom: number;
|
|
94
|
+
maxZoom: number;
|
|
95
|
+
collapsible: boolean;
|
|
45
96
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
97
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
98
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,4 +102,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
51
102
|
};
|
|
52
103
|
};
|
|
53
104
|
//#endregion
|
|
54
|
-
export { _default as t };
|
|
105
|
+
export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
|
package/dist/index24.vue.d.cts
CHANGED
|
@@ -1,28 +1,54 @@
|
|
|
1
|
-
import { n as ComponentLocale } from "./contracts.cjs";
|
|
2
1
|
import * as vue from "vue";
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
//#region src/components/C_Progress/index.vue.d.ts
|
|
5
|
+
type CSS = CSSProperties | string;
|
|
6
|
+
interface Props {
|
|
7
|
+
percentage: number | number[];
|
|
8
|
+
isAnimation?: boolean;
|
|
9
|
+
time?: number;
|
|
10
|
+
type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
|
|
11
|
+
borderRadius?: number | string;
|
|
12
|
+
circleGap?: number;
|
|
13
|
+
color?: string | string[] | {
|
|
14
|
+
stops: string[];
|
|
15
|
+
} | Array<{
|
|
16
|
+
stops: string[];
|
|
17
|
+
}>;
|
|
18
|
+
fillBorderRadius?: number | string;
|
|
19
|
+
gapDegree?: number;
|
|
20
|
+
gapOffsetDegree?: number;
|
|
21
|
+
height?: number;
|
|
22
|
+
indicatorPlacement?: 'inside' | 'outside';
|
|
23
|
+
indicatorTextColor?: string;
|
|
24
|
+
offsetDegree?: number;
|
|
25
|
+
railColor?: string | string[];
|
|
26
|
+
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
+
showIndicator?: boolean;
|
|
28
|
+
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
+
strokeWidth?: number;
|
|
30
|
+
unit?: string;
|
|
10
31
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
declare var __VLS_9: {};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
indicator?: (props: typeof __VLS_9) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
37
|
+
status: "default" | "success" | "error" | "warning" | "info";
|
|
38
|
+
strokeWidth: number;
|
|
39
|
+
time: number;
|
|
40
|
+
percentage: number | number[];
|
|
41
|
+
isAnimation: boolean;
|
|
42
|
+
indicatorPlacement: "inside" | "outside";
|
|
43
|
+
showIndicator: boolean;
|
|
44
|
+
unit: string;
|
|
45
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
47
|
declare const _default: typeof __VLS_export;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
27
53
|
//#endregion
|
|
28
|
-
export {
|
|
54
|
+
export { _default as t };
|
package/dist/index24.vue.d.ts
CHANGED
|
@@ -1,28 +1,54 @@
|
|
|
1
|
-
import { n as ComponentLocale } from "./contracts.js";
|
|
2
1
|
import * as vue from "vue";
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
//#region src/components/C_Progress/index.vue.d.ts
|
|
5
|
+
type CSS = CSSProperties | string;
|
|
6
|
+
interface Props {
|
|
7
|
+
percentage: number | number[];
|
|
8
|
+
isAnimation?: boolean;
|
|
9
|
+
time?: number;
|
|
10
|
+
type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
|
|
11
|
+
borderRadius?: number | string;
|
|
12
|
+
circleGap?: number;
|
|
13
|
+
color?: string | string[] | {
|
|
14
|
+
stops: string[];
|
|
15
|
+
} | Array<{
|
|
16
|
+
stops: string[];
|
|
17
|
+
}>;
|
|
18
|
+
fillBorderRadius?: number | string;
|
|
19
|
+
gapDegree?: number;
|
|
20
|
+
gapOffsetDegree?: number;
|
|
21
|
+
height?: number;
|
|
22
|
+
indicatorPlacement?: 'inside' | 'outside';
|
|
23
|
+
indicatorTextColor?: string;
|
|
24
|
+
offsetDegree?: number;
|
|
25
|
+
railColor?: string | string[];
|
|
26
|
+
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
+
showIndicator?: boolean;
|
|
28
|
+
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
+
strokeWidth?: number;
|
|
30
|
+
unit?: string;
|
|
10
31
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
declare var __VLS_9: {};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
indicator?: (props: typeof __VLS_9) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
37
|
+
status: "default" | "success" | "error" | "warning" | "info";
|
|
38
|
+
strokeWidth: number;
|
|
39
|
+
time: number;
|
|
40
|
+
percentage: number | number[];
|
|
41
|
+
isAnimation: boolean;
|
|
42
|
+
indicatorPlacement: "inside" | "outside";
|
|
43
|
+
showIndicator: boolean;
|
|
44
|
+
unit: string;
|
|
45
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
47
|
declare const _default: typeof __VLS_export;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
27
53
|
//#endregion
|
|
28
|
-
export {
|
|
54
|
+
export { _default as t };
|
package/dist/index25.vue.d.cts
CHANGED
|
@@ -1,55 +1,28 @@
|
|
|
1
|
+
import { n as ComponentLocale } from "./contracts.cjs";
|
|
1
2
|
import * as vue from "vue";
|
|
2
|
-
import { SelectProps } from "naive-ui";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
//#region src/components/C_SectionNav/types.d.ts
|
|
5
|
+
interface SectionNavItem {
|
|
6
|
+
key: string;
|
|
7
7
|
label: string;
|
|
8
|
-
|
|
8
|
+
errorCount?: number;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
[key: string]: unknown;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
modelValue?:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
filterable?: boolean;
|
|
18
|
-
/** 允许输入列表外的字符串,与 filterable 一起使用。 */
|
|
19
|
-
tag?: boolean & T;
|
|
20
|
-
clearable?: boolean;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
readonly?: boolean;
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
maxTagCount?: SelectProps['maxTagCount'];
|
|
26
|
-
size?: SelectProps['size'];
|
|
27
|
-
status?: SelectProps['status'];
|
|
28
|
-
virtualScroll?: SelectProps['virtualScroll'];
|
|
29
|
-
inputProps?: SelectProps['inputProps'];
|
|
30
|
-
fallbackOption?: SelectProps['fallbackOption'];
|
|
11
|
+
interface SectionNavProps {
|
|
12
|
+
items: readonly SectionNavItem[];
|
|
13
|
+
modelValue?: string;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
locale?: ComponentLocale;
|
|
31
16
|
}
|
|
32
17
|
//#endregion
|
|
33
|
-
//#region src/components/
|
|
34
|
-
declare const __VLS_export: <
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
focus: () => void | undefined;
|
|
42
|
-
blur: () => void | undefined;
|
|
43
|
-
}>) => void;
|
|
44
|
-
attrs: any;
|
|
45
|
-
slots: {
|
|
46
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
47
|
-
};
|
|
48
|
-
emit: (evt: "update:modelValue", value: SelectModelValue<V, M, T>) => void;
|
|
49
|
-
}>) => vue.VNode & {
|
|
50
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
51
|
-
};
|
|
18
|
+
//#region src/components/C_SectionNav/index.vue.d.ts
|
|
19
|
+
declare const __VLS_export: vue.DefineComponent<SectionNavProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
20
|
+
select: (key: string) => any;
|
|
21
|
+
"update:modelValue": (key: string) => any;
|
|
22
|
+
}, string, vue.PublicProps, Readonly<SectionNavProps> & Readonly<{
|
|
23
|
+
onSelect?: ((key: string) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
52
26
|
declare const _default: typeof __VLS_export;
|
|
53
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
54
27
|
//#endregion
|
|
55
|
-
export {
|
|
28
|
+
export { SectionNavItem as n, SectionNavProps as r, _default as t };
|
package/dist/index25.vue.d.ts
CHANGED
|
@@ -1,55 +1,28 @@
|
|
|
1
|
+
import { n as ComponentLocale } from "./contracts.js";
|
|
1
2
|
import * as vue from "vue";
|
|
2
|
-
import { SelectProps } from "naive-ui";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
//#region src/components/C_SectionNav/types.d.ts
|
|
5
|
+
interface SectionNavItem {
|
|
6
|
+
key: string;
|
|
7
7
|
label: string;
|
|
8
|
-
|
|
8
|
+
errorCount?: number;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
[key: string]: unknown;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
modelValue?:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
filterable?: boolean;
|
|
18
|
-
/** 允许输入列表外的字符串,与 filterable 一起使用。 */
|
|
19
|
-
tag?: boolean & T;
|
|
20
|
-
clearable?: boolean;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
readonly?: boolean;
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
maxTagCount?: SelectProps['maxTagCount'];
|
|
26
|
-
size?: SelectProps['size'];
|
|
27
|
-
status?: SelectProps['status'];
|
|
28
|
-
virtualScroll?: SelectProps['virtualScroll'];
|
|
29
|
-
inputProps?: SelectProps['inputProps'];
|
|
30
|
-
fallbackOption?: SelectProps['fallbackOption'];
|
|
11
|
+
interface SectionNavProps {
|
|
12
|
+
items: readonly SectionNavItem[];
|
|
13
|
+
modelValue?: string;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
locale?: ComponentLocale;
|
|
31
16
|
}
|
|
32
17
|
//#endregion
|
|
33
|
-
//#region src/components/
|
|
34
|
-
declare const __VLS_export: <
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
focus: () => void | undefined;
|
|
42
|
-
blur: () => void | undefined;
|
|
43
|
-
}>) => void;
|
|
44
|
-
attrs: any;
|
|
45
|
-
slots: {
|
|
46
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
47
|
-
};
|
|
48
|
-
emit: (evt: "update:modelValue", value: SelectModelValue<V, M, T>) => void;
|
|
49
|
-
}>) => vue.VNode & {
|
|
50
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
51
|
-
};
|
|
18
|
+
//#region src/components/C_SectionNav/index.vue.d.ts
|
|
19
|
+
declare const __VLS_export: vue.DefineComponent<SectionNavProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
20
|
+
select: (key: string) => any;
|
|
21
|
+
"update:modelValue": (key: string) => any;
|
|
22
|
+
}, string, vue.PublicProps, Readonly<SectionNavProps> & Readonly<{
|
|
23
|
+
onSelect?: ((key: string) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
52
26
|
declare const _default: typeof __VLS_export;
|
|
53
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
54
27
|
//#endregion
|
|
55
|
-
export {
|
|
28
|
+
export { SectionNavItem as n, SectionNavProps as r, _default as t };
|