@robot-admin/naive-ui-components 0.13.2 → 0.13.6

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 (292) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +25 -5
  3. package/README_EN.md +17 -5
  4. package/dist/C_ActionBar.css +75 -63
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_AntV.css +249 -79
  8. package/dist/C_AntV2.cjs +3 -3
  9. package/dist/C_AntV2.js +2 -2
  10. package/dist/C_AudioPlayer.css +88 -76
  11. package/dist/C_AudioPlayer2.cjs +1 -1
  12. package/dist/C_AudioPlayer2.js +1 -1
  13. package/dist/C_AvatarGroup.css +32 -28
  14. package/dist/C_AvatarGroup2.cjs +1 -1
  15. package/dist/C_AvatarGroup2.js +1 -1
  16. package/dist/C_Breadcrumb.css +35 -17
  17. package/dist/C_Breadcrumb2.cjs +1 -1
  18. package/dist/C_Breadcrumb2.js +1 -1
  19. package/dist/C_Captcha.css +66 -53
  20. package/dist/C_Captcha2.cjs +1 -1
  21. package/dist/C_Captcha2.js +1 -1
  22. package/dist/C_Cascade.css +6 -2
  23. package/dist/C_Cascade2.cjs +1 -1
  24. package/dist/C_Cascade2.js +1 -1
  25. package/dist/C_Chat.css +40 -33
  26. package/dist/C_City.css +37 -32
  27. package/dist/C_City2.cjs +1 -1
  28. package/dist/C_City2.js +1 -1
  29. package/dist/C_Code.css +53 -40
  30. package/dist/C_Code2.cjs +1 -1
  31. package/dist/C_Code2.js +1 -1
  32. package/dist/C_CollapsePanel.css +68 -55
  33. package/dist/C_CollapsePanel2.cjs +1 -1
  34. package/dist/C_CollapsePanel2.js +1 -1
  35. package/dist/C_ContextMenu.css +68 -26
  36. package/dist/C_ContextMenu2.cjs +1 -1
  37. package/dist/C_ContextMenu2.js +1 -1
  38. package/dist/C_Cron.css +95 -68
  39. package/dist/C_Cron2.cjs +1 -1
  40. package/dist/C_Cron2.js +1 -1
  41. package/dist/C_Date.css +8 -1
  42. package/dist/C_Date2.cjs +1 -1
  43. package/dist/C_Date2.js +1 -1
  44. package/dist/C_Draggable.css +60 -51
  45. package/dist/C_Draggable2.cjs +1 -1
  46. package/dist/C_Draggable2.js +1 -1
  47. package/dist/C_Editor.css +23 -15
  48. package/dist/C_Editor2.cjs +1 -1
  49. package/dist/C_Editor2.js +1 -1
  50. package/dist/C_FilePreview.css +200 -90
  51. package/dist/C_FilePreview2.cjs +1 -1
  52. package/dist/C_FilePreview2.js +1 -1
  53. package/dist/C_Form.base.css +284 -224
  54. package/dist/C_Form.css +307 -239
  55. package/dist/C_Form2.cjs +1 -1
  56. package/dist/C_Form2.js +1 -1
  57. package/dist/C_FormModal.css +18 -8
  58. package/dist/C_FormModal2.cjs +1 -1
  59. package/dist/C_FormModal2.js +1 -1
  60. package/dist/C_FormSearch.css +58 -45
  61. package/dist/C_FormSearch2.cjs +1 -1
  62. package/dist/C_FormSearch2.js +1 -1
  63. package/dist/C_FormulaEditor.css +62 -37
  64. package/dist/C_FormulaEditor2.cjs +1 -1
  65. package/dist/C_FormulaEditor2.js +1 -1
  66. package/dist/C_FullCalendar.css +16 -3
  67. package/dist/C_FullCalendar2.cjs +1 -1
  68. package/dist/C_FullCalendar2.js +1 -1
  69. package/dist/C_GlobalSearch.css +121 -112
  70. package/dist/C_GlobalSearch2.cjs +1 -1
  71. package/dist/C_GlobalSearch2.js +1 -1
  72. package/dist/C_Guide.css +30 -18
  73. package/dist/C_Guide2.cjs +1 -1
  74. package/dist/C_Guide2.js +1 -1
  75. package/dist/C_Icon.css +24 -17
  76. package/dist/C_Icon2.cjs +1 -1
  77. package/dist/C_Icon2.js +1 -1
  78. package/dist/C_ImageCropper.css +39 -22
  79. package/dist/C_ImageCropper2.cjs +1 -1
  80. package/dist/C_ImageCropper2.js +1 -1
  81. package/dist/C_Language.css +30 -17
  82. package/dist/C_Language2.cjs +1 -1
  83. package/dist/C_Language2.js +1 -1
  84. package/dist/C_Loading.cjs +1 -0
  85. package/dist/C_Loading.css +119 -0
  86. package/dist/C_Loading.d.cts +2 -0
  87. package/dist/C_Loading.d.ts +2 -0
  88. package/dist/C_Loading.js +1 -0
  89. package/dist/C_Loading2.cjs +1 -0
  90. package/dist/C_Loading2.js +1 -0
  91. package/dist/C_Login.css +162 -137
  92. package/dist/C_Login.d.cts +1 -1
  93. package/dist/C_Login.d.ts +1 -1
  94. package/dist/C_Login2.cjs +1 -1
  95. package/dist/C_Login2.js +1 -1
  96. package/dist/C_Map.css +25 -4
  97. package/dist/C_Map2.cjs +1 -1
  98. package/dist/C_Map2.js +1 -1
  99. package/dist/C_Markdown.css +47 -42
  100. package/dist/C_Markdown.d.cts +1 -1
  101. package/dist/C_Markdown.d.ts +1 -1
  102. package/dist/C_Markdown2.cjs +1 -1
  103. package/dist/C_Markdown2.js +1 -1
  104. package/dist/C_Menu.css +7 -1
  105. package/dist/C_Menu.d.ts +1 -1
  106. package/dist/C_Menu2.cjs +1 -1
  107. package/dist/C_Menu2.js +1 -1
  108. package/dist/C_NotificationCenter.css +134 -90
  109. package/dist/C_NotificationCenter2.cjs +1 -1
  110. package/dist/C_NotificationCenter2.js +1 -1
  111. package/dist/C_OrgChart.css +10 -0
  112. package/dist/C_OrgChart.d.cts +1 -1
  113. package/dist/C_OrgChart.d.ts +1 -1
  114. package/dist/C_OrgChart2.cjs +1 -1
  115. package/dist/C_OrgChart2.js +1 -1
  116. package/dist/C_Progress.d.cts +1 -1
  117. package/dist/C_Progress.d.ts +1 -1
  118. package/dist/C_QRCode.css +12 -8
  119. package/dist/C_QRCode2.cjs +1 -1
  120. package/dist/C_QRCode2.js +1 -1
  121. package/dist/C_Signature.css +18 -14
  122. package/dist/C_Signature2.cjs +1 -1
  123. package/dist/C_Signature2.js +1 -1
  124. package/dist/C_Skeleton.css +5 -0
  125. package/dist/C_Skeleton.d.cts +1 -1
  126. package/dist/C_Skeleton.d.ts +1 -1
  127. package/dist/C_Skeleton2.cjs +1 -1
  128. package/dist/C_Skeleton2.js +1 -1
  129. package/dist/C_SplitPane.css +61 -39
  130. package/dist/C_SplitPane2.cjs +1 -1
  131. package/dist/C_SplitPane2.js +1 -1
  132. package/dist/C_Steps.css +42 -38
  133. package/dist/C_Steps.d.cts +1 -1
  134. package/dist/C_Steps.d.ts +1 -1
  135. package/dist/C_Steps2.cjs +1 -1
  136. package/dist/C_Steps2.js +1 -1
  137. package/dist/C_Table.base.css +585 -352
  138. package/dist/C_Table.cjs +1 -1
  139. package/dist/C_Table.css +608 -367
  140. package/dist/C_Table.d.ts +2 -2
  141. package/dist/C_Table.js +1 -1
  142. package/dist/C_TagsView.css +93 -55
  143. package/dist/C_TagsView.d.cts +1 -1
  144. package/dist/C_TagsView.d.ts +1 -1
  145. package/dist/C_TagsView2.cjs +1 -1
  146. package/dist/C_TagsView2.js +1 -1
  147. package/dist/C_Theme.css +24 -17
  148. package/dist/C_Theme.d.cts +1 -1
  149. package/dist/C_Theme.d.ts +1 -1
  150. package/dist/C_Timeline.css +47 -36
  151. package/dist/C_Timeline.d.cts +1 -1
  152. package/dist/C_Timeline.d.ts +1 -1
  153. package/dist/C_Transfer.css +86 -67
  154. package/dist/C_Transfer.d.cts +1 -1
  155. package/dist/C_Transfer.d.ts +1 -1
  156. package/dist/C_Transfer2.cjs +1 -1
  157. package/dist/C_Transfer2.js +1 -1
  158. package/dist/C_Tree.css +48 -33
  159. package/dist/C_Tree2.cjs +1 -1
  160. package/dist/C_Tree2.js +1 -1
  161. package/dist/C_Upload.css +104 -51
  162. package/dist/C_Upload2.cjs +1 -1
  163. package/dist/C_Upload2.js +1 -1
  164. package/dist/C_VideoPlayer.css +140 -69
  165. package/dist/C_VideoPlayer2.cjs +1 -1
  166. package/dist/C_VideoPlayer2.js +1 -1
  167. package/dist/C_VtableGantt.css +42 -19
  168. package/dist/C_VtableGantt.d.cts +1 -1
  169. package/dist/C_VtableGantt.d.ts +1 -1
  170. package/dist/C_VtableGantt2.cjs +1 -1
  171. package/dist/C_VtableGantt2.js +1 -1
  172. package/dist/C_WaterFall.css +32 -16
  173. package/dist/C_WaterFall2.cjs +1 -1
  174. package/dist/C_WaterFall2.js +1 -1
  175. package/dist/C_WorkFlow.css +332 -221
  176. package/dist/C_WorkFlow2.cjs +1 -1
  177. package/dist/C_WorkFlow2.js +1 -1
  178. package/dist/config.cjs +1 -1
  179. package/dist/config.js +1 -1
  180. package/dist/constants.d.cts +4 -4
  181. package/dist/constants.d.ts +4 -4
  182. package/dist/constants2.d.cts +4 -4
  183. package/dist/constants2.d.ts +4 -4
  184. package/dist/constants3.d.cts +3 -3
  185. package/dist/constants3.d.ts +3 -3
  186. package/dist/constants4.d.cts +6 -6
  187. package/dist/constants4.d.ts +6 -6
  188. package/dist/constants5.d.cts +2 -2
  189. package/dist/constants5.d.ts +2 -2
  190. package/dist/data.d.cts +8 -8
  191. package/dist/data.d.ts +8 -8
  192. package/dist/data2.cjs +1 -1
  193. package/dist/data2.js +1 -1
  194. package/dist/index.cjs +1 -1
  195. package/dist/index.d.cts +28 -27
  196. package/dist/index.d.ts +28 -27
  197. package/dist/index.js +1 -1
  198. package/dist/index.vue.d.cts +1 -1
  199. package/dist/index.vue.d.ts +1 -1
  200. package/dist/index10.vue.d.cts +5 -5
  201. package/dist/index10.vue.d.ts +3 -3
  202. package/dist/index11.vue.d.cts +3 -3
  203. package/dist/index11.vue.d.ts +2 -2
  204. package/dist/index12.vue.d.cts +2 -2
  205. package/dist/index13.vue.d.ts +1 -1
  206. package/dist/index14.vue.d.cts +1 -1
  207. package/dist/index14.vue.d.ts +11 -9
  208. package/dist/index15.vue.d.cts +11 -9
  209. package/dist/index15.vue.d.ts +3 -3
  210. package/dist/index16.vue.d.cts +3 -3
  211. package/dist/index16.vue.d.ts +13 -129
  212. package/dist/index17.vue.d.cts +13 -129
  213. package/dist/index17.vue.d.ts +129 -76
  214. package/dist/index18.vue.d.cts +129 -76
  215. package/dist/index18.vue.d.ts +75 -71
  216. package/dist/index19.vue.d.cts +75 -93
  217. package/dist/index19.vue.d.ts +68 -90
  218. package/dist/index2.vue.d.cts +2 -2
  219. package/dist/index2.vue.d.ts +2 -2
  220. package/dist/index20.vue.d.cts +87 -40
  221. package/dist/index20.vue.d.ts +87 -40
  222. package/dist/index21.vue.d.cts +40 -89
  223. package/dist/index21.vue.d.ts +40 -89
  224. package/dist/index22.vue.d.cts +95 -37
  225. package/dist/index22.vue.d.ts +95 -37
  226. package/dist/index23.vue.d.cts +34 -8
  227. package/dist/index23.vue.d.ts +34 -8
  228. package/dist/index24.vue.d.cts +12 -654
  229. package/dist/index24.vue.d.ts +12 -654
  230. package/dist/index25.vue.d.cts +650 -85
  231. package/dist/index25.vue.d.ts +650 -85
  232. package/dist/index26.vue.d.cts +85 -100
  233. package/dist/index26.vue.d.ts +85 -100
  234. package/dist/index27.vue.d.cts +92 -61
  235. package/dist/index27.vue.d.ts +92 -61
  236. package/dist/index28.vue.d.cts +80 -0
  237. package/dist/index28.vue.d.ts +80 -0
  238. package/dist/index3.vue.d.cts +5 -5
  239. package/dist/index3.vue.d.ts +5 -5
  240. package/dist/index5.vue.d.ts +2 -2
  241. package/dist/index6.vue.d.cts +2 -2
  242. package/dist/index6.vue.d.ts +1 -1
  243. package/dist/index7.vue.d.cts +1 -1
  244. package/dist/index7.vue.d.ts +2 -2
  245. package/dist/index8.vue.d.cts +2 -2
  246. package/dist/index8.vue.d.ts +3 -3
  247. package/dist/index9.vue.d.cts +3 -3
  248. package/dist/index9.vue.d.ts +5 -5
  249. package/dist/mapUtils.d.cts +2 -2
  250. package/dist/mapUtils.d.ts +2 -2
  251. package/dist/presets.d.cts +1 -1
  252. package/dist/presets.d.ts +1 -1
  253. package/dist/resolver.cjs +1 -1
  254. package/dist/resolver.d.cts +1 -1
  255. package/dist/resolver.d.ts +1 -1
  256. package/dist/resolver.js +1 -1
  257. package/dist/style.css +3205 -1982
  258. package/dist/useCollapsePanel.d.cts +2 -2
  259. package/dist/useCollapsePanel.d.ts +2 -2
  260. package/dist/useCropperCore.d.cts +8 -8
  261. package/dist/useCropperCore.d.ts +8 -8
  262. package/dist/useDraggableLayout.d.cts +5 -5
  263. package/dist/useDraggableLayout.d.ts +5 -5
  264. package/dist/useDynamicFormState.d.cts +2 -2
  265. package/dist/useDynamicFormState.d.ts +2 -2
  266. package/dist/useEdgeInteraction.d.cts +1 -1
  267. package/dist/useEdgeInteraction.d.ts +1 -1
  268. package/dist/useFullscreen.d.cts +2 -2
  269. package/dist/useFullscreen.d.ts +2 -2
  270. package/dist/useInfiniteScroll.d.cts +3 -3
  271. package/dist/useInfiniteScroll.d.ts +3 -3
  272. package/dist/useQRCode.d.cts +2 -2
  273. package/dist/useQRCode.d.ts +2 -2
  274. package/dist/useSearchState.d.cts +6 -6
  275. package/dist/useSearchState.d.ts +6 -6
  276. package/dist/useSignatureHistory.d.cts +6 -6
  277. package/dist/useSignatureHistory.d.ts +6 -6
  278. package/dist/useSplitResize.d.cts +4 -4
  279. package/dist/useSplitResize.d.ts +4 -4
  280. package/dist/useTableQuery.cjs +3 -3
  281. package/dist/useTableQuery.d.cts +3 -1
  282. package/dist/useTableQuery.d.ts +3 -1
  283. package/dist/useTableQuery.js +3 -3
  284. package/dist/useTimeSelection.d.cts +4 -4
  285. package/dist/useTimeSelection.d.ts +4 -4
  286. package/dist/useTreeOperations.d.cts +6 -6
  287. package/dist/useTreeOperations.d.ts +6 -6
  288. package/dist/useWorkflowValidation.d.cts +6 -6
  289. package/dist/useWorkflowValidation.d.ts +6 -6
  290. package/dist/verification.d.cts +2 -2
  291. package/dist/verification.d.ts +2 -2
  292. package/package.json +10 -3
@@ -1,101 +1,79 @@
1
+ import { a as RouteItem, t as MenuAdapterConfig } from "./public.js";
1
2
  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
+ import * as naive_ui_es_menu_src_interface0 from "naive-ui/es/menu/src/interface";
2
7
 
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
- /** 节点是否默认折叠 */
8
+ //#region src/components/C_Menu/types.d.ts
9
+ type MenuValue = string | null;
10
+ interface MenuProps {
11
+ options?: MenuOption[];
12
+ routes?: RouteItem[];
13
+ adapterConfig?: MenuAdapterConfig;
14
+ labelFormatter?: (label: string) => string;
15
+ /** @deprecated Use modelValue. */
16
+ value?: MenuValue;
17
+ modelValue?: MenuValue;
18
+ expandedKeys?: string[];
19
+ defaultExpandedKeys?: string[];
20
+ mode?: 'vertical' | 'horizontal';
19
21
  collapsed?: boolean;
20
- /** 节点额外数据(透传给插槽/事件) */
21
- data?: Record<string, unknown>;
22
+ collapsedWidth?: number;
23
+ collapsedIconSize?: number;
24
+ inverted?: boolean;
25
+ themeOverrides?: Record<string, any>;
26
+ indent?: number;
27
+ rootIndent?: number;
28
+ dropdownProps?: DropdownProps;
22
29
  }
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
- minZoom?: number;
51
- /** 最大缩放 */
52
- maxZoom?: number;
53
- /** 是否可折叠 */
54
- collapsible?: boolean;
30
+ interface MenuEmits {
31
+ select: [key: string];
32
+ /** 鼠标或键盘聚焦叶子项时触发,可用于无副作用的路由预取。 */
33
+ intent: [key: string];
34
+ 'update:modelValue': [key: MenuValue];
35
+ /** @deprecated Use update:modelValue. */
36
+ 'update:value': [key: MenuValue];
37
+ 'update:expandedKeys': [keys: string[]];
38
+ }
39
+ interface MenuExpose {
40
+ showOption: (key: string) => void;
41
+ menuRef: Ref<MenuInst | null>;
55
42
  }
56
43
  //#endregion
57
- //#region src/components/C_OrgChart/index.vue.d.ts
58
- declare var __VLS_12: {
59
- node: OrgChartNode;
60
- isLeaf: boolean;
61
- isExpanded: boolean;
62
- };
63
- type __VLS_Slots = {} & {
64
- node?: (props: typeof __VLS_12) => any;
65
- };
66
- declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
67
- zoomIn: () => void;
68
- zoomOut: () => void;
69
- resetView: () => void;
70
- zoom: vue.Ref<number, number>;
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: vue.Ref<{
48
+ showOption: (key?: naive_ui_es_menu_src_interface0.Key) => void;
49
+ deriveResponsiveState: () => void;
50
+ } | null, MenuInst | {
51
+ showOption: (key?: naive_ui_es_menu_src_interface0.Key) => void;
52
+ deriveResponsiveState: () => void;
53
+ } | null>;
71
54
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
72
- "node-click": (node: OrgChartNode) => any;
73
- "node-expand": (node: OrgChartNode) => any;
74
- "node-collapse": (node: OrgChartNode) => any;
75
- }, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
76
- "onNode-click"?: ((node: OrgChartNode) => any) | undefined;
77
- "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
78
- "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
55
+ "update:modelValue": (key: MenuValue) => any;
56
+ select: (key: string) => any;
57
+ intent: (key: string) => any;
58
+ "update:value": (key: MenuValue) => any;
59
+ "update:expandedKeys": (keys: string[]) => any;
60
+ }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
61
+ "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
62
+ onSelect?: ((key: string) => any) | undefined;
63
+ onIntent?: ((key: string) => any) | undefined;
64
+ "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
65
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
79
66
  }>, {
80
- direction: OrgChartDirection;
81
- lineStyle: OrgChartLineStyle;
82
- lineColor: string;
83
- lineWidth: number;
84
- nodeSpacing: number;
85
- levelSpacing: number;
86
- zoomable: boolean;
87
- pannable: boolean;
88
- initialZoom: number;
89
- minZoom: number;
90
- maxZoom: number;
91
- collapsible: boolean;
67
+ mode: "vertical" | "horizontal";
68
+ defaultExpandedKeys: string[];
69
+ collapsed: boolean;
70
+ collapsedWidth: number;
71
+ collapsedIconSize: number;
72
+ inverted: boolean;
73
+ indent: number;
74
+ rootIndent: number;
75
+ dropdownProps: naive_ui0.DropdownProps;
92
76
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
77
  declare const _default: typeof __VLS_export;
95
- type __VLS_WithSlots<T, S> = T & {
96
- new (): {
97
- $slots: S;
98
- };
99
- };
100
78
  //#endregion
101
- export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
79
+ export { MenuValue as a, MenuProps as i, MenuEmits as n, MenuExpose as r, _default as t };
@@ -73,10 +73,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- clickable: boolean;
76
+ max: number;
77
77
  direction: "ltr" | "rtl";
78
+ clickable: boolean;
78
79
  overlap: number;
79
- max: number;
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
@@ -73,10 +73,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- clickable: boolean;
76
+ max: number;
77
77
  direction: "ltr" | "rtl";
78
+ clickable: boolean;
78
79
  overlap: number;
79
- max: number;
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
@@ -1,47 +1,94 @@
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
+ minZoom?: number;
51
+ /** 最大缩放 */
52
+ maxZoom?: number;
53
+ /** 是否可折叠 */
54
+ collapsible?: boolean;
55
+ }
56
+ //#endregion
57
+ //#region src/components/C_OrgChart/index.vue.d.ts
58
+ declare var __VLS_12: {
59
+ node: OrgChartNode;
60
+ isLeaf: boolean;
61
+ isExpanded: boolean;
62
+ };
33
63
  type __VLS_Slots = {} & {
34
- indicator?: (props: typeof __VLS_9) => any;
64
+ node?: (props: typeof __VLS_12) => any;
35
65
  };
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
- percentage: number | number[];
39
- isAnimation: boolean;
40
- time: number;
41
- indicatorPlacement: "inside" | "outside";
42
- showIndicator: boolean;
43
- strokeWidth: number;
44
- unit: string;
66
+ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
67
+ zoomIn: () => void;
68
+ zoomOut: () => void;
69
+ resetView: () => void;
70
+ zoom: vue.Ref<number, number>;
71
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
72
+ "node-click": (node: OrgChartNode) => any;
73
+ "node-expand": (node: OrgChartNode) => any;
74
+ "node-collapse": (node: OrgChartNode) => any;
75
+ }, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
76
+ "onNode-click"?: ((node: OrgChartNode) => any) | undefined;
77
+ "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
78
+ "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
+ }>, {
80
+ direction: OrgChartDirection;
81
+ lineStyle: OrgChartLineStyle;
82
+ lineColor: string;
83
+ lineWidth: number;
84
+ nodeSpacing: number;
85
+ levelSpacing: number;
86
+ zoomable: boolean;
87
+ pannable: boolean;
88
+ initialZoom: number;
89
+ minZoom: number;
90
+ maxZoom: number;
91
+ collapsible: boolean;
45
92
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
93
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
94
  declare const _default: typeof __VLS_export;
@@ -51,4 +98,4 @@ type __VLS_WithSlots<T, S> = T & {
51
98
  };
52
99
  };
53
100
  //#endregion
54
- export { _default as t };
101
+ export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
@@ -1,47 +1,94 @@
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
+ minZoom?: number;
51
+ /** 最大缩放 */
52
+ maxZoom?: number;
53
+ /** 是否可折叠 */
54
+ collapsible?: boolean;
55
+ }
56
+ //#endregion
57
+ //#region src/components/C_OrgChart/index.vue.d.ts
58
+ declare var __VLS_12: {
59
+ node: OrgChartNode;
60
+ isLeaf: boolean;
61
+ isExpanded: boolean;
62
+ };
33
63
  type __VLS_Slots = {} & {
34
- indicator?: (props: typeof __VLS_9) => any;
64
+ node?: (props: typeof __VLS_12) => any;
35
65
  };
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
- percentage: number | number[];
39
- isAnimation: boolean;
40
- time: number;
41
- indicatorPlacement: "inside" | "outside";
42
- showIndicator: boolean;
43
- strokeWidth: number;
44
- unit: string;
66
+ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
67
+ zoomIn: () => void;
68
+ zoomOut: () => void;
69
+ resetView: () => void;
70
+ zoom: vue.Ref<number, number>;
71
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
72
+ "node-click": (node: OrgChartNode) => any;
73
+ "node-expand": (node: OrgChartNode) => any;
74
+ "node-collapse": (node: OrgChartNode) => any;
75
+ }, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
76
+ "onNode-click"?: ((node: OrgChartNode) => any) | undefined;
77
+ "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
78
+ "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
+ }>, {
80
+ direction: OrgChartDirection;
81
+ lineStyle: OrgChartLineStyle;
82
+ lineColor: string;
83
+ lineWidth: number;
84
+ nodeSpacing: number;
85
+ levelSpacing: number;
86
+ zoomable: boolean;
87
+ pannable: boolean;
88
+ initialZoom: number;
89
+ minZoom: number;
90
+ maxZoom: number;
91
+ collapsible: boolean;
45
92
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
93
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
47
94
  declare const _default: typeof __VLS_export;
@@ -51,4 +98,4 @@ type __VLS_WithSlots<T, S> = T & {
51
98
  };
52
99
  };
53
100
  //#endregion
54
- export { _default as t };
101
+ export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
@@ -1,96 +1,47 @@
1
1
  import * as vue from "vue";
2
+ import { CSSProperties } from "vue";
2
3
 
3
- //#region src/components/C_Skeleton/types.d.ts
4
- /** 骨架屏预设模式 */
5
- type SkeletonPreset = 'text' | 'avatar' | 'card' | 'table' | 'form' | 'list' | 'detail' | 'image';
6
- /** 骨架屏动画类型 */
7
- type SkeletonAnimation = 'pulse' | 'wave' | false;
8
- /** 表格骨架配置 */
9
- interface SkeletonTableConfig {
10
- /** 行数 */
11
- rows?: number;
12
- /** 列数 */
13
- cols?: number;
14
- /** 是否显示表头 */
15
- showHeader?: boolean;
16
- /** 是否显示操作列 */
17
- showActions?: 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;
18
31
  }
19
- /** 表单骨架配置 */
20
- interface SkeletonFormConfig {
21
- /** 字段数 */
22
- fields?: number;
23
- /** 每行列数 */
24
- cols?: number;
25
- /** 是否显示标签 */
26
- showLabel?: boolean;
27
- /** 是否显示操作按钮 */
28
- showActions?: boolean;
29
- }
30
- /** 列表骨架配置 */
31
- interface SkeletonListConfig {
32
- /** 列表项数 */
33
- items?: number;
34
- /** 是否显示头像 */
35
- showAvatar?: boolean;
36
- /** 描述行数 */
37
- descLines?: number;
38
- }
39
- /** 卡片骨架配置 */
40
- interface SkeletonCardConfig {
41
- /** 是否显示封面图 */
42
- showCover?: boolean;
43
- /** 标题行数 */
44
- titleLines?: number;
45
- /** 描述行数 */
46
- descLines?: number;
47
- /** 是否显示底部操作 */
48
- showFooter?: boolean;
49
- }
50
- /** 详情骨架配置 */
51
- interface SkeletonDetailConfig {
52
- /** 字段数 */
53
- fields?: number;
54
- /** 每个字段的值行数 */
55
- valueLines?: number;
56
- /** 是否显示头像 */
57
- showAvatar?: boolean;
58
- }
59
- /** C_Skeleton Props */
60
- interface SkeletonProps {
61
- /** 预设模式 */
62
- preset?: SkeletonPreset;
63
- /** 是否正在加载(true 显示骨架屏,false 显示插槽内容) */
64
- loading?: boolean;
65
- /** 动画类型 */
66
- animation?: SkeletonAnimation;
67
- /** 重复次数(用于 text/card/list 模式) */
68
- repeat?: number;
69
- /** 圆角大小 */
70
- borderRadius?: string;
71
- /** 表格配置 */
72
- table?: SkeletonTableConfig;
73
- /** 表单配置 */
74
- form?: SkeletonFormConfig;
75
- /** 列表配置 */
76
- list?: SkeletonListConfig;
77
- /** 卡片配置 */
78
- card?: SkeletonCardConfig;
79
- /** 详情配置 */
80
- detail?: SkeletonDetailConfig;
81
- }
82
- //#endregion
83
- //#region src/components/C_Skeleton/index.vue.d.ts
84
- declare var __VLS_1: {};
32
+ declare var __VLS_9: {};
85
33
  type __VLS_Slots = {} & {
86
- default?: (props: typeof __VLS_1) => any;
34
+ indicator?: (props: typeof __VLS_9) => any;
87
35
  };
88
- declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
90
- repeat: number;
91
- preset: SkeletonPreset;
92
- borderRadius: string;
93
- animation: SkeletonAnimation;
36
+ declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ percentage: number | number[];
38
+ isAnimation: boolean;
39
+ time: number;
40
+ indicatorPlacement: "inside" | "outside";
41
+ showIndicator: boolean;
42
+ status: "default" | "success" | "error" | "warning" | "info";
43
+ strokeWidth: number;
44
+ unit: string;
94
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
47
  declare const _default: typeof __VLS_export;
@@ -100,4 +51,4 @@ type __VLS_WithSlots<T, S> = T & {
100
51
  };
101
52
  };
102
53
  //#endregion
103
- export { SkeletonFormConfig as a, SkeletonProps as c, SkeletonDetailConfig as i, SkeletonTableConfig as l, SkeletonAnimation as n, SkeletonListConfig as o, SkeletonCardConfig as r, SkeletonPreset as s, _default as t };
54
+ export { _default as t };