@robot-admin/naive-ui-components 0.40.4 → 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 (73) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +101 -79
  3. package/README_EN.md +110 -67
  4. package/dist/constants.d.cts +1 -1
  5. package/dist/constants.d.ts +1 -1
  6. package/dist/constants3.d.cts +3 -3
  7. package/dist/constants3.d.ts +3 -3
  8. package/dist/constants4.d.cts +1 -1
  9. package/dist/constants4.d.ts +1 -1
  10. package/dist/constants5.d.cts +2 -2
  11. package/dist/constants5.d.ts +2 -2
  12. package/dist/data2.d.cts +6 -6
  13. package/dist/data2.d.ts +6 -6
  14. package/dist/editors.d.cts +9 -9
  15. package/dist/editors.d.ts +9 -9
  16. package/dist/index.vue.d.cts +6 -6
  17. package/dist/index.vue.d.ts +6 -6
  18. package/dist/index10.vue.d.ts +2 -2
  19. package/dist/index11.vue.d.cts +2 -2
  20. package/dist/index11.vue.d.ts +3 -3
  21. package/dist/index12.vue.d.cts +3 -3
  22. package/dist/index13.vue.d.ts +4 -4
  23. package/dist/index14.vue.d.cts +4 -4
  24. package/dist/index16.vue.d.ts +3 -3
  25. package/dist/index17.vue.d.cts +3 -3
  26. package/dist/index17.vue.d.ts +4 -4
  27. package/dist/index18.vue.d.cts +4 -4
  28. package/dist/index19.vue.d.ts +1 -1
  29. package/dist/index20.vue.d.cts +1 -1
  30. package/dist/index21.vue.d.ts +2 -2
  31. package/dist/index22.vue.d.cts +2 -2
  32. package/dist/index24.vue.d.cts +1 -1
  33. package/dist/index24.vue.d.ts +1 -1
  34. package/dist/index27.vue.d.cts +1 -1
  35. package/dist/index27.vue.d.ts +1 -1
  36. package/dist/index30.vue.d.cts +1 -1
  37. package/dist/index30.vue.d.ts +1 -1
  38. package/dist/index31.vue.d.cts +3 -3
  39. package/dist/index31.vue.d.ts +3 -3
  40. package/dist/index4.vue.d.cts +5 -5
  41. package/dist/index4.vue.d.ts +5 -5
  42. package/dist/index8.vue.d.ts +1 -1
  43. package/dist/index9.vue.d.cts +1 -1
  44. package/dist/mapUtils.d.cts +4 -4
  45. package/dist/mapUtils.d.ts +4 -4
  46. package/dist/useCalendarEvents.d.cts +2 -2
  47. package/dist/useCalendarEvents.d.ts +2 -2
  48. package/dist/useCollapsePanel.d.cts +4 -4
  49. package/dist/useCollapsePanel.d.ts +4 -4
  50. package/dist/useCropperCore.d.cts +8 -8
  51. package/dist/useCropperCore.d.ts +8 -8
  52. package/dist/useEdgeInteraction.d.cts +1 -1
  53. package/dist/useEdgeInteraction.d.ts +1 -1
  54. package/dist/useFullscreen.d.cts +2 -2
  55. package/dist/useFullscreen.d.ts +2 -2
  56. package/dist/useInfiniteScroll.d.cts +2 -2
  57. package/dist/useInfiniteScroll.d.ts +2 -2
  58. package/dist/useQRCode.d.cts +2 -2
  59. package/dist/useQRCode.d.ts +2 -2
  60. package/dist/useSignatureHistory.d.cts +3 -3
  61. package/dist/useSignatureHistory.d.ts +3 -3
  62. package/dist/useSplitResize.d.cts +6 -6
  63. package/dist/useSplitResize.d.ts +6 -6
  64. package/dist/useTimeSelection.d.cts +3 -3
  65. package/dist/useTimeSelection.d.ts +3 -3
  66. package/dist/useWorkflowValidation.d.cts +102 -102
  67. package/dist/useWorkflowValidation.d.ts +102 -102
  68. package/dist/verification.d.cts +2 -2
  69. package/dist/verification.d.ts +2 -2
  70. package/docs/engineering.en.md +6 -0
  71. package/docs/engineering.md +6 -0
  72. package/docs/guides/api-migration.md +17 -1
  73. package/package.json +1 -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,21 +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: "approval";
403
+ type: "start";
394
404
  data: {
395
- approvers?: {
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
- approvalMode?: ApprovalMode | undefined;
406
405
  title: string;
407
- status?: NodeStatus | undefined;
406
+ status: "active";
408
407
  config?: Record<string, unknown> | undefined;
409
408
  initiators?: {
410
409
  id: string;
@@ -435,9 +434,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
435
434
  zIndex?: number | undefined;
436
435
  extent?: "parent" | [[number, number], [number, number]] | undefined;
437
436
  expandParent?: boolean | undefined;
438
- type: "copy";
437
+ type: "approval";
439
438
  data: {
440
- copyUsers?: {
439
+ approvers?: {
441
440
  id: string;
442
441
  name: string;
443
442
  avatar?: string | undefined;
@@ -447,6 +446,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
447
446
  email?: string | undefined;
448
447
  phone?: string | undefined;
449
448
  }[] | undefined;
449
+ approvalMode?: ApprovalMode | undefined;
450
450
  title: string;
451
451
  status?: NodeStatus | undefined;
452
452
  config?: Record<string, unknown> | undefined;
@@ -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,21 +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: "approval";
570
+ type: "start";
561
571
  data: {
562
- approvers?: {
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
- approvalMode?: ApprovalMode | undefined;
573
572
  title: string;
574
- status?: NodeStatus | undefined;
573
+ status: "active";
575
574
  config?: Record<string, unknown> | undefined;
576
575
  initiators?: {
577
576
  id: string;
@@ -602,9 +601,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
602
601
  zIndex?: number | undefined;
603
602
  extent?: "parent" | [[number, number], [number, number]] | undefined;
604
603
  expandParent?: boolean | undefined;
605
- type: "copy";
604
+ type: "approval";
606
605
  data: {
607
- copyUsers?: {
606
+ approvers?: {
608
607
  id: string;
609
608
  name: string;
610
609
  avatar?: string | undefined;
@@ -614,6 +613,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
614
613
  email?: string | undefined;
615
614
  phone?: string | undefined;
616
615
  }[] | undefined;
616
+ approvalMode?: ApprovalMode | undefined;
617
617
  title: string;
618
618
  status?: NodeStatus | undefined;
619
619
  config?: Record<string, unknown> | undefined;
@@ -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,21 +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: "approval";
790
+ type: "start";
781
791
  data: {
782
- approvers?: {
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
- approvalMode?: ApprovalMode | undefined;
793
792
  title: string;
794
- status?: NodeStatus | undefined;
793
+ status: "active";
795
794
  config?: Record<string, unknown> | undefined;
796
795
  initiators?: {
797
796
  id: string;
@@ -822,9 +821,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
822
821
  zIndex?: number | undefined;
823
822
  extent?: "parent" | [[number, number], [number, number]] | undefined;
824
823
  expandParent?: boolean | undefined;
825
- type: "copy";
824
+ type: "approval";
826
825
  data: {
827
- copyUsers?: {
826
+ approvers?: {
828
827
  id: string;
829
828
  name: string;
830
829
  avatar?: string | undefined;
@@ -834,6 +833,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
834
833
  email?: string | undefined;
835
834
  phone?: string | undefined;
836
835
  }[] | undefined;
836
+ approvalMode?: ApprovalMode | undefined;
837
837
  title: string;
838
838
  status?: NodeStatus | undefined;
839
839
  config?: Record<string, unknown> | undefined;
@@ -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,21 +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: "approval";
957
+ type: "start";
948
958
  data: {
949
- approvers?: {
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
- approvalMode?: ApprovalMode | undefined;
960
959
  title: string;
961
- status?: NodeStatus | undefined;
960
+ status: "active";
962
961
  config?: Record<string, unknown> | undefined;
963
962
  initiators?: {
964
963
  id: string;
@@ -989,9 +988,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
989
988
  zIndex?: number | undefined;
990
989
  extent?: "parent" | [[number, number], [number, number]] | undefined;
991
990
  expandParent?: boolean | undefined;
992
- type: "copy";
991
+ type: "approval";
993
992
  data: {
994
- copyUsers?: {
993
+ approvers?: {
995
994
  id: string;
996
995
  name: string;
997
996
  avatar?: string | undefined;
@@ -1001,6 +1000,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
1001
1000
  email?: string | undefined;
1002
1001
  phone?: string | undefined;
1003
1002
  }[] | undefined;
1003
+ approvalMode?: ApprovalMode | undefined;
1004
1004
  title: string;
1005
1005
  status?: NodeStatus | undefined;
1006
1006
  config?: Record<string, unknown> | undefined;
@@ -1151,10 +1151,20 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1151
1151
  zIndex?: number | undefined;
1152
1152
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1153
1153
  expandParent?: boolean | undefined;
1154
- type: "start";
1154
+ type: "copy";
1155
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;
1156
1166
  title: string;
1157
- status: "active";
1167
+ status?: NodeStatus | undefined;
1158
1168
  config?: Record<string, unknown> | undefined;
1159
1169
  initiators?: {
1160
1170
  id: string;
@@ -1185,21 +1195,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1185
1195
  zIndex?: number | undefined;
1186
1196
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1187
1197
  expandParent?: boolean | undefined;
1188
- type: "approval";
1198
+ type: "start";
1189
1199
  data: {
1190
- approvers?: {
1191
- id: string;
1192
- name: string;
1193
- avatar?: string | undefined;
1194
- department: string;
1195
- departmentId?: string | undefined;
1196
- role: string;
1197
- email?: string | undefined;
1198
- phone?: string | undefined;
1199
- }[] | undefined;
1200
- approvalMode?: ApprovalMode | undefined;
1201
1200
  title: string;
1202
- status?: NodeStatus | undefined;
1201
+ status: "active";
1203
1202
  config?: Record<string, unknown> | undefined;
1204
1203
  initiators?: {
1205
1204
  id: string;
@@ -1230,9 +1229,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1230
1229
  zIndex?: number | undefined;
1231
1230
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1232
1231
  expandParent?: boolean | undefined;
1233
- type: "copy";
1232
+ type: "approval";
1234
1233
  data: {
1235
- copyUsers?: {
1234
+ approvers?: {
1236
1235
  id: string;
1237
1236
  name: string;
1238
1237
  avatar?: string | undefined;
@@ -1242,6 +1241,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1242
1241
  email?: string | undefined;
1243
1242
  phone?: string | undefined;
1244
1243
  }[] | undefined;
1244
+ approvalMode?: ApprovalMode | undefined;
1245
1245
  title: string;
1246
1246
  status?: NodeStatus | undefined;
1247
1247
  config?: Record<string, unknown> | undefined;
@@ -1341,10 +1341,20 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1341
1341
  zIndex?: number | undefined;
1342
1342
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1343
1343
  expandParent?: boolean | undefined;
1344
- type: "start";
1344
+ type: "copy";
1345
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;
1346
1356
  title: string;
1347
- status: "active";
1357
+ status?: NodeStatus | undefined;
1348
1358
  config?: Record<string, unknown> | undefined;
1349
1359
  initiators?: {
1350
1360
  id: string;
@@ -1375,21 +1385,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1375
1385
  zIndex?: number | undefined;
1376
1386
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1377
1387
  expandParent?: boolean | undefined;
1378
- type: "approval";
1388
+ type: "start";
1379
1389
  data: {
1380
- approvers?: {
1381
- id: string;
1382
- name: string;
1383
- avatar?: string | undefined;
1384
- department: string;
1385
- departmentId?: string | undefined;
1386
- role: string;
1387
- email?: string | undefined;
1388
- phone?: string | undefined;
1389
- }[] | undefined;
1390
- approvalMode?: ApprovalMode | undefined;
1391
1390
  title: string;
1392
- status?: NodeStatus | undefined;
1391
+ status: "active";
1393
1392
  config?: Record<string, unknown> | undefined;
1394
1393
  initiators?: {
1395
1394
  id: string;
@@ -1420,9 +1419,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1420
1419
  zIndex?: number | undefined;
1421
1420
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1422
1421
  expandParent?: boolean | undefined;
1423
- type: "copy";
1422
+ type: "approval";
1424
1423
  data: {
1425
- copyUsers?: {
1424
+ approvers?: {
1426
1425
  id: string;
1427
1426
  name: string;
1428
1427
  avatar?: string | undefined;
@@ -1432,6 +1431,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1432
1431
  email?: string | undefined;
1433
1432
  phone?: string | undefined;
1434
1433
  }[] | undefined;
1434
+ approvalMode?: ApprovalMode | undefined;
1435
1435
  title: string;
1436
1436
  status?: NodeStatus | undefined;
1437
1437
  config?: Record<string, unknown> | undefined;
@@ -79,17 +79,17 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
79
79
  success: (data: CaptchaSuccessPayload) => any;
80
80
  change: (valid: boolean) => any;
81
81
  reset: () => 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
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
88
88
  onChange?: ((valid: boolean) => any) | undefined;
89
89
  onReset?: (() => 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
95
  disabled: boolean;
@@ -79,17 +79,17 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
79
79
  success: (data: CaptchaSuccessPayload) => any;
80
80
  change: (valid: boolean) => any;
81
81
  reset: () => 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
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
88
88
  onChange?: ((valid: boolean) => any) | undefined;
89
89
  onReset?: (() => 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
95
  disabled: boolean;
@@ -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
  | ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ---------------------------------------------------------------- |
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.40.4",
6
+ "version": "0.40.5",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "packageManager": "bun@1.4.2",
9
9
  "engines": {