@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.
Files changed (285) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +11 -5
  3. package/README_EN.md +11 -5
  4. package/dist/C_AutoComplete.cjs +1 -0
  5. package/dist/C_AutoComplete.css +36 -0
  6. package/dist/C_AutoComplete.d.cts +4 -0
  7. package/dist/C_AutoComplete.d.ts +4 -0
  8. package/dist/C_AutoComplete.js +1 -0
  9. package/dist/C_AutoComplete2.cjs +1 -0
  10. package/dist/C_AutoComplete2.js +1 -0
  11. package/dist/C_AvatarGroup.d.cts +1 -1
  12. package/dist/C_AvatarGroup.d.ts +1 -1
  13. package/dist/C_Barcode.d.cts +1 -1
  14. package/dist/C_Barcode.d.ts +1 -1
  15. package/dist/C_BatchResult.d.cts +1 -1
  16. package/dist/C_BatchResult.d.ts +1 -1
  17. package/dist/C_Breadcrumb.d.cts +2 -2
  18. package/dist/C_Breadcrumb.d.ts +1 -1
  19. package/dist/C_Cascade.d.cts +1 -1
  20. package/dist/C_Cascade.d.ts +1 -1
  21. package/dist/C_Chat.d.cts +1 -1
  22. package/dist/C_Chat.d.ts +1 -1
  23. package/dist/C_City.d.cts +1 -1
  24. package/dist/C_City.d.ts +1 -1
  25. package/dist/C_Code.d.cts +1 -1
  26. package/dist/C_Code.d.ts +1 -1
  27. package/dist/C_ContextMenu.d.cts +1 -1
  28. package/dist/C_ContextMenu.d.ts +1 -1
  29. package/dist/C_DataPicker.css +235 -31
  30. package/dist/C_DataPicker.d.cts +2 -2
  31. package/dist/C_DataPicker.d.ts +2 -2
  32. package/dist/C_Date.d.cts +1 -1
  33. package/dist/C_Date.d.ts +1 -1
  34. package/dist/C_Density.d.cts +1 -1
  35. package/dist/C_Density.d.ts +1 -1
  36. package/dist/C_Editor.d.cts +1 -1
  37. package/dist/C_Editor.d.ts +1 -1
  38. package/dist/C_ErrorSummary.d.cts +1 -1
  39. package/dist/C_ErrorSummary.d.ts +1 -1
  40. package/dist/C_Form.base.css +68 -1
  41. package/dist/C_Form.cjs +1 -1
  42. package/dist/C_Form.css +68 -1
  43. package/dist/C_Form.d.cts +3 -3
  44. package/dist/C_Form.d.ts +5 -3
  45. package/dist/C_Form.js +1 -1
  46. package/dist/C_FormModal.cjs +1 -1
  47. package/dist/C_FormModal.d.cts +1 -1
  48. package/dist/C_FormModal.d.ts +3 -1
  49. package/dist/C_FormModal.js +1 -1
  50. package/dist/C_FormModal2.cjs +1 -1
  51. package/dist/C_FormModal2.js +1 -1
  52. package/dist/C_FormSearch.css +160 -72
  53. package/dist/C_FormSearch.d.cts +3 -3
  54. package/dist/C_FormSearch.d.ts +3 -3
  55. package/dist/C_GlobalSearch2.cjs +1 -1
  56. package/dist/C_GlobalSearch2.js +1 -1
  57. package/dist/C_Guide.d.cts +1 -1
  58. package/dist/C_Guide.d.ts +1 -1
  59. package/dist/C_Icon.d.cts +1 -1
  60. package/dist/C_Icon.d.ts +1 -1
  61. package/dist/C_Language.d.cts +1 -1
  62. package/dist/C_Language.d.ts +1 -1
  63. package/dist/C_Loading.d.cts +1 -1
  64. package/dist/C_Loading.d.ts +1 -1
  65. package/dist/C_Login.d.cts +1 -1
  66. package/dist/C_Login.d.ts +1 -1
  67. package/dist/C_Markdown.d.cts +1 -1
  68. package/dist/C_Markdown.d.ts +1 -1
  69. package/dist/C_Menu.d.cts +2 -2
  70. package/dist/C_Menu.d.ts +1 -1
  71. package/dist/C_OrgChart.d.cts +1 -1
  72. package/dist/C_OrgChart.d.ts +1 -1
  73. package/dist/C_Progress.d.cts +1 -1
  74. package/dist/C_Progress.d.ts +1 -1
  75. package/dist/C_SectionNav.d.cts +1 -1
  76. package/dist/C_SectionNav.d.ts +1 -1
  77. package/dist/C_Select.css +32 -1
  78. package/dist/C_Select.d.cts +4 -2
  79. package/dist/C_Select.d.ts +4 -2
  80. package/dist/C_Select2.cjs +1 -1
  81. package/dist/C_Select2.js +1 -1
  82. package/dist/C_Skeleton.d.cts +1 -1
  83. package/dist/C_Skeleton.d.ts +1 -1
  84. package/dist/C_Steps.d.cts +1 -1
  85. package/dist/C_Steps.d.ts +1 -1
  86. package/dist/C_Table.base.css +214 -147
  87. package/dist/C_Table.cjs +1 -1
  88. package/dist/C_Table.css +146 -146
  89. package/dist/C_Table.d.cts +3 -3
  90. package/dist/C_Table.d.ts +13 -10
  91. package/dist/C_Table.js +1 -1
  92. package/dist/C_Table2.cjs +4 -3
  93. package/dist/C_Table2.js +4 -3
  94. package/dist/C_TagsView.css +51 -51
  95. package/dist/C_TagsView.d.cts +2 -2
  96. package/dist/C_TagsView.d.ts +1 -1
  97. package/dist/C_TagsView2.cjs +1 -1
  98. package/dist/C_TagsView2.js +1 -1
  99. package/dist/C_Theme.d.cts +1 -1
  100. package/dist/C_Theme.d.ts +1 -1
  101. package/dist/C_Timeline.d.cts +1 -1
  102. package/dist/C_Timeline.d.ts +1 -1
  103. package/dist/C_Transfer.d.cts +1 -1
  104. package/dist/C_Transfer.d.ts +1 -1
  105. package/dist/C_Tree.cjs +1 -1
  106. package/dist/C_Tree.css +60 -23
  107. package/dist/C_Tree.d.cts +2 -2
  108. package/dist/C_Tree.d.ts +12 -9
  109. package/dist/C_Tree.js +1 -1
  110. package/dist/C_Tree2.cjs +1 -1
  111. package/dist/C_Tree2.js +1 -1
  112. package/dist/OptionStatus.cjs +1 -0
  113. package/dist/OptionStatus.js +1 -0
  114. package/dist/SearchFieldSettings.cjs +1 -0
  115. package/dist/SearchFieldSettings.js +1 -0
  116. package/dist/constants4.d.cts +9 -9
  117. package/dist/constants4.d.ts +9 -9
  118. package/dist/constants5.d.cts +2 -2
  119. package/dist/constants5.d.ts +2 -2
  120. package/dist/data.d.cts +2 -1
  121. package/dist/data.d.ts +2 -1
  122. package/dist/data2.d.cts +7 -7
  123. package/dist/data2.d.ts +7 -7
  124. package/dist/dateRange.d.cts +52 -7
  125. package/dist/dateRange.d.ts +52 -7
  126. package/dist/editors.cjs +1 -0
  127. package/dist/{useTableQuery.d.cts → editors.d.cts} +120 -13
  128. package/dist/{useTableQuery.d.ts → editors.d.ts} +120 -13
  129. package/dist/editors.js +1 -0
  130. package/dist/fieldRenderers.cjs +1 -0
  131. package/dist/fieldRenderers.js +1 -0
  132. package/dist/formField.cjs +1 -1
  133. package/dist/formField.d.cts +79 -29
  134. package/dist/formField.d.ts +79 -29
  135. package/dist/formField.js +1 -1
  136. package/dist/helpers.cjs +1 -1
  137. package/dist/helpers.js +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.cts +63 -59
  140. package/dist/index.d.ts +63 -58
  141. package/dist/index.js +1 -1
  142. package/dist/index.vue.d.cts +5 -5
  143. package/dist/index.vue.d.ts +5 -5
  144. package/dist/index10.vue.d.cts +27 -35
  145. package/dist/index10.vue.d.ts +37 -80
  146. package/dist/index11.vue.d.cts +37 -80
  147. package/dist/index11.vue.d.ts +83 -16
  148. package/dist/index12.vue.d.cts +83 -16
  149. package/dist/index12.vue.d.ts +16 -59
  150. package/dist/index13.vue.d.cts +16 -59
  151. package/dist/index13.vue.d.ts +57 -17
  152. package/dist/index14.vue.d.cts +57 -17
  153. package/dist/index14.vue.d.ts +18 -55
  154. package/dist/index15.vue.d.cts +18 -55
  155. package/dist/index15.vue.d.ts +53 -124
  156. package/dist/index16.vue.d.cts +53 -124
  157. package/dist/index16.vue.d.ts +123 -51
  158. package/dist/index17.vue.d.cts +123 -51
  159. package/dist/index17.vue.d.ts +52 -25
  160. package/dist/index18.vue.d.cts +52 -25
  161. package/dist/index18.vue.d.ts +25 -12
  162. package/dist/index19.vue.d.cts +25 -12
  163. package/dist/index19.vue.d.ts +13 -129
  164. package/dist/index2.vue.d.cts +26 -82
  165. package/dist/index2.vue.d.ts +26 -82
  166. package/dist/index20.vue.d.cts +13 -129
  167. package/dist/index20.vue.d.ts +129 -76
  168. package/dist/index21.vue.d.cts +129 -76
  169. package/dist/index21.vue.d.ts +78 -72
  170. package/dist/index22.vue.d.cts +75 -97
  171. package/dist/index22.vue.d.ts +68 -96
  172. package/dist/index23.vue.d.cts +91 -40
  173. package/dist/index23.vue.d.ts +91 -40
  174. package/dist/index24.vue.d.cts +49 -23
  175. package/dist/index24.vue.d.ts +49 -23
  176. package/dist/index25.vue.d.cts +19 -46
  177. package/dist/index25.vue.d.ts +19 -46
  178. package/dist/index26.vue.d.cts +25 -98
  179. package/dist/index26.vue.d.ts +25 -98
  180. package/dist/index27.vue.d.cts +95 -37
  181. package/dist/index27.vue.d.ts +95 -37
  182. package/dist/index28.vue.d.cts +34 -8
  183. package/dist/index28.vue.d.ts +34 -8
  184. package/dist/index29.vue.d.cts +9 -86
  185. package/dist/index29.vue.d.ts +9 -86
  186. package/dist/index3.vue.d.cts +80 -30
  187. package/dist/index3.vue.d.ts +80 -30
  188. package/dist/index30.vue.d.cts +85 -99
  189. package/dist/index30.vue.d.ts +85 -99
  190. package/dist/index31.vue.d.cts +94 -63
  191. package/dist/index31.vue.d.ts +94 -63
  192. package/dist/index32.vue.d.cts +79 -0
  193. package/dist/index32.vue.d.ts +79 -0
  194. package/dist/index4.vue.d.cts +30 -19
  195. package/dist/index4.vue.d.ts +30 -19
  196. package/dist/index5.vue.d.cts +19 -128
  197. package/dist/index5.vue.d.ts +17 -34
  198. package/dist/index6.vue.d.cts +127 -35
  199. package/dist/index6.vue.d.ts +30 -22
  200. package/dist/index7.vue.d.cts +30 -22
  201. package/dist/index7.vue.d.ts +25 -118
  202. package/dist/index8.vue.d.cts +25 -118
  203. package/dist/index8.vue.d.ts +112 -21
  204. package/dist/index9.vue.d.cts +112 -21
  205. package/dist/index9.vue.d.ts +27 -35
  206. package/dist/mapUtils.d.cts +3 -3
  207. package/dist/mapUtils.d.ts +3 -3
  208. package/dist/optionSource.d.cts +30 -0
  209. package/dist/optionSource.d.ts +30 -0
  210. package/dist/public.d.ts +2 -0
  211. package/dist/resolver.cjs +1 -1
  212. package/dist/resolver.d.cts +1 -1
  213. package/dist/resolver.d.ts +1 -1
  214. package/dist/resolver.js +1 -1
  215. package/dist/selectPresentation.cjs +1 -1
  216. package/dist/selectPresentation.js +1 -1
  217. package/dist/serializeSearch.cjs +1 -1
  218. package/dist/serializeSearch.js +1 -1
  219. package/dist/sourceControls.cjs +1 -0
  220. package/dist/sourceControls.js +1 -0
  221. package/dist/style.css +513 -324
  222. package/dist/types2.d.cts +29 -103
  223. package/dist/types2.d.ts +30 -55
  224. package/dist/types3.d.cts +106 -55
  225. package/dist/types3.d.ts +60 -0
  226. package/dist/types4.d.cts +60 -0
  227. package/dist/types4.d.ts +50 -0
  228. package/dist/types5.d.cts +50 -0
  229. package/dist/useCalendarEvents.d.cts +1 -1
  230. package/dist/useCalendarEvents.d.ts +1 -1
  231. package/dist/useCollapsePanel.d.cts +3 -3
  232. package/dist/useCollapsePanel.d.ts +3 -3
  233. package/dist/useComponentLocale.cjs +1 -1
  234. package/dist/useComponentLocale.js +1 -1
  235. package/dist/useCropperCore.d.cts +9 -9
  236. package/dist/useCropperCore.d.ts +9 -9
  237. package/dist/useDataResource.cjs +1 -1
  238. package/dist/useDataResource.js +1 -1
  239. package/dist/useDraggableLayout.d.cts +2 -2
  240. package/dist/useDraggableLayout.d.ts +2 -2
  241. package/dist/useDynamicFormState.d.cts +17 -3
  242. package/dist/useDynamicFormState.d.ts +17 -3
  243. package/dist/useEdgeInteraction.d.cts +2 -2
  244. package/dist/useEdgeInteraction.d.ts +2 -2
  245. package/dist/useFormConfig.d.cts +5 -2
  246. package/dist/useFormConfig.d.ts +5 -2
  247. package/dist/useFormRenderer.d.cts +1 -1
  248. package/dist/useFormRenderer.d.ts +1 -1
  249. package/dist/useFullscreen.d.cts +2 -2
  250. package/dist/useFullscreen.d.ts +2 -2
  251. package/dist/useGlobalSearch.d.cts +8 -0
  252. package/dist/useGlobalSearch.d.ts +8 -0
  253. package/dist/useInfiniteScroll.d.cts +2 -2
  254. package/dist/useInfiniteScroll.d.ts +2 -2
  255. package/dist/useQRCode.d.cts +3 -3
  256. package/dist/useQRCode.d.ts +3 -3
  257. package/dist/useSignatureHistory.d.cts +4 -4
  258. package/dist/useSignatureHistory.d.ts +4 -4
  259. package/dist/useSplitResize.d.cts +7 -7
  260. package/dist/useSplitResize.d.ts +7 -7
  261. package/dist/useWorkflowValidation.d.cts +4 -4
  262. package/dist/useWorkflowValidation.d.ts +4 -4
  263. package/dist/verification.d.cts +6 -6
  264. package/dist/verification.d.ts +6 -6
  265. package/docs/architecture.md +3 -1
  266. package/docs/components.en.md +2 -1
  267. package/docs/components.md +2 -1
  268. package/docs/engineering.en.md +11 -1
  269. package/docs/engineering.md +11 -1
  270. package/docs/guides/component-contracts.md +72 -0
  271. package/docs/guides/data-picker.md +37 -1
  272. package/docs/guides/remote-options.md +117 -0
  273. package/docs/guides/search-workflows.md +162 -2
  274. package/docs/guides/table-editing.md +79 -0
  275. package/docs/guides/tree.en.md +41 -0
  276. package/docs/guides/tree.md +80 -1
  277. package/docs/search-selection-coverage.md +59 -0
  278. package/docs/wl-ui-produce-coverage.md +2 -0
  279. package/package.json +6 -3
  280. package/dist/helpers2.cjs +0 -1
  281. package/dist/helpers2.js +0 -1
  282. package/dist/temporalField.cjs +0 -1
  283. package/dist/temporalField.js +0 -1
  284. package/dist/useTableQuery.cjs +0 -1
  285. package/dist/useTableQuery.js +0 -1
@@ -1,47 +1,98 @@
1
1
  import * as vue from "vue";
2
- import { CSSProperties } from "vue";
3
2
 
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;
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
- declare var __VLS_9: {};
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
- indicator?: (props: typeof __VLS_9) => any;
66
+ node?: (props: typeof __VLS_12) => any;
35
67
  };
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;
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 };
@@ -1,47 +1,98 @@
1
1
  import * as vue from "vue";
2
- import { CSSProperties } from "vue";
3
2
 
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;
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
- declare var __VLS_9: {};
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
- indicator?: (props: typeof __VLS_9) => any;
66
+ node?: (props: typeof __VLS_12) => any;
35
67
  };
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;
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 };
@@ -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/C_SectionNav/types.d.ts
5
- interface SectionNavItem {
6
- key: string;
7
- label: string;
8
- errorCount?: number;
9
- disabled?: boolean;
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
- interface SectionNavProps {
12
- items: readonly SectionNavItem[];
13
- modelValue?: string;
14
- ariaLabel?: string;
15
- locale?: ComponentLocale;
16
- }
17
- //#endregion
18
- //#region src/components/C_SectionNav/index.vue.d.ts
19
- declare const __VLS_export: vue.DefineComponent<SectionNavProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
20
- "update:modelValue": (key: string) => any;
21
- select: (key: string) => any;
22
- }, string, vue.PublicProps, Readonly<SectionNavProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
24
- onSelect?: ((key: string) => any) | undefined;
25
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
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 { SectionNavItem as n, SectionNavProps as r, _default as t };
54
+ export { _default as t };
@@ -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/C_SectionNav/types.d.ts
5
- interface SectionNavItem {
6
- key: string;
7
- label: string;
8
- errorCount?: number;
9
- disabled?: boolean;
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
- interface SectionNavProps {
12
- items: readonly SectionNavItem[];
13
- modelValue?: string;
14
- ariaLabel?: string;
15
- locale?: ComponentLocale;
16
- }
17
- //#endregion
18
- //#region src/components/C_SectionNav/index.vue.d.ts
19
- declare const __VLS_export: vue.DefineComponent<SectionNavProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
20
- "update:modelValue": (key: string) => any;
21
- select: (key: string) => any;
22
- }, string, vue.PublicProps, Readonly<SectionNavProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
24
- onSelect?: ((key: string) => any) | undefined;
25
- }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
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 { SectionNavItem as n, SectionNavProps as r, _default as t };
54
+ export { _default as t };
@@ -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/C_Select/types.d.ts
5
- type SelectValue = string | number | boolean;
6
- interface SelectOptionItem<V extends SelectValue = SelectValue> {
4
+ //#region src/components/C_SectionNav/types.d.ts
5
+ interface SectionNavItem {
6
+ key: string;
7
7
  label: string;
8
- value: V;
8
+ errorCount?: number;
9
9
  disabled?: boolean;
10
- [key: string]: unknown;
11
10
  }
12
- type SelectModelValue<V extends SelectValue, M extends boolean, T extends boolean = false> = M extends true ? Array<V | (T extends true ? string : never)> : V | (T extends true ? string : never) | null;
13
- interface SelectProps$1<V extends SelectValue = SelectValue, M extends boolean = boolean, T extends boolean = boolean> {
14
- modelValue?: SelectModelValue<V, NoInfer<M>, NoInfer<T>> | null;
15
- options?: readonly SelectOptionItem<V>[];
16
- multiple?: boolean & M;
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/C_Select/index.vue.d.ts
34
- declare const __VLS_export: <V extends SelectValue = SelectValue, M extends boolean = false, T extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
35
- props: vue.PublicProps & __VLS_PrettifyLocal<SelectProps$1<V, M, T> & {
36
- "onUpdate:modelValue"?: ((value: SelectModelValue<V, M, T>) => any) | undefined;
37
- }> & (typeof globalThis extends {
38
- __VLS_PROPS_FALLBACK: infer P;
39
- } ? P : {});
40
- expose: (exposed: vue.ShallowUnwrapRef<{
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 { SelectValue as a, SelectProps$1 as i, SelectModelValue as n, SelectOptionItem as r, _default as t };
28
+ export { SectionNavItem as n, SectionNavProps as r, _default as t };
@@ -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/C_Select/types.d.ts
5
- type SelectValue = string | number | boolean;
6
- interface SelectOptionItem<V extends SelectValue = SelectValue> {
4
+ //#region src/components/C_SectionNav/types.d.ts
5
+ interface SectionNavItem {
6
+ key: string;
7
7
  label: string;
8
- value: V;
8
+ errorCount?: number;
9
9
  disabled?: boolean;
10
- [key: string]: unknown;
11
10
  }
12
- type SelectModelValue<V extends SelectValue, M extends boolean, T extends boolean = false> = M extends true ? Array<V | (T extends true ? string : never)> : V | (T extends true ? string : never) | null;
13
- interface SelectProps$1<V extends SelectValue = SelectValue, M extends boolean = boolean, T extends boolean = boolean> {
14
- modelValue?: SelectModelValue<V, NoInfer<M>, NoInfer<T>> | null;
15
- options?: readonly SelectOptionItem<V>[];
16
- multiple?: boolean & M;
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/C_Select/index.vue.d.ts
34
- declare const __VLS_export: <V extends SelectValue = SelectValue, M extends boolean = false, T extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
35
- props: vue.PublicProps & __VLS_PrettifyLocal<SelectProps$1<V, M, T> & {
36
- "onUpdate:modelValue"?: ((value: SelectModelValue<V, M, T>) => any) | undefined;
37
- }> & (typeof globalThis extends {
38
- __VLS_PROPS_FALLBACK: infer P;
39
- } ? P : {});
40
- expose: (exposed: vue.ShallowUnwrapRef<{
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 { SelectValue as a, SelectProps$1 as i, SelectModelValue as n, SelectOptionItem as r, _default as t };
28
+ export { SectionNavItem as n, SectionNavProps as r, _default as t };