@robot-admin/naive-ui-components 0.41.1 → 0.42.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 (326) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +46 -5
  3. package/README_EN.md +54 -13
  4. package/dist/ActionOverflow.cjs +1 -1
  5. package/dist/ActionOverflow.js +1 -1
  6. package/dist/C_ActionBar.cjs +1 -1
  7. package/dist/C_ActionBar.css +54 -54
  8. package/dist/C_ActionBar.js +1 -1
  9. package/dist/C_ActionBar2.cjs +1 -1
  10. package/dist/C_ActionBar2.js +1 -1
  11. package/dist/C_AntV.css +10 -10
  12. package/dist/C_AntV2.cjs +1 -1
  13. package/dist/C_AntV2.js +1 -1
  14. package/dist/C_ApprovalViewer.css +15 -15
  15. package/dist/C_ApprovalViewer2.cjs +1 -1
  16. package/dist/C_ApprovalViewer2.js +1 -1
  17. package/dist/C_AudioPlayer.css +53 -53
  18. package/dist/C_AudioPlayer2.cjs +1 -1
  19. package/dist/C_AudioPlayer2.js +1 -1
  20. package/dist/C_AutoComplete.css +2 -2
  21. package/dist/C_AutoComplete2.cjs +1 -1
  22. package/dist/C_AutoComplete2.js +1 -1
  23. package/dist/C_AvatarGroup.css +29 -29
  24. package/dist/C_AvatarGroup2.cjs +1 -1
  25. package/dist/C_AvatarGroup2.js +1 -1
  26. package/dist/C_BatchResult.css +10 -10
  27. package/dist/C_BatchResult2.cjs +1 -1
  28. package/dist/C_BatchResult2.js +1 -1
  29. package/dist/C_Breadcrumb.css +40 -40
  30. package/dist/C_Breadcrumb2.cjs +1 -1
  31. package/dist/C_Breadcrumb2.js +1 -1
  32. package/dist/C_Captcha.d.cts +2 -2
  33. package/dist/C_Captcha.d.ts +2 -2
  34. package/dist/C_Captcha2.cjs +1 -1
  35. package/dist/C_Captcha2.js +1 -1
  36. package/dist/C_Cascade.css +4 -4
  37. package/dist/C_Cascade2.cjs +1 -1
  38. package/dist/C_Cascade2.js +1 -1
  39. package/dist/C_Chat2.cjs +1 -1
  40. package/dist/C_Chat2.js +1 -1
  41. package/dist/C_City.css +35 -35
  42. package/dist/C_City2.cjs +1 -1
  43. package/dist/C_City2.js +1 -1
  44. package/dist/C_Code.css +27 -27
  45. package/dist/C_Code2.cjs +1 -1
  46. package/dist/C_Code2.js +2 -2
  47. package/dist/C_CollapsePanel2.cjs +1 -1
  48. package/dist/C_CollapsePanel2.js +1 -1
  49. package/dist/C_ContextMenu.css +3 -3
  50. package/dist/C_ContextMenu2.cjs +1 -1
  51. package/dist/C_ContextMenu2.js +1 -1
  52. package/dist/C_Cron.css +18 -18
  53. package/dist/C_Cron2.cjs +1 -1
  54. package/dist/C_Cron2.js +1 -1
  55. package/dist/C_DataPicker.css +52 -52
  56. package/dist/C_DataPicker2.cjs +1 -1
  57. package/dist/C_DataPicker2.js +1 -1
  58. package/dist/C_Date.css +5 -5
  59. package/dist/C_Date2.cjs +1 -1
  60. package/dist/C_Date2.js +1 -1
  61. package/dist/C_Density2.cjs +1 -1
  62. package/dist/C_Density2.js +1 -1
  63. package/dist/C_Draggable.css +66 -53
  64. package/dist/C_Draggable2.cjs +1 -1
  65. package/dist/C_Draggable2.js +1 -1
  66. package/dist/C_Editor.css +13 -13
  67. package/dist/C_Editor.d.cts +2 -2
  68. package/dist/C_Editor.d.ts +2 -2
  69. package/dist/C_Editor2.cjs +1 -1
  70. package/dist/C_Editor2.js +1 -1
  71. package/dist/C_FilePreview.css +49 -49
  72. package/dist/C_FilePreview2.cjs +1 -1
  73. package/dist/C_FilePreview2.js +1 -1
  74. package/dist/C_Form.base.css +242 -242
  75. package/dist/C_Form.css +242 -242
  76. package/dist/C_Form.d.cts +1 -1
  77. package/dist/C_Form.d.ts +1 -1
  78. package/dist/C_FormModal.css +55 -55
  79. package/dist/C_FormModal2.cjs +1 -1
  80. package/dist/C_FormModal2.js +1 -1
  81. package/dist/C_FormSearch.css +75 -75
  82. package/dist/C_FormSearch.d.ts +1 -1
  83. package/dist/C_FormulaEditor.cjs +1 -1
  84. package/dist/C_FormulaEditor.css +41 -41
  85. package/dist/C_FormulaEditor.d.cts +2 -2
  86. package/dist/C_FormulaEditor.d.ts +2 -2
  87. package/dist/C_FormulaEditor.js +1 -1
  88. package/dist/C_GlobalSearch2.cjs +1 -1
  89. package/dist/C_GlobalSearch2.js +1 -1
  90. package/dist/C_Guide.css +13 -13
  91. package/dist/C_Guide2.cjs +1 -1
  92. package/dist/C_Guide2.js +1 -1
  93. package/dist/C_ImageCropper.css +27 -27
  94. package/dist/C_ImageCropper2.cjs +1 -1
  95. package/dist/C_ImageCropper2.js +1 -1
  96. package/dist/C_ImportWizard.css +8 -8
  97. package/dist/C_ImportWizard2.cjs +1 -1
  98. package/dist/C_ImportWizard2.js +1 -1
  99. package/dist/C_Language.css +2 -2
  100. package/dist/C_Language2.cjs +1 -1
  101. package/dist/C_Language2.js +1 -1
  102. package/dist/C_Loading.css +18 -18
  103. package/dist/C_Loading2.cjs +1 -1
  104. package/dist/C_Loading2.js +1 -1
  105. package/dist/C_Login.css +94 -94
  106. package/dist/C_Login2.cjs +1 -1
  107. package/dist/C_Login2.js +1 -1
  108. package/dist/C_Markdown.css +37 -37
  109. package/dist/C_Markdown2.cjs +1 -1
  110. package/dist/C_Markdown2.js +1 -1
  111. package/dist/C_NotificationCenter.css +24 -24
  112. package/dist/C_NotificationCenter2.cjs +1 -1
  113. package/dist/C_NotificationCenter2.js +1 -1
  114. package/dist/C_OrgChart.d.cts +2 -8
  115. package/dist/C_OrgChart.d.ts +2 -8
  116. package/dist/C_Progress2.cjs +1 -1
  117. package/dist/C_Progress2.js +1 -1
  118. package/dist/C_QRCode.css +9 -9
  119. package/dist/C_QRCode2.cjs +1 -1
  120. package/dist/C_QRCode2.js +1 -1
  121. package/dist/C_RecurrenceEditor.cjs +1 -1
  122. package/dist/C_RecurrenceEditor.d.cts +2 -2
  123. package/dist/C_RecurrenceEditor.d.ts +2 -2
  124. package/dist/C_RecurrenceEditor.js +1 -1
  125. package/dist/C_RecurrenceEditor2.cjs +1 -1
  126. package/dist/C_RecurrenceEditor2.js +1 -1
  127. package/dist/C_ResourceSchedule2.cjs +1 -1
  128. package/dist/C_ResourceSchedule2.js +1 -1
  129. package/dist/C_ScanInput2.cjs +1 -1
  130. package/dist/C_ScanInput2.js +1 -1
  131. package/dist/C_SectionNav.css +8 -8
  132. package/dist/C_SectionNav2.cjs +1 -1
  133. package/dist/C_SectionNav2.js +1 -1
  134. package/dist/C_Select.css +1 -1
  135. package/dist/C_Select2.cjs +1 -1
  136. package/dist/C_Select2.js +1 -1
  137. package/dist/C_Signature.css +15 -15
  138. package/dist/C_Signature2.cjs +1 -1
  139. package/dist/C_Signature2.js +1 -1
  140. package/dist/C_SplitPane2.cjs +1 -1
  141. package/dist/C_SplitPane2.js +1 -1
  142. package/dist/C_Table.base.css +429 -429
  143. package/dist/C_Table.css +187 -187
  144. package/dist/C_Table.d.cts +1 -1
  145. package/dist/C_Table.d.ts +1 -1
  146. package/dist/C_Table2.cjs +4 -4
  147. package/dist/C_Table2.js +4 -4
  148. package/dist/C_Timeline.css +50 -50
  149. package/dist/C_Timeline2.cjs +1 -1
  150. package/dist/C_Timeline2.js +1 -1
  151. package/dist/C_Transfer.css +25 -25
  152. package/dist/C_Transfer2.cjs +1 -1
  153. package/dist/C_Transfer2.js +1 -1
  154. package/dist/C_Tree.css +30 -30
  155. package/dist/C_Tree2.cjs +1 -1
  156. package/dist/C_Tree2.js +1 -1
  157. package/dist/C_Upload.css +5 -5
  158. package/dist/C_Upload2.cjs +1 -1
  159. package/dist/C_Upload2.js +1 -1
  160. package/dist/C_UserPicker.css +1 -1
  161. package/dist/C_VideoPlayer2.cjs +1 -1
  162. package/dist/C_VideoPlayer2.js +1 -1
  163. package/dist/C_VtableGantt.css +34 -34
  164. package/dist/C_WorkFlow.css +93 -93
  165. package/dist/C_WorkFlow2.cjs +1 -1
  166. package/dist/C_WorkFlow2.js +1 -1
  167. package/dist/Card.cjs +1 -1
  168. package/dist/Card.js +1 -1
  169. package/dist/ColumnSettingsDrawer.cjs +1 -0
  170. package/dist/ColumnSettingsDrawer.js +1 -0
  171. package/dist/Custom.cjs +1 -1
  172. package/dist/Custom.js +1 -1
  173. package/dist/Dynamic.cjs +1 -1
  174. package/dist/Dynamic.js +1 -1
  175. package/dist/OptionStatus.cjs +1 -1
  176. package/dist/OptionStatus.js +1 -1
  177. package/dist/Steps.cjs +1 -1
  178. package/dist/Steps.js +1 -1
  179. package/dist/Tabs.cjs +1 -1
  180. package/dist/Tabs.js +1 -1
  181. package/dist/actionIcon.cjs +1 -1
  182. package/dist/actionIcon.js +1 -1
  183. package/dist/component-config.d.ts +1 -1
  184. package/dist/config.d.cts +1 -1
  185. package/dist/config.d.ts +1 -1
  186. package/dist/constants.d.cts +6 -6
  187. package/dist/constants.d.ts +6 -6
  188. package/dist/constants2.d.cts +10 -3
  189. package/dist/constants2.d.ts +10 -3
  190. package/dist/constants3.d.cts +5 -5
  191. package/dist/constants3.d.ts +5 -5
  192. package/dist/constants4.d.cts +10 -9
  193. package/dist/constants4.d.ts +10 -9
  194. package/dist/context.d.cts +1 -1
  195. package/dist/data2.d.cts +10 -10
  196. package/dist/data2.d.ts +10 -10
  197. package/dist/editors.d.cts +17 -15
  198. package/dist/editors.d.ts +17 -15
  199. package/dist/fieldNode.cjs +1 -0
  200. package/dist/fieldNode.js +1 -0
  201. package/dist/fieldRenderers.cjs +1 -1
  202. package/dist/fieldRenderers.js +1 -1
  203. package/dist/graphics.cjs +1 -1
  204. package/dist/graphics.js +1 -1
  205. package/dist/index.cjs +1 -1
  206. package/dist/index.d.cts +7 -6
  207. package/dist/index.d.ts +6 -6
  208. package/dist/index.js +1 -1
  209. package/dist/index10.vue.d.cts +2 -2
  210. package/dist/index11.vue.d.ts +3 -3
  211. package/dist/index12.vue.d.cts +3 -3
  212. package/dist/index12.vue.d.ts +2 -2
  213. package/dist/index13.vue.d.cts +2 -2
  214. package/dist/index13.vue.d.ts +2 -2
  215. package/dist/index14.vue.d.cts +2 -2
  216. package/dist/index14.vue.d.ts +3 -3
  217. package/dist/index15.vue.d.cts +3 -3
  218. package/dist/index17.vue.d.ts +17 -10
  219. package/dist/index18.vue.d.cts +17 -10
  220. package/dist/index19.vue.d.ts +3 -3
  221. package/dist/index2.vue.d.cts +2 -2
  222. package/dist/index2.vue.d.ts +2 -2
  223. package/dist/index20.vue.d.cts +3 -3
  224. package/dist/index20.vue.d.ts +3 -3
  225. package/dist/index21.vue.d.cts +3 -3
  226. package/dist/index21.vue.d.ts +7 -7
  227. package/dist/index22.vue.d.cts +7 -7
  228. package/dist/index24.vue.d.ts +2 -2
  229. package/dist/index25.vue.d.cts +2 -2
  230. package/dist/index26.vue.d.ts +1 -1
  231. package/dist/index27.vue.d.cts +1 -1
  232. package/dist/index27.vue.d.ts +3 -3
  233. package/dist/index28.vue.d.cts +3 -3
  234. package/dist/index3.vue.d.cts +17 -19
  235. package/dist/index3.vue.d.ts +17 -19
  236. package/dist/index31.vue.d.cts +1 -1
  237. package/dist/index31.vue.d.ts +1 -1
  238. package/dist/index34.vue.d.cts +2 -0
  239. package/dist/index34.vue.d.ts +2 -0
  240. package/dist/index35.vue.d.cts +4 -4
  241. package/dist/index35.vue.d.ts +4 -4
  242. package/dist/index36.vue.d.cts +20 -11
  243. package/dist/index36.vue.d.ts +20 -11
  244. package/dist/index37.vue.d.cts +2 -2
  245. package/dist/index37.vue.d.ts +2 -2
  246. package/dist/index38.vue.d.cts +2 -2
  247. package/dist/index38.vue.d.ts +2 -2
  248. package/dist/index39.vue.d.cts +1 -1
  249. package/dist/index39.vue.d.ts +1 -1
  250. package/dist/index4.vue.d.cts +7 -4
  251. package/dist/index4.vue.d.ts +7 -4
  252. package/dist/index42.vue.d.cts +3 -3
  253. package/dist/index42.vue.d.ts +3 -3
  254. package/dist/index43.vue.d.cts +2 -2
  255. package/dist/index43.vue.d.ts +2 -2
  256. package/dist/index5.vue.d.cts +4 -16
  257. package/dist/index5.vue.d.ts +4 -16
  258. package/dist/index6.vue.d.cts +5 -5
  259. package/dist/index6.vue.d.ts +5 -5
  260. package/dist/index7.vue.d.cts +18 -12
  261. package/dist/index7.vue.d.ts +18 -12
  262. package/dist/index9.vue.d.ts +2 -2
  263. package/dist/localSource.d.cts +8 -8
  264. package/dist/localSource.d.ts +8 -8
  265. package/dist/locale.cjs +1 -1
  266. package/dist/locale.js +1 -1
  267. package/dist/mapUtils.d.cts +1 -1
  268. package/dist/mapUtils.d.ts +1 -1
  269. package/dist/persistence.cjs +1 -0
  270. package/dist/persistence.js +1 -0
  271. package/dist/rule.d.cts +4 -1
  272. package/dist/rule.d.ts +4 -1
  273. package/dist/serializeSearch.cjs +1 -1
  274. package/dist/serializeSearch.js +1 -1
  275. package/dist/source.cjs +1 -1
  276. package/dist/source.js +1 -1
  277. package/dist/style.css +1390 -1377
  278. package/dist/types.d.cts +5 -1
  279. package/dist/types.d.ts +5 -1
  280. package/dist/types10.d.cts +2 -0
  281. package/dist/types10.d.ts +1 -1
  282. package/dist/types11.d.cts +1 -1
  283. package/dist/types3.d.cts +14 -5
  284. package/dist/types3.d.ts +14 -5
  285. package/dist/types5.d.ts +12 -10
  286. package/dist/types6.d.cts +12 -10
  287. package/dist/types6.d.ts +1 -1
  288. package/dist/types9.d.ts +2 -0
  289. package/dist/useCalendarEvents.d.cts +4 -16
  290. package/dist/useCalendarEvents.d.ts +4 -16
  291. package/dist/useCollapsePanel.d.cts +1 -0
  292. package/dist/useCollapsePanel.d.ts +1 -0
  293. package/dist/useCropperCore.d.cts +6 -17
  294. package/dist/useCropperCore.d.ts +6 -17
  295. package/dist/useDynamicFormState.d.cts +3 -3
  296. package/dist/useDynamicFormState.d.ts +3 -3
  297. package/dist/useEdgeInteraction.d.cts +3 -12
  298. package/dist/useEdgeInteraction.d.ts +3 -12
  299. package/dist/useFormRenderer.d.cts +1 -1
  300. package/dist/useFormRenderer.d.ts +1 -1
  301. package/dist/useFormulaEvaluator.cjs +2 -2
  302. package/dist/useFormulaEvaluator.js +2 -2
  303. package/dist/useFullscreen.d.cts +23 -5
  304. package/dist/useFullscreen.d.ts +23 -5
  305. package/dist/useQRCode.d.cts +5 -18
  306. package/dist/useQRCode.d.ts +5 -18
  307. package/dist/useSignatureHistory.d.cts +4 -3
  308. package/dist/useSignatureHistory.d.ts +4 -3
  309. package/dist/useSplitResize.d.cts +2 -2
  310. package/dist/useSplitResize.d.ts +2 -2
  311. package/dist/useTimeSelection.d.cts +4 -3
  312. package/dist/useTimeSelection.d.ts +4 -3
  313. package/dist/useWorkflowValidation.d.cts +43 -37
  314. package/dist/useWorkflowValidation.d.ts +43 -37
  315. package/dist/verification.d.cts +8 -8
  316. package/dist/verification.d.ts +8 -8
  317. package/docs/engineering.en.md +1 -0
  318. package/docs/engineering.md +1 -0
  319. package/docs/guides/batch-results.md +3 -3
  320. package/docs/guides/data-picker.md +2 -0
  321. package/docs/guides/resource-schedule.md +1 -0
  322. package/docs/guides/runtime-performance.md +2 -0
  323. package/docs/guides/scene-components.md +1 -1
  324. package/docs/guides/usage.en.md +15 -4
  325. package/docs/guides/usage.md +13 -4
  326. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { m as DataPickerValue } from "./types5.js";
2
2
  import { l as UserPickerSource, o as UserPickerOrganization, r as UserPickerFields } from "./types10.js";
3
3
  import * as vue from "vue";
4
4
  import { Component, Ref, VNodeChild } from "vue";
5
- import { Connection, EdgeChange, EdgeUpdateEvent, NodeChange } from "@vue-flow/core";
5
+ import { Connection, EdgeChange, EdgeUpdateEvent, FitViewParams, NodeChange, SetCenterOptions } from "@vue-flow/core";
6
6
 
7
7
  //#region src/components/C_WorkFlow/people.d.ts
8
8
  /** 部门范围通过稳定编码传递;是否包含下级由来源的业务规则决定。 */
@@ -22,6 +22,11 @@ interface WorkflowPeopleOptions {
22
22
  }
23
23
  //#endregion
24
24
  //#region src/components/C_WorkFlow/types.d.ts
25
+ /** 画布控制只依赖两种 SDK 操作,不向节点及验证逻辑传递完整实例。 */
26
+ interface WorkflowViewport {
27
+ fitView?: (options?: FitViewParams) => void;
28
+ setCenter?: (x: number, y: number, options?: SetCenterOptions) => void;
29
+ }
25
30
  interface User {
26
31
  id: string;
27
32
  name: string;
@@ -193,6 +198,7 @@ interface WorkflowEmits {
193
198
  change: [value: WorkflowData];
194
199
  'node-click': [node: WorkflowNode];
195
200
  'edge-click': [edge: WorkflowEdge];
201
+ /** 已通过验证的保存请求。业务保存与成功反馈由宿主负责。 */
196
202
  save: [data: WorkflowData];
197
203
  'validate-error': [errors: ValidationError[]];
198
204
  }
@@ -307,18 +313,18 @@ declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
307
313
  }>;
308
314
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
309
315
  "node-click": (node: WorkflowNode<NodeType>) => any;
310
- change: (value: WorkflowData) => any;
311
316
  "update:modelValue": (value: WorkflowData) => any;
312
- "edge-click": (edge: WorkflowEdge) => any;
317
+ change: (value: WorkflowData) => any;
313
318
  save: (data: WorkflowData) => any;
314
319
  "validate-error": (errors: ValidationError[]) => any;
320
+ "edge-click": (edge: WorkflowEdge) => any;
315
321
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
316
322
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
317
- onChange?: ((value: WorkflowData) => any) | undefined;
318
323
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
319
- "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
324
+ onChange?: ((value: WorkflowData) => any) | undefined;
320
325
  onSave?: ((data: WorkflowData) => any) | undefined;
321
326
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
327
+ "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
322
328
  }>, {
323
329
  readonly: boolean;
324
330
  users: User[];
@@ -337,7 +343,7 @@ type __VLS_WithSlots<T, S> = T & {
337
343
  //#region src/components/C_WorkFlow/composables/useWorkflowNodes.d.ts
338
344
  type EmitFn$1 = <Event extends keyof WorkflowEmits>(event: Event, ...args: WorkflowEmits[Event]) => void;
339
345
  /** 工作流节点管理 —— 封装节点 CRUD、provide/inject、边重连、画布操作等逻辑 */
340
- declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowRef: Ref): {
346
+ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowRef: Ref<WorkflowViewport | null | undefined>): {
341
347
  nodes: Ref<({
342
348
  id: string;
343
349
  position: {
@@ -390,9 +396,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
390
396
  zIndex?: number | undefined;
391
397
  extent?: "parent" | [[number, number], [number, number]] | undefined;
392
398
  expandParent?: boolean | undefined;
393
- type: "approval";
399
+ type: "copy";
394
400
  data: {
395
- approvers?: {
401
+ copyUsers?: {
396
402
  id: string;
397
403
  name: string;
398
404
  avatar?: string | undefined;
@@ -402,7 +408,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
402
408
  email?: string | undefined;
403
409
  phone?: string | undefined;
404
410
  }[] | undefined;
405
- approvalMode?: ApprovalMode | undefined;
406
411
  title: string;
407
412
  status?: NodeStatus | undefined;
408
413
  config?: Record<string, unknown> | undefined;
@@ -435,9 +440,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
435
440
  zIndex?: number | undefined;
436
441
  extent?: "parent" | [[number, number], [number, number]] | undefined;
437
442
  expandParent?: boolean | undefined;
438
- type: "copy";
443
+ type: "approval";
439
444
  data: {
440
- copyUsers?: {
445
+ approvers?: {
441
446
  id: string;
442
447
  name: string;
443
448
  avatar?: string | undefined;
@@ -447,6 +452,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
447
452
  email?: string | undefined;
448
453
  phone?: string | undefined;
449
454
  }[] | undefined;
455
+ approvalMode?: ApprovalMode | undefined;
450
456
  title: string;
451
457
  status?: NodeStatus | undefined;
452
458
  config?: Record<string, unknown> | undefined;
@@ -557,9 +563,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
557
563
  zIndex?: number | undefined;
558
564
  extent?: "parent" | [[number, number], [number, number]] | undefined;
559
565
  expandParent?: boolean | undefined;
560
- type: "approval";
566
+ type: "copy";
561
567
  data: {
562
- approvers?: {
568
+ copyUsers?: {
563
569
  id: string;
564
570
  name: string;
565
571
  avatar?: string | undefined;
@@ -569,7 +575,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
569
575
  email?: string | undefined;
570
576
  phone?: string | undefined;
571
577
  }[] | undefined;
572
- approvalMode?: ApprovalMode | undefined;
573
578
  title: string;
574
579
  status?: NodeStatus | undefined;
575
580
  config?: Record<string, unknown> | undefined;
@@ -602,9 +607,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
602
607
  zIndex?: number | undefined;
603
608
  extent?: "parent" | [[number, number], [number, number]] | undefined;
604
609
  expandParent?: boolean | undefined;
605
- type: "copy";
610
+ type: "approval";
606
611
  data: {
607
- copyUsers?: {
612
+ approvers?: {
608
613
  id: string;
609
614
  name: string;
610
615
  avatar?: string | undefined;
@@ -614,6 +619,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
614
619
  email?: string | undefined;
615
620
  phone?: string | undefined;
616
621
  }[] | undefined;
622
+ approvalMode?: ApprovalMode | undefined;
617
623
  title: string;
618
624
  status?: NodeStatus | undefined;
619
625
  config?: Record<string, unknown> | undefined;
@@ -777,9 +783,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
777
783
  zIndex?: number | undefined;
778
784
  extent?: "parent" | [[number, number], [number, number]] | undefined;
779
785
  expandParent?: boolean | undefined;
780
- type: "approval";
786
+ type: "copy";
781
787
  data: {
782
- approvers?: {
788
+ copyUsers?: {
783
789
  id: string;
784
790
  name: string;
785
791
  avatar?: string | undefined;
@@ -789,7 +795,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
789
795
  email?: string | undefined;
790
796
  phone?: string | undefined;
791
797
  }[] | undefined;
792
- approvalMode?: ApprovalMode | undefined;
793
798
  title: string;
794
799
  status?: NodeStatus | undefined;
795
800
  config?: Record<string, unknown> | undefined;
@@ -822,9 +827,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
822
827
  zIndex?: number | undefined;
823
828
  extent?: "parent" | [[number, number], [number, number]] | undefined;
824
829
  expandParent?: boolean | undefined;
825
- type: "copy";
830
+ type: "approval";
826
831
  data: {
827
- copyUsers?: {
832
+ approvers?: {
828
833
  id: string;
829
834
  name: string;
830
835
  avatar?: string | undefined;
@@ -834,6 +839,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
834
839
  email?: string | undefined;
835
840
  phone?: string | undefined;
836
841
  }[] | undefined;
842
+ approvalMode?: ApprovalMode | undefined;
837
843
  title: string;
838
844
  status?: NodeStatus | undefined;
839
845
  config?: Record<string, unknown> | undefined;
@@ -944,9 +950,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
944
950
  zIndex?: number | undefined;
945
951
  extent?: "parent" | [[number, number], [number, number]] | undefined;
946
952
  expandParent?: boolean | undefined;
947
- type: "approval";
953
+ type: "copy";
948
954
  data: {
949
- approvers?: {
955
+ copyUsers?: {
950
956
  id: string;
951
957
  name: string;
952
958
  avatar?: string | undefined;
@@ -956,7 +962,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
956
962
  email?: string | undefined;
957
963
  phone?: string | undefined;
958
964
  }[] | undefined;
959
- approvalMode?: ApprovalMode | undefined;
960
965
  title: string;
961
966
  status?: NodeStatus | undefined;
962
967
  config?: Record<string, unknown> | undefined;
@@ -989,9 +994,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
989
994
  zIndex?: number | undefined;
990
995
  extent?: "parent" | [[number, number], [number, number]] | undefined;
991
996
  expandParent?: boolean | undefined;
992
- type: "copy";
997
+ type: "approval";
993
998
  data: {
994
- copyUsers?: {
999
+ approvers?: {
995
1000
  id: string;
996
1001
  name: string;
997
1002
  avatar?: string | undefined;
@@ -1001,6 +1006,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
1001
1006
  email?: string | undefined;
1002
1007
  phone?: string | undefined;
1003
1008
  }[] | undefined;
1009
+ approvalMode?: ApprovalMode | undefined;
1004
1010
  title: string;
1005
1011
  status?: NodeStatus | undefined;
1006
1012
  config?: Record<string, unknown> | undefined;
@@ -1185,9 +1191,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1185
1191
  zIndex?: number | undefined;
1186
1192
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1187
1193
  expandParent?: boolean | undefined;
1188
- type: "approval";
1194
+ type: "copy";
1189
1195
  data: {
1190
- approvers?: {
1196
+ copyUsers?: {
1191
1197
  id: string;
1192
1198
  name: string;
1193
1199
  avatar?: string | undefined;
@@ -1197,7 +1203,6 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1197
1203
  email?: string | undefined;
1198
1204
  phone?: string | undefined;
1199
1205
  }[] | undefined;
1200
- approvalMode?: ApprovalMode | undefined;
1201
1206
  title: string;
1202
1207
  status?: NodeStatus | undefined;
1203
1208
  config?: Record<string, unknown> | undefined;
@@ -1230,9 +1235,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1230
1235
  zIndex?: number | undefined;
1231
1236
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1232
1237
  expandParent?: boolean | undefined;
1233
- type: "copy";
1238
+ type: "approval";
1234
1239
  data: {
1235
- copyUsers?: {
1240
+ approvers?: {
1236
1241
  id: string;
1237
1242
  name: string;
1238
1243
  avatar?: string | undefined;
@@ -1242,6 +1247,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1242
1247
  email?: string | undefined;
1243
1248
  phone?: string | undefined;
1244
1249
  }[] | undefined;
1250
+ approvalMode?: ApprovalMode | undefined;
1245
1251
  title: string;
1246
1252
  status?: NodeStatus | undefined;
1247
1253
  config?: Record<string, unknown> | undefined;
@@ -1375,9 +1381,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1375
1381
  zIndex?: number | undefined;
1376
1382
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1377
1383
  expandParent?: boolean | undefined;
1378
- type: "approval";
1384
+ type: "copy";
1379
1385
  data: {
1380
- approvers?: {
1386
+ copyUsers?: {
1381
1387
  id: string;
1382
1388
  name: string;
1383
1389
  avatar?: string | undefined;
@@ -1387,7 +1393,6 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1387
1393
  email?: string | undefined;
1388
1394
  phone?: string | undefined;
1389
1395
  }[] | undefined;
1390
- approvalMode?: ApprovalMode | undefined;
1391
1396
  title: string;
1392
1397
  status?: NodeStatus | undefined;
1393
1398
  config?: Record<string, unknown> | undefined;
@@ -1420,9 +1425,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1420
1425
  zIndex?: number | undefined;
1421
1426
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1422
1427
  expandParent?: boolean | undefined;
1423
- type: "copy";
1428
+ type: "approval";
1424
1429
  data: {
1425
- copyUsers?: {
1430
+ approvers?: {
1426
1431
  id: string;
1427
1432
  name: string;
1428
1433
  avatar?: string | undefined;
@@ -1432,6 +1437,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1432
1437
  email?: string | undefined;
1433
1438
  phone?: string | undefined;
1434
1439
  }[] | undefined;
1440
+ approvalMode?: ApprovalMode | undefined;
1435
1441
  title: string;
1436
1442
  status?: NodeStatus | undefined;
1437
1443
  config?: Record<string, unknown> | undefined;
@@ -1540,7 +1546,7 @@ interface WorkflowValidationOptions {
1540
1546
  conditionFields?: () => readonly WorkflowConditionField[] | undefined;
1541
1547
  }
1542
1548
  /** 工作流验证 —— 封装流程校验逻辑、错误展示和节点定位 */
1543
- declare function useWorkflowValidation(nodes: Ref<WorkflowNode[]>, edges: Ref<WorkflowEdge[]>, vueFlowRef: Ref, options?: WorkflowValidationOptions): {
1549
+ declare function useWorkflowValidation(nodes: Ref<WorkflowNode[]>, edges: Ref<WorkflowEdge[]>, vueFlowRef: Ref<WorkflowViewport | null | undefined>, options?: WorkflowValidationOptions): {
1544
1550
  validationErrors: Ref<{
1545
1551
  nodeId: string;
1546
1552
  nodeName: string;
@@ -76,25 +76,25 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
76
76
  reset: () => void;
77
77
  show: () => void;
78
78
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
79
+ change: (valid: boolean) => any;
80
+ reset: () => any;
79
81
  success: (data: CaptchaSuccessPayload) => any;
82
+ "load-error": (error: unknown) => any;
80
83
  fail: (error: string) => any;
81
84
  "verify-error": (error: unknown) => any;
82
- "load-error": (error: unknown) => any;
83
- change: (valid: boolean) => any;
84
85
  "visible-change": (visible: boolean) => any;
85
- reset: () => any;
86
86
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
87
+ onChange?: ((valid: boolean) => any) | undefined;
88
+ onReset?: (() => any) | undefined;
87
89
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
90
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
88
91
  onFail?: ((error: string) => any) | undefined;
89
92
  "onVerify-error"?: ((error: unknown) => any) | undefined;
90
- "onLoad-error"?: ((error: unknown) => any) | undefined;
91
- onChange?: ((valid: boolean) => any) | undefined;
92
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
93
- onReset?: (() => any) | undefined;
94
94
  }>, {
95
+ disabled: boolean;
95
96
  provider: CaptchaProvider;
96
97
  images: string[];
97
- disabled: boolean;
98
98
  verificationTimeout: number;
99
99
  requireServerVerification: boolean;
100
100
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -119,4 +119,4 @@ interface VerifyCaptchaProofOptions {
119
119
  /** Normalize local/server verification with cancellation and a hard timeout. */
120
120
  declare function verifyCaptchaProof(proof: CaptchaProof, options?: VerifyCaptchaProofOptions): Promise<CaptchaSuccessPayload>;
121
121
  //#endregion
122
- export { CaptchaEmits as a, CaptchaProps as c, CaptchaVerificationRequest as d, CaptchaVerificationResult as f, _default as i, CaptchaProvider as l, createCaptchaProof as n, CaptchaInstance as o, CaptchaVerifier as p, verifyCaptchaProof as r, CaptchaProof as s, CaptchaVerificationError as t, CaptchaSuccessPayload as u };
122
+ export { verifyCaptchaProof as a, CaptchaInstance as c, CaptchaProvider as d, CaptchaSuccessPayload as f, CaptchaVerifier as h, createCaptchaProof as i, CaptchaProof as l, CaptchaVerificationResult as m, CaptchaVerificationErrorCode as n, _default as o, CaptchaVerificationRequest as p, VerifyCaptchaProofOptions as r, CaptchaEmits as s, CaptchaVerificationError as t, CaptchaProps as u };
@@ -76,25 +76,25 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
76
76
  reset: () => void;
77
77
  show: () => void;
78
78
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
79
+ change: (valid: boolean) => any;
80
+ reset: () => any;
79
81
  success: (data: CaptchaSuccessPayload) => any;
82
+ "load-error": (error: unknown) => any;
80
83
  fail: (error: string) => any;
81
84
  "verify-error": (error: unknown) => any;
82
- "load-error": (error: unknown) => any;
83
- change: (valid: boolean) => any;
84
85
  "visible-change": (visible: boolean) => any;
85
- reset: () => any;
86
86
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
87
+ onChange?: ((valid: boolean) => any) | undefined;
88
+ onReset?: (() => any) | undefined;
87
89
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
90
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
88
91
  onFail?: ((error: string) => any) | undefined;
89
92
  "onVerify-error"?: ((error: unknown) => any) | undefined;
90
- "onLoad-error"?: ((error: unknown) => any) | undefined;
91
- onChange?: ((valid: boolean) => any) | undefined;
92
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
93
- onReset?: (() => any) | undefined;
94
94
  }>, {
95
+ disabled: boolean;
95
96
  provider: CaptchaProvider;
96
97
  images: string[];
97
- disabled: boolean;
98
98
  verificationTimeout: number;
99
99
  requireServerVerification: boolean;
100
100
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -119,4 +119,4 @@ interface VerifyCaptchaProofOptions {
119
119
  /** Normalize local/server verification with cancellation and a hard timeout. */
120
120
  declare function verifyCaptchaProof(proof: CaptchaProof, options?: VerifyCaptchaProofOptions): Promise<CaptchaSuccessPayload>;
121
121
  //#endregion
122
- export { CaptchaEmits as a, CaptchaProps as c, CaptchaVerificationRequest as d, CaptchaVerificationResult as f, _default as i, CaptchaProvider as l, createCaptchaProof as n, CaptchaInstance as o, CaptchaVerifier as p, verifyCaptchaProof as r, CaptchaProof as s, CaptchaVerificationError as t, CaptchaSuccessPayload as u };
122
+ export { verifyCaptchaProof as a, CaptchaInstance as c, CaptchaProvider as d, CaptchaSuccessPayload as f, CaptchaVerifier as h, createCaptchaProof as i, CaptchaProof as l, CaptchaVerificationResult as m, CaptchaVerificationErrorCode as n, _default as o, CaptchaVerificationRequest as p, VerifyCaptchaProofOptions as r, CaptchaEmits as s, CaptchaVerificationError as t, CaptchaProps as u };
@@ -136,6 +136,7 @@ bun run changeset # Record changes and release level
136
136
  bun run version # Update package version and CHANGELOG
137
137
  bun run verify # Run all pre-publish checks
138
138
  bun run test:browser # Run browser regressions against the distributable build
139
+ bun run test:performance # Check organization charts, table interactions, and editing
139
140
  npm pack --dry-run # Review the files npm will ship
140
141
  bun run release # Publish pending Changesets releases
141
142
  ```
@@ -137,6 +137,7 @@ bun run changeset # 记录变更及版本级别
137
137
  bun run version # 更新版本号与 CHANGELOG
138
138
  bun run verify # 发布前完整验证
139
139
  bun run test:browser # 在正式构建产物上运行三浏览器回归
140
+ bun run test:performance # 校验组织图、多表联动与编辑性能
140
141
  npm pack --dry-run # 核对 npm 包的实际文件清单
141
142
  bun run release # 发布 Changesets 中待发布版本
142
143
  ```
@@ -8,7 +8,7 @@
8
8
  import type { BatchOperationResult } from '@robot-admin/naive-ui-components/data'
9
9
  import '@robot-admin/naive-ui-components/C_BatchResult/style.css'
10
10
 
11
- const results: BatchOperationResult[] = [
11
+ const results: BatchOperationResult<string>[] = [
12
12
  { key: 'ORDER-1', status: 'success' },
13
13
  {
14
14
  key: 'ORDER-2',
@@ -23,7 +23,7 @@
23
23
  retryable: false,
24
24
  },
25
25
  ]
26
- function retry(keys: (string | number)[]) {
26
+ function retry(keys: string[]) {
27
27
  // 使用应用已有的命令适配器;后端仍须再次校验权限、状态、版本和幂等令牌。
28
28
  orderActions.retry(keys)
29
29
  }
@@ -38,7 +38,7 @@
38
38
  </template>
39
39
  ```
40
40
 
41
- 同一 `key` 多次出现时,以最后一条结果为准,摘要、表格和重试资格保持一致。`retry` 只发送最后状态为 `failure` / `conflict` 且 `retryable: true` 的去重key;后来已成功或跳过的行不会再次发送。失败不等于允许重试。
41
+ `retry` 从 `results` 推断键类型。字符串键得到 `string[]`,数字键得到 `number[]`。同一 `key` 以最后一条结果为准,事件只包含最终状态为 `failure` 或 `conflict` 且标记为 `retryable: true` 的去重键。
42
42
 
43
43
  默认每页 20 条,可通过 `pageSize` 调整。表格只接收当前页,当前页超过 20 行时启用虚拟滚动。切换状态筛选时回到第一页,结果数量缩小会修正页码。
44
44
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  `C_DataPicker` 用于客户、订单、人员、物料等需要分页查询和多列辨认的选择场景。它复用 `C_Table` 和资源生命周期,支持独立弹窗、表单内嵌和快捷浮层三种展示。
4
4
 
5
+ 业务值类型从来源推断。已有数据可以输入单值或数组,确认时单选回写单值或 `null`,多选回写数组。旧的共享模型可以继续绑定。
6
+
5
7
  ```vue
6
8
  <script setup lang="ts">
7
9
  import { ref } from 'vue'
@@ -52,6 +52,7 @@
52
52
  ```
53
53
 
54
54
  - 时间用毫秒时间戳,区间起点包含、终点排除。同一资源在可见时间内有重叠时标记冲突,相邻时间段和不同资源分别计算。
55
+ - 重叠的预约使用不同轨道,已有轨道腾出时优先复用最靠上的可用轨道。密集预约可按当前资源和可见时段查询,以控制页面上的预约数量。
55
56
  - `workingWindows` 为资源可选的工作时段。它可以显示班次、停机区段的相对位置,容量与资源可用性由业务数据提供。
56
57
  - `navigation` 通过 `update:range` 请求翻到相邻等长时段。页面可以按时段和资源加载数据。跨时区显示用 `timeZone`,默认 UTC。
57
58
  - `#booking` 可定制块内摘要,`#details` 可接入页面的查看、编辑或改期操作,这些插槽收到原始业务记录。键盘焦点沿标记移动,也可直接激活预约。
@@ -29,6 +29,8 @@
29
29
 
30
30
  自动列宽按本轮测量共享表头和正文字体,列标题完整显示仍优先。树表校验覆盖全部层级,诊断中的索引按数据树的先序遍历计算。
31
31
 
32
+ 列设置面板在第一次点击或键盘激活列设置按钮时加载,之后可再次打开。默认隐藏工具栏的实体选择表在首开时也无需加载列设置。
33
+
32
34
  ## 搜索选项与数据选择
33
35
 
34
36
  `C_FormSearch` 在同一字段的选项源不变时复用选项列表。仅改变选中值时,仍按原值类型回写,包括 `0`、布尔值和字符串编码。
@@ -40,7 +40,7 @@
40
40
 
41
41
  ## 重复计划和扫码
42
42
 
43
- `C_RecurrenceEditor` 用 `v-model` 编辑结构化重复规则。`parseRecurrenceRule` 与 `formatRecurrenceRule` 支持日、周、月、年、次数和全天截止日期,请在提交前序列化。全天规则的 `UNTIL` 使用 `YYYYMMDD`。应用保存带时区的精确起止时间,并通过相应日历协议处理带时间的截止条件。超出此编辑器范围的规则会被明确拒绝。 [RFC 5545](https://www.rfc-editor.org/rfc/rfc5545#section-3.3.10)
43
+ `C_RecurrenceEditor` 用 `v-model` 编辑结构化重复规则。`tryFormatRecurrenceRule(rule)` 可用于实时预览,草稿未填完或无效时返回 `null`,未设置重复时返回空字符串。提交时用 `formatRecurrenceRule(rule)` 严格校验并序列化。全天规则的 `UNTIL` 使用 `YYYYMMDD`。应用保存带时区的精确起止时间,并通过相应日历协议处理带时间的截止条件。超出此编辑器范围的规则会被明确拒绝。 [RFC 5545](https://www.rfc-editor.org/rfc/rfc5545#section-3.3.10)
44
44
 
45
45
  `C_ScanInput` 保留普通输入和扫码枪的回车提交,结果保持字符串。设置 `camera` 或 `photo` 后可启用相应入口。支持原生 `BarcodeDetector` 的环境可直接识别,其他环境可提供 `decode(source, signal)` 适配器。摄像头退出、业务 `scope` 更新与卸载都会释放媒体资源。 [BarcodeDetector](https://developer.mozilla.org/en-US/docs/Web/API/BarcodeDetector)
46
46
 
@@ -533,22 +533,27 @@ The `reset(params)` event carries the reset snapshot after the synchronous v-mod
533
533
 
534
534
  ### Action configuration and asynchronous work
535
535
 
536
- Stable semantic keys and Promise callbacks provide labels, icons, and mutual exclusion without a loading ref for every button:
536
+ Stable semantic keys provide the default labels and icons. The component manages loading and execution locks for callbacks that return promises.
537
537
 
538
538
  ```ts
539
539
  const actions = defineActions([
540
540
  { key: 'save', onClick: () => saveCurrentUser() },
541
541
  { key: 'refresh', disabled: () => loading.value, onClick: reload },
542
+ { key: 'publish', label: 'Publish', cooldownMs: 500, onClick: publishUsers },
542
543
  {
543
544
  key: 'more',
544
- dropdown: [{ key: 'export', label: 'Export', onClick: exportUsers }],
545
+ dropdown: [
546
+ { key: 'delete', label: 'Delete selection', onClick: deleteUsers },
547
+ ],
545
548
  },
546
549
  ])
547
550
  ```
548
551
 
549
- Duplicate keys in one ActionBar share a task lock. Replacing action objects or moving them between left/right groups preserves that key's busy state. Unkeyed actions use their group and position, so dynamic lists should supply explicit keys. Dropdown items follow the same disabled/loading guards and async mutual exclusion as regular buttons. `autoLoading: false` only hides the automatic spinner; duplicate execution remains blocked.
552
+ Actions and dropdown items whose `key` exactly matches `save`, `submit`, `confirm`, `delete`, or `remove` have a 300 ms cooldown by default. The first activation runs immediately, and repeat activations during the window are discarded. Other actions support consecutive activations. Set `cooldownMs` on an action or dropdown item to a positive, finite number of milliseconds. A value of `0` or an invalid value skips starting the cooldown for that activation. A failed action can be retried immediately.
550
553
 
551
- `action-click` and `dropdown-click` are notifications and do not await listeners' promises; put async commands in the action's `onClick`. Failures emit `action-error(error, action, item?)` and continue to Vue's `errorHandler` or error-capture boundary. `buttonProps.disabled/loading` merge with action state and cannot override internal busy protection. `buttonProps.onClick` remains a native click observer rather than replacing the executor. Table row actions reuse lightweight task locks without mounting a complete action bar per row.
554
+ Duplicate keys in one ActionBar share a task lock and cooldown. A stable key preserves state when its action object is replaced or moved between groups. Unkeyed actions use their group and position, so give dynamic lists explicit keys. Sibling dropdown items have independent cooldowns and share their parent action's async lock. The automatic spinner reflects in-flight work. `autoLoading: false` hides the spinner and keeps the lock active.
555
+
556
+ `action-click` and `dropdown-click` notify observers of accepted activations. Put async commands in the action's `onClick` so the component can await them. Failures emit `action-error(error, action, item?)` and propagate to Vue's `errorHandler` or error-capture boundary. `buttonProps.disabled/loading` merge with action state. For regular buttons, `buttonProps.onClick` observes accepted native clicks. The dropdown trigger stays usable while an item cools down, subject to the usual disabled and loading guards. Table row actions reuse lightweight task locks.
552
557
 
553
558
  ## Recommended C_Map setup
554
559
 
@@ -639,6 +644,10 @@ With `require-server-verification`, a successful response must include a server
639
644
 
640
645
  `C_Login` remembers only the username, never the password. SMS events require a valid phone number; the local countdown starts immediately, while delivery results and server-side rate limits remain the host's responsibility. `C_City` loads its city index on first open and scopes letter navigation to its own instance; the default trigger, letters, and city items are keyboard-operable.
641
646
 
647
+ ## Keyboard sorting in C_Draggable
648
+
649
+ In a sortable list with multiple items, press Tab to focus an item and use Alt+Up or Alt+Down to change its position. When the host accepts the `v-model` update, focus follows the item and the new position is announced. Keyboard moves use `update:modelValue` and `list-change`. Controls inside custom item slots keep their own keyboard behavior.
650
+
642
651
  ## Table loading
643
652
 
644
653
  `C_Table` uses a data-orbit SVG indicator in the theme's primary color, with an orbit, data rows, and a subtle beam to indicate waiting. It retains existing data and respects reduced-motion preferences without page configuration. Built-in asynchronous expansion also uses `C_Loading`; custom expansion renderers retain control of their content. Override the `loading` slot for custom content. The standalone `C_Loading` accepts `size` (16–120, default 48), optional `label`, and optional `color`. Disable rotation when using it with native `NSpin`:
@@ -711,6 +720,8 @@ With `C_FullCalendar` and `v-model:events`, listen for `@event-dropped` or `@eve
711
720
 
712
721
  Upload `concurrency` applies across normal and chunk upload requests. Cancellation stops subsequent hash reads; a Blob read already in progress is discarded on completion. Application-provided check/merge callbacks retain responsibility for their own network lifecycle.
713
722
 
723
+ Pausing and resuming a file or retrying its transfer reuses the file prepared by `beforeUpload` and the chunk size of its first transfer. When `uploadedChunksQuery` returns existing chunk indices, the server must ensure they use the same chunk size, including across separate upload instances.
724
+
714
725
  Excel previews preserve raw values, cell types and workbook display formatting. Sheets expand on demand. Defaults are 32 MiB per file and 100000 cells per sheet. `previewLimits: { maxBytes, maxCells }` accepts finite safe positive integers. Remote Excel previews stop reading the response once the byte limit is exceeded. Over-budget previews ask users to download the original file. Memory used to decompress a workbook depends on its contents.
715
726
 
716
727
  WaterFall fills a visible sentinel for at most five consecutive pages, then exposes a manual continuation. Custom `footer` slots receive `paused` and `loadMore`. Continue updating `loading` and `noMore` in the host. Draggable instances sort independently by default; cross-list transfers require an explicitly shared `group`.
@@ -650,22 +650,25 @@ const filters: SearchFormItem[] = [
650
650
 
651
651
  ### 动作配置与异步执行
652
652
 
653
- 保留稳定语义 key 和 Promise 回调即可获得文案、图标与互斥执行,不必为每个按钮维护 loading:
653
+ 使用稳定的语义 key 继承文案和图标。返回 Promise 的回调由组件管理加载状态和执行锁。
654
654
 
655
655
  ```ts
656
656
  const actions = defineActions([
657
657
  { key: 'save', onClick: () => saveCurrentUser() },
658
658
  { key: 'refresh', disabled: () => loading.value, onClick: reload },
659
+ { key: 'publish', label: '发布', cooldownMs: 500, onClick: publishUsers },
659
660
  {
660
661
  key: 'more',
661
- dropdown: [{ key: 'export', label: '导出', onClick: exportUsers }],
662
+ dropdown: [{ key: 'delete', label: '删除选中项', onClick: deleteUsers }],
662
663
  },
663
664
  ])
664
665
  ```
665
666
 
666
- 同一 ActionBar 中重复 key 共享执行锁;重建动作对象、切换左右分组都保留该 key 的 busy 状态。未提供 key 时按分组和位置识别,因此动态列表应显式提供 key。更多菜单与普通按钮遵守相同的 disabled、loading 和异步互斥规则;`autoLoading: false` 只关闭自动 spinner,执行期间继续阻止重复触发。
667
+ 普通动作和下拉子项的 `key` 精确匹配 `save`、`submit`、`confirm`、`delete` 或 `remove` 时,默认启用 300 ms 冷却。首次激活立即执行,窗口内的重复操作直接忽略。其他动作支持连续操作。可在动作或下拉子项上用 `cooldownMs` 指定正的有限毫秒值。设置 `0` 或无效值时,本次激活跳过冷却计时。失败后可立即重试。
667
668
 
668
- `action-click`/`dropdown-click` 是通知,不等待事件监听器的 Promise;异步命令应放在动作 `onClick`。失败发出 `action-error(error, action, item?)`,原始错误继续交给 Vue `errorHandler`/错误捕获边界。`buttonProps.disabled/loading` 与动作状态合并,不能关闭内部 busy 保护;`buttonProps.onClick` 保留为原生点击观察者,不覆盖动作执行器。表格行操作复用轻量执行锁,无需为每行再包一层完整操作栏。
669
+ 同一 ActionBar 中的重复 key 共享执行锁和冷却,重建动作对象或切换左右分组会保留稳定 key 的状态。无 key 时按分组和位置识别,动态列表应显式提供 key。下拉子项独立冷却,并共享父动作的异步执行锁。加载指示只跟随执行中的任务,`autoLoading: false` 可隐藏自动加载指示,执行锁继续生效。
670
+
671
+ `action-click`/`dropdown-click` 通知已接受的激活,异步命令放在会等待 Promise 的动作 `onClick`。失败发出 `action-error(error, action, item?)`,原始错误继续交给 Vue `errorHandler`/错误捕获边界。`buttonProps.disabled/loading` 与动作状态合并。普通按钮的 `buttonProps.onClick` 观察已接受的原生点击。下拉触发按钮的打开和关闭继续遵循禁用和加载状态,子项冷却期间仍可操作触发按钮。表格行操作复用轻量执行锁。
669
672
 
670
673
  ## C_Map 推荐用法
671
674
 
@@ -771,6 +774,10 @@ const actions = defineActions([
771
774
  </NSpin>
772
775
  ```
773
776
 
777
+ ## C_Draggable 键盘排序
778
+
779
+ 有多项且允许排序时,按 Tab 聚焦项目,再用 Alt + ↑ / ↓ 按列表顺序移动。组件在宿主接收 `v-model` 后把焦点移到新位置,并读出排序结果。键盘移动沿用 `update:modelValue` 和 `list-change`,自定义插槽中的输入框和按钮继续接收自己的按键。
780
+
774
781
  ## C_Login 扩展表单
775
782
 
776
783
  `password-fields` 插槽位于密码输入框下方,提供 `username`、`loading`,可配置工作空间或其他业务字段。`username-change` 在初始预填、恢复记住的账号和输入变化时同步触发。宿主通过 `submitDisabled` 阻止扩展字段尚未就绪时的按钮与回车提交;`loading` 期间凭据输入禁用。公司查询、成员关系和权限始终由宿主认证服务处理,组件不保存业务上下文。
@@ -849,6 +856,8 @@ CRUD 控制器只需满足结构契约;`@robot-admin/request-core` 0.6.3 起
849
856
 
850
857
  `C_Upload.concurrency` 统一限制普通上传与分片上传请求。取消、移除和卸载会停止后续哈希读取并释放排队任务;已经开始的单次 Blob 读取完成后不再处理结果。业务自行提供的校验、合并回调仍由业务负责其网络生命周期。
851
858
 
859
+ 同一文件的恢复与传输重试复用 `beforeUpload` 处理后的文件和首次传输的分片尺寸。服务端通过 `uploadedChunksQuery` 返回已上传索引时,须保证这些索引使用同一分片尺寸,跨上传实例也遵循此约定。
860
+
852
861
  在同一编辑弹窗切换记录时,调用上传实例的 `replaceFileList(record.attachments)`。它会废弃上一条记录尚未返回的文件选择结果和拖入目录,取消上传任务,再回填新记录的附件。`defaultFileList` 用于首次初始化。`clearAll()` 使用同样的取消路径。
853
862
 
854
863
  普通单文件模式一次只接收一个符合 `accept` 的文件,点击、拖放和粘贴一致。需要接收整个目录时开启 `directory`;需要限制整个列表的数量时使用 `maxCount`。
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.41.1",
6
+ "version": "0.42.0",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "packageManager": "bun@1.4.2",
9
9
  "engines": {