@robot-admin/naive-ui-components 0.14.3 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +130 -741
  3. package/README_EN.md +137 -678
  4. package/dist/C_ActionBar.css +57 -58
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_AntV.css +232 -238
  8. package/dist/C_AntV2.cjs +2 -2
  9. package/dist/C_AntV2.js +2 -2
  10. package/dist/C_AudioPlayer.css +9 -9
  11. package/dist/C_AvatarGroup.css +5 -6
  12. package/dist/C_Barcode.css +1 -1
  13. package/dist/C_Breadcrumb.css +15 -18
  14. package/dist/C_Breadcrumb2.cjs +1 -1
  15. package/dist/C_Breadcrumb2.js +1 -1
  16. package/dist/C_Captcha.css +46 -49
  17. package/dist/C_Captcha2.cjs +1 -1
  18. package/dist/C_Captcha2.js +1 -1
  19. package/dist/C_Cascade.css +5 -6
  20. package/dist/C_Chat.css +8 -8
  21. package/dist/C_City.css +2 -2
  22. package/dist/C_Code.css +9 -9
  23. package/dist/C_CollapsePanel.css +9 -9
  24. package/dist/C_ContextMenu.css +31 -31
  25. package/dist/C_Cron.css +271 -274
  26. package/dist/C_Date.css +1 -1
  27. package/dist/C_Draggable.css +10 -11
  28. package/dist/C_Editor.css +2 -2
  29. package/dist/C_FilePreview.css +423 -423
  30. package/dist/C_Form.base.css +608 -602
  31. package/dist/C_Form.cjs +1 -1
  32. package/dist/C_Form.css +610 -604
  33. package/dist/C_Form.d.cts +2 -2
  34. package/dist/C_Form.d.ts +2 -2
  35. package/dist/C_Form.js +1 -1
  36. package/dist/C_FormModal.cjs +1 -1
  37. package/dist/C_FormModal.css +12 -17
  38. package/dist/C_FormModal.js +1 -1
  39. package/dist/C_FormModal2.cjs +1 -1
  40. package/dist/C_FormModal2.js +1 -1
  41. package/dist/C_FormSearch.css +53 -55
  42. package/dist/C_FormSearch2.cjs +1 -1
  43. package/dist/C_FormSearch2.js +1 -1
  44. package/dist/C_FormulaEditor.css +204 -205
  45. package/dist/C_FullCalendar.css +13 -15
  46. package/dist/C_FullCalendar2.cjs +1 -1
  47. package/dist/C_FullCalendar2.js +1 -1
  48. package/dist/C_GlobalSearch.css +11 -12
  49. package/dist/C_Guide.css +10 -10
  50. package/dist/C_Icon.css +7 -8
  51. package/dist/C_ImageCropper.css +69 -69
  52. package/dist/C_Language.css +8 -8
  53. package/dist/C_Loading.css +22 -25
  54. package/dist/C_Loading2.cjs +1 -1
  55. package/dist/C_Loading2.js +1 -1
  56. package/dist/C_Login.css +130 -135
  57. package/dist/C_Login2.cjs +1 -1
  58. package/dist/C_Login2.js +1 -1
  59. package/dist/C_Map.css +22 -23
  60. package/dist/C_Markdown.css +6 -7
  61. package/dist/C_Menu.css +2 -5
  62. package/dist/C_Menu2.cjs +1 -1
  63. package/dist/C_Menu2.js +1 -1
  64. package/dist/C_NotificationCenter.css +316 -281
  65. package/dist/C_NotificationCenter.d.cts +2 -2
  66. package/dist/C_NotificationCenter.d.ts +2 -2
  67. package/dist/C_NotificationCenter2.cjs +1 -1
  68. package/dist/C_NotificationCenter2.js +1 -1
  69. package/dist/C_OrgChart.css +8 -8
  70. package/dist/C_PageLoading.css +34 -39
  71. package/dist/C_QRCode.css +5 -6
  72. package/dist/C_Signature.css +5 -6
  73. package/dist/C_Skeleton.css +2 -2
  74. package/dist/C_SplitPane.css +2 -2
  75. package/dist/C_Steps.css +5 -6
  76. package/dist/C_Table.base.css +1090 -879
  77. package/dist/C_Table.cjs +1 -1
  78. package/dist/C_Table.css +1096 -885
  79. package/dist/C_Table.d.cts +1 -1
  80. package/dist/C_Table.d.ts +1 -1
  81. package/dist/C_Table.js +1 -1
  82. package/dist/C_Tabs.css +5 -6
  83. package/dist/C_TagsView.css +60 -63
  84. package/dist/C_TagsView2.cjs +1 -1
  85. package/dist/C_TagsView2.js +1 -1
  86. package/dist/C_Theme.css +7 -8
  87. package/dist/C_Time.css +1 -1
  88. package/dist/C_Timeline.css +8 -8
  89. package/dist/C_Transfer.css +10 -11
  90. package/dist/C_Tree.css +16 -17
  91. package/dist/C_Upload.css +156 -157
  92. package/dist/C_VideoPlayer.css +267 -267
  93. package/dist/C_VtableGantt.css +2 -2
  94. package/dist/C_WaterFall.css +2 -2
  95. package/dist/C_WorkFlow.css +466 -470
  96. package/dist/C_WorkFlow2.cjs +1 -1
  97. package/dist/C_WorkFlow2.js +1 -1
  98. package/dist/Card.cjs +1 -0
  99. package/dist/Card.js +1 -0
  100. package/dist/Custom.cjs +1 -0
  101. package/dist/Custom.js +1 -0
  102. package/dist/Dynamic.cjs +1 -0
  103. package/dist/Dynamic.js +1 -0
  104. package/dist/Steps.cjs +1 -0
  105. package/dist/Steps.js +1 -0
  106. package/dist/Tabs.cjs +1 -0
  107. package/dist/Tabs.js +1 -0
  108. package/dist/cascader.cjs +1 -0
  109. package/dist/cascader.js +1 -0
  110. package/dist/color-picker.cjs +1 -0
  111. package/dist/color-picker.js +1 -0
  112. package/dist/constants3.d.cts +71 -117
  113. package/dist/constants3.d.ts +71 -117
  114. package/dist/constants4.d.cts +3 -3
  115. package/dist/constants4.d.ts +3 -3
  116. package/dist/constants5.d.cts +2 -2
  117. package/dist/constants5.d.ts +2 -2
  118. package/dist/context.cjs +1 -0
  119. package/dist/context.js +1 -0
  120. package/dist/contracts.d.cts +24 -0
  121. package/dist/contracts.d.ts +24 -0
  122. package/dist/createPageLoading.cjs +1 -1
  123. package/dist/createPageLoading.js +1 -1
  124. package/dist/data.cjs +1 -1
  125. package/dist/data.d.cts +9 -9
  126. package/dist/data.d.ts +9 -9
  127. package/dist/data.js +1 -1
  128. package/dist/date-picker.cjs +1 -0
  129. package/dist/date-picker.js +1 -0
  130. package/dist/feedback.cjs +1 -0
  131. package/dist/feedback.js +1 -0
  132. package/dist/helpers.cjs +1 -1
  133. package/dist/helpers.js +1 -1
  134. package/dist/index.cjs +1 -1
  135. package/dist/index.d.cts +7 -5
  136. package/dist/index.d.ts +7 -5
  137. package/dist/index.js +1 -1
  138. package/dist/index.vue.d.cts +5 -5
  139. package/dist/index.vue.d.ts +5 -5
  140. package/dist/index10.vue.d.cts +5 -5
  141. package/dist/index10.vue.d.ts +3 -3
  142. package/dist/index11.vue.d.cts +3 -3
  143. package/dist/index11.vue.d.ts +2 -2
  144. package/dist/index12.vue.d.cts +2 -2
  145. package/dist/index12.vue.d.ts +1 -1
  146. package/dist/index13.vue.d.cts +1 -1
  147. package/dist/index14.vue.d.ts +9 -9
  148. package/dist/index15.vue.d.cts +9 -9
  149. package/dist/index15.vue.d.ts +1 -1
  150. package/dist/index16.vue.d.cts +1 -1
  151. package/dist/index18.vue.d.ts +4 -4
  152. package/dist/index19.vue.d.cts +4 -4
  153. package/dist/index19.vue.d.ts +2 -9
  154. package/dist/index2.vue.d.cts +2 -2
  155. package/dist/index2.vue.d.ts +2 -2
  156. package/dist/index20.vue.d.cts +1 -1
  157. package/dist/index20.vue.d.ts +1 -1
  158. package/dist/index21.vue.d.cts +2 -2
  159. package/dist/index21.vue.d.ts +2 -2
  160. package/dist/index22.vue.d.cts +1 -1
  161. package/dist/index22.vue.d.ts +1 -1
  162. package/dist/index23.vue.d.cts +1 -1
  163. package/dist/index23.vue.d.ts +1 -1
  164. package/dist/index25.vue.d.cts +4 -4
  165. package/dist/index25.vue.d.ts +4 -4
  166. package/dist/index26.vue.d.cts +1 -1
  167. package/dist/index26.vue.d.ts +1 -1
  168. package/dist/index27.vue.d.cts +5 -5
  169. package/dist/index27.vue.d.ts +5 -5
  170. package/dist/index28.vue.d.cts +3 -3
  171. package/dist/index28.vue.d.ts +3 -3
  172. package/dist/index3.vue.d.cts +3 -3
  173. package/dist/index3.vue.d.ts +3 -3
  174. package/dist/index4.vue.d.cts +2 -9
  175. package/dist/index6.vue.d.ts +4 -4
  176. package/dist/index7.vue.d.cts +4 -4
  177. package/dist/index8.vue.d.ts +3 -3
  178. package/dist/index9.vue.d.cts +3 -3
  179. package/dist/index9.vue.d.ts +5 -5
  180. package/dist/mapUtils.d.cts +5 -5
  181. package/dist/mapUtils.d.ts +5 -5
  182. package/dist/presets.d.cts +8 -2
  183. package/dist/presets.d.ts +8 -2
  184. package/dist/rate.cjs +1 -0
  185. package/dist/rate.js +1 -0
  186. package/dist/slider.cjs +1 -0
  187. package/dist/slider.js +1 -0
  188. package/dist/style.css +10725 -10722
  189. package/dist/time-picker.cjs +1 -0
  190. package/dist/time-picker.js +1 -0
  191. package/dist/upload.cjs +1 -0
  192. package/dist/upload.js +1 -0
  193. package/dist/useActionTask.cjs +1 -0
  194. package/dist/useActionTask.js +1 -0
  195. package/dist/useCalendarEvents.d.cts +2 -2
  196. package/dist/useCalendarEvents.d.ts +2 -2
  197. package/dist/useCollapsePanel.d.cts +5 -5
  198. package/dist/useCollapsePanel.d.ts +5 -5
  199. package/dist/useComponentLocale.cjs +1 -0
  200. package/dist/useComponentLocale.js +1 -0
  201. package/dist/useCropperCore.d.cts +8 -8
  202. package/dist/useCropperCore.d.ts +8 -8
  203. package/dist/useDraggableLayout.d.cts +9 -9
  204. package/dist/useDraggableLayout.d.ts +9 -9
  205. package/dist/useDynamicFormState.cjs +1 -0
  206. package/dist/useDynamicFormState.d.cts +64 -40
  207. package/dist/useDynamicFormState.d.ts +64 -40
  208. package/dist/useDynamicFormState.js +1 -0
  209. package/dist/useEdgeInteraction.d.cts +2 -2
  210. package/dist/useEdgeInteraction.d.ts +2 -2
  211. package/dist/useQRCode.d.cts +2 -2
  212. package/dist/useQRCode.d.ts +2 -2
  213. package/dist/useSearchState.d.cts +14 -724
  214. package/dist/useSearchState.d.ts +14 -833
  215. package/dist/useSignatureHistory.d.cts +3 -3
  216. package/dist/useSignatureHistory.d.ts +3 -3
  217. package/dist/useSplitResize.d.cts +5 -5
  218. package/dist/useSplitResize.d.ts +5 -5
  219. package/dist/useTableQuery.cjs +3 -3
  220. package/dist/useTableQuery.d.cts +66 -33
  221. package/dist/useTableQuery.d.ts +66 -33
  222. package/dist/useTableQuery.js +3 -3
  223. package/dist/useTimeSelection.d.cts +2 -2
  224. package/dist/useTimeSelection.d.ts +2 -2
  225. package/dist/useTreeOperations.d.cts +7 -7
  226. package/dist/useTreeOperations.d.ts +7 -7
  227. package/dist/useWorkflowValidation.d.cts +5 -5
  228. package/dist/useWorkflowValidation.d.ts +5 -5
  229. package/dist/verification.d.cts +1 -1
  230. package/dist/verification.d.ts +1 -1
  231. package/docs/architecture.en.md +83 -0
  232. package/docs/architecture.md +83 -0
  233. package/docs/assets/README.md +47 -0
  234. package/docs/assets/naive-ui-components-banner.png +0 -0
  235. package/docs/assets/naive-ui-components-banner.svg +69 -0
  236. package/docs/assets/naive-ui-components-logo.png +0 -0
  237. package/docs/assets/naive-ui-components-logo.svg +22 -0
  238. package/docs/components.en.md +118 -0
  239. package/docs/components.md +118 -0
  240. package/docs/engineering.en.md +132 -0
  241. package/docs/engineering.md +133 -0
  242. package/docs/guides/notification-center.md +95 -0
  243. package/docs/guides/usage.en.md +638 -0
  244. package/docs/guides/usage.md +699 -0
  245. package/docs/performance-0.15.0.md +20 -0
  246. package/docs/security-scan-2026-10-06.md +11 -0
  247. package/docs/security-scan-2026-10-18.md +16 -0
  248. package/package.json +29 -11
  249. package/dist/C_Form2.cjs +0 -1
  250. package/dist/C_Form2.js +0 -1
  251. package/dist/config.cjs +0 -1
  252. package/dist/config.d.cts +0 -33
  253. package/dist/config.d.ts +0 -33
  254. package/dist/config.js +0 -1
@@ -34,11 +34,11 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- time: number;
38
- status: "default" | "success" | "error" | "warning" | "info";
39
37
  strokeWidth: number;
38
+ status: "default" | "success" | "error" | "warning" | "info";
40
39
  percentage: number | number[];
41
40
  isAnimation: boolean;
41
+ time: number;
42
42
  indicatorPlacement: "inside" | "outside";
43
43
  showIndicator: boolean;
44
44
  unit: string;
@@ -34,11 +34,11 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- time: number;
38
- status: "default" | "success" | "error" | "warning" | "info";
39
37
  strokeWidth: number;
38
+ status: "default" | "success" | "error" | "warning" | "info";
40
39
  percentage: number | number[];
41
40
  isAnimation: boolean;
41
+ time: number;
42
42
  indicatorPlacement: "inside" | "outside";
43
43
  showIndicator: boolean;
44
44
  unit: string;
@@ -88,8 +88,8 @@ type __VLS_Slots = {} & {
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
89
  loading: boolean;
90
90
  repeat: number;
91
- borderRadius: string;
92
91
  preset: SkeletonPreset;
92
+ borderRadius: string;
93
93
  animation: SkeletonAnimation;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -88,8 +88,8 @@ type __VLS_Slots = {} & {
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
89
  loading: boolean;
90
90
  repeat: number;
91
- borderRadius: string;
92
91
  preset: SkeletonPreset;
92
+ borderRadius: string;
93
93
  animation: SkeletonAnimation;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -35,9 +35,9 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
+ direction: "horizontal" | "vertical";
38
39
  clickable: boolean;
39
40
  current: number;
40
- direction: "horizontal" | "vertical";
41
41
  connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
@@ -35,9 +35,9 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
+ direction: "horizontal" | "vertical";
38
39
  clickable: boolean;
39
40
  current: number;
40
- direction: "horizontal" | "vertical";
41
41
  connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
@@ -648,12 +648,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
650
  options: GanttOptions;
651
- title: string;
652
- data: GanttTask[];
653
- theme: "light" | "dark";
654
- showToolbar: boolean;
655
651
  height: string | number;
652
+ showToolbar: boolean;
653
+ title: string;
656
654
  preset: GanttPreset;
655
+ theme: "light" | "dark";
656
+ data: GanttTask[];
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
659
659
  declare const _default: typeof __VLS_export;
@@ -648,12 +648,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
650
  options: GanttOptions;
651
- title: string;
652
- data: GanttTask[];
653
- theme: "light" | "dark";
654
- showToolbar: boolean;
655
651
  height: string | number;
652
+ showToolbar: boolean;
653
+ title: string;
656
654
  preset: GanttPreset;
655
+ theme: "light" | "dark";
656
+ data: GanttTask[];
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
659
659
  declare const _default: typeof __VLS_export;
@@ -85,10 +85,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
85
85
  onClose?: ((fallbackPath: string) => any) | undefined;
86
86
  onCloseAll?: (() => any) | undefined;
87
87
  }>, {
88
+ persistKey: string;
88
89
  homePath: string;
89
90
  homeTitle: string;
90
91
  homeIcon: string;
91
- persistKey: string;
92
92
  contextMenuLabels: LegacyContextMenuLabels;
93
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
94
  declare const _default: typeof __VLS_export;
@@ -85,10 +85,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
85
85
  onClose?: ((fallbackPath: string) => any) | undefined;
86
86
  onCloseAll?: (() => any) | undefined;
87
87
  }>, {
88
+ persistKey: string;
88
89
  homePath: string;
89
90
  homeTitle: string;
90
91
  homeIcon: string;
91
- persistKey: string;
92
92
  contextMenuLabels: LegacyContextMenuLabels;
93
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
94
  declare const _default: typeof __VLS_export;
@@ -84,18 +84,18 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- "item-click": (item: TimelineItem, index: number) => any;
88
87
  expand: (item: TimelineItem, expanded: boolean) => any;
88
+ "item-click": (item: TimelineItem, index: number) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
- reverse: boolean;
94
93
  size: "small" | "medium" | "large";
94
+ reverse: boolean;
95
95
  mode: "vertical" | "horizontal";
96
- items: TimelineItem[];
97
- pending: boolean;
98
96
  labelPlacement: "left" | "right" | "alternate";
97
+ pending: boolean;
98
+ items: TimelineItem[];
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
101
101
  showTime: boolean;
@@ -84,18 +84,18 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- "item-click": (item: TimelineItem, index: number) => any;
88
87
  expand: (item: TimelineItem, expanded: boolean) => any;
88
+ "item-click": (item: TimelineItem, index: number) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
- reverse: boolean;
94
93
  size: "small" | "medium" | "large";
94
+ reverse: boolean;
95
95
  mode: "vertical" | "horizontal";
96
- items: TimelineItem[];
97
- pending: boolean;
98
96
  labelPlacement: "left" | "right" | "alternate";
97
+ pending: boolean;
98
+ items: TimelineItem[];
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
101
101
  showTime: boolean;
@@ -62,12 +62,12 @@ type __VLS_Props = {
62
62
  };
63
63
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
64
  "update:modelValue": (value: (string | number)[]) => any;
65
- change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
65
+ change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
66
66
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
67
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
- onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
68
+ onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
69
69
  }>, {
70
- size: "small" | "medium" | "large";
70
+ size: "medium" | "small" | "large";
71
71
  titles: [string, string];
72
72
  filterable: boolean;
73
73
  filterPlaceholder: string;
@@ -62,12 +62,12 @@ type __VLS_Props = {
62
62
  };
63
63
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
64
  "update:modelValue": (value: (string | number)[]) => any;
65
- change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
65
+ change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
66
66
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
67
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
- onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
68
+ onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
69
69
  }>, {
70
- size: "small" | "medium" | "large";
70
+ size: "medium" | "small" | "large";
71
71
  titles: [string, string];
72
72
  filterable: boolean;
73
73
  filterPlaceholder: string;
@@ -21,15 +21,15 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
23
  label: string;
24
- lineColor: string;
25
- fontSize: number;
26
24
  height: number;
27
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
28
25
  width: number;
26
+ fontSize: number;
29
27
  showBorder: boolean;
30
28
  showLabel: boolean;
29
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
30
  showText: boolean;
32
31
  textPosition: "bottom" | "top";
32
+ lineColor: string;
33
33
  background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
@@ -21,15 +21,15 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
23
  label: string;
24
- lineColor: string;
25
- fontSize: number;
26
24
  height: number;
27
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
28
25
  width: number;
26
+ fontSize: number;
29
27
  showBorder: boolean;
30
28
  showLabel: boolean;
29
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
30
  showText: boolean;
32
31
  textPosition: "bottom" | "top";
32
+ lineColor: string;
33
33
  background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
@@ -3,7 +3,6 @@ import * as vue from "vue";
3
3
  import { Ref, VNode } from "vue";
4
4
  import * as naive_ui0 from "naive-ui";
5
5
  import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
6
- import * as naive_ui_es_menu_src_interface0 from "naive-ui/es/menu/src/interface";
7
6
 
8
7
  //#region src/components/_shared/menuAdapter.d.ts
9
8
  /**
@@ -102,13 +101,7 @@ interface MenuExpose {
102
101
  //#region src/components/C_Menu/index.vue.d.ts
103
102
  declare const __VLS_export: vue.DefineComponent<MenuProps, {
104
103
  showOption: (key: string) => void | undefined;
105
- menuRef: vue.Ref<{
106
- showOption: (key?: naive_ui_es_menu_src_interface0.Key) => void;
107
- deriveResponsiveState: () => void;
108
- } | null, MenuInst | {
109
- showOption: (key?: naive_ui_es_menu_src_interface0.Key) => void;
110
- deriveResponsiveState: () => void;
111
- } | null>;
104
+ menuRef: Ref<MenuInst | null, MenuInst | null>;
112
105
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
113
106
  "update:modelValue": (key: MenuValue) => any;
114
107
  select: (key: string) => any;
@@ -124,11 +117,11 @@ declare const __VLS_export: vue.DefineComponent<MenuProps, {
124
117
  }>, {
125
118
  mode: "vertical" | "horizontal";
126
119
  defaultExpandedKeys: string[];
127
- indent: number;
128
120
  collapsed: boolean;
129
121
  collapsedWidth: number;
130
122
  collapsedIconSize: number;
131
123
  inverted: boolean;
124
+ indent: number;
132
125
  rootIndent: number;
133
126
  dropdownProps: naive_ui0.DropdownProps;
134
127
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -86,32 +86,32 @@ type __VLS_Slots = {} & {
86
86
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
87
  scrollToBottom: () => void;
88
88
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
89
- "load-more": () => any;
90
89
  send: (content: string) => any;
91
90
  "select-contact": (id: string) => any;
91
+ "load-more": () => any;
92
92
  "image-preview": (url: string) => any;
93
93
  "file-click": (msg: ChatMessage) => any;
94
94
  "file-upload": () => any;
95
95
  "emoji-click": () => any;
96
96
  resend: (msg: ChatMessage) => any;
97
97
  }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
98
- "onLoad-more"?: (() => any) | undefined;
99
98
  onSend?: ((content: string) => any) | undefined;
100
99
  "onSelect-contact"?: ((id: string) => any) | undefined;
100
+ "onLoad-more"?: (() => any) | undefined;
101
101
  "onImage-preview"?: ((url: string) => any) | undefined;
102
102
  "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
103
103
  "onFile-upload"?: (() => any) | undefined;
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
- title: string;
108
107
  placeholder: string;
109
- messages: ChatMessage[];
108
+ title: string;
110
109
  showContacts: boolean;
111
110
  showTimestamp: boolean;
112
111
  showSendBtn: boolean;
113
112
  loadingHistory: boolean;
114
113
  contacts: ChatContact[];
114
+ messages: ChatMessage[];
115
115
  currentContactId: string;
116
116
  selfAvatar: string;
117
117
  selfName: string;
@@ -86,32 +86,32 @@ type __VLS_Slots = {} & {
86
86
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
87
  scrollToBottom: () => void;
88
88
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
89
- "load-more": () => any;
90
89
  send: (content: string) => any;
91
90
  "select-contact": (id: string) => any;
91
+ "load-more": () => any;
92
92
  "image-preview": (url: string) => any;
93
93
  "file-click": (msg: ChatMessage) => any;
94
94
  "file-upload": () => any;
95
95
  "emoji-click": () => any;
96
96
  resend: (msg: ChatMessage) => any;
97
97
  }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
98
- "onLoad-more"?: (() => any) | undefined;
99
98
  onSend?: ((content: string) => any) | undefined;
100
99
  "onSelect-contact"?: ((id: string) => any) | undefined;
100
+ "onLoad-more"?: (() => any) | undefined;
101
101
  "onImage-preview"?: ((url: string) => any) | undefined;
102
102
  "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
103
103
  "onFile-upload"?: (() => any) | undefined;
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
- title: string;
108
107
  placeholder: string;
109
- messages: ChatMessage[];
108
+ title: string;
110
109
  showContacts: boolean;
111
110
  showTimestamp: boolean;
112
111
  showSendBtn: boolean;
113
112
  loadingHistory: boolean;
114
113
  contacts: ChatContact[];
114
+ messages: ChatMessage[];
115
115
  currentContactId: string;
116
116
  selfAvatar: string;
117
117
  selfName: string;
@@ -25,16 +25,16 @@ declare const __VLS_export: vue.DefineComponent<Props, {
25
25
  copyCode: typeof copyCode;
26
26
  toggleFullscreen: typeof toggleFullscreen;
27
27
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
- click: (event: MouseEvent) => any;
29
28
  copy: (code: string) => any;
29
+ click: (event: MouseEvent) => any;
30
30
  fullscreen: (isFullscreen: boolean) => any;
31
31
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
32
- onClick?: ((event: MouseEvent) => any) | undefined;
33
32
  onCopy?: ((code: string) => any) | undefined;
33
+ onClick?: ((event: MouseEvent) => any) | undefined;
34
34
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
35
35
  }>, {
36
- code: string;
37
36
  trim: boolean;
37
+ code: string;
38
38
  language: string;
39
39
  showHeader: boolean;
40
40
  showLineNumbers: boolean;
@@ -25,16 +25,16 @@ declare const __VLS_export: vue.DefineComponent<Props, {
25
25
  copyCode: typeof copyCode;
26
26
  toggleFullscreen: typeof toggleFullscreen;
27
27
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
- click: (event: MouseEvent) => any;
29
28
  copy: (code: string) => any;
29
+ click: (event: MouseEvent) => any;
30
30
  fullscreen: (isFullscreen: boolean) => any;
31
31
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
32
- onClick?: ((event: MouseEvent) => any) | undefined;
33
32
  onCopy?: ((code: string) => any) | undefined;
33
+ onClick?: ((event: MouseEvent) => any) | undefined;
34
34
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
35
35
  }>, {
36
- code: string;
37
36
  trim: boolean;
37
+ code: string;
38
38
  language: string;
39
39
  showHeader: boolean;
40
40
  showLineNumbers: boolean;
@@ -61,25 +61,25 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
61
61
  close: () => void; /** 当前是否可见 */
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
- select: (item: ContextMenuItem) => any;
65
- close: () => any;
66
64
  open: (position: {
67
65
  x: number;
68
66
  y: number;
69
67
  }) => any;
68
+ close: () => any;
69
+ select: (item: ContextMenuItem) => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
- onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
- onClose?: (() => any) | undefined;
73
71
  onOpen?: ((position: {
74
72
  x: number;
75
73
  y: number;
76
74
  }) => any) | undefined;
75
+ onClose?: (() => any) | undefined;
76
+ onSelect?: ((item: ContextMenuItem) => any) | undefined;
77
77
  }>, {
78
78
  disabled: boolean;
79
+ zIndex: number;
79
80
  items: ContextMenuItem[];
80
81
  minWidth: number;
81
82
  maxWidth: number;
82
- zIndex: number;
83
83
  subMenuPlacement: "right" | "left";
84
84
  autoClose: boolean;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -83,18 +83,18 @@ 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;
87
86
  ready: (map: MapInstance) => any;
87
+ error: (error: Error) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onError?: ((error: Error) => any) | undefined;
91
90
  onReady?: ((map: MapInstance) => any) | undefined;
91
+ onError?: ((error: Error) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
- ariaLabel: string;
95
- center: MapCoordinate;
96
- zoom: number;
97
94
  height: string;
95
+ zoom: number;
96
+ center: MapCoordinate;
97
+ ariaLabel: string;
98
98
  mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
@@ -83,18 +83,18 @@ 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;
87
86
  ready: (map: MapInstance) => any;
87
+ error: (error: Error) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onError?: ((error: Error) => any) | undefined;
91
90
  onReady?: ((map: MapInstance) => any) | undefined;
91
+ onError?: ((error: Error) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
- ariaLabel: string;
95
- center: MapCoordinate;
96
- zoom: number;
97
94
  height: string;
95
+ zoom: number;
96
+ center: MapCoordinate;
97
+ ariaLabel: string;
98
98
  mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
@@ -16,6 +16,7 @@ interface ActionDropdownItem {
16
16
  onClick?: () => void | Promise<void>;
17
17
  }
18
18
  interface ActionItem {
19
+ /** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
19
20
  key?: string;
20
21
  /** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
21
22
  label?: string;
@@ -28,9 +29,10 @@ interface ActionItem {
28
29
  tooltip?: string;
29
30
  group?: 'left' | 'right';
30
31
  dropdown?: ActionDropdownItem[];
31
- /** Promise 操作默认自动显示 loading 并阻止重复触发。 */
32
+ /** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
32
33
  autoLoading?: boolean;
33
34
  onClick?: () => void | Promise<void>;
35
+ /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
34
36
  buttonProps?: Partial<ButtonProps>;
35
37
  directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
36
38
  }
@@ -53,6 +55,8 @@ interface TableActionsProps {
53
55
  interface TableActionsEmits {
54
56
  (e: 'action-click', action: ActionItem): void;
55
57
  (e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
58
+ /** 执行失败通知;错误继续交给 Vue 的错误处理边界。 */
59
+ (e: 'action-error', error: unknown, action: ActionItem, item?: ActionDropdownItem): void;
56
60
  }
57
61
  //#endregion
58
62
  //#region src/components/C_ActionBar/index.vue.d.ts
@@ -61,14 +65,16 @@ type __VLS_Slots = {} & {
61
65
  center?: (props: typeof __VLS_14) => any;
62
66
  };
63
67
  declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
+ "action-error": (error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any;
64
69
  "dropdown-click": (item: ActionDropdownItem, action: ActionItem) => any;
65
70
  "action-click": (action: ActionItem) => any;
66
71
  }, string, vue.PublicProps, Readonly<TableActionsProps> & Readonly<{
72
+ "onAction-error"?: ((error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any) | undefined;
67
73
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
68
74
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
69
75
  }>, {
70
- actions: ActionItem[];
71
76
  config: ActionBarConfig;
77
+ actions: ActionItem[];
72
78
  leftActions: ActionItem[];
73
79
  rightActions: ActionItem[];
74
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
package/dist/presets.d.ts CHANGED
@@ -16,6 +16,7 @@ interface ActionDropdownItem {
16
16
  onClick?: () => void | Promise<void>;
17
17
  }
18
18
  interface ActionItem {
19
+ /** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
19
20
  key?: string;
20
21
  /** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
21
22
  label?: string;
@@ -28,9 +29,10 @@ interface ActionItem {
28
29
  tooltip?: string;
29
30
  group?: 'left' | 'right';
30
31
  dropdown?: ActionDropdownItem[];
31
- /** Promise 操作默认自动显示 loading 并阻止重复触发。 */
32
+ /** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
32
33
  autoLoading?: boolean;
33
34
  onClick?: () => void | Promise<void>;
35
+ /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
34
36
  buttonProps?: Partial<ButtonProps>;
35
37
  directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
36
38
  }
@@ -53,6 +55,8 @@ interface TableActionsProps {
53
55
  interface TableActionsEmits {
54
56
  (e: 'action-click', action: ActionItem): void;
55
57
  (e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
58
+ /** 执行失败通知;错误继续交给 Vue 的错误处理边界。 */
59
+ (e: 'action-error', error: unknown, action: ActionItem, item?: ActionDropdownItem): void;
56
60
  }
57
61
  //#endregion
58
62
  //#region src/components/C_ActionBar/index.vue.d.ts
@@ -61,14 +65,16 @@ type __VLS_Slots = {} & {
61
65
  center?: (props: typeof __VLS_14) => any;
62
66
  };
63
67
  declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
+ "action-error": (error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any;
64
69
  "dropdown-click": (item: ActionDropdownItem, action: ActionItem) => any;
65
70
  "action-click": (action: ActionItem) => any;
66
71
  }, string, vue.PublicProps, Readonly<TableActionsProps> & Readonly<{
72
+ "onAction-error"?: ((error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any) | undefined;
67
73
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
68
74
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
69
75
  }>, {
70
- actions: ActionItem[];
71
76
  config: ActionBarConfig;
77
+ actions: ActionItem[];
72
78
  leftActions: ActionItem[];
73
79
  rightActions: ActionItem[];
74
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
package/dist/rate.cjs ADDED
@@ -0,0 +1 @@
1
+ require(`./chunk.cjs`);let e=require(`naive-ui`);Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e.NRate}});
package/dist/rate.js ADDED
@@ -0,0 +1 @@
1
+ import{NRate as e}from"naive-ui";export{e as default};
@@ -0,0 +1 @@
1
+ require(`./chunk.cjs`);let e=require(`naive-ui`);Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e.NSlider}});
package/dist/slider.js ADDED
@@ -0,0 +1 @@
1
+ import{NSlider as e}from"naive-ui";export{e as default};