@robot-admin/naive-ui-components 0.13.5 → 0.13.7

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 (158) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +61 -6
  3. package/README_EN.md +53 -6
  4. package/dist/C_Form.base.css +174 -169
  5. package/dist/C_Form.cjs +1 -1
  6. package/dist/C_Form.css +174 -169
  7. package/dist/C_Form.d.cts +2 -2
  8. package/dist/C_Form.d.ts +2 -2
  9. package/dist/C_Form.js +1 -1
  10. package/dist/C_Form2.cjs +1 -1
  11. package/dist/C_Form2.js +1 -1
  12. package/dist/C_FormModal.css +15 -15
  13. package/dist/C_FormModal2.cjs +1 -1
  14. package/dist/C_FormModal2.js +1 -1
  15. package/dist/C_Loading.cjs +1 -0
  16. package/dist/C_Loading.css +119 -0
  17. package/dist/C_Loading.d.cts +2 -0
  18. package/dist/C_Loading.d.ts +2 -0
  19. package/dist/C_Loading.js +1 -0
  20. package/dist/C_Loading2.cjs +1 -0
  21. package/dist/C_Loading2.js +1 -0
  22. package/dist/C_Login.d.cts +1 -1
  23. package/dist/C_Login.d.ts +1 -1
  24. package/dist/C_Markdown.d.cts +1 -1
  25. package/dist/C_Markdown.d.ts +1 -1
  26. package/dist/C_Menu.d.ts +1 -1
  27. package/dist/C_OrgChart.d.cts +1 -1
  28. package/dist/C_OrgChart.d.ts +1 -1
  29. package/dist/C_Progress.d.cts +1 -1
  30. package/dist/C_Progress.d.ts +1 -1
  31. package/dist/C_Skeleton.d.cts +1 -1
  32. package/dist/C_Skeleton.d.ts +1 -1
  33. package/dist/C_Steps.d.cts +1 -1
  34. package/dist/C_Steps.d.ts +1 -1
  35. package/dist/C_Table.base.css +407 -282
  36. package/dist/C_Table.cjs +1 -1
  37. package/dist/C_Table.css +407 -282
  38. package/dist/C_Table.d.ts +2 -2
  39. package/dist/C_Table.js +1 -1
  40. package/dist/C_TagsView.d.cts +1 -1
  41. package/dist/C_TagsView.d.ts +1 -1
  42. package/dist/C_Theme.d.cts +1 -1
  43. package/dist/C_Theme.d.ts +1 -1
  44. package/dist/C_Timeline.d.cts +1 -1
  45. package/dist/C_Timeline.d.ts +1 -1
  46. package/dist/C_Transfer.d.cts +1 -1
  47. package/dist/C_Transfer.d.ts +1 -1
  48. package/dist/C_VtableGantt.d.cts +1 -1
  49. package/dist/C_VtableGantt.d.ts +1 -1
  50. package/dist/config.cjs +1 -1
  51. package/dist/config.js +1 -1
  52. package/dist/constants.d.cts +1 -1
  53. package/dist/constants.d.ts +1 -1
  54. package/dist/constants2.d.cts +4 -4
  55. package/dist/constants2.d.ts +4 -4
  56. package/dist/constants3.d.cts +3 -3
  57. package/dist/constants3.d.ts +3 -3
  58. package/dist/constants4.d.cts +5 -5
  59. package/dist/constants4.d.ts +5 -5
  60. package/dist/constants5.d.cts +2 -2
  61. package/dist/constants5.d.ts +2 -2
  62. package/dist/data.d.cts +6 -6
  63. package/dist/data.d.ts +6 -6
  64. package/dist/index.cjs +1 -1
  65. package/dist/index.d.cts +29 -28
  66. package/dist/index.d.ts +29 -28
  67. package/dist/index.js +1 -1
  68. package/dist/index.vue.d.cts +6 -6
  69. package/dist/index.vue.d.ts +6 -6
  70. package/dist/index10.vue.d.cts +2 -2
  71. package/dist/index10.vue.d.ts +1 -1
  72. package/dist/index11.vue.d.cts +1 -1
  73. package/dist/index11.vue.d.ts +3 -3
  74. package/dist/index12.vue.d.cts +3 -3
  75. package/dist/index12.vue.d.ts +1 -1
  76. package/dist/index13.vue.d.cts +1 -1
  77. package/dist/index13.vue.d.ts +5 -5
  78. package/dist/index14.vue.d.cts +5 -5
  79. package/dist/index14.vue.d.ts +5 -5
  80. package/dist/index15.vue.d.cts +5 -5
  81. package/dist/index15.vue.d.ts +1 -1
  82. package/dist/index16.vue.d.cts +1 -1
  83. package/dist/index16.vue.d.ts +13 -129
  84. package/dist/index17.vue.d.cts +13 -129
  85. package/dist/index17.vue.d.ts +129 -76
  86. package/dist/index18.vue.d.cts +129 -76
  87. package/dist/index18.vue.d.ts +75 -71
  88. package/dist/index19.vue.d.cts +75 -93
  89. package/dist/index19.vue.d.ts +68 -90
  90. package/dist/index2.vue.d.cts +2 -2
  91. package/dist/index2.vue.d.ts +2 -2
  92. package/dist/index20.vue.d.cts +87 -40
  93. package/dist/index20.vue.d.ts +87 -40
  94. package/dist/index21.vue.d.cts +40 -89
  95. package/dist/index21.vue.d.ts +40 -89
  96. package/dist/index22.vue.d.cts +95 -37
  97. package/dist/index22.vue.d.ts +95 -37
  98. package/dist/index23.vue.d.cts +34 -8
  99. package/dist/index23.vue.d.ts +34 -8
  100. package/dist/index24.vue.d.cts +12 -654
  101. package/dist/index24.vue.d.ts +12 -654
  102. package/dist/index25.vue.d.cts +650 -85
  103. package/dist/index25.vue.d.ts +650 -85
  104. package/dist/index26.vue.d.cts +85 -100
  105. package/dist/index26.vue.d.ts +85 -100
  106. package/dist/index27.vue.d.cts +92 -61
  107. package/dist/index27.vue.d.ts +92 -61
  108. package/dist/index28.vue.d.cts +80 -0
  109. package/dist/index28.vue.d.ts +80 -0
  110. package/dist/index3.vue.d.cts +5 -5
  111. package/dist/index3.vue.d.ts +5 -5
  112. package/dist/index6.vue.d.ts +1 -1
  113. package/dist/index7.vue.d.cts +1 -1
  114. package/dist/index8.vue.d.ts +2 -2
  115. package/dist/index9.vue.d.cts +2 -2
  116. package/dist/index9.vue.d.ts +2 -2
  117. package/dist/mapUtils.d.cts +2 -2
  118. package/dist/mapUtils.d.ts +2 -2
  119. package/dist/presets.d.cts +1 -1
  120. package/dist/presets.d.ts +1 -1
  121. package/dist/resolver.cjs +1 -1
  122. package/dist/resolver.d.cts +1 -1
  123. package/dist/resolver.d.ts +1 -1
  124. package/dist/resolver.js +1 -1
  125. package/dist/style.css +424 -297
  126. package/dist/useCollapsePanel.d.cts +2 -2
  127. package/dist/useCollapsePanel.d.ts +2 -2
  128. package/dist/useCropperCore.d.cts +9 -9
  129. package/dist/useCropperCore.d.ts +9 -9
  130. package/dist/useDraggableLayout.d.cts +5 -5
  131. package/dist/useDraggableLayout.d.ts +5 -5
  132. package/dist/useDynamicFormState.d.cts +27 -7
  133. package/dist/useDynamicFormState.d.ts +27 -7
  134. package/dist/useEdgeInteraction.d.cts +2 -2
  135. package/dist/useEdgeInteraction.d.ts +2 -2
  136. package/dist/useInfiniteScroll.d.cts +1 -1
  137. package/dist/useInfiniteScroll.d.ts +1 -1
  138. package/dist/useQRCode.d.cts +4 -4
  139. package/dist/useQRCode.d.ts +4 -4
  140. package/dist/useSearchState.d.cts +3 -3
  141. package/dist/useSearchState.d.ts +3 -3
  142. package/dist/useSignatureHistory.d.cts +3 -3
  143. package/dist/useSignatureHistory.d.ts +3 -3
  144. package/dist/useSplitResize.d.cts +3 -3
  145. package/dist/useSplitResize.d.ts +3 -3
  146. package/dist/useTableQuery.cjs +3 -3
  147. package/dist/useTableQuery.d.cts +2 -0
  148. package/dist/useTableQuery.d.ts +2 -0
  149. package/dist/useTableQuery.js +3 -3
  150. package/dist/useTimeSelection.d.cts +2 -2
  151. package/dist/useTimeSelection.d.ts +2 -2
  152. package/dist/useTreeOperations.d.cts +6 -6
  153. package/dist/useTreeOperations.d.ts +6 -6
  154. package/dist/useWorkflowValidation.d.cts +3 -3
  155. package/dist/useWorkflowValidation.d.ts +3 -3
  156. package/dist/verification.d.cts +1 -1
  157. package/dist/verification.d.ts +1 -1
  158. package/package.json +4 -3
@@ -1,101 +1,83 @@
1
1
  import * as vue from "vue";
2
2
 
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
- minZoom?: number;
51
- /** 最大缩放 */
52
- maxZoom?: number;
53
- /** 是否可折叠 */
54
- collapsible?: boolean;
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;
55
37
  }
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
- };
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>;
38
+ declare const __VLS_export: vue.DefineComponent<Props, {
39
+ focus: () => void;
40
+ getHtml: () => string;
41
+ insertText: (text: string) => void;
42
+ wordCount: vue.ComputedRef<number>;
71
43
  }, {}, {}, {}, 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;
44
+ "update:modelValue": (value: string) => any;
45
+ change: (text: string, html: string) => any;
46
+ save: (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
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
+ onChange?: ((text: string, html: string) => any) | undefined;
56
+ onSave?: ((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;
79
63
  }>, {
80
- direction: OrgChartDirection;
81
- collapsible: boolean;
82
- lineStyle: OrgChartLineStyle;
83
- lineColor: string;
84
- lineWidth: number;
85
- nodeSpacing: number;
86
- levelSpacing: number;
87
- zoomable: boolean;
88
- pannable: boolean;
89
- initialZoom: number;
90
- minZoom: number;
91
- maxZoom: number;
64
+ modelValue: string;
65
+ disabled: boolean;
66
+ placeholder: string;
67
+ height: string | number;
68
+ isDark: boolean;
69
+ mode: "edit" | "editable" | "preview";
70
+ maxLength: number;
71
+ tocNavPosition: "left" | "right";
72
+ defaultFullscreen: boolean;
73
+ autofocus: boolean;
74
+ includeLevel: number[];
75
+ leftToolbar: string;
76
+ rightToolbar: string;
77
+ showWordCount: boolean;
78
+ autoSave: boolean;
79
+ autoSaveInterval: number;
92
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
81
  declare const _default: typeof __VLS_export;
95
- type __VLS_WithSlots<T, S> = T & {
96
- new (): {
97
- $slots: S;
98
- };
99
- };
100
82
  //#endregion
101
- export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
83
+ export { _default as t };
@@ -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
- collapsible: boolean;
82
- lineStyle: OrgChartLineStyle;
83
- lineColor: string;
84
- lineWidth: number;
85
- nodeSpacing: number;
86
- levelSpacing: number;
87
- zoomable: boolean;
88
- pannable: boolean;
89
- initialZoom: number;
90
- minZoom: number;
91
- maxZoom: number;
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 };
@@ -72,14 +72,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
+ max: number;
75
76
  size: number;
76
77
  direction: "ltr" | "rtl";
77
- max: number;
78
+ clickable: boolean;
78
79
  overlap: number;
79
80
  shape: "circle" | "square";
80
81
  showStatus: boolean;
81
82
  showTooltip: boolean;
82
- clickable: boolean;
83
83
  overflowClickable: boolean;
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
@@ -72,14 +72,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
+ max: number;
75
76
  size: number;
76
77
  direction: "ltr" | "rtl";
77
- max: number;
78
+ clickable: boolean;
78
79
  overlap: number;
79
80
  shape: "circle" | "square";
80
81
  showStatus: boolean;
81
82
  showTooltip: boolean;
82
- clickable: boolean;
83
83
  overflowClickable: boolean;
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
@@ -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
- strokeWidth: number;
38
- status: "default" | "success" | "error" | "warning" | "info";
39
- percentage: number | number[];
40
- isAnimation: boolean;
41
- time: number;
42
- indicatorPlacement: "inside" | "outside";
43
- showIndicator: boolean;
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
+ collapsible: boolean;
82
+ lineStyle: OrgChartLineStyle;
83
+ lineColor: string;
84
+ lineWidth: number;
85
+ nodeSpacing: number;
86
+ levelSpacing: number;
87
+ zoomable: boolean;
88
+ pannable: boolean;
89
+ initialZoom: number;
90
+ minZoom: number;
91
+ maxZoom: number;
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
- strokeWidth: number;
38
- status: "default" | "success" | "error" | "warning" | "info";
39
- percentage: number | number[];
40
- isAnimation: boolean;
41
- time: number;
42
- indicatorPlacement: "inside" | "outside";
43
- showIndicator: boolean;
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
+ collapsible: boolean;
82
+ lineStyle: OrgChartLineStyle;
83
+ lineColor: string;
84
+ lineWidth: number;
85
+ nodeSpacing: number;
86
+ levelSpacing: number;
87
+ zoomable: boolean;
88
+ pannable: boolean;
89
+ initialZoom: number;
90
+ minZoom: number;
91
+ maxZoom: number;
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 };