@robot-admin/naive-ui-components 0.11.7 → 0.12.1

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 (185) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +146 -29
  3. package/README_EN.md +146 -29
  4. package/SECURITY.md +1 -0
  5. package/dist/C_ActionBar.cjs +1 -1
  6. package/dist/C_ActionBar.css +53 -53
  7. package/dist/C_ActionBar.d.cts +2 -2
  8. package/dist/C_ActionBar.d.ts +2 -2
  9. package/dist/C_ActionBar.js +1 -1
  10. package/dist/C_ActionBar2.cjs +1 -1
  11. package/dist/C_ActionBar2.js +1 -1
  12. package/dist/C_AntV.css +67 -67
  13. package/dist/C_AntV2.cjs +3 -3
  14. package/dist/C_AntV2.js +3 -3
  15. package/dist/C_AudioPlayer.d.cts +1 -1
  16. package/dist/C_AudioPlayer.d.ts +1 -1
  17. package/dist/C_AvatarGroup.d.cts +1 -1
  18. package/dist/C_AvatarGroup.d.ts +1 -1
  19. package/dist/C_Barcode.d.cts +1 -1
  20. package/dist/C_Barcode.d.ts +1 -1
  21. package/dist/C_Breadcrumb.d.cts +1 -1
  22. package/dist/C_Breadcrumb.d.ts +1 -1
  23. package/dist/C_Captcha.cjs +1 -1
  24. package/dist/C_Captcha.css +193 -51
  25. package/dist/C_Captcha.d.cts +2 -3
  26. package/dist/C_Captcha.d.ts +2 -3
  27. package/dist/C_Captcha.js +1 -1
  28. package/dist/C_Captcha2.cjs +1 -1
  29. package/dist/C_Captcha2.js +1 -1
  30. package/dist/C_Cascade.d.cts +1 -1
  31. package/dist/C_Cascade.d.ts +1 -1
  32. package/dist/C_Chat.d.cts +1 -1
  33. package/dist/C_Chat.d.ts +1 -1
  34. package/dist/C_City.d.cts +1 -1
  35. package/dist/C_City.d.ts +1 -1
  36. package/dist/C_Code.d.cts +1 -1
  37. package/dist/C_Code.d.ts +1 -1
  38. package/dist/C_ContextMenu.d.cts +1 -1
  39. package/dist/C_ContextMenu.d.ts +1 -1
  40. package/dist/C_Date.d.cts +1 -1
  41. package/dist/C_Date.d.ts +1 -1
  42. package/dist/C_Editor.d.cts +1 -1
  43. package/dist/C_Editor.d.ts +1 -1
  44. package/dist/C_FormModal.cjs +1 -0
  45. package/dist/C_FormModal.css +41 -0
  46. package/dist/C_FormModal.d.cts +2 -0
  47. package/dist/C_FormModal.d.ts +3 -0
  48. package/dist/C_FormModal.js +1 -0
  49. package/dist/C_FormModal2.cjs +1 -0
  50. package/dist/C_FormModal2.js +1 -0
  51. package/dist/C_Login.css +210 -127
  52. package/dist/C_Login2.cjs +1 -1
  53. package/dist/C_Login2.js +1 -1
  54. package/dist/C_Map.css +3 -3
  55. package/dist/C_Map2.cjs +1 -1
  56. package/dist/C_Map2.js +1 -1
  57. package/dist/C_Menu.d.cts +1 -1
  58. package/dist/C_Table.base.css +86 -86
  59. package/dist/C_Table.cjs +1 -1
  60. package/dist/C_Table.css +86 -86
  61. package/dist/C_Table.d.ts +4 -3
  62. package/dist/C_Table.js +1 -1
  63. package/dist/C_Tabs.cjs +1 -0
  64. package/dist/C_Tabs.css +1 -0
  65. package/dist/C_Tabs.d.cts +2 -0
  66. package/dist/C_Tabs.d.ts +2 -0
  67. package/dist/C_Tabs.js +1 -0
  68. package/dist/C_TagsView.css +38 -38
  69. package/dist/C_TagsView2.cjs +1 -1
  70. package/dist/C_TagsView2.js +1 -1
  71. package/dist/C_VtableGantt.css +19 -19
  72. package/dist/C_VtableGantt2.cjs +1 -1
  73. package/dist/C_VtableGantt2.js +1 -1
  74. package/dist/constants.d.cts +2 -2
  75. package/dist/constants.d.ts +2 -2
  76. package/dist/constants2.d.cts +2 -2
  77. package/dist/constants2.d.ts +2 -2
  78. package/dist/constants3.d.cts +2 -2
  79. package/dist/constants3.d.ts +2 -2
  80. package/dist/constants4.d.cts +4 -4
  81. package/dist/constants4.d.ts +4 -4
  82. package/dist/constants5.d.cts +2 -2
  83. package/dist/constants5.d.ts +2 -2
  84. package/dist/data.d.cts +108 -0
  85. package/dist/data.d.ts +108 -0
  86. package/dist/data2.cjs +1 -0
  87. package/dist/data2.js +1 -0
  88. package/dist/index.cjs +1 -1
  89. package/dist/index.d.cts +49 -48
  90. package/dist/index.d.ts +51 -49
  91. package/dist/index.js +1 -1
  92. package/dist/index.vue.d.cts +72 -69
  93. package/dist/index.vue.d.ts +72 -69
  94. package/dist/index10.vue.d.cts +80 -39
  95. package/dist/index10.vue.d.ts +68 -77
  96. package/dist/index11.vue.d.cts +68 -77
  97. package/dist/index11.vue.d.ts +53 -68
  98. package/dist/index12.vue.d.cts +53 -68
  99. package/dist/index12.vue.d.ts +52 -58
  100. package/dist/index13.vue.d.cts +52 -58
  101. package/dist/index13.vue.d.ts +3 -3
  102. package/dist/index14.vue.d.cts +3 -3
  103. package/dist/index14.vue.d.ts +5 -5
  104. package/dist/index15.vue.d.cts +5 -5
  105. package/dist/index15.vue.d.ts +2 -2
  106. package/dist/index16.vue.d.cts +2 -2
  107. package/dist/index16.vue.d.ts +14 -11
  108. package/dist/index17.vue.d.cts +14 -11
  109. package/dist/index17.vue.d.ts +4 -4
  110. package/dist/index18.vue.d.cts +4 -4
  111. package/dist/index18.vue.d.ts +3 -3
  112. package/dist/index19.vue.d.cts +2 -2
  113. package/dist/index19.vue.d.ts +2 -2
  114. package/dist/index2.vue.d.cts +70 -65
  115. package/dist/index2.vue.d.ts +70 -65
  116. package/dist/index20.vue.d.cts +1 -1
  117. package/dist/index20.vue.d.ts +1 -1
  118. package/dist/index21.vue.d.cts +2 -2
  119. package/dist/index21.vue.d.ts +2 -2
  120. package/dist/index22.vue.d.cts +1 -1
  121. package/dist/index22.vue.d.ts +1 -1
  122. package/dist/index24.vue.d.cts +2 -2
  123. package/dist/index24.vue.d.ts +2 -2
  124. package/dist/index25.vue.d.cts +1 -1
  125. package/dist/index25.vue.d.ts +1 -1
  126. package/dist/index27.vue.d.cts +2 -2
  127. package/dist/index27.vue.d.ts +2 -2
  128. package/dist/index3.vue.d.cts +30 -80
  129. package/dist/index3.vue.d.ts +30 -80
  130. package/dist/index4.vue.d.cts +130 -30
  131. package/dist/index4.vue.d.ts +22 -30
  132. package/dist/index5.vue.d.cts +18 -126
  133. package/dist/index5.vue.d.ts +22 -19
  134. package/dist/index6.vue.d.cts +22 -19
  135. package/dist/index6.vue.d.ts +117 -22
  136. package/dist/index7.vue.d.cts +117 -22
  137. package/dist/index7.vue.d.ts +17 -110
  138. package/dist/index8.vue.d.cts +17 -110
  139. package/dist/index8.vue.d.ts +37 -24
  140. package/dist/index9.vue.d.cts +37 -24
  141. package/dist/index9.vue.d.ts +80 -39
  142. package/dist/mapUtils.d.cts +4 -4
  143. package/dist/mapUtils.d.ts +4 -4
  144. package/dist/presets.d.cts +96 -0
  145. package/dist/presets.d.ts +96 -0
  146. package/dist/resolver.cjs +1 -1
  147. package/dist/resolver.d.cts +1 -1
  148. package/dist/resolver.d.ts +1 -1
  149. package/dist/resolver.js +1 -1
  150. package/dist/style.css +520 -393
  151. package/dist/useCalendarEvents.d.cts +1 -1
  152. package/dist/useCalendarEvents.d.ts +1 -1
  153. package/dist/useCollapsePanel.d.cts +8 -8
  154. package/dist/useCollapsePanel.d.ts +8 -8
  155. package/dist/useCropperCore.d.cts +9 -9
  156. package/dist/useCropperCore.d.ts +9 -9
  157. package/dist/useDraggableLayout.d.cts +2 -2
  158. package/dist/useDraggableLayout.d.ts +2 -2
  159. package/dist/useEdgeInteraction.d.cts +3 -2
  160. package/dist/useEdgeInteraction.d.ts +3 -2
  161. package/dist/useInfiniteScroll.d.cts +1 -1
  162. package/dist/useInfiniteScroll.d.ts +1 -1
  163. package/dist/useQRCode.d.cts +4 -4
  164. package/dist/useQRCode.d.ts +4 -4
  165. package/dist/useSearchState.d.cts +6 -6
  166. package/dist/useSearchState.d.ts +6 -6
  167. package/dist/useSignatureHistory.d.cts +4 -4
  168. package/dist/useSignatureHistory.d.ts +4 -4
  169. package/dist/useSplitResize.d.cts +6 -6
  170. package/dist/useSplitResize.d.ts +6 -6
  171. package/dist/useTableQuery.cjs +3 -3
  172. package/dist/useTableQuery.d.cts +10 -0
  173. package/dist/useTableQuery.d.ts +10 -0
  174. package/dist/useTableQuery.js +3 -3
  175. package/dist/useTimeSelection.d.cts +5 -5
  176. package/dist/useTimeSelection.d.ts +5 -5
  177. package/dist/useTreeOperations.d.cts +8 -8
  178. package/dist/useTreeOperations.d.ts +8 -8
  179. package/dist/useWorkflowValidation.d.cts +4 -4
  180. package/dist/useWorkflowValidation.d.ts +4 -4
  181. package/dist/verification.d.cts +70 -5
  182. package/dist/verification.d.ts +70 -5
  183. package/package.json +2 -1
  184. package/dist/types.d.ts +0 -58
  185. package/dist/types2.d.cts +0 -58
@@ -1,34 +1,47 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_City/index.vue.d.ts
3
+ //#region src/components/C_Code/index.vue.d.ts
4
4
  interface Props {
5
- modelValue?: string;
6
- placeholder?: string;
7
- showLetters?: boolean;
5
+ code: string;
6
+ language?: string;
7
+ title?: string;
8
+ showHeader?: boolean;
9
+ showLineNumbers?: boolean;
10
+ wordWrap?: boolean;
11
+ trim?: boolean;
12
+ showFullscreen?: boolean;
13
+ maxHeight?: string | number;
14
+ autoLoadLanguage?: boolean;
8
15
  }
9
- declare var __VLS_9: {
10
- value: string | undefined;
11
- visible: boolean;
12
- };
13
- type __VLS_Slots = {} & {
14
- trigger?: (props: typeof __VLS_9) => any;
15
- };
16
- declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
17
- "update:modelValue": (value: string) => any;
18
- change: (value: string) => any;
16
+ /**
17
+ * 复制代码到剪贴板
18
+ */
19
+ declare function copyCode(): Promise<void>;
20
+ /**
21
+ * 切换全屏显示状态
22
+ */
23
+ declare function toggleFullscreen(): void;
24
+ declare const __VLS_export: vue.DefineComponent<Props, {
25
+ copyCode: typeof copyCode;
26
+ toggleFullscreen: typeof toggleFullscreen;
27
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
+ copy: (code: string) => any;
29
+ click: (event: MouseEvent) => any;
30
+ fullscreen: (isFullscreen: boolean) => any;
19
31
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
- onChange?: ((value: string) => any) | undefined;
32
+ onCopy?: ((code: string) => any) | undefined;
33
+ onClick?: ((event: MouseEvent) => any) | undefined;
34
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
22
35
  }>, {
23
- placeholder: string;
24
- showLetters: boolean;
36
+ trim: boolean;
37
+ code: string;
38
+ language: string;
39
+ showHeader: boolean;
40
+ showLineNumbers: boolean;
41
+ wordWrap: boolean;
42
+ showFullscreen: boolean;
43
+ autoLoadLanguage: boolean;
25
44
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
26
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
45
  declare const _default: typeof __VLS_export;
28
- type __VLS_WithSlots<T, S> = T & {
29
- new (): {
30
- $slots: S;
31
- };
32
- };
33
46
  //#endregion
34
47
  export { _default as t };
@@ -1,34 +1,47 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_City/index.vue.d.ts
3
+ //#region src/components/C_Code/index.vue.d.ts
4
4
  interface Props {
5
- modelValue?: string;
6
- placeholder?: string;
7
- showLetters?: boolean;
5
+ code: string;
6
+ language?: string;
7
+ title?: string;
8
+ showHeader?: boolean;
9
+ showLineNumbers?: boolean;
10
+ wordWrap?: boolean;
11
+ trim?: boolean;
12
+ showFullscreen?: boolean;
13
+ maxHeight?: string | number;
14
+ autoLoadLanguage?: boolean;
8
15
  }
9
- declare var __VLS_9: {
10
- value: string | undefined;
11
- visible: boolean;
12
- };
13
- type __VLS_Slots = {} & {
14
- trigger?: (props: typeof __VLS_9) => any;
15
- };
16
- declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
17
- "update:modelValue": (value: string) => any;
18
- change: (value: string) => any;
16
+ /**
17
+ * 复制代码到剪贴板
18
+ */
19
+ declare function copyCode(): Promise<void>;
20
+ /**
21
+ * 切换全屏显示状态
22
+ */
23
+ declare function toggleFullscreen(): void;
24
+ declare const __VLS_export: vue.DefineComponent<Props, {
25
+ copyCode: typeof copyCode;
26
+ toggleFullscreen: typeof toggleFullscreen;
27
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
+ copy: (code: string) => any;
29
+ click: (event: MouseEvent) => any;
30
+ fullscreen: (isFullscreen: boolean) => any;
19
31
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
- onChange?: ((value: string) => any) | undefined;
32
+ onCopy?: ((code: string) => any) | undefined;
33
+ onClick?: ((event: MouseEvent) => any) | undefined;
34
+ onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
22
35
  }>, {
23
- placeholder: string;
24
- showLetters: boolean;
36
+ trim: boolean;
37
+ code: string;
38
+ language: string;
39
+ showHeader: boolean;
40
+ showLineNumbers: boolean;
41
+ wordWrap: boolean;
42
+ showFullscreen: boolean;
43
+ autoLoadLanguage: boolean;
25
44
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
26
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
45
  declare const _default: typeof __VLS_export;
28
- type __VLS_WithSlots<T, S> = T & {
29
- new (): {
30
- $slots: S;
31
- };
32
- };
33
46
  //#endregion
34
47
  export { _default as t };
@@ -1,47 +1,88 @@
1
1
  import * as vue from "vue";
2
2
 
3
- //#region src/components/C_Code/index.vue.d.ts
4
- interface Props {
5
- code: string;
6
- language?: string;
7
- title?: string;
8
- showHeader?: boolean;
9
- showLineNumbers?: boolean;
10
- wordWrap?: boolean;
11
- trim?: boolean;
12
- showFullscreen?: boolean;
13
- maxHeight?: string | number;
14
- autoLoadLanguage?: boolean;
15
- }
16
- /**
17
- * 复制代码到剪贴板
18
- */
19
- declare function copyCode(): Promise<void>;
3
+ //#region src/components/C_ContextMenu/types.d.ts
20
4
  /**
21
- * 切换全屏显示状态
5
+ * @Description: 右键菜单组件类型定义
6
+ * Copyright (c) 2026 by CHENY, All Rights Reserved 😎.
22
7
  */
23
- declare function toggleFullscreen(): void;
24
- declare const __VLS_export: vue.DefineComponent<Props, {
25
- copyCode: typeof copyCode;
26
- toggleFullscreen: typeof toggleFullscreen;
27
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
- click: (event: MouseEvent) => any;
29
- copy: (code: string) => any;
30
- fullscreen: (isFullscreen: boolean) => any;
31
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
32
- onClick?: ((event: MouseEvent) => any) | undefined;
33
- onCopy?: ((code: string) => any) | undefined;
34
- onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
8
+ /** 菜单项 */
9
+ interface ContextMenuItem {
10
+ /** 唯一标识 */
11
+ key: string;
12
+ /** 菜单文字 */
13
+ label: string;
14
+ /** 图标(Iconify 图标名) */
15
+ icon?: string;
16
+ /** 快捷键标注文字(仅展示,不绑定) */
17
+ shortcut?: string;
18
+ /** 是否禁用 */
19
+ disabled?: boolean;
20
+ /** 是否隐藏 */
21
+ hidden?: boolean;
22
+ /** 分割线(此项渲染为分割线,label 被忽略) */
23
+ divider?: boolean;
24
+ /** 子菜单(支持无限嵌套) */
25
+ children?: ContextMenuItem[];
26
+ /** 自定义样式类 */
27
+ className?: string;
28
+ /** 危险操作(红色高亮) */
29
+ danger?: boolean;
30
+ }
31
+ /** 组件 Props */
32
+ interface ContextMenuProps {
33
+ /** 菜单项列表 */
34
+ items: ContextMenuItem[];
35
+ /** 菜单最小宽度 */
36
+ minWidth?: number;
37
+ /** 菜单最大宽度 */
38
+ maxWidth?: number;
39
+ /** 子菜单展开方向 */
40
+ subMenuPlacement?: 'right' | 'left';
41
+ /** 点击菜单项后是否自动关闭 */
42
+ autoClose?: boolean;
43
+ /** 是否禁用整个菜单 */
44
+ disabled?: boolean;
45
+ /** 自定义 z-index */
46
+ zIndex?: number;
47
+ }
48
+ /** 默认 Props */
49
+ declare const DEFAULT_CONTEXT_MENU_PROPS: {
50
+ minWidth: number;
51
+ maxWidth: number;
52
+ subMenuPlacement: "right";
53
+ autoClose: boolean;
54
+ disabled: boolean;
55
+ zIndex: number;
56
+ };
57
+ //#endregion
58
+ //#region src/components/C_ContextMenu/index.vue.d.ts
59
+ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
60
+ /** 在指定坐标打开菜单 */open: (x: number, y: number) => void; /** 关闭菜单 */
61
+ close: () => void; /** 当前是否可见 */
62
+ visible: vue.ComputedRef<boolean>;
63
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
+ select: (item: ContextMenuItem) => any;
65
+ close: () => any;
66
+ open: (position: {
67
+ x: number;
68
+ y: number;
69
+ }) => any;
70
+ }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
+ onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
+ onClose?: (() => any) | undefined;
73
+ onOpen?: ((position: {
74
+ x: number;
75
+ y: number;
76
+ }) => any) | undefined;
35
77
  }>, {
36
- trim: boolean;
37
- code: string;
38
- language: string;
39
- showHeader: boolean;
40
- showLineNumbers: boolean;
41
- wordWrap: boolean;
42
- showFullscreen: boolean;
43
- autoLoadLanguage: boolean;
78
+ items: ContextMenuItem[];
79
+ disabled: boolean;
80
+ zIndex: number;
81
+ minWidth: number;
82
+ maxWidth: number;
83
+ subMenuPlacement: "right" | "left";
84
+ autoClose: boolean;
44
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
45
86
  declare const _default: typeof __VLS_export;
46
87
  //#endregion
47
- export { _default as t };
88
+ export { DEFAULT_CONTEXT_MENU_PROPS as i, ContextMenuItem as n, ContextMenuProps as r, _default as t };
@@ -83,19 +83,19 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
+ error: (error: Error) => any;
86
87
  ready: (map: MapInstance) => any;
87
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
88
- error: (error: Error) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
+ onError?: ((error: Error) => any) | undefined;
90
91
  onReady?: ((map: MapInstance) => any) | undefined;
91
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
92
- onError?: ((error: Error) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- center: MapCoordinate;
96
95
  zoom: number;
97
- mapType: MapType;
96
+ center: MapCoordinate;
98
97
  ariaLabel: string;
98
+ mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
@@ -83,19 +83,19 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
+ error: (error: Error) => any;
86
87
  ready: (map: MapInstance) => any;
87
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
88
- error: (error: Error) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
+ onError?: ((error: Error) => any) | undefined;
90
91
  onReady?: ((map: MapInstance) => any) | undefined;
91
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
92
- onError?: ((error: Error) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- center: MapCoordinate;
96
95
  zoom: number;
97
- mapType: MapType;
96
+ center: MapCoordinate;
98
97
  ariaLabel: string;
98
+ mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
@@ -0,0 +1,96 @@
1
+ import * as vue from "vue";
2
+ import { Directive, Ref } from "vue";
3
+ import { ButtonProps } from "naive-ui";
4
+
5
+ //#region src/components/C_ActionBar/types.d.ts
6
+ type ActionState = boolean | Ref<boolean> | (() => boolean);
7
+ type ActionButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error';
8
+ type ActionButtonSize = 'tiny' | 'small' | 'medium' | 'large';
9
+ type ActionGroupAlign = 'left' | 'center' | 'right' | 'space-between' | 'space-around';
10
+ interface ActionDropdownItem {
11
+ key: string;
12
+ label: string;
13
+ icon?: string;
14
+ disabled?: ActionState;
15
+ show?: ActionState;
16
+ onClick?: () => void | Promise<void>;
17
+ }
18
+ interface ActionItem {
19
+ key?: string;
20
+ /** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
21
+ label?: string;
22
+ icon?: string;
23
+ type?: ActionButtonType;
24
+ size?: ActionButtonSize;
25
+ loading?: ActionState;
26
+ disabled?: ActionState;
27
+ show?: ActionState;
28
+ tooltip?: string;
29
+ group?: 'left' | 'right';
30
+ dropdown?: ActionDropdownItem[];
31
+ /** Promise 操作默认自动显示 loading 并阻止重复触发。 */
32
+ autoLoading?: boolean;
33
+ onClick?: () => void | Promise<void>;
34
+ buttonProps?: Partial<ButtonProps>;
35
+ directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
36
+ }
37
+ interface ActionBarConfig {
38
+ align?: ActionGroupAlign;
39
+ size?: ActionButtonSize;
40
+ gap?: number;
41
+ wrap?: boolean;
42
+ showDivider?: boolean;
43
+ dividerType?: 'vertical' | 'horizontal';
44
+ compact?: boolean;
45
+ inline?: boolean;
46
+ }
47
+ interface TableActionsProps {
48
+ actions?: ActionItem[];
49
+ leftActions?: ActionItem[];
50
+ rightActions?: ActionItem[];
51
+ config?: ActionBarConfig;
52
+ }
53
+ interface TableActionsEmits {
54
+ (e: 'action-click', action: ActionItem): void;
55
+ (e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
56
+ }
57
+ //#endregion
58
+ //#region src/components/C_ActionBar/index.vue.d.ts
59
+ declare var __VLS_14: {};
60
+ type __VLS_Slots = {} & {
61
+ center?: (props: typeof __VLS_14) => any;
62
+ };
63
+ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
+ "dropdown-click": (item: ActionDropdownItem, action: ActionItem) => any;
65
+ "action-click": (action: ActionItem) => any;
66
+ }, string, vue.PublicProps, Readonly<TableActionsProps> & Readonly<{
67
+ "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
68
+ "onAction-click"?: ((action: ActionItem) => any) | undefined;
69
+ }>, {
70
+ actions: ActionItem[];
71
+ leftActions: ActionItem[];
72
+ rightActions: ActionItem[];
73
+ config: ActionBarConfig;
74
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
75
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
76
+ declare const _default: typeof __VLS_export;
77
+ type __VLS_WithSlots<T, S> = T & {
78
+ new (): {
79
+ $slots: S;
80
+ };
81
+ };
82
+ //#endregion
83
+ //#region src/components/C_ActionBar/presets.d.ts
84
+ /** 未命中语义预设时使用的中性图标,保证操作按钮默认都有清晰入口。 */
85
+ declare const DEFAULT_ACTION_ICON = "mdi:gesture-tap-button";
86
+ /**
87
+ * 操作栏默认服务于表格和高频业务工具区,因此采用最紧凑规格。
88
+ * 使用侧仍可通过 config 或单个 action 覆盖尺寸。
89
+ */
90
+ declare const ACTION_BAR_DEFAULT_CONFIG: Readonly<Required<ActionBarConfig>>;
91
+ declare const ACTION_PRESETS: Readonly<Record<string, Pick<ActionItem, 'label' | 'icon' | 'type'>>>;
92
+ declare const resolveActionPreset: (action: ActionItem) => ActionItem;
93
+ /** 保留动作字面量推导,使用侧无需重复声明 ActionItem[]。 */
94
+ declare const defineActions: <const T extends ActionItem[]>(actions: T) => T;
95
+ //#endregion
96
+ export { resolveActionPreset as a, ActionButtonSize as c, ActionGroupAlign as d, ActionItem as f, TableActionsProps as h, defineActions as i, ActionButtonType as l, TableActionsEmits as m, ACTION_PRESETS as n, _default as o, ActionState as p, DEFAULT_ACTION_ICON as r, ActionBarConfig as s, ACTION_BAR_DEFAULT_CONFIG as t, ActionDropdownItem as u };
@@ -0,0 +1,96 @@
1
+ import * as vue from "vue";
2
+ import { Directive, Ref } from "vue";
3
+ import { ButtonProps } from "naive-ui";
4
+
5
+ //#region src/components/C_ActionBar/types.d.ts
6
+ type ActionState = boolean | Ref<boolean> | (() => boolean);
7
+ type ActionButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error';
8
+ type ActionButtonSize = 'tiny' | 'small' | 'medium' | 'large';
9
+ type ActionGroupAlign = 'left' | 'center' | 'right' | 'space-between' | 'space-around';
10
+ interface ActionDropdownItem {
11
+ key: string;
12
+ label: string;
13
+ icon?: string;
14
+ disabled?: ActionState;
15
+ show?: ActionState;
16
+ onClick?: () => void | Promise<void>;
17
+ }
18
+ interface ActionItem {
19
+ key?: string;
20
+ /** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
21
+ label?: string;
22
+ icon?: string;
23
+ type?: ActionButtonType;
24
+ size?: ActionButtonSize;
25
+ loading?: ActionState;
26
+ disabled?: ActionState;
27
+ show?: ActionState;
28
+ tooltip?: string;
29
+ group?: 'left' | 'right';
30
+ dropdown?: ActionDropdownItem[];
31
+ /** Promise 操作默认自动显示 loading 并阻止重复触发。 */
32
+ autoLoading?: boolean;
33
+ onClick?: () => void | Promise<void>;
34
+ buttonProps?: Partial<ButtonProps>;
35
+ directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
36
+ }
37
+ interface ActionBarConfig {
38
+ align?: ActionGroupAlign;
39
+ size?: ActionButtonSize;
40
+ gap?: number;
41
+ wrap?: boolean;
42
+ showDivider?: boolean;
43
+ dividerType?: 'vertical' | 'horizontal';
44
+ compact?: boolean;
45
+ inline?: boolean;
46
+ }
47
+ interface TableActionsProps {
48
+ actions?: ActionItem[];
49
+ leftActions?: ActionItem[];
50
+ rightActions?: ActionItem[];
51
+ config?: ActionBarConfig;
52
+ }
53
+ interface TableActionsEmits {
54
+ (e: 'action-click', action: ActionItem): void;
55
+ (e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
56
+ }
57
+ //#endregion
58
+ //#region src/components/C_ActionBar/index.vue.d.ts
59
+ declare var __VLS_14: {};
60
+ type __VLS_Slots = {} & {
61
+ center?: (props: typeof __VLS_14) => any;
62
+ };
63
+ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
+ "dropdown-click": (item: ActionDropdownItem, action: ActionItem) => any;
65
+ "action-click": (action: ActionItem) => any;
66
+ }, string, vue.PublicProps, Readonly<TableActionsProps> & Readonly<{
67
+ "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
68
+ "onAction-click"?: ((action: ActionItem) => any) | undefined;
69
+ }>, {
70
+ actions: ActionItem[];
71
+ leftActions: ActionItem[];
72
+ rightActions: ActionItem[];
73
+ config: ActionBarConfig;
74
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
75
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
76
+ declare const _default: typeof __VLS_export;
77
+ type __VLS_WithSlots<T, S> = T & {
78
+ new (): {
79
+ $slots: S;
80
+ };
81
+ };
82
+ //#endregion
83
+ //#region src/components/C_ActionBar/presets.d.ts
84
+ /** 未命中语义预设时使用的中性图标,保证操作按钮默认都有清晰入口。 */
85
+ declare const DEFAULT_ACTION_ICON = "mdi:gesture-tap-button";
86
+ /**
87
+ * 操作栏默认服务于表格和高频业务工具区,因此采用最紧凑规格。
88
+ * 使用侧仍可通过 config 或单个 action 覆盖尺寸。
89
+ */
90
+ declare const ACTION_BAR_DEFAULT_CONFIG: Readonly<Required<ActionBarConfig>>;
91
+ declare const ACTION_PRESETS: Readonly<Record<string, Pick<ActionItem, 'label' | 'icon' | 'type'>>>;
92
+ declare const resolveActionPreset: (action: ActionItem) => ActionItem;
93
+ /** 保留动作字面量推导,使用侧无需重复声明 ActionItem[]。 */
94
+ declare const defineActions: <const T extends ActionItem[]>(actions: T) => T;
95
+ //#endregion
96
+ export { resolveActionPreset as a, ActionButtonSize as c, ActionGroupAlign as d, ActionItem as f, TableActionsProps as h, defineActions as i, ActionButtonType as l, TableActionsEmits as m, ACTION_PRESETS as n, _default as o, ActionState as p, DEFAULT_ACTION_ICON as r, ActionBarConfig as s, ACTION_BAR_DEFAULT_CONFIG as t, ActionDropdownItem as u };
package/dist/resolver.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}exports.RobotNaiveUiResolver=r,exports.componentNames=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormModal.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_Tabs.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}exports.RobotNaiveUiResolver=r,exports.componentNames=t;
@@ -1,6 +1,6 @@
1
1
  //#region src/resolver.d.ts
2
2
  /** 组件库包含的所有组件名称 */
3
- declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
3
+ declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormModal", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_Tabs", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
4
4
  /** 组件名称类型 */
5
5
  type ComponentName = (typeof componentNames)[number];
6
6
  /** Component style loading strategy. `true` is kept as an alias of `full`. */
@@ -1,6 +1,6 @@
1
1
  //#region src/resolver.d.ts
2
2
  /** 组件库包含的所有组件名称 */
3
- declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
3
+ declare const componentNames: readonly ["C_ActionBar", "C_AntV", "C_AudioPlayer", "C_AvatarGroup", "C_Barcode", "C_Breadcrumb", "C_Captcha", "C_Cascade", "C_Chat", "C_City", "C_Code", "C_CollapsePanel", "C_ContextMenu", "C_Cron", "C_Date", "C_Draggable", "C_Editor", "C_FilePreview", "C_Form", "C_FormModal", "C_FormSearch", "C_FormulaEditor", "C_FullCalendar", "C_GlobalSearch", "C_Guide", "C_Icon", "C_ImageCropper", "C_Language", "C_Login", "C_Map", "C_Markdown", "C_Menu", "C_NotificationCenter", "C_OrgChart", "C_Progress", "C_QRCode", "C_Signature", "C_Skeleton", "C_SplitPane", "C_Steps", "C_Table", "C_Tabs", "C_TagsView", "C_Theme", "C_Time", "C_Timeline", "C_Transfer", "C_Tree", "C_Upload", "C_VideoPlayer", "C_VtableGantt", "C_WaterFall", "C_WorkFlow"];
4
4
  /** 组件名称类型 */
5
5
  type ComponentName = (typeof componentNames)[number];
6
6
  /** Component style loading strategy. `true` is kept as an alias of `full`. */
package/dist/resolver.js CHANGED
@@ -1 +1 @@
1
- const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}export{r as RobotNaiveUiResolver,t as componentNames};
1
+ const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_AudioPlayer.C_AvatarGroup.C_Barcode.C_Breadcrumb.C_Captcha.C_Cascade.C_Chat.C_City.C_Code.C_CollapsePanel.C_ContextMenu.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormModal.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Login.C_Map.C_Markdown.C_Menu.C_NotificationCenter.C_OrgChart.C_Progress.C_QRCode.C_Signature.C_Skeleton.C_SplitPane.C_Steps.C_Table.C_Tabs.C_TagsView.C_Theme.C_Time.C_Timeline.C_Transfer.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!0,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t)){let n=r?`${e}/${t}`:e,a=i===!0?`full`:i;return{name:t,from:n,sideEffects:r&&a?`${e}/${t}/${a===`base`&&(t===`C_Form`||t===`C_Table`)?`base.css`:`style.css`}`:void 0}}}}}export{r as RobotNaiveUiResolver,t as componentNames};