@robot-admin/naive-ui-components 0.14.3 → 0.15.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 (257) hide show
  1. package/CHANGELOG.md +24 -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 +252 -253
  65. package/dist/C_OrgChart.css +8 -8
  66. package/dist/C_PageLoading.css +34 -39
  67. package/dist/C_QRCode.css +5 -6
  68. package/dist/C_Signature.css +5 -6
  69. package/dist/C_Skeleton.css +2 -2
  70. package/dist/C_SplitPane.css +2 -2
  71. package/dist/C_Steps.css +5 -6
  72. package/dist/C_Table.base.css +1090 -879
  73. package/dist/C_Table.cjs +1 -1
  74. package/dist/C_Table.css +1096 -885
  75. package/dist/C_Table.d.cts +1 -1
  76. package/dist/C_Table.d.ts +1 -1
  77. package/dist/C_Table.js +1 -1
  78. package/dist/C_Tabs.css +5 -6
  79. package/dist/C_TagsView.css +60 -63
  80. package/dist/C_TagsView2.cjs +1 -1
  81. package/dist/C_TagsView2.js +1 -1
  82. package/dist/C_Theme.css +7 -8
  83. package/dist/C_Time.css +1 -1
  84. package/dist/C_Timeline.css +8 -8
  85. package/dist/C_Transfer.css +10 -11
  86. package/dist/C_Tree.css +16 -17
  87. package/dist/C_Upload.css +156 -157
  88. package/dist/C_VideoPlayer.css +267 -267
  89. package/dist/C_VtableGantt.css +2 -2
  90. package/dist/C_WaterFall.css +2 -2
  91. package/dist/C_WorkFlow.css +466 -470
  92. package/dist/C_WorkFlow2.cjs +1 -1
  93. package/dist/C_WorkFlow2.js +1 -1
  94. package/dist/Card.cjs +1 -0
  95. package/dist/Card.js +1 -0
  96. package/dist/Custom.cjs +1 -0
  97. package/dist/Custom.js +1 -0
  98. package/dist/Dynamic.cjs +1 -0
  99. package/dist/Dynamic.js +1 -0
  100. package/dist/Steps.cjs +1 -0
  101. package/dist/Steps.js +1 -0
  102. package/dist/Tabs.cjs +1 -0
  103. package/dist/Tabs.js +1 -0
  104. package/dist/cascader.cjs +1 -0
  105. package/dist/cascader.js +1 -0
  106. package/dist/color-picker.cjs +1 -0
  107. package/dist/color-picker.js +1 -0
  108. package/dist/constants.d.cts +1 -1
  109. package/dist/constants.d.ts +1 -1
  110. package/dist/constants3.d.cts +2 -2
  111. package/dist/constants3.d.ts +2 -2
  112. package/dist/constants4.d.cts +4 -4
  113. package/dist/constants4.d.ts +4 -4
  114. package/dist/constants5.d.cts +2 -2
  115. package/dist/constants5.d.ts +2 -2
  116. package/dist/context.cjs +1 -0
  117. package/dist/context.js +1 -0
  118. package/dist/contracts.d.cts +24 -0
  119. package/dist/contracts.d.ts +24 -0
  120. package/dist/createPageLoading.cjs +1 -1
  121. package/dist/createPageLoading.js +1 -1
  122. package/dist/data.cjs +1 -1
  123. package/dist/data.d.cts +4 -4
  124. package/dist/data.d.ts +4 -4
  125. package/dist/data.js +1 -1
  126. package/dist/date-picker.cjs +1 -0
  127. package/dist/date-picker.js +1 -0
  128. package/dist/feedback.cjs +1 -0
  129. package/dist/feedback.js +1 -0
  130. package/dist/helpers.cjs +1 -1
  131. package/dist/helpers.js +1 -1
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.d.cts +6 -4
  134. package/dist/index.d.ts +6 -4
  135. package/dist/index.js +1 -1
  136. package/dist/index.vue.d.cts +4 -4
  137. package/dist/index.vue.d.ts +4 -4
  138. package/dist/index10.vue.d.cts +3 -3
  139. package/dist/index10.vue.d.ts +3 -3
  140. package/dist/index11.vue.d.cts +3 -3
  141. package/dist/index11.vue.d.ts +2 -2
  142. package/dist/index12.vue.d.cts +2 -2
  143. package/dist/index12.vue.d.ts +1 -1
  144. package/dist/index13.vue.d.cts +1 -1
  145. package/dist/index13.vue.d.ts +2 -2
  146. package/dist/index14.vue.d.cts +2 -2
  147. package/dist/index14.vue.d.ts +7 -7
  148. package/dist/index15.vue.d.cts +7 -7
  149. package/dist/index16.vue.d.ts +1 -1
  150. package/dist/index17.vue.d.cts +1 -1
  151. package/dist/index17.vue.d.ts +2 -2
  152. package/dist/index18.vue.d.cts +2 -2
  153. package/dist/index18.vue.d.ts +2 -2
  154. package/dist/index19.vue.d.cts +2 -2
  155. package/dist/index19.vue.d.ts +1 -8
  156. package/dist/index2.vue.d.cts +1 -1
  157. package/dist/index2.vue.d.ts +1 -1
  158. package/dist/index20.vue.d.cts +1 -1
  159. package/dist/index20.vue.d.ts +1 -1
  160. package/dist/index21.vue.d.cts +2 -2
  161. package/dist/index21.vue.d.ts +2 -2
  162. package/dist/index22.vue.d.cts +3 -3
  163. package/dist/index22.vue.d.ts +3 -3
  164. package/dist/index23.vue.d.cts +1 -1
  165. package/dist/index23.vue.d.ts +1 -1
  166. package/dist/index25.vue.d.cts +4 -4
  167. package/dist/index25.vue.d.ts +4 -4
  168. package/dist/index26.vue.d.cts +1 -1
  169. package/dist/index26.vue.d.ts +1 -1
  170. package/dist/index27.vue.d.cts +3 -3
  171. package/dist/index27.vue.d.ts +3 -3
  172. package/dist/index3.vue.d.cts +4 -4
  173. package/dist/index3.vue.d.ts +4 -4
  174. package/dist/index4.vue.d.cts +1 -8
  175. package/dist/index6.vue.d.ts +2 -2
  176. package/dist/index7.vue.d.cts +2 -2
  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 +3 -3
  180. package/dist/mapUtils.d.cts +2 -2
  181. package/dist/mapUtils.d.ts +2 -2
  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 +10671 -10704
  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 +1 -1
  196. package/dist/useCalendarEvents.d.ts +1 -1
  197. package/dist/useCollapsePanel.d.cts +6 -6
  198. package/dist/useCollapsePanel.d.ts +6 -6
  199. package/dist/useComponentLocale.cjs +1 -0
  200. package/dist/useComponentLocale.js +1 -0
  201. package/dist/useCropperCore.d.cts +4 -4
  202. package/dist/useCropperCore.d.ts +4 -4
  203. package/dist/useDraggableLayout.d.cts +8 -8
  204. package/dist/useDraggableLayout.d.ts +8 -8
  205. package/dist/useDynamicFormState.cjs +1 -0
  206. package/dist/useDynamicFormState.d.cts +62 -38
  207. package/dist/useDynamicFormState.d.ts +62 -38
  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/useFullscreen.d.cts +2 -2
  212. package/dist/useFullscreen.d.ts +2 -2
  213. package/dist/useInfiniteScroll.d.cts +1 -1
  214. package/dist/useInfiniteScroll.d.ts +1 -1
  215. package/dist/useQRCode.d.cts +3 -3
  216. package/dist/useQRCode.d.ts +3 -3
  217. package/dist/useSearchState.d.cts +16 -726
  218. package/dist/useSearchState.d.ts +16 -835
  219. package/dist/useSignatureHistory.d.cts +2 -2
  220. package/dist/useSignatureHistory.d.ts +2 -2
  221. package/dist/useSplitResize.d.cts +9 -9
  222. package/dist/useSplitResize.d.ts +9 -9
  223. package/dist/useTableQuery.cjs +3 -3
  224. package/dist/useTableQuery.d.cts +66 -33
  225. package/dist/useTableQuery.d.ts +66 -33
  226. package/dist/useTableQuery.js +3 -3
  227. package/dist/useTimeSelection.d.cts +2 -2
  228. package/dist/useTimeSelection.d.ts +2 -2
  229. package/dist/useTreeOperations.d.cts +4 -4
  230. package/dist/useTreeOperations.d.ts +4 -4
  231. package/dist/useWorkflowValidation.d.cts +3 -3
  232. package/dist/useWorkflowValidation.d.ts +3 -3
  233. package/dist/verification.d.cts +2 -2
  234. package/dist/verification.d.ts +2 -2
  235. package/docs/architecture.en.md +83 -0
  236. package/docs/architecture.md +83 -0
  237. package/docs/assets/README.md +47 -0
  238. package/docs/assets/naive-ui-components-banner.png +0 -0
  239. package/docs/assets/naive-ui-components-banner.svg +69 -0
  240. package/docs/assets/naive-ui-components-logo.png +0 -0
  241. package/docs/assets/naive-ui-components-logo.svg +22 -0
  242. package/docs/components.en.md +118 -0
  243. package/docs/components.md +118 -0
  244. package/docs/engineering.en.md +132 -0
  245. package/docs/engineering.md +133 -0
  246. package/docs/guides/usage.en.md +638 -0
  247. package/docs/guides/usage.md +699 -0
  248. package/docs/performance-0.15.0.md +20 -0
  249. package/docs/security-scan-2026-10-06.md +11 -0
  250. package/docs/security-scan-2026-10-18.md +16 -0
  251. package/package.json +29 -11
  252. package/dist/C_Form2.cjs +0 -1
  253. package/dist/C_Form2.js +0 -1
  254. package/dist/config.cjs +0 -1
  255. package/dist/config.d.cts +0 -33
  256. package/dist/config.d.ts +0 -33
  257. package/dist/config.js +0 -1
@@ -116,9 +116,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
- loading: boolean;
120
- title: string;
121
119
  storageKey: string;
120
+ title: string;
121
+ loading: boolean;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -116,9 +116,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
- loading: boolean;
120
- title: string;
121
119
  storageKey: string;
120
+ title: string;
121
+ loading: boolean;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -62,10 +62,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
64
  modelValue: string;
65
- mode: "edit" | "editable" | "preview";
66
- disabled: boolean;
67
65
  height: string | number;
66
+ disabled: boolean;
68
67
  placeholder: string;
68
+ mode: "edit" | "editable" | "preview";
69
69
  tocNavPosition: "left" | "right";
70
70
  defaultFullscreen: boolean;
71
71
  autofocus: boolean;
@@ -62,10 +62,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
64
  modelValue: string;
65
- mode: "edit" | "editable" | "preview";
66
- disabled: boolean;
67
65
  height: string | number;
66
+ disabled: boolean;
68
67
  placeholder: string;
68
+ mode: "edit" | "editable" | "preview";
69
69
  tocNavPosition: "left" | "right";
70
70
  defaultFullscreen: boolean;
71
71
  autofocus: boolean;
@@ -3,7 +3,6 @@ import * as vue from "vue";
3
3
  import { Ref } 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/C_Menu/types.d.ts
9
8
  type MenuValue = string | null;
@@ -44,13 +43,7 @@ interface MenuExpose {
44
43
  //#region src/components/C_Menu/index.vue.d.ts
45
44
  declare const __VLS_export: vue.DefineComponent<MenuProps, {
46
45
  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>;
46
+ menuRef: Ref<MenuInst | null, MenuInst | null>;
54
47
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
55
48
  "update:modelValue": (key: MenuValue) => any;
56
49
  select: (key: string) => any;
@@ -73,8 +73,8 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- clickable: boolean;
77
76
  direction: "ltr" | "rtl";
77
+ clickable: boolean;
78
78
  max: number;
79
79
  overlap: number;
80
80
  shape: "circle" | "square";
@@ -73,8 +73,8 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- clickable: boolean;
77
76
  direction: "ltr" | "rtl";
77
+ clickable: boolean;
78
78
  max: number;
79
79
  overlap: number;
80
80
  shape: "circle" | "square";
@@ -78,6 +78,7 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
78
78
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
79
  }>, {
80
80
  direction: OrgChartDirection;
81
+ collapsible: boolean;
81
82
  lineStyle: OrgChartLineStyle;
82
83
  lineColor: string;
83
84
  lineWidth: number;
@@ -88,7 +89,6 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
88
89
  initialZoom: number;
89
90
  minZoom: number;
90
91
  maxZoom: number;
91
- collapsible: boolean;
92
92
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
93
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
94
  declare const _default: typeof __VLS_export;
@@ -78,6 +78,7 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
78
78
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
79
  }>, {
80
80
  direction: OrgChartDirection;
81
+ collapsible: boolean;
81
82
  lineStyle: OrgChartLineStyle;
82
83
  lineColor: string;
83
84
  lineWidth: number;
@@ -88,7 +89,6 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
88
89
  initialZoom: number;
89
90
  minZoom: number;
90
91
  maxZoom: number;
91
- collapsible: boolean;
92
92
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
93
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
94
  declare const _default: typeof __VLS_export;
@@ -34,13 +34,13 @@ 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
37
  status: "default" | "success" | "error" | "warning" | "info";
39
- strokeWidth: number;
40
38
  percentage: number | number[];
41
39
  isAnimation: boolean;
40
+ time: number;
42
41
  indicatorPlacement: "inside" | "outside";
43
42
  showIndicator: boolean;
43
+ strokeWidth: number;
44
44
  unit: string;
45
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -34,13 +34,13 @@ 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
37
  status: "default" | "success" | "error" | "warning" | "info";
39
- strokeWidth: number;
40
38
  percentage: number | number[];
41
39
  isAnimation: boolean;
40
+ time: number;
42
41
  indicatorPlacement: "inside" | "outside";
43
42
  showIndicator: boolean;
43
+ strokeWidth: number;
44
44
  unit: string;
45
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -86,11 +86,11 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
90
89
  repeat: number;
91
- borderRadius: string;
92
- preset: SkeletonPreset;
93
90
  animation: SkeletonAnimation;
91
+ preset: SkeletonPreset;
92
+ loading: boolean;
93
+ borderRadius: string;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -86,11 +86,11 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- loading: boolean;
90
89
  repeat: number;
91
- borderRadius: string;
92
- preset: SkeletonPreset;
93
90
  animation: SkeletonAnimation;
91
+ preset: SkeletonPreset;
92
+ loading: boolean;
93
+ borderRadius: string;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  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
- clickable: boolean;
39
38
  current: number;
40
39
  direction: "horizontal" | "vertical";
40
+ clickable: boolean;
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
- clickable: boolean;
39
38
  current: number;
40
39
  direction: "horizontal" | "vertical";
40
+ clickable: boolean;
41
41
  connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
@@ -647,13 +647,13 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- options: GanttOptions;
650
+ height: string | number;
651
651
  title: string;
652
+ preset: GanttPreset;
653
+ showToolbar: boolean;
652
654
  data: GanttTask[];
655
+ options: GanttOptions;
653
656
  theme: "light" | "dark";
654
- showToolbar: boolean;
655
- height: string | number;
656
- preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
659
659
  declare const _default: typeof __VLS_export;
@@ -647,13 +647,13 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- options: GanttOptions;
650
+ height: string | number;
651
651
  title: string;
652
+ preset: GanttPreset;
653
+ showToolbar: boolean;
652
654
  data: GanttTask[];
655
+ options: GanttOptions;
653
656
  theme: "light" | "dark";
654
- showToolbar: boolean;
655
- height: string | number;
656
- preset: GanttPreset;
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,15 +84,15 @@ 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
93
  reverse: boolean;
94
- size: "small" | "medium" | "large";
95
94
  mode: "vertical" | "horizontal";
95
+ size: "small" | "medium" | "large";
96
96
  items: TimelineItem[];
97
97
  pending: boolean;
98
98
  labelPlacement: "left" | "right" | "alternate";
@@ -84,15 +84,15 @@ 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
93
  reverse: boolean;
94
- size: "small" | "medium" | "large";
95
94
  mode: "vertical" | "horizontal";
95
+ size: "small" | "medium" | "large";
96
96
  items: TimelineItem[];
97
97
  pending: boolean;
98
98
  labelPlacement: "left" | "right" | "alternate";
@@ -21,13 +21,13 @@ 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
- width: number;
29
25
  showBorder: boolean;
30
26
  showLabel: boolean;
27
+ width: number;
28
+ fontSize: number;
29
+ lineColor: string;
30
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
31
  showText: boolean;
32
32
  textPosition: "bottom" | "top";
33
33
  background: string;
@@ -21,13 +21,13 @@ 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
- width: number;
29
25
  showBorder: boolean;
30
26
  showLabel: boolean;
27
+ width: number;
28
+ fontSize: number;
29
+ lineColor: string;
30
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
31
  showText: boolean;
32
32
  textPosition: "bottom" | "top";
33
33
  background: string;
@@ -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;
@@ -104,14 +104,14 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
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;
@@ -104,14 +104,14 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
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;
@@ -62,26 +62,26 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
64
  select: (item: ContextMenuItem) => any;
65
- close: () => any;
66
65
  open: (position: {
67
66
  x: number;
68
67
  y: number;
69
68
  }) => any;
69
+ close: () => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
71
  onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
- onClose?: (() => any) | undefined;
73
72
  onOpen?: ((position: {
74
73
  x: number;
75
74
  y: number;
76
75
  }) => any) | undefined;
76
+ onClose?: (() => any) | undefined;
77
77
  }>, {
78
78
  disabled: boolean;
79
79
  items: ContextMenuItem[];
80
80
  minWidth: number;
81
81
  maxWidth: number;
82
- zIndex: number;
83
82
  subMenuPlacement: "right" | "left";
84
83
  autoClose: boolean;
84
+ zIndex: number;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const _default: typeof __VLS_export;
87
87
  //#endregion
@@ -91,10 +91,10 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
91
91
  onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
- ariaLabel: string;
94
+ height: string;
95
95
  center: MapCoordinate;
96
96
  zoom: number;
97
- height: string;
97
+ ariaLabel: string;
98
98
  mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
@@ -91,10 +91,10 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
91
91
  onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
- ariaLabel: string;
94
+ height: string;
95
95
  center: MapCoordinate;
96
96
  zoom: number;
97
- height: string;
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};