@robot-admin/naive-ui-components 0.40.3 → 0.40.5

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 (208) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +101 -79
  3. package/README_EN.md +110 -67
  4. package/dist/BPMN.cjs +1 -1
  5. package/dist/BPMN.js +1 -1
  6. package/dist/C_ActionBar.css +58 -52
  7. package/dist/C_ActionBar2.cjs +1 -1
  8. package/dist/C_ActionBar2.js +1 -1
  9. package/dist/C_AntV.css +108 -108
  10. package/dist/C_AvatarGroup.css +29 -29
  11. package/dist/C_AvatarGroup2.cjs +1 -1
  12. package/dist/C_AvatarGroup2.js +1 -1
  13. package/dist/C_Barcode.css +6 -6
  14. package/dist/C_Barcode.d.cts +2 -2
  15. package/dist/C_Barcode.d.ts +2 -2
  16. package/dist/C_Barcode2.cjs +1 -1
  17. package/dist/C_Barcode2.js +1 -1
  18. package/dist/C_Captcha.css +42 -42
  19. package/dist/C_Captcha2.cjs +1 -1
  20. package/dist/C_Captcha2.js +1 -1
  21. package/dist/C_Cascade.css +4 -4
  22. package/dist/C_Cascade.d.cts +2 -2
  23. package/dist/C_Cascade.d.ts +2 -2
  24. package/dist/C_Cascade2.cjs +1 -1
  25. package/dist/C_Cascade2.js +1 -1
  26. package/dist/C_City.css +35 -35
  27. package/dist/C_City2.cjs +1 -1
  28. package/dist/C_City2.js +1 -1
  29. package/dist/C_Code.css +27 -27
  30. package/dist/C_Code.d.cts +2 -2
  31. package/dist/C_Code.d.ts +2 -2
  32. package/dist/C_Code2.cjs +1 -1
  33. package/dist/C_Code2.js +1 -1
  34. package/dist/C_CollapsePanel2.cjs +1 -1
  35. package/dist/C_CollapsePanel2.js +1 -1
  36. package/dist/C_ContextMenu.css +3 -3
  37. package/dist/C_ContextMenu2.cjs +1 -1
  38. package/dist/C_ContextMenu2.js +1 -1
  39. package/dist/C_Editor.css +13 -13
  40. package/dist/C_Editor.d.cts +2 -2
  41. package/dist/C_Editor.d.ts +2 -2
  42. package/dist/C_Editor2.cjs +1 -1
  43. package/dist/C_Editor2.js +1 -1
  44. package/dist/C_FilePreview.css +104 -104
  45. package/dist/C_FilePreview2.cjs +1 -1
  46. package/dist/C_FilePreview2.js +1 -1
  47. package/dist/C_FormModal.css +58 -52
  48. package/dist/C_GlobalSearch.css +139 -136
  49. package/dist/C_GlobalSearch2.cjs +1 -1
  50. package/dist/C_GlobalSearch2.js +1 -1
  51. package/dist/C_Guide.css +3 -3
  52. package/dist/C_Guide2.cjs +1 -1
  53. package/dist/C_Guide2.js +1 -1
  54. package/dist/C_Language.css +2 -2
  55. package/dist/C_Language2.cjs +1 -1
  56. package/dist/C_Language2.js +1 -1
  57. package/dist/C_Login.css +136 -121
  58. package/dist/C_Login2.cjs +1 -1
  59. package/dist/C_Login2.js +1 -1
  60. package/dist/C_Markdown.css +37 -37
  61. package/dist/C_Markdown.d.cts +2 -2
  62. package/dist/C_Markdown.d.ts +2 -2
  63. package/dist/C_Markdown2.cjs +1 -1
  64. package/dist/C_Markdown2.js +1 -1
  65. package/dist/C_NotificationCenter.css +51 -36
  66. package/dist/C_NotificationCenter2.cjs +1 -1
  67. package/dist/C_NotificationCenter2.js +1 -1
  68. package/dist/C_Progress.d.cts +2 -2
  69. package/dist/C_Progress.d.ts +2 -2
  70. package/dist/C_Progress2.cjs +1 -1
  71. package/dist/C_Progress2.js +1 -1
  72. package/dist/C_Signature.css +15 -15
  73. package/dist/C_Signature2.cjs +1 -1
  74. package/dist/C_Signature2.js +1 -1
  75. package/dist/C_Steps.css +39 -39
  76. package/dist/C_Steps.d.cts +2 -2
  77. package/dist/C_Steps.d.ts +2 -2
  78. package/dist/C_Steps2.cjs +1 -1
  79. package/dist/C_Steps2.js +1 -1
  80. package/dist/C_Table.base.css +58 -52
  81. package/dist/C_Table.css +58 -52
  82. package/dist/C_Table2.cjs +2 -2
  83. package/dist/C_Table2.js +2 -2
  84. package/dist/C_TagsView.css +60 -50
  85. package/dist/C_TagsView2.cjs +1 -1
  86. package/dist/C_TagsView2.js +1 -1
  87. package/dist/C_Timeline.css +53 -53
  88. package/dist/C_Timeline2.cjs +1 -1
  89. package/dist/C_Timeline2.js +1 -1
  90. package/dist/C_Upload2.cjs +1 -1
  91. package/dist/C_Upload2.js +1 -1
  92. package/dist/C_WaterFall.css +41 -41
  93. package/dist/C_WaterFall.d.cts +2 -2
  94. package/dist/C_WaterFall.d.ts +2 -2
  95. package/dist/C_WaterFall2.cjs +1 -1
  96. package/dist/C_WaterFall2.js +1 -1
  97. package/dist/C_WorkFlow.css +93 -92
  98. package/dist/C_WorkFlow2.cjs +1 -1
  99. package/dist/C_WorkFlow2.js +1 -1
  100. package/dist/ER.cjs +1 -1
  101. package/dist/ER.js +1 -1
  102. package/dist/UML.cjs +3 -3
  103. package/dist/UML.js +3 -3
  104. package/dist/component-config.d.ts +2 -0
  105. package/dist/constants.d.cts +1 -1
  106. package/dist/constants.d.ts +1 -1
  107. package/dist/constants3.d.cts +6 -6
  108. package/dist/constants3.d.ts +6 -6
  109. package/dist/constants4.d.cts +5 -5
  110. package/dist/constants4.d.ts +5 -5
  111. package/dist/context.d.cts +2 -0
  112. package/dist/data2.d.cts +7 -7
  113. package/dist/data2.d.ts +7 -7
  114. package/dist/editors.d.cts +8 -8
  115. package/dist/editors.d.ts +8 -8
  116. package/dist/graphEditSession.cjs +1 -0
  117. package/dist/graphEditSession.js +1 -0
  118. package/dist/index.d.cts +9 -10
  119. package/dist/index.d.ts +9 -9
  120. package/dist/index.vue.d.cts +3 -3
  121. package/dist/index.vue.d.ts +3 -3
  122. package/dist/index10.vue.d.cts +0 -1
  123. package/dist/index10.vue.d.ts +12 -9
  124. package/dist/index11.vue.d.cts +12 -9
  125. package/dist/index11.vue.d.ts +4 -4
  126. package/dist/index12.vue.d.cts +4 -4
  127. package/dist/index13.vue.d.ts +19 -16
  128. package/dist/index14.vue.d.cts +19 -16
  129. package/dist/index16.vue.d.ts +5 -10
  130. package/dist/index17.vue.d.cts +5 -10
  131. package/dist/index17.vue.d.ts +6 -6
  132. package/dist/index18.vue.d.cts +6 -6
  133. package/dist/index18.vue.d.ts +2 -7
  134. package/dist/index19.vue.d.cts +2 -7
  135. package/dist/index19.vue.d.ts +1 -1
  136. package/dist/index20.vue.d.cts +1 -1
  137. package/dist/index20.vue.d.ts +0 -1
  138. package/dist/index21.vue.d.cts +0 -1
  139. package/dist/index21.vue.d.ts +18 -16
  140. package/dist/index22.vue.d.cts +18 -16
  141. package/dist/index24.vue.d.cts +10 -7
  142. package/dist/index24.vue.d.ts +10 -7
  143. package/dist/index27.vue.d.cts +2 -2
  144. package/dist/index27.vue.d.ts +2 -2
  145. package/dist/index28.vue.d.cts +12 -19
  146. package/dist/index28.vue.d.ts +12 -19
  147. package/dist/index3.vue.d.cts +2 -2
  148. package/dist/index3.vue.d.ts +2 -2
  149. package/dist/index30.vue.d.cts +2 -9
  150. package/dist/index30.vue.d.ts +2 -9
  151. package/dist/index31.vue.d.cts +4 -4
  152. package/dist/index31.vue.d.ts +4 -4
  153. package/dist/index32.vue.d.cts +2 -2
  154. package/dist/index32.vue.d.ts +2 -2
  155. package/dist/index4.vue.d.cts +13 -10
  156. package/dist/index4.vue.d.ts +13 -10
  157. package/dist/index7.vue.d.ts +12 -12
  158. package/dist/index8.vue.d.cts +12 -12
  159. package/dist/index9.vue.d.ts +0 -1
  160. package/dist/mapUtils.d.cts +2 -2
  161. package/dist/mapUtils.d.ts +2 -2
  162. package/dist/presets.d.cts +1 -1
  163. package/dist/presets.d.ts +1 -1
  164. package/dist/serializeSearch.cjs +1 -1
  165. package/dist/serializeSearch.js +1 -1
  166. package/dist/style.css +1056 -1006
  167. package/dist/types.d.cts +1 -0
  168. package/dist/types.d.ts +1 -0
  169. package/dist/useCalendarEvents.d.cts +1 -1
  170. package/dist/useCalendarEvents.d.ts +1 -1
  171. package/dist/useCollapsePanel.d.cts +5 -5
  172. package/dist/useCollapsePanel.d.ts +5 -5
  173. package/dist/useCropperCore.d.cts +6 -6
  174. package/dist/useCropperCore.d.ts +6 -6
  175. package/dist/useEdgeInteraction.d.cts +1 -1
  176. package/dist/useEdgeInteraction.d.ts +1 -1
  177. package/dist/useFullscreen.d.cts +2 -2
  178. package/dist/useFullscreen.d.ts +2 -2
  179. package/dist/useGlobalSearch.d.cts +1 -5
  180. package/dist/useGlobalSearch.d.ts +1 -5
  181. package/dist/useInfiniteScroll.d.cts +42 -70
  182. package/dist/useInfiniteScroll.d.ts +42 -70
  183. package/dist/useQRCode.d.cts +5 -5
  184. package/dist/useQRCode.d.ts +5 -5
  185. package/dist/useScopedComponentLocale.cjs +1 -0
  186. package/dist/useScopedComponentLocale.js +1 -0
  187. package/dist/useSignatureHistory.d.cts +11 -6
  188. package/dist/useSignatureHistory.d.ts +11 -6
  189. package/dist/useSplitResize.d.cts +4 -4
  190. package/dist/useSplitResize.d.ts +4 -4
  191. package/dist/useTimeSelection.d.cts +3 -3
  192. package/dist/useTimeSelection.d.ts +3 -3
  193. package/dist/useWorkflowValidation.d.cts +89 -84
  194. package/dist/useWorkflowValidation.d.ts +89 -84
  195. package/dist/verification.d.cts +6 -6
  196. package/dist/verification.d.ts +6 -6
  197. package/docs/component-audit-closure-0.40.4.md +62 -0
  198. package/docs/engineering.en.md +6 -0
  199. package/docs/engineering.md +6 -0
  200. package/docs/guides/api-migration.md +17 -1
  201. package/docs/guides/search-workflows.md +2 -0
  202. package/docs/guides/transfer.md +2 -0
  203. package/docs/guides/usage.en.md +15 -1
  204. package/docs/guides/usage.md +24 -1
  205. package/docs/guides/workflow.md +5 -1
  206. package/package.json +1 -1
  207. package/dist/readonlyGraph.cjs +0 -1
  208. package/dist/readonlyGraph.js +0 -1
@@ -356,10 +356,20 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
356
356
  zIndex?: number | undefined;
357
357
  extent?: "parent" | [[number, number], [number, number]] | undefined;
358
358
  expandParent?: boolean | undefined;
359
- type: "start";
359
+ type: "copy";
360
360
  data: {
361
+ copyUsers?: {
362
+ id: string;
363
+ name: string;
364
+ avatar?: string | undefined;
365
+ department: string;
366
+ departmentId?: string | undefined;
367
+ role: string;
368
+ email?: string | undefined;
369
+ phone?: string | undefined;
370
+ }[] | undefined;
361
371
  title: string;
362
- status: "active";
372
+ status?: NodeStatus | undefined;
363
373
  config?: Record<string, unknown> | undefined;
364
374
  initiators?: {
365
375
  id: string;
@@ -390,20 +400,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
390
400
  zIndex?: number | undefined;
391
401
  extent?: "parent" | [[number, number], [number, number]] | undefined;
392
402
  expandParent?: boolean | undefined;
393
- type: "copy";
403
+ type: "start";
394
404
  data: {
395
- copyUsers?: {
396
- id: string;
397
- name: string;
398
- avatar?: string | undefined;
399
- department: string;
400
- departmentId?: string | undefined;
401
- role: string;
402
- email?: string | undefined;
403
- phone?: string | undefined;
404
- }[] | undefined;
405
405
  title: string;
406
- status?: NodeStatus | undefined;
406
+ status: "active";
407
407
  config?: Record<string, unknown> | undefined;
408
408
  initiators?: {
409
409
  id: string;
@@ -523,10 +523,20 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
523
523
  zIndex?: number | undefined;
524
524
  extent?: "parent" | [[number, number], [number, number]] | undefined;
525
525
  expandParent?: boolean | undefined;
526
- type: "start";
526
+ type: "copy";
527
527
  data: {
528
+ copyUsers?: {
529
+ id: string;
530
+ name: string;
531
+ avatar?: string | undefined;
532
+ department: string;
533
+ departmentId?: string | undefined;
534
+ role: string;
535
+ email?: string | undefined;
536
+ phone?: string | undefined;
537
+ }[] | undefined;
528
538
  title: string;
529
- status: "active";
539
+ status?: NodeStatus | undefined;
530
540
  config?: Record<string, unknown> | undefined;
531
541
  initiators?: {
532
542
  id: string;
@@ -557,20 +567,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
557
567
  zIndex?: number | undefined;
558
568
  extent?: "parent" | [[number, number], [number, number]] | undefined;
559
569
  expandParent?: boolean | undefined;
560
- type: "copy";
570
+ type: "start";
561
571
  data: {
562
- copyUsers?: {
563
- id: string;
564
- name: string;
565
- avatar?: string | undefined;
566
- department: string;
567
- departmentId?: string | undefined;
568
- role: string;
569
- email?: string | undefined;
570
- phone?: string | undefined;
571
- }[] | undefined;
572
572
  title: string;
573
- status?: NodeStatus | undefined;
573
+ status: "active";
574
574
  config?: Record<string, unknown> | undefined;
575
575
  initiators?: {
576
576
  id: string;
@@ -743,10 +743,20 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
743
743
  zIndex?: number | undefined;
744
744
  extent?: "parent" | [[number, number], [number, number]] | undefined;
745
745
  expandParent?: boolean | undefined;
746
- type: "start";
746
+ type: "copy";
747
747
  data: {
748
+ copyUsers?: {
749
+ id: string;
750
+ name: string;
751
+ avatar?: string | undefined;
752
+ department: string;
753
+ departmentId?: string | undefined;
754
+ role: string;
755
+ email?: string | undefined;
756
+ phone?: string | undefined;
757
+ }[] | undefined;
748
758
  title: string;
749
- status: "active";
759
+ status?: NodeStatus | undefined;
750
760
  config?: Record<string, unknown> | undefined;
751
761
  initiators?: {
752
762
  id: string;
@@ -777,20 +787,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
777
787
  zIndex?: number | undefined;
778
788
  extent?: "parent" | [[number, number], [number, number]] | undefined;
779
789
  expandParent?: boolean | undefined;
780
- type: "copy";
790
+ type: "start";
781
791
  data: {
782
- copyUsers?: {
783
- id: string;
784
- name: string;
785
- avatar?: string | undefined;
786
- department: string;
787
- departmentId?: string | undefined;
788
- role: string;
789
- email?: string | undefined;
790
- phone?: string | undefined;
791
- }[] | undefined;
792
792
  title: string;
793
- status?: NodeStatus | undefined;
793
+ status: "active";
794
794
  config?: Record<string, unknown> | undefined;
795
795
  initiators?: {
796
796
  id: string;
@@ -910,10 +910,20 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
910
910
  zIndex?: number | undefined;
911
911
  extent?: "parent" | [[number, number], [number, number]] | undefined;
912
912
  expandParent?: boolean | undefined;
913
- type: "start";
913
+ type: "copy";
914
914
  data: {
915
+ copyUsers?: {
916
+ id: string;
917
+ name: string;
918
+ avatar?: string | undefined;
919
+ department: string;
920
+ departmentId?: string | undefined;
921
+ role: string;
922
+ email?: string | undefined;
923
+ phone?: string | undefined;
924
+ }[] | undefined;
915
925
  title: string;
916
- status: "active";
926
+ status?: NodeStatus | undefined;
917
927
  config?: Record<string, unknown> | undefined;
918
928
  initiators?: {
919
929
  id: string;
@@ -944,20 +954,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
944
954
  zIndex?: number | undefined;
945
955
  extent?: "parent" | [[number, number], [number, number]] | undefined;
946
956
  expandParent?: boolean | undefined;
947
- type: "copy";
957
+ type: "start";
948
958
  data: {
949
- copyUsers?: {
950
- id: string;
951
- name: string;
952
- avatar?: string | undefined;
953
- department: string;
954
- departmentId?: string | undefined;
955
- role: string;
956
- email?: string | undefined;
957
- phone?: string | undefined;
958
- }[] | undefined;
959
959
  title: string;
960
- status?: NodeStatus | undefined;
960
+ status: "active";
961
961
  config?: Record<string, unknown> | undefined;
962
962
  initiators?: {
963
963
  id: string;
@@ -1085,6 +1085,11 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
1085
1085
  id: string;
1086
1086
  };
1087
1087
  }) => void;
1088
+ onEdgeClick: (event: {
1089
+ edge: {
1090
+ id: string;
1091
+ };
1092
+ }) => void;
1088
1093
  closeAddMenu: () => void;
1089
1094
  handleConfigSave: (configData: Record<string, unknown>) => void;
1090
1095
  resetNodes: () => void;
@@ -1146,10 +1151,20 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1146
1151
  zIndex?: number | undefined;
1147
1152
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1148
1153
  expandParent?: boolean | undefined;
1149
- type: "start";
1154
+ type: "copy";
1150
1155
  data: {
1156
+ copyUsers?: {
1157
+ id: string;
1158
+ name: string;
1159
+ avatar?: string | undefined;
1160
+ department: string;
1161
+ departmentId?: string | undefined;
1162
+ role: string;
1163
+ email?: string | undefined;
1164
+ phone?: string | undefined;
1165
+ }[] | undefined;
1151
1166
  title: string;
1152
- status: "active";
1167
+ status?: NodeStatus | undefined;
1153
1168
  config?: Record<string, unknown> | undefined;
1154
1169
  initiators?: {
1155
1170
  id: string;
@@ -1180,20 +1195,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1180
1195
  zIndex?: number | undefined;
1181
1196
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1182
1197
  expandParent?: boolean | undefined;
1183
- type: "copy";
1198
+ type: "start";
1184
1199
  data: {
1185
- copyUsers?: {
1186
- id: string;
1187
- name: string;
1188
- avatar?: string | undefined;
1189
- department: string;
1190
- departmentId?: string | undefined;
1191
- role: string;
1192
- email?: string | undefined;
1193
- phone?: string | undefined;
1194
- }[] | undefined;
1195
1200
  title: string;
1196
- status?: NodeStatus | undefined;
1201
+ status: "active";
1197
1202
  config?: Record<string, unknown> | undefined;
1198
1203
  initiators?: {
1199
1204
  id: string;
@@ -1336,10 +1341,20 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1336
1341
  zIndex?: number | undefined;
1337
1342
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1338
1343
  expandParent?: boolean | undefined;
1339
- type: "start";
1344
+ type: "copy";
1340
1345
  data: {
1346
+ copyUsers?: {
1347
+ id: string;
1348
+ name: string;
1349
+ avatar?: string | undefined;
1350
+ department: string;
1351
+ departmentId?: string | undefined;
1352
+ role: string;
1353
+ email?: string | undefined;
1354
+ phone?: string | undefined;
1355
+ }[] | undefined;
1341
1356
  title: string;
1342
- status: "active";
1357
+ status?: NodeStatus | undefined;
1343
1358
  config?: Record<string, unknown> | undefined;
1344
1359
  initiators?: {
1345
1360
  id: string;
@@ -1370,20 +1385,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1370
1385
  zIndex?: number | undefined;
1371
1386
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1372
1387
  expandParent?: boolean | undefined;
1373
- type: "copy";
1388
+ type: "start";
1374
1389
  data: {
1375
- copyUsers?: {
1376
- id: string;
1377
- name: string;
1378
- avatar?: string | undefined;
1379
- department: string;
1380
- departmentId?: string | undefined;
1381
- role: string;
1382
- email?: string | undefined;
1383
- phone?: string | undefined;
1384
- }[] | undefined;
1385
1390
  title: string;
1386
- status?: NodeStatus | undefined;
1391
+ status: "active";
1387
1392
  config?: Record<string, unknown> | undefined;
1388
1393
  initiators?: {
1389
1394
  id: string;
@@ -76,21 +76,21 @@ 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
79
  success: (data: CaptchaSuccessPayload) => any;
80
+ change: (valid: boolean) => any;
81
+ reset: () => any;
82
+ "load-error": (error: unknown) => any;
81
83
  fail: (error: string) => any;
82
84
  "verify-error": (error: unknown) => any;
83
- "load-error": (error: unknown) => 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
87
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
88
+ onChange?: ((valid: boolean) => any) | undefined;
89
+ onReset?: (() => any) | undefined;
90
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
89
91
  onFail?: ((error: string) => any) | undefined;
90
92
  "onVerify-error"?: ((error: unknown) => any) | undefined;
91
- "onLoad-error"?: ((error: unknown) => any) | undefined;
92
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
93
- onReset?: (() => any) | undefined;
94
94
  }>, {
95
95
  disabled: boolean;
96
96
  provider: CaptchaProvider;
@@ -76,21 +76,21 @@ 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
79
  success: (data: CaptchaSuccessPayload) => any;
80
+ change: (valid: boolean) => any;
81
+ reset: () => any;
82
+ "load-error": (error: unknown) => any;
81
83
  fail: (error: string) => any;
82
84
  "verify-error": (error: unknown) => any;
83
- "load-error": (error: unknown) => 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
87
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
88
+ onChange?: ((valid: boolean) => any) | undefined;
89
+ onReset?: (() => any) | undefined;
90
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
89
91
  onFail?: ((error: string) => any) | undefined;
90
92
  "onVerify-error"?: ((error: unknown) => any) | undefined;
91
- "onLoad-error"?: ((error: unknown) => any) | undefined;
92
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
93
- onReset?: (() => any) | undefined;
94
94
  }>, {
95
95
  disabled: boolean;
96
96
  provider: CaptchaProvider;
@@ -0,0 +1,62 @@
1
+ # 0.40.4 逐组件审计闭环
2
+
3
+ 日期:2026-11-15。基线:0.40.3 / `d5d3816`。本轮依据 63 个公开组件的主实现、类型、关键状态与相关回归审查修复;不把“覆盖全部组件”解释为任意业务组合、辅助文件或浏览器条件下零缺陷。Robot_Admin、MachTable、Element Plus 适配和后端审批执行引擎不在本次修改范围。
4
+
5
+ ## 审计事项与最终行为
6
+
7
+ | 事项 | 最终行为 | 正式回归 |
8
+ | ------------------------ | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
9
+ | H01 / AntV | ER/UML/BPMN 编辑只持有当前记录基线,实质换源后旧保存/删除失效;等值回填和无关节点更新保留,提交前结束会话避免重入 | `antv-edit-session.test.ts`、`antv-data-permissions.component.ts` |
10
+ | F01 / Table | 公开子行选择复用界面已有的资格校验、去重、父子联动和完整记录事件;保持现有方法 | `table-child-selection-api.component.ts`,包括真实 C_Table 实例 |
11
+ | F02 / FormSearch | 历史内存归属存储键;切换关闭旧面板、恢复新范围,未聚焦直接保存也隔离;显式默认建议保留,已清空记录不会复活 | `search-history-boundaries.component.ts` |
12
+ | N01 / Captcha | provider/challenge/verifier/服务验证要求变化取消旧任务并清空证明;主题、语言变化只更新外观 | `navigation-boundaries.component.ts` |
13
+ | N09 / Captcha | SDK 使用与包装文案相同的有效 locale;不要求额外语言属性 | `navigation-boundaries.component.ts`、`navigation-locale.component.ts` |
14
+ | N02 / CollapsePanel | 头部只处理自己的 Enter/Space,插槽按钮保留原生操作 | `navigation-boundaries.component.ts` |
15
+ | N03 / Login | 初始化、动态模式变化和提交入口共同尊重 feature;全部关闭时不允许旧表单提交 | `navigation-boundaries.component.ts` |
16
+ | N04 / ContextMenu | 动态 disabled 关闭菜单,同帧或旧菜单项回调不能执行选择 | `navigation-boundaries.component.ts` |
17
+ | N05 / GlobalSearch | 模态面板 Tab/Shift+Tab 约束与关闭焦点还原;快速关闭/重开和卸载不被旧回调抢焦点 | `navigation-boundaries.component.ts`、`audit-contracts.browser.ts` |
18
+ | N06 / TagsView | 主导航为独立原生链接,关闭按钮分开;Router 生成 href,部署 base、hash/query、Ctrl/Meta 点击保留 | `navigation-boundaries.component.ts` |
19
+ | N07 / NotificationCenter | 默认正文有原生键盘查看入口,已读/删除操作保持独立 | `navigation-boundaries.component.ts` |
20
+ | N08 / Login | 忘记密码和注册为原生按钮,沿用原事件和样式 | `navigation-boundaries.component.ts` |
21
+ | H02 / Word | 目录仅定位当前文档容器内的精确 ID | `file-preview-pagination-boundaries.component.ts` |
22
+ | H03 / Excel | 合并区域投影到当前页,截断 rowspan 并补延续锚点;不改变源数据 | `file-preview-pagination-boundaries.component.ts` |
23
+ | H04 / Signature | 已有 eraserConfig.size 生效,新笔画保存实际 eraserSize,旧快照缺字段仍按原20px回放 | `signature-drawing-boundaries.component.ts` |
24
+ | H05 / Signature | 单点按笔宽绘制,首次与历史回放共用路径,数据非空与画面一致 | `signature-drawing-boundaries.component.ts` |
25
+ | R01 / Progress | 动画终点保留精确小数,取消、即时值和 multiple-circle 继续工作 | `display-contracts.component.ts`、`audit-contracts.browser.ts` |
26
+ | W01 / WorkFlow | 连线点击桥接现有公共事件,输出公开边快照而非 SDK 运行态 | `workflow-designer.component.ts` |
27
+ | W02 / WorkFlow | 换源使打开中的旧预览失效;确认前核对当前模型,等值回填不误关闭 | `workflow-designer.component.ts` |
28
+ | F03 / ActionBar | 既有 horizontal 配置呈现20px按钮间短横线,默认竖线和隐藏配置不变 | `action-divider.component.ts` |
29
+ | F04 / Cascade | Props 同源导出,使用侧直接声明公共配置 | `C_Cascade.vue` 消费夹具 |
30
+ | F05 / Transfer | group/description 保留为兼容元数据;注释准确说明默认行只呈现图标与标签、分组/详情由 item 插槽定制 | 类型注释与中英指南 |
31
+ | R02 / Timeline | 实例内弱缓存按节点内容失效;折叠内容保持惰性,移除节点不被缓存强持有 | `display-contracts.component.ts` |
32
+ | R03 / Timeline | 已有标签 type 采用主题语义色,历史自定义字符串保留默认主色 | `display-contracts.component.ts`、`audit-contracts.browser.ts` |
33
+ | R04 / Skeleton | repeat 文档明确用于 text/card/image;列表继续仅使用 list.items,避免双计数配置 | 同源 Props 注释与中英指南 |
34
+ | H06 / Upload | 续传初始化后增量统计;每片只结算一次,重复成功、重试、取消和同步重入不重复计数 | `upload-core.test.ts` |
35
+
36
+ ## 接入与维护收敛
37
+
38
+ - Barcode、Cascade、Progress、Steps、Code、Editor、Markdown 共用并导出各自 Props,根入口与组件子路径一致;公共配置可直接 `satisfies Props`,没有新配置工厂或必选 helper。
39
+ - 移除 Steps、Language、TagsView 与公开类型完全重复的私有 Legacy 声明;公开兼容入口不删除。
40
+ - WaterFall 从 items 推导布局、事件与插槽的业务字段。采用 Vue 自然类型推导,移除不准确的泛型断言,保留既有深只读与嵌套 Ref 解包行为;普通业务接口不需要索引签名、转换或显式泛型。消费夹具包含数字字段、readonly、Ref 解包及错误用法反例。
41
+ - AvatarGroup、City、GlobalSearch、Guide、Login 的默认辅助文案使用组件私有词表,继续沿用现有 ComponentLocale 注入和翻译优先级;显式文案、业务值和 Login 旧翻译器保持兼容。词条不加入公共全量字典。
42
+ - WorkFlow roles 明确为保留的兼容输入;不以修文档为由添加角色执行或后端审批引擎。
43
+
44
+ ## 性能与体积
45
+
46
+ 同一隔离上传探针中,100/1000分片的 filter 元素访问由20300/2003000降为100/1000。该记录证明统计成本由反复全量扫描变为一次扫描加增量更新,不是浏览器帧率或真实网络吞吐承诺。Timeline 的24条静态内容在无关 pending/reverse 更新时不再重复净化;真实浏览器另检验净化策略没有被缓存绕过。
47
+
48
+ 相对0.40.3,双格式物理产物增加32226 B:ESM11787 B、CJS13030 B、声明4050 B、物理CSS3359 B。总物理预算按实测追加32 KiB;各组件首屏、首开及全部CSS限额保持原值。C_Table/base 约249.9 KiB/250 KiB,ActionBar约94.8 KiB/95 KiB。私有文案没有拖入无关入口。
49
+
50
+ ## 验证范围
51
+
52
+ 完整 `bun run verify` 已通过:586项逻辑测试、1011项组件挂载测试,包含源码/组件/正式消费类型、导出、vendor、旧API、包契约、构建、首屏/首开预算和dist消费者验证。
53
+
54
+ 独立安装的最低组合为Vue3.5.3 / Naive UI2.35.0 / Router4.6.4,最新组合为Vue3.5.45 / Naive UI2.45.3 / Router5.5.1,两者均通过发布包契约。最低组合继续验证旧Naive UI的浏览器构建与CJS SSR;不声称旧Naive UI支持原生Node ESM。消费检查使用skipLibCheck验证本库使用契约,不扩大为第三方声明内部完整验证。
55
+
56
+ 正式dist消费者的30项Chromium/Firefox/WebKit交互和3项Chromium性能回归全部通过,无重试,页面错误与浏览器console告警断言通过。新增浏览器回归覆盖GlobalSearch顺序Tab/Shift+Tab/关闭还原,以及进度小数终点、Timeline真实净化与标签主题色更新。
57
+
58
+ 本机固定规模单次串行观察:100/500个展开组织卡片挂载46.2/57.8ms;300+300行、240个输入工作台挂载163.1ms、选择27.8ms、输入更新41.2ms,卸载后宿主DOM为零。沿用既有门禁,不以这些单次值声称P95、GC、堆内存无泄漏或任意规模性能。
59
+
60
+ 依赖审计0项发现,67项行为保护检查通过。源码质量预算保持102个显式any、14个console,没有增加压制或动态求值。GitHub远端CI与本地执行分开核对,不能将未运行的远端任务计为通过。
61
+
62
+ 组件原有的大图、长会话、组织树可见DOM和地图标记规模仍需真实业务数据确定;本轮不新增未经测量的虚拟化/缓存框架,不把源码审计等同所有wl页面已迁移验收。17条既有lint警告主要属于Cron/公式解析/Table多分支和少量风格提醒,本轮不靠压制规则或拆碎函数消除数字。
@@ -52,6 +52,12 @@ dist/
52
52
 
53
53
  Both declaration formats remain checked with minimum peers. Browser bundling does not mean that the full interactive browser suite ran against old dependencies; interaction checks use the locally verified profile. The peer range remains available to browser and CJS consumers, with explicit coverage in CI names and logs.
54
54
 
55
+ ### TypeScript build and consumption
56
+
57
+ Source type checks and declaration builds use **TypeScript 5.9.3** from the repository lockfile. CI's `consumer-types-ts58` job builds with that compiler first, then switches to **TypeScript 5.8.3** and runs `check:consumer-types` and `check:consumer-contracts` against the resulting declarations and packaged-consumer fixtures.
58
+
59
+ Version 5.8.3 is therefore an additionally verified **consumer compiler**, not the repository build compiler. Checks retain the fixtures' `skipLibCheck` setting: they validate public API usage and inference without claiming a full check of every third-party declaration or support for every TypeScript release. See the [CI configuration](../.github/workflows/ci.yml).
60
+
55
61
  ## Development
56
62
 
57
63
  The maintenance environment uses Node.js 20.19.0+ and pinned Bun 1.4.2. `.node-version`, `packageManager` and the frozen lockfile align local and CI installs. The minimum Bun version for consumers remains 1.3.14; maintenance checks verify that conditional overrides affect actual resolutions.
@@ -53,6 +53,12 @@ dist/
53
53
 
54
54
  两种类型格式都在最低组合检查。`minimum` 的浏览器打包通过不代表对旧依赖执行了整套浏览器交互验收;本轮交互验收使用上表的本地组合。原生 ESM 的区别来自上游分发格式,保留浏览器与 CJS 用户的现有 peer 范围。CI 任务名和检查输出明确标识覆盖范围。
55
55
 
56
+ ### TypeScript 构建与消费
57
+
58
+ 仓库的源码类型检查与声明构建使用锁文件中的 **TypeScript 5.9.3**。CI 的 `consumer-types-ts58` 任务先使用该编译器构建,再切换到 **TypeScript 5.8.3**,执行 `check:consumer-types` 与 `check:consumer-contracts`,验证正式声明的 Vue SFC 消费以及打包消费者契约。
59
+
60
+ 因此,5.8.3 是额外验证的**消费编译器版本**,不是仓库源码的构建工具版本。检查沿用消费夹具的 `skipLibCheck` 设置,验证公开 API 的使用与推导,不宣称完整检查所有第三方声明或覆盖所有 TypeScript 版本。具体任务见 [CI 配置](../.github/workflows/ci.yml)。
61
+
56
62
  ## 开发
57
63
 
58
64
  维护环境为 Node.js 20.19.0+ 与固定的 Bun 1.4.2;仓库通过 `.node-version`、`packageManager` 和冻结锁文件保持本地/CI 一致。消费者 Bun 最低版本仍为 1.3.14;维护环境使用能真实应用条件 overrides 的版本,并校验实际解析结果。
@@ -1,6 +1,22 @@
1
1
  # 兼容 API 迁移
2
2
 
3
- 现有兼容入口继续工作,本轮不移除属性、事件或导出。新代码使用下表主 API;旧项目按页面逐步迁移,不需要增加业务类型包装或批量重写。
3
+ 现有兼容入口继续工作,以下迁移不要求移除属性、事件或导出。新代码优先使用主 API;旧项目按页面逐步迁移,不需要增加业务类型包装或批量重写。
4
+
5
+ ## 0.40.4 接入收敛
6
+
7
+ 这一版本保留现有 props、事件与导出。已正常工作的页面不需要批量改写;存在以下适配代码时,可结合页面验证逐项简化。
8
+
9
+ | 使用侧已有代码 | 可以收敛为 | 保留的边界 |
10
+ | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
11
+ | 为简单组件重复声明配置接口,或从组件实例反推 props | 从对应子路径导入 `BarcodeProps`、`CascadeProps`、`ProgressProps`、`StepsProps`、`CodeProps`、`EditorProps`、`MarkdownProps`,用 `satisfies` 校验抽出的配置 | 直接在模板传 props 仍是最短用法;不需要额外配置工厂 |
12
+ | 把瀑布流业务数组转成 `WaterFallItem[]`,再对插槽字段做断言 | 直接传 `:items="products"`,业务字段从数据推导到布局、插槽和事件 | 条目保留深只读和嵌套 `ref` 解包语义;修改应用持有的源数据,不修改渲染条目 |
13
+ | 为公开子表选择方法重复过滤禁选行、去重或限制数量 | 使用 `C_Table` 公开选择方法,复用组件已有选择规则 | 只移除与组件配置完全相同的重复过滤;额外权限与业务条件仍由应用提供 |
14
+ | 为切换搜索历史范围而重新挂载整个搜索组件 | 响应式更新 `formSearchInputHistoryString`,组件切换对应的历史记录 | 不重置当前查询模型;新范围无记录或取消存储键时,恢复字段显式声明的 `hisList` 默认建议 |
15
+ | 使用 `horizontal` 分隔符但额外画线补视觉 | `C_ActionBar` 的 `horizontal` 已呈现为短横线 | 默认 `vertical` 保持不变;该选项仍只控制分隔符,不控制按钮布局 |
16
+
17
+ 公开 Props 与瀑布流的完整短例见 [README](../../README.md#直接使用公开-props)。逐组件修复及该版本验证范围见 [0.40.4 审计记录](../component-audit-closure-0.40.4.md)。迁移后运行应用自己的类型与页面验证,不能只根据删除代码量判断行为等价。
18
+
19
+ ## 兼容入口对照
4
20
 
5
21
  | 兼容写法 | 主 API | 迁移要点 |
6
22
  | ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ---------------------------------------------------------------- |
@@ -2,6 +2,8 @@
2
2
 
3
3
  `C_FormSearch` 保留已有 `formItemList`、`v-model`、`formParams`、历史记录和 `@search` 接口。普通接入仍采用 `inline` 布局;复杂业务可显式开启容器网格。组件只管理搜索条件与执行状态,不绑定分页接口、租户规则或特定表格。
4
4
 
5
+ 输入历史由 `formSearchInputHistoryString` 指定存储范围。复用页面切换账号或业务时可同步更换这个键,无需重建组件:旧范围的面板会关闭,已存历史不会带入新范围;新范围没有记录时使用字段显式声明的 `hisList` 默认建议。取消存储键会恢复默认建议并停止持久化。搜索模型本身仍由业务控制,切换历史范围不会修改当前输入。
6
+
5
7
  ## 容器布局与字段
6
8
 
7
9
  ```vue
@@ -8,4 +8,6 @@
8
8
 
9
9
  `size="small | medium | large"` 对应 28 / 34 / 40px 固定行高。继续通过既有 `--tf-height` 覆盖列表高度,例如 `style="--tf-height: 240px"`;无需为大列表额外设置高度或分页。
10
10
 
11
+ 默认行显示 `label` 和可选 `icon`。`group`、`description`、`extra` 可携带业务元数据,但默认列表不据此分组,也没有自动展开描述的详细模式;这些字段不会改变筛选、选择或固定行高。
12
+
11
13
  若项目自行改变行高、需要打印全部项,或依赖完整列表 DOM,可显式设置 `:virtual-scroll="false"` 保留普通渲染。默认开启自动判断,常规接入无需配置。搜索仍检查全部数据;虚拟列表减少 DOM 与组件挂载量,不把筛选或数据存储变成无限容量服务。
@@ -390,8 +390,14 @@ Add `{ type: 'selection' }` explicitly. Receive keys and rows through `@selectio
390
390
 
391
391
  `C_Table` remains owned by its current Naive UI table implementation. A MachTable mode should render MachTable with its native columns, events, and instance API as a complete engine boundary rather than translating between the two engines. They only share engine-neutral page actions such as `C_ActionBar`.
392
392
 
393
+ Expanded child tables use the same selection rules for `selectChildRow`, `unselectChildRow`, `selectAllChildren`, `clearChildrenSelection`, and checkbox interaction: only loaded, eligible children are selected, with the configured parent linkage and parent selection limit. `child-selection-change` includes selected keys and complete child records. Duplicate selections and invalid keys do not emit extra events.
394
+
395
+ `C_ActionBar` leaves `config.showDivider` off by default. When enabled, `dividerType: 'vertical'` renders vertical separators and `'horizontal'` renders 20px horizontal separators between buttons. Neither option changes button direction or adds a separator after the last action in a group.
396
+
393
397
  ## Common component contracts
394
398
 
399
+ For `C_Cascade`, import `CascadeProps` from its component subpath when extracting configuration, for example `const regionConfig = { data: regions, density: 'compact' } satisfies CascadeProps`. Keep using `CascadeValue` for the model. The exported type is the component's own Props declaration, so consumers do not need instance-type extraction.
400
+
395
401
  ### Form values and validation
396
402
 
397
403
  Continue with `useCForm()` from the example above to read and update values without duplicating model synchronization or waiting for rendering:
@@ -687,7 +693,7 @@ Parent buttons open a themed directory panel with page counts and current-page f
687
693
 
688
694
  ## Configuration and behavior contracts (0.21)
689
695
 
690
- Use `@robot-admin/naive-ui-components/config` to import shared injection keys, protocol types, palettes and the theme factory. This entry shares injection identities with the root entry without registering components or importing the router or message/dialog feedback adapter. The theme factory uses Naive UI's public theme API; native CJS imports load Naive UI. Provide a reactive configuration or locale getter for language changes. Built-in `zh-CN`/`en-US` text covers Tree, Transfer, SplitPane, Chat, NotificationCenter, Theme, Language, Skeleton, Timeline and Upload alongside Form/Table/Search/Breadcrumb. DataPicker's local locale also reaches its category tree. Explicit labels, file names and server error messages remain application-owned.
696
+ Use `@robot-admin/naive-ui-components/config` to import shared injection keys, protocol types, palettes and the theme factory. This entry shares injection identities with the root entry without registering components or importing the router or message/dialog feedback adapter. The theme factory uses Naive UI's public theme API; native CJS imports load Naive UI. Provide a reactive configuration or locale getter for language changes. Built-in `zh-CN`/`en-US` text covers Tree, Transfer, SplitPane, Chat, NotificationCenter, Theme, Language, Skeleton, Timeline, Upload, AvatarGroup, City, GlobalSearch, Guide and Login alongside Form/Table/Search/Breadcrumb. DataPicker's local locale also reaches its category tree. Explicit labels, file names and server error messages remain application-owned.
691
697
 
692
698
  Form action slots receive the current model, including a normal business field named `value`. Collapsed search fields remain mounted and validated; errors expand the form. `show: false` excludes a field. Table expansion discards stale completions after dataset changes, and nested selection honors eligibility, parent limits and consistent events. Native Menu options preserve string/number keys; route-mode callbacks remain string paths. Chat drafts belong to the contact and retain at most 50 nonempty inactive drafts. ER and Workflow emit user-completed canvas edits without echoing parent updates. Human verification gates password login; SMS uses its own validation.
693
699
 
@@ -706,3 +712,11 @@ WaterFall fills a visible sentinel for at most five consecutive pages, then expo
706
712
  Video supports MP4/HLS by default. DASH/FLV require a `sourceAdapters` loader returning a compatible xgplayer constructor; missing adapters enter the error state and emit `error`. Protocol SDK installation remains opt-in.
707
713
 
708
714
  Notification `categoryOptions` customizes labels/order of existing `all/system/business/alarm` categories. It does not add domain enums. The `filters` slot receives `{ controller }`; `item` and `item-actions` receive `{ message, index, busy, select, read, remove }`. Use supplied callbacks to retain busy/error handling. Approval commands, tenancy, authorization and backend contracts remain application-owned; Robot_Admin's enterprise notification store is not bundled into this preview component.
715
+
716
+ ### Shared component configuration and WaterFall business types
717
+
718
+ `BarcodeProps`, `CascadeProps`, `ProgressProps`, `StepsProps`, `CodeProps`, `EditorProps` and `MarkdownProps` are the same declarations used by their components. Import from the root or component subpath and use `satisfies` for extracted configuration; no instance-type extraction or builder is required.
719
+
720
+ `C_WaterFall` infers business fields from `items` into events and its `item` slot. `useWaterFallLayout` retains those fields and the existing deep-readonly/nested-Ref unwrapping behavior. `WaterFallProps<T>`, `WaterFallEmits<T>` and `WaterFallSlots<T>` support wrappers; ordinary templates need no explicit generic or conversion. The footer still receives `status`, `paused` and `loadMore`.
721
+
722
+ Timeline tag types `default/success/warning/error/info` follow theme colors. Missing or historical custom strings retain the default primary color. Skeleton `repeat` applies to `text/card/image`; lists continue using `list.items`.
@@ -81,7 +81,7 @@ app.provide(COMPONENT_FEEDBACK_KEY, {
81
81
  })
82
82
  ```
83
83
 
84
- 默认中文,内置支持 `zh-CN` / `en-US`,自定义 `messages` 或 `t` 沿用现有协议。需要动态切换时提供响应式对象或 `locale` getter。Tree、Transfer、SplitPane、Chat、NotificationCenter、Theme、Language、Skeleton、Timeline、Upload 的内置文案与已有 Form/Table/Search/Breadcrumb 一起使用该上下文;DataPicker 的局部语言也传给内嵌分类树。业务标题、菜单名称和显式传入的文案由宿主管理,上传文件名和服务端错误保持原文。
84
+ 默认中文,内置支持 `zh-CN` / `en-US`,自定义 `messages` 或 `t` 沿用现有协议。需要动态切换时提供响应式对象或 `locale` getter。Tree、Transfer、SplitPane、Chat、NotificationCenter、Theme、Language、Skeleton、Timeline、Upload、AvatarGroup、City、GlobalSearch、Guide、Login 的内置文案与已有 Form/Table/Search/Breadcrumb 一起使用该上下文;DataPicker 的局部语言也传给内嵌分类树。业务标题、菜单名称和显式传入的文案由宿主管理,上传文件名和服务端错误保持原文。
85
85
 
86
86
  ### Composables 单独使用
87
87
 
@@ -505,10 +505,16 @@ const config = defineTableConfig({
505
505
 
506
506
  选择列须显式配置 `{ type: 'selection' }`,通过 `@selection-change="(keys, rows) => ..."` 接收结果;主动清空时使用公开实例方法 `clearSelection()`,不观察内部 manager 状态。
507
507
 
508
+ 展开子表的 `selectChildRow`、`unselectChildRow`、`selectAllChildren`、`clearChildrenSelection` 与界面勾选遵循同一规则:只处理已加载且允许选择的子行,并复用父子联动及父表数量上限。`child-selection-change` 同时提供当前选中子行的 key 和完整记录;重复选择或无效 key 不产生额外事件。
509
+
510
+ `C_ActionBar` 的 `config.showDivider` 默认关闭。开启后,`dividerType: 'vertical'` 使用按钮间竖线,`'horizontal'` 使用 20px 短横线;两者均不改变按钮排列,也不在每组末尾添加分割线。
511
+
508
512
  `C_Table` 继续由当前 Naive UI 表格实现负责;需要 MachTable 时应由业务入口完整渲染 MachTable 及其原生配置,避免在两套列定义、事件和实例 API 之间做隐式转换。二者只共享 `C_ActionBar` 这类框架无关的页面动作模型,不互相污染。
509
513
 
510
514
  ## 常用组件约定
511
515
 
516
+ `C_Cascade` 的三级字段配置可直接使用子路径导出的 `CascadeProps`,例如 `const regionConfig = { data: regions, density: 'compact' } satisfies CascadeProps`;绑定值使用已有 `CascadeValue`。该类型与组件 Props 共用同一声明,无需从组件实例反推。
517
+
512
518
  ### 表单读写与校验
513
519
 
514
520
  延续上例的 `useCForm()`,优先使用助手读写模型,减少手写双向同步和等待渲染的代码:
@@ -885,3 +891,20 @@ Draggable 默认只在自身排序。需要跨列表拖动时,在相关实例
885
891
  `C_NotificationCenter.categoryOptions` 只定制已有 `all/system/business/alarm` 分类的标签和顺序,不扩展消息领域协议。`filters` 插槽提供 `{ controller }`,`item` / `item-actions` 提供 `{ message, index, busy, select, read, remove }`,可组合独立筛选和业务操作。异步操作应沿用提供的回调以保留 busy/错误处理。
886
892
 
887
893
  审批命令、租户、权限和后端协议由宿主管理。Robot_Admin 的企业消息使用领域 Store 与自己的通知铃铛;本包提供可复用的通知展示与交互,二者的能力边界不同。
894
+
895
+ ### 简单组件配置与瀑布流业务类型
896
+
897
+ `BarcodeProps`、`CascadeProps`、`ProgressProps`、`StepsProps`、`CodeProps`、`EditorProps`、`MarkdownProps` 与组件共用同一份声明,可从根入口或各组件子路径导入。提取公共配置时直接使用 `satisfies`,不必从组件实例反推类型,也不需要配置工厂:
898
+
899
+ ```typescript
900
+ import type { CodeProps } from '@robot-admin/naive-ui-components/C_Code'
901
+ const code = {
902
+ code: 'const value = 1',
903
+ language: 'typescript',
904
+ } satisfies CodeProps
905
+ // <C_Code v-bind="code" />
906
+ ```
907
+
908
+ `C_WaterFall` 从 `items` 自动推导事件和 `item` 插槽的业务字段;普通业务接口无需索引签名或额外类型转换。`useWaterFallLayout` 保留来源业务类型,并沿用原有深只读代理和嵌套 Ref 解包行为,事件、插槽与布局读取保持一致。`WaterFallProps<T>` / `WaterFallEmits<T>` / `WaterFallSlots<T>` 可用于提取配置或封装,常规模板无需显式填写泛型。`footer` 插槽继续提供 `status`、`paused`、`loadMore`。
909
+
910
+ 时间线标签的 `type` 支持 `default/success/warning/error/info`,颜色跟随当前主题;未指定和历史自定义字符串保留默认主色。`C_Skeleton.repeat` 用于 `text/card/image`,列表数量继续由 `list.items` 控制。
@@ -138,7 +138,7 @@ const edges: WorkflowEdge[] = [
138
138
 
139
139
  ## 只读、校验与快照
140
140
 
141
- `readonly` 禁止拖动、连接、删除、修改和保存,隐藏添加/删除按钮;点击节点仍保留 `node-click` 事件以供详情使用。运行中切为只读、替换流程数据或关闭配置都会作废当前编辑会话,等待中的旧选择结果不会回写。
141
+ `readonly` 禁止拖动、连接、删除、修改和保存,隐藏添加/删除按钮;点击节点仍保留 `node-click` 事件以供详情使用。运行中切为只读、替换流程数据或关闭配置都会作废当前编辑会话,等待中的旧选择结果不会回写。点击连线通过 `edge-click` 返回隔离的 `WorkflowEdge` 快照,只读模式仍可查看详情,不包含 SDK 运行态引用。
142
142
 
143
143
  `change`、`update:modelValue`、`save` 和 `getCurrentWorkflowData()` 输出公开模型快照,保留显式业务配置和连线端口,排除画布 SDK 注入的运行态引用。外部 v-model 原样回填不会反复触发数据变更。拖动结束及用户结构操作才提交画布变更,尺寸测量和选中状态变化不会触发保存。
144
144
 
@@ -148,6 +148,10 @@ const edges: WorkflowEdge[] = [
148
148
 
149
149
  “流程设计预览”按图结构排列节点,并展示人员、审批模式、条件和目标。分支会标明默认路由和失效目标;它是设计清单,不代表分支将依次执行,也不根据表单值模拟命中路径。循环、并行执行、多人审批完成规则和兜底策略仍需业务执行端验证。
150
150
 
151
+ 外部流程定义发生实质变化时,已打开的设计预览会关闭,避免确认一个未完整展示的新定义;等值的 `v-model` 回填保留预览。确认动作还会再次核对当前模型,旧预览按钮不会触发保存。
152
+
151
153
  ## 组织选人
152
154
 
153
155
  本地人员、组织树、远程解析、范围切换、顺序审批和失效选人会话的配置,见 [工作流的组织选人与节点配置](./workflow-people.md)。独立人员选择使用 [C_UserPicker 指南](./user-picker.md),两者复用同一选择能力。
156
+
157
+ `roles` 保留为历史输入兼容项,当前配置面板按人员选择,不会自动把角色展开为审批人。角色成员解析与授权由业务来源完成,再通过 `people.source` 提供人员,无需接入另一套流程引擎。
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.40.3",
6
+ "version": "0.40.5",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "packageManager": "bun@1.4.2",
9
9
  "engines": {
@@ -1 +0,0 @@
1
- function e(e,t){e.on(`cell:change:*`,({cell:e,key:n,previous:r,options:i})=>{t()&&i.ui&&e.prop(n,r,{ui:!1})})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1 +0,0 @@
1
- function e(e,t){e.on(`cell:change:*`,({cell:e,key:n,previous:r,options:i})=>{t()&&i.ui&&e.prop(n,r,{ui:!1})})}export{e as t};