@robot-admin/naive-ui-components 0.19.0 → 0.20.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 (96) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/C_Breadcrumb.css +308 -20
  3. package/dist/C_Breadcrumb.d.cts +2 -2
  4. package/dist/C_Breadcrumb.d.ts +2 -2
  5. package/dist/C_Breadcrumb2.cjs +1 -1
  6. package/dist/C_Breadcrumb2.js +1 -1
  7. package/dist/constants3.d.cts +4 -4
  8. package/dist/constants3.d.ts +4 -4
  9. package/dist/constants4.d.cts +9 -9
  10. package/dist/constants4.d.ts +9 -9
  11. package/dist/constants5.d.cts +2 -2
  12. package/dist/constants5.d.ts +2 -2
  13. package/dist/data.d.cts +8 -8
  14. package/dist/data.d.ts +8 -8
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.vue.d.cts +6 -6
  18. package/dist/index.vue.d.ts +6 -6
  19. package/dist/index10.vue.d.cts +4 -4
  20. package/dist/index10.vue.d.ts +5 -5
  21. package/dist/index11.vue.d.cts +5 -5
  22. package/dist/index11.vue.d.ts +2 -2
  23. package/dist/index12.vue.d.cts +2 -2
  24. package/dist/index12.vue.d.ts +3 -3
  25. package/dist/index13.vue.d.cts +3 -3
  26. package/dist/index13.vue.d.ts +6 -6
  27. package/dist/index14.vue.d.cts +6 -6
  28. package/dist/index15.vue.d.ts +1 -1
  29. package/dist/index16.vue.d.cts +1 -1
  30. package/dist/index16.vue.d.ts +2 -2
  31. package/dist/index17.vue.d.cts +2 -2
  32. package/dist/index17.vue.d.ts +2 -2
  33. package/dist/index18.vue.d.cts +2 -2
  34. package/dist/index18.vue.d.ts +5 -5
  35. package/dist/index19.vue.d.cts +2 -2
  36. package/dist/index19.vue.d.ts +2 -2
  37. package/dist/index2.vue.d.cts +3 -3
  38. package/dist/index2.vue.d.ts +3 -3
  39. package/dist/index20.vue.d.cts +1 -1
  40. package/dist/index20.vue.d.ts +1 -1
  41. package/dist/index21.vue.d.cts +2 -2
  42. package/dist/index21.vue.d.ts +2 -2
  43. package/dist/index22.vue.d.cts +2 -2
  44. package/dist/index22.vue.d.ts +2 -2
  45. package/dist/index25.vue.d.cts +5 -5
  46. package/dist/index25.vue.d.ts +5 -5
  47. package/dist/index3.vue.d.cts +4 -4
  48. package/dist/index3.vue.d.ts +4 -4
  49. package/dist/index4.vue.d.cts +5 -5
  50. package/dist/index4.vue.d.ts +26 -12
  51. package/dist/index5.vue.d.cts +26 -12
  52. package/dist/index6.vue.d.ts +4 -4
  53. package/dist/index7.vue.d.cts +4 -4
  54. package/dist/index8.vue.d.ts +4 -4
  55. package/dist/index9.vue.d.cts +4 -4
  56. package/dist/index9.vue.d.ts +4 -4
  57. package/dist/mapUtils.d.cts +2 -2
  58. package/dist/mapUtils.d.ts +2 -2
  59. package/dist/presets.d.cts +1 -1
  60. package/dist/presets.d.ts +1 -1
  61. package/dist/public.d.ts +3 -1
  62. package/dist/style.css +308 -20
  63. package/dist/types.d.cts +3 -1
  64. package/dist/useCalendarEvents.d.cts +2 -2
  65. package/dist/useCalendarEvents.d.ts +2 -2
  66. package/dist/useCollapsePanel.d.cts +4 -4
  67. package/dist/useCollapsePanel.d.ts +4 -4
  68. package/dist/useComponentLocale.cjs +1 -1
  69. package/dist/useComponentLocale.js +1 -1
  70. package/dist/useCropperCore.d.cts +10 -10
  71. package/dist/useCropperCore.d.ts +10 -10
  72. package/dist/useDynamicFormState.d.cts +2 -2
  73. package/dist/useDynamicFormState.d.ts +2 -2
  74. package/dist/useEdgeInteraction.d.cts +2 -2
  75. package/dist/useEdgeInteraction.d.ts +2 -2
  76. package/dist/useFullscreen.d.cts +2 -2
  77. package/dist/useFullscreen.d.ts +2 -2
  78. package/dist/useGlobalSearch.d.cts +1 -1
  79. package/dist/useGlobalSearch.d.ts +1 -1
  80. package/dist/useInfiniteScroll.d.cts +2 -2
  81. package/dist/useInfiniteScroll.d.ts +2 -2
  82. package/dist/useQRCode.d.cts +5 -5
  83. package/dist/useQRCode.d.ts +5 -5
  84. package/dist/useSignatureHistory.d.cts +6 -6
  85. package/dist/useSignatureHistory.d.ts +6 -6
  86. package/dist/useSplitResize.d.cts +9 -9
  87. package/dist/useSplitResize.d.ts +9 -9
  88. package/dist/useTableQuery.d.cts +11 -11
  89. package/dist/useTableQuery.d.ts +11 -11
  90. package/dist/useWorkflowValidation.d.cts +81 -81
  91. package/dist/useWorkflowValidation.d.ts +81 -81
  92. package/dist/verification.d.cts +5 -5
  93. package/dist/verification.d.ts +5 -5
  94. package/docs/guides/usage.en.md +6 -0
  95. package/docs/guides/usage.md +17 -0
  96. package/package.json +1 -1
@@ -261,22 +261,22 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
261
261
  "update:modelValue": (value: WorkflowData) => any;
262
262
  change: (value: WorkflowData) => any;
263
263
  save: (data: WorkflowData) => any;
264
+ "validate-error": (errors: ValidationError[]) => any;
264
265
  "node-click": (node: WorkflowNode<NodeType>) => any;
265
266
  "edge-click": (edge: WorkflowEdge) => any;
266
- "validate-error": (errors: ValidationError[]) => any;
267
267
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
268
268
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
269
269
  onChange?: ((value: WorkflowData) => any) | undefined;
270
270
  onSave?: ((data: WorkflowData) => any) | undefined;
271
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
271
272
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
272
273
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
273
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
274
274
  }>, {
275
+ readonly: boolean;
275
276
  theme: "light" | "dark";
276
277
  users: User[];
277
278
  roles: Role[];
278
279
  departments: Department[];
279
- readonly: boolean;
280
280
  allowCycles: boolean;
281
281
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
282
282
  declare const _default: typeof __VLS_export;
@@ -303,10 +303,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
303
303
  zIndex?: number | undefined;
304
304
  extent?: "parent" | [[number, number], [number, number]] | undefined;
305
305
  expandParent?: boolean | undefined;
306
- type: "start";
306
+ type: "copy";
307
307
  data: {
308
+ copyUsers?: {
309
+ id: string;
310
+ name: string;
311
+ avatar?: string | undefined;
312
+ department: string;
313
+ role: string;
314
+ email?: string | undefined;
315
+ phone?: string | undefined;
316
+ }[] | undefined;
308
317
  title: string;
309
- status: "active";
318
+ status?: NodeStatus | undefined;
310
319
  config?: Record<string, unknown> | undefined;
311
320
  initiators?: {
312
321
  id: string;
@@ -336,19 +345,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
336
345
  zIndex?: number | undefined;
337
346
  extent?: "parent" | [[number, number], [number, number]] | undefined;
338
347
  expandParent?: boolean | undefined;
339
- type: "copy";
348
+ type: "start";
340
349
  data: {
341
- copyUsers?: {
342
- id: string;
343
- name: string;
344
- avatar?: string | undefined;
345
- department: string;
346
- role: string;
347
- email?: string | undefined;
348
- phone?: string | undefined;
349
- }[] | undefined;
350
350
  title: string;
351
- status?: NodeStatus | undefined;
351
+ status: "active";
352
352
  config?: Record<string, unknown> | undefined;
353
353
  initiators?: {
354
354
  id: string;
@@ -461,10 +461,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
461
461
  zIndex?: number | undefined;
462
462
  extent?: "parent" | [[number, number], [number, number]] | undefined;
463
463
  expandParent?: boolean | undefined;
464
- type: "start";
464
+ type: "copy";
465
465
  data: {
466
+ copyUsers?: {
467
+ id: string;
468
+ name: string;
469
+ avatar?: string | undefined;
470
+ department: string;
471
+ role: string;
472
+ email?: string | undefined;
473
+ phone?: string | undefined;
474
+ }[] | undefined;
466
475
  title: string;
467
- status: "active";
476
+ status?: NodeStatus | undefined;
468
477
  config?: Record<string, unknown> | undefined;
469
478
  initiators?: {
470
479
  id: string;
@@ -494,19 +503,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
494
503
  zIndex?: number | undefined;
495
504
  extent?: "parent" | [[number, number], [number, number]] | undefined;
496
505
  expandParent?: boolean | undefined;
497
- type: "copy";
506
+ type: "start";
498
507
  data: {
499
- copyUsers?: {
500
- id: string;
501
- name: string;
502
- avatar?: string | undefined;
503
- department: string;
504
- role: string;
505
- email?: string | undefined;
506
- phone?: string | undefined;
507
- }[] | undefined;
508
508
  title: string;
509
- status?: NodeStatus | undefined;
509
+ status: "active";
510
510
  config?: Record<string, unknown> | undefined;
511
511
  initiators?: {
512
512
  id: string;
@@ -672,10 +672,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
672
672
  zIndex?: number | undefined;
673
673
  extent?: "parent" | [[number, number], [number, number]] | undefined;
674
674
  expandParent?: boolean | undefined;
675
- type: "start";
675
+ type: "copy";
676
676
  data: {
677
+ copyUsers?: {
678
+ id: string;
679
+ name: string;
680
+ avatar?: string | undefined;
681
+ department: string;
682
+ role: string;
683
+ email?: string | undefined;
684
+ phone?: string | undefined;
685
+ }[] | undefined;
677
686
  title: string;
678
- status: "active";
687
+ status?: NodeStatus | undefined;
679
688
  config?: Record<string, unknown> | undefined;
680
689
  initiators?: {
681
690
  id: string;
@@ -705,19 +714,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
705
714
  zIndex?: number | undefined;
706
715
  extent?: "parent" | [[number, number], [number, number]] | undefined;
707
716
  expandParent?: boolean | undefined;
708
- type: "copy";
717
+ type: "start";
709
718
  data: {
710
- copyUsers?: {
711
- id: string;
712
- name: string;
713
- avatar?: string | undefined;
714
- department: string;
715
- role: string;
716
- email?: string | undefined;
717
- phone?: string | undefined;
718
- }[] | undefined;
719
719
  title: string;
720
- status?: NodeStatus | undefined;
720
+ status: "active";
721
721
  config?: Record<string, unknown> | undefined;
722
722
  initiators?: {
723
723
  id: string;
@@ -830,10 +830,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
830
830
  zIndex?: number | undefined;
831
831
  extent?: "parent" | [[number, number], [number, number]] | undefined;
832
832
  expandParent?: boolean | undefined;
833
- type: "start";
833
+ type: "copy";
834
834
  data: {
835
+ copyUsers?: {
836
+ id: string;
837
+ name: string;
838
+ avatar?: string | undefined;
839
+ department: string;
840
+ role: string;
841
+ email?: string | undefined;
842
+ phone?: string | undefined;
843
+ }[] | undefined;
835
844
  title: string;
836
- status: "active";
845
+ status?: NodeStatus | undefined;
837
846
  config?: Record<string, unknown> | undefined;
838
847
  initiators?: {
839
848
  id: string;
@@ -863,19 +872,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
863
872
  zIndex?: number | undefined;
864
873
  extent?: "parent" | [[number, number], [number, number]] | undefined;
865
874
  expandParent?: boolean | undefined;
866
- type: "copy";
875
+ type: "start";
867
876
  data: {
868
- copyUsers?: {
869
- id: string;
870
- name: string;
871
- avatar?: string | undefined;
872
- department: string;
873
- role: string;
874
- email?: string | undefined;
875
- phone?: string | undefined;
876
- }[] | undefined;
877
877
  title: string;
878
- status?: NodeStatus | undefined;
878
+ status: "active";
879
879
  config?: Record<string, unknown> | undefined;
880
880
  initiators?: {
881
881
  id: string;
@@ -1047,10 +1047,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1047
1047
  zIndex?: number | undefined;
1048
1048
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1049
1049
  expandParent?: boolean | undefined;
1050
- type: "start";
1050
+ type: "copy";
1051
1051
  data: {
1052
+ copyUsers?: {
1053
+ id: string;
1054
+ name: string;
1055
+ avatar?: string | undefined;
1056
+ department: string;
1057
+ role: string;
1058
+ email?: string | undefined;
1059
+ phone?: string | undefined;
1060
+ }[] | undefined;
1052
1061
  title: string;
1053
- status: "active";
1062
+ status?: NodeStatus | undefined;
1054
1063
  config?: Record<string, unknown> | undefined;
1055
1064
  initiators?: {
1056
1065
  id: string;
@@ -1080,19 +1089,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1080
1089
  zIndex?: number | undefined;
1081
1090
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1082
1091
  expandParent?: boolean | undefined;
1083
- type: "copy";
1092
+ type: "start";
1084
1093
  data: {
1085
- copyUsers?: {
1086
- id: string;
1087
- name: string;
1088
- avatar?: string | undefined;
1089
- department: string;
1090
- role: string;
1091
- email?: string | undefined;
1092
- phone?: string | undefined;
1093
- }[] | undefined;
1094
1094
  title: string;
1095
- status?: NodeStatus | undefined;
1095
+ status: "active";
1096
1096
  config?: Record<string, unknown> | undefined;
1097
1097
  initiators?: {
1098
1098
  id: string;
@@ -1222,10 +1222,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1222
1222
  zIndex?: number | undefined;
1223
1223
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1224
1224
  expandParent?: boolean | undefined;
1225
- type: "start";
1225
+ type: "copy";
1226
1226
  data: {
1227
+ copyUsers?: {
1228
+ id: string;
1229
+ name: string;
1230
+ avatar?: string | undefined;
1231
+ department: string;
1232
+ role: string;
1233
+ email?: string | undefined;
1234
+ phone?: string | undefined;
1235
+ }[] | undefined;
1227
1236
  title: string;
1228
- status: "active";
1237
+ status?: NodeStatus | undefined;
1229
1238
  config?: Record<string, unknown> | undefined;
1230
1239
  initiators?: {
1231
1240
  id: string;
@@ -1255,19 +1264,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1255
1264
  zIndex?: number | undefined;
1256
1265
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1257
1266
  expandParent?: boolean | undefined;
1258
- type: "copy";
1267
+ type: "start";
1259
1268
  data: {
1260
- copyUsers?: {
1261
- id: string;
1262
- name: string;
1263
- avatar?: string | undefined;
1264
- department: string;
1265
- role: string;
1266
- email?: string | undefined;
1267
- phone?: string | undefined;
1268
- }[] | undefined;
1269
1269
  title: string;
1270
- status?: NodeStatus | undefined;
1270
+ status: "active";
1271
1271
  config?: Record<string, unknown> | undefined;
1272
1272
  initiators?: {
1273
1273
  id: string;
@@ -261,22 +261,22 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
261
261
  "update:modelValue": (value: WorkflowData) => any;
262
262
  change: (value: WorkflowData) => any;
263
263
  save: (data: WorkflowData) => any;
264
+ "validate-error": (errors: ValidationError[]) => any;
264
265
  "node-click": (node: WorkflowNode<NodeType>) => any;
265
266
  "edge-click": (edge: WorkflowEdge) => any;
266
- "validate-error": (errors: ValidationError[]) => any;
267
267
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
268
268
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
269
269
  onChange?: ((value: WorkflowData) => any) | undefined;
270
270
  onSave?: ((data: WorkflowData) => any) | undefined;
271
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
271
272
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
272
273
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
273
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
274
274
  }>, {
275
+ readonly: boolean;
275
276
  theme: "light" | "dark";
276
277
  users: User[];
277
278
  roles: Role[];
278
279
  departments: Department[];
279
- readonly: boolean;
280
280
  allowCycles: boolean;
281
281
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
282
282
  declare const _default: typeof __VLS_export;
@@ -303,10 +303,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
303
303
  zIndex?: number | undefined;
304
304
  extent?: "parent" | [[number, number], [number, number]] | undefined;
305
305
  expandParent?: boolean | undefined;
306
- type: "start";
306
+ type: "copy";
307
307
  data: {
308
+ copyUsers?: {
309
+ id: string;
310
+ name: string;
311
+ avatar?: string | undefined;
312
+ department: string;
313
+ role: string;
314
+ email?: string | undefined;
315
+ phone?: string | undefined;
316
+ }[] | undefined;
308
317
  title: string;
309
- status: "active";
318
+ status?: NodeStatus | undefined;
310
319
  config?: Record<string, unknown> | undefined;
311
320
  initiators?: {
312
321
  id: string;
@@ -336,19 +345,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
336
345
  zIndex?: number | undefined;
337
346
  extent?: "parent" | [[number, number], [number, number]] | undefined;
338
347
  expandParent?: boolean | undefined;
339
- type: "copy";
348
+ type: "start";
340
349
  data: {
341
- copyUsers?: {
342
- id: string;
343
- name: string;
344
- avatar?: string | undefined;
345
- department: string;
346
- role: string;
347
- email?: string | undefined;
348
- phone?: string | undefined;
349
- }[] | undefined;
350
350
  title: string;
351
- status?: NodeStatus | undefined;
351
+ status: "active";
352
352
  config?: Record<string, unknown> | undefined;
353
353
  initiators?: {
354
354
  id: string;
@@ -461,10 +461,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
461
461
  zIndex?: number | undefined;
462
462
  extent?: "parent" | [[number, number], [number, number]] | undefined;
463
463
  expandParent?: boolean | undefined;
464
- type: "start";
464
+ type: "copy";
465
465
  data: {
466
+ copyUsers?: {
467
+ id: string;
468
+ name: string;
469
+ avatar?: string | undefined;
470
+ department: string;
471
+ role: string;
472
+ email?: string | undefined;
473
+ phone?: string | undefined;
474
+ }[] | undefined;
466
475
  title: string;
467
- status: "active";
476
+ status?: NodeStatus | undefined;
468
477
  config?: Record<string, unknown> | undefined;
469
478
  initiators?: {
470
479
  id: string;
@@ -494,19 +503,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
494
503
  zIndex?: number | undefined;
495
504
  extent?: "parent" | [[number, number], [number, number]] | undefined;
496
505
  expandParent?: boolean | undefined;
497
- type: "copy";
506
+ type: "start";
498
507
  data: {
499
- copyUsers?: {
500
- id: string;
501
- name: string;
502
- avatar?: string | undefined;
503
- department: string;
504
- role: string;
505
- email?: string | undefined;
506
- phone?: string | undefined;
507
- }[] | undefined;
508
508
  title: string;
509
- status?: NodeStatus | undefined;
509
+ status: "active";
510
510
  config?: Record<string, unknown> | undefined;
511
511
  initiators?: {
512
512
  id: string;
@@ -672,10 +672,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
672
672
  zIndex?: number | undefined;
673
673
  extent?: "parent" | [[number, number], [number, number]] | undefined;
674
674
  expandParent?: boolean | undefined;
675
- type: "start";
675
+ type: "copy";
676
676
  data: {
677
+ copyUsers?: {
678
+ id: string;
679
+ name: string;
680
+ avatar?: string | undefined;
681
+ department: string;
682
+ role: string;
683
+ email?: string | undefined;
684
+ phone?: string | undefined;
685
+ }[] | undefined;
677
686
  title: string;
678
- status: "active";
687
+ status?: NodeStatus | undefined;
679
688
  config?: Record<string, unknown> | undefined;
680
689
  initiators?: {
681
690
  id: string;
@@ -705,19 +714,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
705
714
  zIndex?: number | undefined;
706
715
  extent?: "parent" | [[number, number], [number, number]] | undefined;
707
716
  expandParent?: boolean | undefined;
708
- type: "copy";
717
+ type: "start";
709
718
  data: {
710
- copyUsers?: {
711
- id: string;
712
- name: string;
713
- avatar?: string | undefined;
714
- department: string;
715
- role: string;
716
- email?: string | undefined;
717
- phone?: string | undefined;
718
- }[] | undefined;
719
719
  title: string;
720
- status?: NodeStatus | undefined;
720
+ status: "active";
721
721
  config?: Record<string, unknown> | undefined;
722
722
  initiators?: {
723
723
  id: string;
@@ -830,10 +830,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
830
830
  zIndex?: number | undefined;
831
831
  extent?: "parent" | [[number, number], [number, number]] | undefined;
832
832
  expandParent?: boolean | undefined;
833
- type: "start";
833
+ type: "copy";
834
834
  data: {
835
+ copyUsers?: {
836
+ id: string;
837
+ name: string;
838
+ avatar?: string | undefined;
839
+ department: string;
840
+ role: string;
841
+ email?: string | undefined;
842
+ phone?: string | undefined;
843
+ }[] | undefined;
835
844
  title: string;
836
- status: "active";
845
+ status?: NodeStatus | undefined;
837
846
  config?: Record<string, unknown> | undefined;
838
847
  initiators?: {
839
848
  id: string;
@@ -863,19 +872,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
863
872
  zIndex?: number | undefined;
864
873
  extent?: "parent" | [[number, number], [number, number]] | undefined;
865
874
  expandParent?: boolean | undefined;
866
- type: "copy";
875
+ type: "start";
867
876
  data: {
868
- copyUsers?: {
869
- id: string;
870
- name: string;
871
- avatar?: string | undefined;
872
- department: string;
873
- role: string;
874
- email?: string | undefined;
875
- phone?: string | undefined;
876
- }[] | undefined;
877
877
  title: string;
878
- status?: NodeStatus | undefined;
878
+ status: "active";
879
879
  config?: Record<string, unknown> | undefined;
880
880
  initiators?: {
881
881
  id: string;
@@ -1047,10 +1047,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1047
1047
  zIndex?: number | undefined;
1048
1048
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1049
1049
  expandParent?: boolean | undefined;
1050
- type: "start";
1050
+ type: "copy";
1051
1051
  data: {
1052
+ copyUsers?: {
1053
+ id: string;
1054
+ name: string;
1055
+ avatar?: string | undefined;
1056
+ department: string;
1057
+ role: string;
1058
+ email?: string | undefined;
1059
+ phone?: string | undefined;
1060
+ }[] | undefined;
1052
1061
  title: string;
1053
- status: "active";
1062
+ status?: NodeStatus | undefined;
1054
1063
  config?: Record<string, unknown> | undefined;
1055
1064
  initiators?: {
1056
1065
  id: string;
@@ -1080,19 +1089,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1080
1089
  zIndex?: number | undefined;
1081
1090
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1082
1091
  expandParent?: boolean | undefined;
1083
- type: "copy";
1092
+ type: "start";
1084
1093
  data: {
1085
- copyUsers?: {
1086
- id: string;
1087
- name: string;
1088
- avatar?: string | undefined;
1089
- department: string;
1090
- role: string;
1091
- email?: string | undefined;
1092
- phone?: string | undefined;
1093
- }[] | undefined;
1094
1094
  title: string;
1095
- status?: NodeStatus | undefined;
1095
+ status: "active";
1096
1096
  config?: Record<string, unknown> | undefined;
1097
1097
  initiators?: {
1098
1098
  id: string;
@@ -1222,10 +1222,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1222
1222
  zIndex?: number | undefined;
1223
1223
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1224
1224
  expandParent?: boolean | undefined;
1225
- type: "start";
1225
+ type: "copy";
1226
1226
  data: {
1227
+ copyUsers?: {
1228
+ id: string;
1229
+ name: string;
1230
+ avatar?: string | undefined;
1231
+ department: string;
1232
+ role: string;
1233
+ email?: string | undefined;
1234
+ phone?: string | undefined;
1235
+ }[] | undefined;
1227
1236
  title: string;
1228
- status: "active";
1237
+ status?: NodeStatus | undefined;
1229
1238
  config?: Record<string, unknown> | undefined;
1230
1239
  initiators?: {
1231
1240
  id: string;
@@ -1255,19 +1264,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1255
1264
  zIndex?: number | undefined;
1256
1265
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1257
1266
  expandParent?: boolean | undefined;
1258
- type: "copy";
1267
+ type: "start";
1259
1268
  data: {
1260
- copyUsers?: {
1261
- id: string;
1262
- name: string;
1263
- avatar?: string | undefined;
1264
- department: string;
1265
- role: string;
1266
- email?: string | undefined;
1267
- phone?: string | undefined;
1268
- }[] | undefined;
1269
1269
  title: string;
1270
- status?: NodeStatus | undefined;
1270
+ status: "active";
1271
1271
  config?: Record<string, unknown> | undefined;
1272
1272
  initiators?: {
1273
1273
  id: string;
@@ -77,23 +77,23 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
77
77
  show: () => void;
78
78
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
79
79
  change: (valid: boolean) => any;
80
- success: (data: CaptchaSuccessPayload) => any;
81
80
  reset: () => any;
81
+ success: (data: CaptchaSuccessPayload) => any;
82
+ "load-error": (error: unknown) => any;
82
83
  fail: (error: string) => any;
83
84
  "verify-error": (error: unknown) => any;
84
- "load-error": (error: unknown) => any;
85
85
  "visible-change": (visible: boolean) => any;
86
86
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
87
87
  onChange?: ((valid: boolean) => any) | undefined;
88
- onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
89
88
  onReset?: (() => any) | undefined;
89
+ onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
90
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
90
91
  onFail?: ((error: string) => any) | undefined;
91
92
  "onVerify-error"?: ((error: unknown) => any) | undefined;
92
- "onLoad-error"?: ((error: unknown) => any) | undefined;
93
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
94
94
  }>, {
95
- disabled: boolean;
96
95
  theme: "light" | "dark";
96
+ disabled: boolean;
97
97
  provider: CaptchaProvider;
98
98
  images: string[];
99
99
  verificationTimeout: number;
@@ -77,23 +77,23 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
77
77
  show: () => void;
78
78
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
79
79
  change: (valid: boolean) => any;
80
- success: (data: CaptchaSuccessPayload) => any;
81
80
  reset: () => any;
81
+ success: (data: CaptchaSuccessPayload) => any;
82
+ "load-error": (error: unknown) => any;
82
83
  fail: (error: string) => any;
83
84
  "verify-error": (error: unknown) => any;
84
- "load-error": (error: unknown) => any;
85
85
  "visible-change": (visible: boolean) => any;
86
86
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
87
87
  onChange?: ((valid: boolean) => any) | undefined;
88
- onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
89
88
  onReset?: (() => any) | undefined;
89
+ onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
90
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
90
91
  onFail?: ((error: string) => any) | undefined;
91
92
  "onVerify-error"?: ((error: unknown) => any) | undefined;
92
- "onLoad-error"?: ((error: unknown) => any) | undefined;
93
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
94
94
  }>, {
95
- disabled: boolean;
96
95
  theme: "light" | "dark";
96
+ disabled: boolean;
97
97
  provider: CaptchaProvider;
98
98
  images: string[];
99
99
  verificationTimeout: number;
@@ -671,3 +671,9 @@ Define domain models in the application. Components preserve their types without
671
671
  CRUD bindings remain structural. `@robot-admin/request-core` 0.6.3 accepts component columns directly, without application converters or a dependency between the two packages.
672
672
 
673
673
  For a concrete business model, enable dynamic insertion with the existing `dynamicRows.defaultRowData` factory returning a complete row and valid unique key; `false` still disables it directly. Factory keys retain their original type. Copying with a string key preserves business fields and takes a fresh key from the factory. With a function key, the factory receives an optional source copy and returns a complete new record. Missing, duplicate or invalid factory keys report failure without changing data. Open dynamic records retain the legacy empty-row shorthand.
674
+
675
+ ## Breadcrumb directory navigation
676
+
677
+ `C_Breadcrumb` keeps automatic route and manual `items` modes. Optional `menus` accepts the host's authorized menu tree directly (`path/key`, `label/meta.title`, `children`); the component emits `select(path)` and leaves authorization and navigation to the application. Supplying an empty menu explicitly exposes no route-derived shortcuts. Hidden entries and unresolved parameterized leaves are omitted from shortcuts, while the active detail page remains visible unless explicitly excluded with `meta.breadcrumb: false`.
678
+
679
+ Parent buttons open a themed directory panel with page counts and current-page feedback. Narrow containers collapse intermediate path segments. Arrow keys, Home/End, Enter/Space and Escape are supported. Readonly inputs remain unchanged, disabled directories disable their descendants, and route/query/menu/size changes close stale panels. Generic text uses the existing component locale service. Existing `items`, `showIcon`, `iconSize`, `labelFormatter` and `select` remain available; manual labels are not translated again.
@@ -754,3 +754,20 @@ loading.finish(id)
754
754
  CRUD 控制器只需满足结构契约;`@robot-admin/request-core` 0.6.3 起可直接接收组件列,无需应用内列转换器。组件库与请求包保持独立依赖关系。
755
755
 
756
756
  明确业务模型启用动态增行时,提供已有 `dynamicRows.defaultRowData` 工厂返回完整记录和合法唯一主键;`false` 仍可直接关闭。工厂主键不会被组件改成字符串。复制使用字符串主键时保留原业务字段、从工厂取得新主键;函数主键场景由工厂接收可选原行副本并返回完整新记录。缺失、重复或无效主键会反馈失败并保持原数据。宽松动态记录继续支持原有空行简写。
757
+
758
+ ## 面包屑与目录导航
759
+
760
+ `C_Breadcrumb` 默认根据当前路由生成路径;父级点击展开目录,末项标识当前页。可选 `menus` 直接接收宿主已授权的菜单(`path/key`、`label/meta.title`、`children`),无需转换成 Naive UI 菜单选项。
761
+
762
+ ```vue
763
+ <C_Breadcrumb
764
+ :menus="permissionStore.showMenuListGet"
765
+ :label-formatter="translateRouteTitle"
766
+ :show-icon="settingsStore.showBreadcrumbIcon"
767
+ @select="navigateTo"
768
+ />
769
+ ```
770
+
771
+ 组件只发出 `select(path)`,不执行路由跳转或权限请求。传入 `menus`(包括空数组)后,目录仅使用这份数据;隐藏项、无标题占位和不可直接跳转的动态参数叶页不进入快捷导航。隐藏详情页仍保留当前路径,显式 `meta.breadcrumb: false` 可隐藏对应层级。未传 `menus` 时继续使用路由子项;原生路由表并非权限边界,业务项目应传入与侧栏同源的授权菜单。
772
+
773
+ 已有 `items` 手动路径继续优先,标签沿用传入值并接受只读嵌套数据,`disabled` 对目录整支生效。完整路径在窄容器中自动收拢,保留当前页;目录支持方向键、Home/End、Enter/Space 和 Escape。颜色跟随 Naive 主题,浮层中的通用文案使用既有组件国际化服务。组件不保存菜单快照、不读取应用 Store,也不改写传入数据。
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.19.0",
6
+ "version": "0.20.0",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "packageManager": "bun@1.3.14",
9
9
  "engines": {