@robot-admin/naive-ui-components 0.17.5 → 0.18.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.
Files changed (194) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/C_AntV.css +10 -10
  3. package/dist/C_AntV.d.cts +2 -2
  4. package/dist/C_AntV.d.ts +2 -2
  5. package/dist/C_AntV2.cjs +1 -1
  6. package/dist/C_AntV2.js +1 -1
  7. package/dist/C_Date.cjs +1 -1
  8. package/dist/C_Date.css +5 -5
  9. package/dist/C_Date.d.cts +18 -2
  10. package/dist/C_Date.d.ts +18 -2
  11. package/dist/C_Date.js +1 -1
  12. package/dist/C_Date2.cjs +1 -1
  13. package/dist/C_Date2.js +1 -1
  14. package/dist/C_Draggable.css +53 -53
  15. package/dist/C_Draggable.d.cts +2 -2
  16. package/dist/C_Draggable.d.ts +2 -2
  17. package/dist/C_Draggable2.cjs +1 -1
  18. package/dist/C_Draggable2.js +1 -1
  19. package/dist/C_Editor.d.cts +1 -1
  20. package/dist/C_Editor.d.ts +1 -1
  21. package/dist/C_FormModal.d.cts +1 -1
  22. package/dist/C_FormModal.d.ts +1 -1
  23. package/dist/C_FormSearch.cjs +1 -1
  24. package/dist/C_FormSearch.css +52 -52
  25. package/dist/C_FormSearch.d.cts +18 -2
  26. package/dist/C_FormSearch.d.ts +18 -2
  27. package/dist/C_FormSearch.js +1 -1
  28. package/dist/C_FormSearch2.cjs +1 -1
  29. package/dist/C_FormSearch2.js +1 -1
  30. package/dist/C_Guide.d.cts +1 -1
  31. package/dist/C_Guide.d.ts +1 -1
  32. package/dist/C_Icon.d.cts +1 -1
  33. package/dist/C_Icon.d.ts +1 -1
  34. package/dist/C_Language.d.cts +1 -1
  35. package/dist/C_Language.d.ts +1 -1
  36. package/dist/C_Loading.d.cts +1 -1
  37. package/dist/C_Loading.d.ts +1 -1
  38. package/dist/C_Login.d.cts +1 -1
  39. package/dist/C_Login.d.ts +1 -1
  40. package/dist/C_Markdown.d.cts +1 -1
  41. package/dist/C_Markdown.d.ts +1 -1
  42. package/dist/C_Menu.d.ts +1 -1
  43. package/dist/C_OrgChart.d.cts +1 -1
  44. package/dist/C_OrgChart.d.ts +1 -1
  45. package/dist/C_Progress.d.cts +1 -1
  46. package/dist/C_Progress.d.ts +1 -1
  47. package/dist/C_Skeleton.d.cts +1 -1
  48. package/dist/C_Skeleton.d.ts +1 -1
  49. package/dist/C_Steps.d.cts +1 -1
  50. package/dist/C_Steps.d.ts +1 -1
  51. package/dist/C_Table.base.css +144 -155
  52. package/dist/C_Table.css +144 -155
  53. package/dist/C_Table.d.cts +2 -2
  54. package/dist/C_Table.d.ts +6 -6
  55. package/dist/C_TagsView.d.cts +1 -1
  56. package/dist/C_TagsView.d.ts +1 -1
  57. package/dist/C_Theme.d.cts +1 -1
  58. package/dist/C_Theme.d.ts +1 -1
  59. package/dist/C_Time.cjs +1 -1
  60. package/dist/C_Time.css +4 -4
  61. package/dist/C_Time.d.cts +18 -2
  62. package/dist/C_Time.d.ts +18 -2
  63. package/dist/C_Time.js +1 -1
  64. package/dist/C_Time2.cjs +1 -1
  65. package/dist/C_Time2.js +1 -1
  66. package/dist/C_Timeline.d.cts +1 -1
  67. package/dist/C_Timeline.d.ts +1 -1
  68. package/dist/C_Transfer.css +26 -26
  69. package/dist/C_Transfer.d.cts +2 -2
  70. package/dist/C_Transfer.d.ts +2 -2
  71. package/dist/C_Transfer2.cjs +1 -1
  72. package/dist/C_Transfer2.js +1 -1
  73. package/dist/C_Tree.css +23 -23
  74. package/dist/C_Tree.d.ts +4 -4
  75. package/dist/C_Tree2.cjs +1 -1
  76. package/dist/C_Tree2.js +1 -1
  77. package/dist/C_VtableGantt.cjs +1 -1
  78. package/dist/C_VtableGantt.css +31 -31
  79. package/dist/C_VtableGantt.d.cts +18 -2
  80. package/dist/C_VtableGantt.d.ts +18 -2
  81. package/dist/C_VtableGantt.js +1 -1
  82. package/dist/C_WorkFlow.css +150 -150
  83. package/dist/C_WorkFlow.d.cts +2 -2
  84. package/dist/C_WorkFlow.d.ts +2 -2
  85. package/dist/C_WorkFlow2.cjs +1 -1
  86. package/dist/C_WorkFlow2.js +1 -1
  87. package/dist/constants3.d.cts +2 -2
  88. package/dist/constants3.d.ts +2 -2
  89. package/dist/constants4.d.cts +5 -5
  90. package/dist/constants4.d.ts +5 -5
  91. package/dist/constants5.d.cts +2 -2
  92. package/dist/constants5.d.ts +2 -2
  93. package/dist/data.d.cts +9 -9
  94. package/dist/data.d.ts +9 -9
  95. package/dist/dateRange.d.cts +197 -0
  96. package/dist/dateRange.d.ts +197 -0
  97. package/dist/graphics.cjs +1 -0
  98. package/dist/graphics.d.cts +837 -0
  99. package/dist/graphics.d.ts +837 -0
  100. package/dist/graphics.js +1 -0
  101. package/dist/index.cjs +1 -1
  102. package/dist/index.d.cts +47 -43
  103. package/dist/index.d.ts +47 -44
  104. package/dist/index.js +1 -1
  105. package/dist/index.vue.d.cts +4 -4
  106. package/dist/index.vue.d.ts +4 -4
  107. package/dist/index10.vue.d.cts +3 -3
  108. package/dist/index10.vue.d.ts +54 -69
  109. package/dist/index11.vue.d.cts +54 -69
  110. package/dist/index11.vue.d.ts +52 -58
  111. package/dist/index12.vue.d.cts +52 -58
  112. package/dist/index12.vue.d.ts +124 -50
  113. package/dist/index13.vue.d.cts +124 -50
  114. package/dist/index13.vue.d.ts +51 -123
  115. package/dist/index14.vue.d.cts +51 -123
  116. package/dist/index14.vue.d.ts +26 -52
  117. package/dist/index15.vue.d.cts +26 -52
  118. package/dist/index15.vue.d.ts +12 -26
  119. package/dist/index16.vue.d.cts +12 -26
  120. package/dist/index16.vue.d.ts +129 -13
  121. package/dist/index17.vue.d.cts +129 -13
  122. package/dist/index17.vue.d.ts +76 -129
  123. package/dist/index18.vue.d.cts +76 -129
  124. package/dist/index18.vue.d.ts +65 -75
  125. package/dist/index19.vue.d.cts +97 -75
  126. package/dist/index19.vue.d.ts +94 -62
  127. package/dist/index20.vue.d.cts +40 -91
  128. package/dist/index20.vue.d.ts +40 -91
  129. package/dist/index21.vue.d.cts +89 -40
  130. package/dist/index21.vue.d.ts +89 -40
  131. package/dist/index22.vue.d.cts +37 -95
  132. package/dist/index22.vue.d.ts +37 -95
  133. package/dist/index23.vue.d.cts +8 -34
  134. package/dist/index23.vue.d.ts +8 -34
  135. package/dist/index24.vue.d.cts +86 -9
  136. package/dist/index24.vue.d.ts +86 -9
  137. package/dist/index25.vue.d.cts +99 -654
  138. package/dist/index25.vue.d.ts +99 -654
  139. package/dist/index26.vue.d.cts +66 -87
  140. package/dist/index26.vue.d.ts +66 -87
  141. package/dist/index3.vue.d.cts +5 -5
  142. package/dist/index3.vue.d.ts +5 -5
  143. package/dist/index4.vue.d.cts +3 -3
  144. package/dist/index6.vue.d.ts +1 -1
  145. package/dist/index7.vue.d.cts +1 -1
  146. package/dist/index8.vue.d.ts +2 -2
  147. package/dist/index9.vue.d.cts +2 -2
  148. package/dist/index9.vue.d.ts +3 -3
  149. package/dist/mapUtils.d.cts +1 -1
  150. package/dist/mapUtils.d.ts +1 -1
  151. package/dist/presets.d.cts +1 -1
  152. package/dist/presets.d.ts +1 -1
  153. package/dist/style.css +499 -510
  154. package/dist/types.d.ts +51 -0
  155. package/dist/types2.d.cts +51 -0
  156. package/dist/useCalendarEvents.d.cts +3 -3
  157. package/dist/useCalendarEvents.d.ts +3 -3
  158. package/dist/useCollapsePanel.d.cts +7 -7
  159. package/dist/useCollapsePanel.d.ts +7 -7
  160. package/dist/useCropperCore.d.cts +7 -7
  161. package/dist/useCropperCore.d.ts +7 -7
  162. package/dist/useDraggableLayout.d.cts +94 -125
  163. package/dist/useDraggableLayout.d.ts +94 -125
  164. package/dist/useDynamicFormState.d.cts +24 -11
  165. package/dist/useDynamicFormState.d.ts +24 -11
  166. package/dist/useEdgeInteraction.d.cts +10 -5
  167. package/dist/useEdgeInteraction.d.ts +10 -5
  168. package/dist/useFullscreen.d.cts +3 -3
  169. package/dist/useFullscreen.d.ts +3 -3
  170. package/dist/useQRCode.d.cts +5 -5
  171. package/dist/useQRCode.d.ts +5 -5
  172. package/dist/useSignatureHistory.d.cts +5 -5
  173. package/dist/useSignatureHistory.d.ts +5 -5
  174. package/dist/useSplitResize.d.cts +6 -6
  175. package/dist/useSplitResize.d.ts +6 -6
  176. package/dist/useTableQuery.cjs +2 -2
  177. package/dist/useTableQuery.d.cts +475 -463
  178. package/dist/useTableQuery.d.ts +475 -463
  179. package/dist/useTableQuery.js +2 -2
  180. package/dist/useTimeSelection.d.cts +19 -52
  181. package/dist/useTimeSelection.d.ts +19 -52
  182. package/dist/useWorkflowValidation.d.cts +533 -154
  183. package/dist/useWorkflowValidation.d.ts +533 -154
  184. package/docs/guides/usage.en.md +15 -0
  185. package/docs/guides/usage.md +15 -0
  186. package/package.json +1 -1
  187. package/dist/C_VtableGantt2.cjs +0 -1
  188. package/dist/C_VtableGantt2.js +0 -1
  189. package/dist/index27.vue.d.cts +0 -111
  190. package/dist/index27.vue.d.ts +0 -111
  191. package/dist/index28.vue.d.cts +0 -84
  192. package/dist/index28.vue.d.ts +0 -84
  193. package/dist/useSearchState.d.cts +0 -163
  194. package/dist/useSearchState.d.ts +0 -163
@@ -1,83 +1,105 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Markdown/index.vue.d.ts
4
- type ToolbarName = string | number;
5
- type InsertImageFunction = (config: {
6
- url: string;
7
- desc?: string;
8
- width?: string | number;
9
- height?: string | number;
10
- }) => void;
11
- interface Props {
12
- modelValue?: string;
13
- /** SSR 或同页多实例时建议显式传入稳定 ID */
14
- editorId?: string;
15
- height?: string | number;
16
- disabled?: boolean;
17
- placeholder?: string;
18
- mode?: 'edit' | 'editable' | 'preview';
19
- toolbar?: object | ToolbarName[];
20
- uploadImageConfig?: {
21
- accept?: string;
22
- multiple?: boolean;
23
- [key: string]: unknown;
24
- };
25
- tocNavPosition?: 'left' | 'right';
26
- defaultFullscreen?: boolean;
27
- autofocus?: boolean;
28
- includeLevel?: number[];
29
- leftToolbar?: string;
30
- rightToolbar?: string;
31
- maxLength?: number;
32
- showWordCount?: boolean;
33
- autoSave?: boolean;
34
- autoSaveInterval?: number;
35
- /** 是否为暗色主题(外部传入) */
36
- isDark?: boolean;
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>;
22
+ }
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;
37
57
  }
38
- declare const __VLS_export: vue.DefineComponent<Props, {
39
- focus: () => void;
40
- getHtml: () => string;
41
- insertText: (text: string) => void;
42
- wordCount: vue.ComputedRef<number>;
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
+ };
65
+ type __VLS_Slots = {} & {
66
+ node?: (props: typeof __VLS_12) => any;
67
+ };
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>;
43
74
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- save: (text: string, html: string) => any;
45
- "update:modelValue": (value: string) => any;
46
- change: (text: string, html: string) => any;
47
- "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
- "fullscreen-change": (isFullscreen: boolean) => any;
49
- "copy-code-success": (text: string) => any;
50
- "word-count-change": (count: number) => any;
51
- "auto-save": (text: string) => any;
52
- "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
54
- onSave?: ((text: string, html: string) => any) | undefined;
55
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
- onChange?: ((text: string, html: string) => any) | undefined;
57
- "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
- "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
59
- "onCopy-code-success"?: ((text: string) => any) | undefined;
60
- "onWord-count-change"?: ((count: number) => any) | undefined;
61
- "onAuto-save"?: ((text: string) => any) | undefined;
62
- "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
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;
63
82
  }>, {
64
- disabled: boolean;
65
- mode: "edit" | "editable" | "preview";
66
- modelValue: string;
67
- placeholder: string;
68
- height: string | number;
69
- maxLength: number;
70
- tocNavPosition: "left" | "right";
71
- defaultFullscreen: boolean;
72
- autofocus: boolean;
73
- includeLevel: number[];
74
- leftToolbar: string;
75
- rightToolbar: string;
76
- showWordCount: boolean;
77
- autoSave: boolean;
78
- autoSaveInterval: number;
79
- isDark: boolean;
83
+ lineColor: string;
84
+ lineWidth: number;
85
+ direction: OrgChartDirection;
86
+ collapsible: boolean;
87
+ lineStyle: OrgChartLineStyle;
88
+ nodeSpacing: number;
89
+ levelSpacing: number;
90
+ zoomable: boolean;
91
+ pannable: boolean;
92
+ initialZoom: number;
93
+ fitOnInit: boolean;
94
+ minZoom: number;
95
+ maxZoom: number;
80
96
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
97
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
81
98
  declare const _default: typeof __VLS_export;
99
+ type __VLS_WithSlots<T, S> = T & {
100
+ new (): {
101
+ $slots: S;
102
+ };
103
+ };
82
104
  //#endregion
83
- export { _default as t };
105
+ export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
@@ -1,73 +1,105 @@
1
- import { a as RouteItem, t as MenuAdapterConfig } from "./public.js";
2
1
  import * as vue from "vue";
3
- import { Ref } from "vue";
4
- import * as naive_ui0 from "naive-ui";
5
- import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
6
2
 
7
- //#region src/components/C_Menu/types.d.ts
8
- type MenuValue = string | null;
9
- interface MenuProps {
10
- options?: MenuOption[];
11
- routes?: RouteItem[];
12
- adapterConfig?: MenuAdapterConfig;
13
- labelFormatter?: (label: string) => string;
14
- /** @deprecated Use modelValue. */
15
- value?: MenuValue;
16
- modelValue?: MenuValue;
17
- expandedKeys?: string[];
18
- defaultExpandedKeys?: string[];
19
- mode?: 'vertical' | 'horizontal';
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
+ /** 节点是否默认折叠 */
20
19
  collapsed?: boolean;
21
- collapsedWidth?: number;
22
- collapsedIconSize?: number;
23
- inverted?: boolean;
24
- themeOverrides?: Record<string, any>;
25
- indent?: number;
26
- rootIndent?: number;
27
- dropdownProps?: DropdownProps;
20
+ /** 节点额外数据(透传给插槽/事件) */
21
+ data?: Record<string, unknown>;
28
22
  }
29
- interface MenuEmits {
30
- select: [key: string];
31
- /** 鼠标或键盘聚焦叶子项时触发,可用于无副作用的路由预取。 */
32
- intent: [key: string];
33
- 'update:modelValue': [key: MenuValue];
34
- /** @deprecated Use update:modelValue. */
35
- 'update:value': [key: MenuValue];
36
- 'update:expandedKeys': [keys: string[]];
37
- }
38
- interface MenuExpose {
39
- showOption: (key: string) => void;
40
- /** Vue 公开实例会解包顶层 Ref。 */
41
- menuRef: MenuInst | null;
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;
42
57
  }
43
58
  //#endregion
44
- //#region src/components/C_Menu/index.vue.d.ts
45
- declare const __VLS_export: vue.DefineComponent<MenuProps, {
46
- showOption: (key: string) => void | undefined;
47
- menuRef: Ref<MenuInst | null, MenuInst | null>;
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
+ };
65
+ type __VLS_Slots = {} & {
66
+ node?: (props: typeof __VLS_12) => any;
67
+ };
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>;
48
74
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
49
- "update:modelValue": (key: MenuValue) => any;
50
- select: (key: string) => any;
51
- "update:expandedKeys": (keys: string[]) => any;
52
- intent: (key: string) => any;
53
- "update:value": (key: MenuValue) => any;
54
- }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
55
- "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
56
- onSelect?: ((key: string) => any) | undefined;
57
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
58
- onIntent?: ((key: string) => any) | undefined;
59
- "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
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;
60
82
  }>, {
61
- mode: "vertical" | "horizontal";
62
- defaultExpandedKeys: string[];
63
- indent: number;
64
- collapsed: boolean;
65
- collapsedWidth: number;
66
- collapsedIconSize: number;
67
- inverted: boolean;
68
- rootIndent: number;
69
- dropdownProps: naive_ui0.DropdownProps;
83
+ lineColor: string;
84
+ lineWidth: number;
85
+ direction: OrgChartDirection;
86
+ collapsible: boolean;
87
+ lineStyle: OrgChartLineStyle;
88
+ nodeSpacing: number;
89
+ levelSpacing: number;
90
+ zoomable: boolean;
91
+ pannable: boolean;
92
+ initialZoom: number;
93
+ fitOnInit: boolean;
94
+ minZoom: number;
95
+ maxZoom: number;
70
96
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
97
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
71
98
  declare const _default: typeof __VLS_export;
99
+ type __VLS_WithSlots<T, S> = T & {
100
+ new (): {
101
+ $slots: S;
102
+ };
103
+ };
72
104
  //#endregion
73
- export { MenuValue as a, MenuProps as i, MenuEmits as n, MenuExpose as r, _default as t };
105
+ export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
@@ -1,98 +1,47 @@
1
1
  import * as vue from "vue";
2
+ import { CSSProperties } from "vue";
2
3
 
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>;
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;
22
31
  }
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
- };
32
+ declare var __VLS_9: {};
65
33
  type __VLS_Slots = {} & {
66
- node?: (props: typeof __VLS_12) => any;
34
+ indicator?: (props: typeof __VLS_9) => any;
67
35
  };
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
- lineStyle: OrgChartLineStyle;
86
- lineWidth: number;
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;
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;
96
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
97
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
98
47
  declare const _default: typeof __VLS_export;
@@ -102,4 +51,4 @@ type __VLS_WithSlots<T, S> = T & {
102
51
  };
103
52
  };
104
53
  //#endregion
105
- export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
54
+ export { _default as t };
@@ -1,98 +1,47 @@
1
1
  import * as vue from "vue";
2
+ import { CSSProperties } from "vue";
2
3
 
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>;
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;
22
31
  }
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
- };
32
+ declare var __VLS_9: {};
65
33
  type __VLS_Slots = {} & {
66
- node?: (props: typeof __VLS_12) => any;
34
+ indicator?: (props: typeof __VLS_9) => any;
67
35
  };
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
- lineStyle: OrgChartLineStyle;
86
- lineWidth: number;
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;
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;
96
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
97
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
98
47
  declare const _default: typeof __VLS_export;
@@ -102,4 +51,4 @@ type __VLS_WithSlots<T, S> = T & {
102
51
  };
103
52
  };
104
53
  //#endregion
105
- export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
54
+ export { _default as t };