@robot-admin/naive-ui-components 0.37.0 → 0.37.1

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 (87) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/dist/C_Icon2.cjs +1 -1
  5. package/dist/C_Icon2.js +1 -1
  6. package/dist/C_Steps.css +39 -39
  7. package/dist/C_Steps2.cjs +1 -1
  8. package/dist/C_Steps2.js +1 -1
  9. package/dist/constants.d.cts +2 -2
  10. package/dist/constants.d.ts +2 -2
  11. package/dist/constants2.d.cts +2 -2
  12. package/dist/constants2.d.ts +2 -2
  13. package/dist/constants3.d.cts +3 -3
  14. package/dist/constants3.d.ts +3 -3
  15. package/dist/constants4.d.cts +5 -5
  16. package/dist/constants4.d.ts +5 -5
  17. package/dist/constants5.d.cts +2 -2
  18. package/dist/constants5.d.ts +2 -2
  19. package/dist/data2.d.cts +7 -7
  20. package/dist/data2.d.ts +7 -7
  21. package/dist/editors.d.cts +7 -7
  22. package/dist/editors.d.ts +7 -7
  23. package/dist/index.vue.d.cts +6 -6
  24. package/dist/index.vue.d.ts +6 -6
  25. package/dist/index10.vue.d.cts +2 -2
  26. package/dist/index10.vue.d.ts +2 -2
  27. package/dist/index11.vue.d.cts +2 -2
  28. package/dist/index11.vue.d.ts +2 -2
  29. package/dist/index12.vue.d.cts +2 -2
  30. package/dist/index13.vue.d.ts +3 -3
  31. package/dist/index14.vue.d.cts +3 -3
  32. package/dist/index16.vue.d.ts +2 -2
  33. package/dist/index17.vue.d.cts +2 -2
  34. package/dist/index17.vue.d.ts +4 -4
  35. package/dist/index18.vue.d.cts +4 -4
  36. package/dist/index18.vue.d.ts +2 -2
  37. package/dist/index19.vue.d.cts +2 -2
  38. package/dist/index20.vue.d.ts +1 -1
  39. package/dist/index21.vue.d.cts +1 -1
  40. package/dist/index21.vue.d.ts +4 -4
  41. package/dist/index22.vue.d.cts +4 -4
  42. package/dist/index24.vue.d.cts +1 -1
  43. package/dist/index24.vue.d.ts +1 -1
  44. package/dist/index27.vue.d.cts +1 -1
  45. package/dist/index27.vue.d.ts +1 -1
  46. package/dist/index28.vue.d.cts +1 -1
  47. package/dist/index28.vue.d.ts +1 -1
  48. package/dist/index3.vue.d.cts +1 -1
  49. package/dist/index3.vue.d.ts +1 -1
  50. package/dist/index31.vue.d.cts +6 -6
  51. package/dist/index31.vue.d.ts +6 -6
  52. package/dist/index32.vue.d.cts +2 -2
  53. package/dist/index32.vue.d.ts +2 -2
  54. package/dist/index4.vue.d.cts +6 -6
  55. package/dist/index4.vue.d.ts +6 -6
  56. package/dist/index7.vue.d.ts +2 -2
  57. package/dist/index8.vue.d.cts +2 -2
  58. package/dist/index9.vue.d.ts +2 -2
  59. package/dist/mapUtils.d.cts +4 -4
  60. package/dist/mapUtils.d.ts +4 -4
  61. package/dist/style.css +39 -39
  62. package/dist/useCalendarEvents.d.cts +2 -2
  63. package/dist/useCalendarEvents.d.ts +2 -2
  64. package/dist/useCollapsePanel.d.cts +6 -6
  65. package/dist/useCollapsePanel.d.ts +6 -6
  66. package/dist/useCropperCore.d.cts +3 -3
  67. package/dist/useCropperCore.d.ts +3 -3
  68. package/dist/useEdgeInteraction.d.cts +1 -1
  69. package/dist/useEdgeInteraction.d.ts +1 -1
  70. package/dist/useFullscreen.d.cts +1 -1
  71. package/dist/useFullscreen.d.ts +1 -1
  72. package/dist/useGlobalSearch.d.cts +1 -1
  73. package/dist/useGlobalSearch.d.ts +1 -1
  74. package/dist/useInfiniteScroll.d.cts +3 -3
  75. package/dist/useInfiniteScroll.d.ts +3 -3
  76. package/dist/useQRCode.d.cts +3 -3
  77. package/dist/useQRCode.d.ts +3 -3
  78. package/dist/useSignatureHistory.d.cts +4 -4
  79. package/dist/useSignatureHistory.d.ts +4 -4
  80. package/dist/useSplitResize.d.cts +6 -6
  81. package/dist/useSplitResize.d.ts +6 -6
  82. package/dist/useWorkflowValidation.d.cts +86 -86
  83. package/dist/useWorkflowValidation.d.ts +86 -86
  84. package/dist/verification.d.cts +4 -4
  85. package/dist/verification.d.ts +4 -4
  86. package/docs/guides/theme.md +2 -0
  87. package/package.json +1 -1
@@ -307,15 +307,15 @@ declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
307
307
  }>;
308
308
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
309
309
  "node-click": (node: WorkflowNode<NodeType>) => any;
310
- "update:modelValue": (value: WorkflowData) => any;
311
310
  change: (value: WorkflowData) => any;
311
+ "update:modelValue": (value: WorkflowData) => any;
312
312
  save: (data: WorkflowData) => any;
313
313
  "validate-error": (errors: ValidationError[]) => any;
314
314
  "edge-click": (edge: WorkflowEdge) => any;
315
315
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
316
316
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
317
- "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
318
317
  onChange?: ((value: WorkflowData) => any) | undefined;
318
+ "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
319
319
  onSave?: ((data: WorkflowData) => any) | undefined;
320
320
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
321
321
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
@@ -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;
@@ -1146,10 +1146,20 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1146
1146
  zIndex?: number | undefined;
1147
1147
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1148
1148
  expandParent?: boolean | undefined;
1149
- type: "start";
1149
+ type: "copy";
1150
1150
  data: {
1151
+ copyUsers?: {
1152
+ id: string;
1153
+ name: string;
1154
+ avatar?: string | undefined;
1155
+ department: string;
1156
+ departmentId?: string | undefined;
1157
+ role: string;
1158
+ email?: string | undefined;
1159
+ phone?: string | undefined;
1160
+ }[] | undefined;
1151
1161
  title: string;
1152
- status: "active";
1162
+ status?: NodeStatus | undefined;
1153
1163
  config?: Record<string, unknown> | undefined;
1154
1164
  initiators?: {
1155
1165
  id: string;
@@ -1180,20 +1190,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1180
1190
  zIndex?: number | undefined;
1181
1191
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1182
1192
  expandParent?: boolean | undefined;
1183
- type: "copy";
1193
+ type: "start";
1184
1194
  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
1195
  title: string;
1196
- status?: NodeStatus | undefined;
1196
+ status: "active";
1197
1197
  config?: Record<string, unknown> | undefined;
1198
1198
  initiators?: {
1199
1199
  id: string;
@@ -1336,10 +1336,20 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1336
1336
  zIndex?: number | undefined;
1337
1337
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1338
1338
  expandParent?: boolean | undefined;
1339
- type: "start";
1339
+ type: "copy";
1340
1340
  data: {
1341
+ copyUsers?: {
1342
+ id: string;
1343
+ name: string;
1344
+ avatar?: string | undefined;
1345
+ department: string;
1346
+ departmentId?: string | undefined;
1347
+ role: string;
1348
+ email?: string | undefined;
1349
+ phone?: string | undefined;
1350
+ }[] | undefined;
1341
1351
  title: string;
1342
- status: "active";
1352
+ status?: NodeStatus | undefined;
1343
1353
  config?: Record<string, unknown> | undefined;
1344
1354
  initiators?: {
1345
1355
  id: string;
@@ -1370,20 +1380,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1370
1380
  zIndex?: number | undefined;
1371
1381
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1372
1382
  expandParent?: boolean | undefined;
1373
- type: "copy";
1383
+ type: "start";
1374
1384
  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
1385
  title: string;
1386
- status?: NodeStatus | undefined;
1386
+ status: "active";
1387
1387
  config?: Record<string, unknown> | undefined;
1388
1388
  initiators?: {
1389
1389
  id: string;
@@ -77,19 +77,19 @@ 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
95
  disabled: boolean;
@@ -77,19 +77,19 @@ 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
95
  disabled: boolean;
@@ -58,6 +58,8 @@
58
58
 
59
59
  圆角按角色区分:控件使用 `radius`,小工具使用 `radius-sm`,面板使用 `radius-panel`,大卡片使用 `radius-lg`。分割手柄、头像、聊天气泡、流程节点保留自己的形状,避免机械地统一成同一种圆角。
60
60
 
61
+ 步骤条 `icon` 可直接传 `mdi:account`,也兼容单个 `i-mdi:account`。这两种写法使用共享图标组件;已有自定义 CSS 类和组合类仍按原方式渲染。自定义 Iconify 图标沿用 `C_Icon` 的本地注册与加载机制,不要求业务生成 UnoCSS 图标类。
62
+
61
63
  ## 局部覆盖与边界
62
64
 
63
65
  公开的 `--c-primary`、`--c-bg-card`、`--c-text-1`、`--c-border`、`--c-radius` 等 CSS 变量可以局部覆盖自绘区域。内部 `--c-theme-*` 只提供来自 Provider 的默认值,不应由业务代码依赖。公开变量优先于内部默认值。
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.37.0",
6
+ "version": "0.37.1",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "packageManager": "bun@1.4.2",
9
9
  "engines": {