@robot-admin/naive-ui-components 0.18.0 → 0.19.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 (82) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/C_Form.cjs +1 -1
  3. package/dist/C_Table.base.css +108 -108
  4. package/dist/C_Table.css +108 -108
  5. package/dist/constants3.d.cts +3 -3
  6. package/dist/constants3.d.ts +3 -3
  7. package/dist/constants4.d.cts +3 -3
  8. package/dist/constants4.d.ts +3 -3
  9. package/dist/constants5.d.cts +2 -2
  10. package/dist/constants5.d.ts +2 -2
  11. package/dist/data.d.cts +5 -5
  12. package/dist/data.d.ts +5 -5
  13. package/dist/formValidation.cjs +1 -1
  14. package/dist/formValidation.js +1 -1
  15. package/dist/helpers.cjs +1 -1
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.vue.d.cts +4 -4
  18. package/dist/index.vue.d.ts +4 -4
  19. package/dist/index10.vue.d.cts +1 -1
  20. package/dist/index10.vue.d.ts +5 -5
  21. package/dist/index11.vue.d.cts +5 -5
  22. package/dist/index12.vue.d.ts +2 -2
  23. package/dist/index13.vue.d.cts +2 -2
  24. package/dist/index13.vue.d.ts +5 -5
  25. package/dist/index14.vue.d.cts +5 -5
  26. package/dist/index16.vue.d.ts +1 -1
  27. package/dist/index17.vue.d.cts +1 -1
  28. package/dist/index17.vue.d.ts +2 -2
  29. package/dist/index18.vue.d.cts +2 -2
  30. package/dist/index19.vue.d.cts +1 -1
  31. package/dist/index19.vue.d.ts +1 -1
  32. package/dist/index2.vue.d.cts +2 -2
  33. package/dist/index2.vue.d.ts +2 -2
  34. package/dist/index20.vue.d.cts +1 -1
  35. package/dist/index20.vue.d.ts +1 -1
  36. package/dist/index21.vue.d.cts +1 -1
  37. package/dist/index21.vue.d.ts +1 -1
  38. package/dist/index22.vue.d.cts +2 -2
  39. package/dist/index22.vue.d.ts +2 -2
  40. package/dist/index25.vue.d.cts +4 -4
  41. package/dist/index25.vue.d.ts +4 -4
  42. package/dist/index26.vue.d.cts +2 -2
  43. package/dist/index26.vue.d.ts +2 -2
  44. package/dist/index3.vue.d.cts +3 -3
  45. package/dist/index3.vue.d.ts +3 -3
  46. package/dist/index6.vue.d.ts +2 -2
  47. package/dist/index7.vue.d.cts +2 -2
  48. package/dist/index8.vue.d.ts +6 -6
  49. package/dist/index9.vue.d.cts +6 -6
  50. package/dist/index9.vue.d.ts +1 -1
  51. package/dist/mapUtils.d.cts +2 -2
  52. package/dist/mapUtils.d.ts +2 -2
  53. package/dist/presets.d.cts +4 -2
  54. package/dist/presets.d.ts +4 -2
  55. package/dist/style.css +108 -108
  56. package/dist/useCalendarEvents.d.cts +1 -1
  57. package/dist/useCalendarEvents.d.ts +1 -1
  58. package/dist/useCollapsePanel.d.cts +6 -6
  59. package/dist/useCollapsePanel.d.ts +6 -6
  60. package/dist/useCropperCore.d.cts +5 -5
  61. package/dist/useCropperCore.d.ts +5 -5
  62. package/dist/useDynamicFormState.d.cts +2 -7
  63. package/dist/useDynamicFormState.d.ts +2 -7
  64. package/dist/useEdgeInteraction.d.cts +2 -2
  65. package/dist/useEdgeInteraction.d.ts +2 -2
  66. package/dist/useQRCode.d.cts +3 -3
  67. package/dist/useQRCode.d.ts +3 -3
  68. package/dist/useSignatureHistory.d.cts +5 -5
  69. package/dist/useSignatureHistory.d.ts +5 -5
  70. package/dist/useSplitResize.d.cts +6 -6
  71. package/dist/useSplitResize.d.ts +6 -6
  72. package/dist/useTableQuery.cjs +2 -2
  73. package/dist/useTableQuery.d.cts +33 -72
  74. package/dist/useTableQuery.d.ts +33 -72
  75. package/dist/useTableQuery.js +1 -1
  76. package/dist/useWorkflowValidation.d.cts +81 -81
  77. package/dist/useWorkflowValidation.d.ts +81 -81
  78. package/dist/verification.d.cts +2 -2
  79. package/dist/verification.d.ts +2 -2
  80. package/docs/guides/usage.en.md +3 -1
  81. package/docs/guides/usage.md +3 -1
  82. package/package.json +2 -2
@@ -80,9 +80,9 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
80
80
  "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
81
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
82
82
  }>, {
83
+ direction: OrgChartDirection;
83
84
  lineColor: string;
84
85
  lineWidth: number;
85
- direction: OrgChartDirection;
86
86
  collapsible: boolean;
87
87
  lineStyle: OrgChartLineStyle;
88
88
  nodeSpacing: number;
@@ -73,10 +73,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- max: number;
77
- overlap: number;
78
76
  direction: "ltr" | "rtl";
79
77
  clickable: boolean;
78
+ max: number;
79
+ overlap: number;
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
@@ -73,10 +73,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- max: number;
77
- overlap: number;
78
76
  direction: "ltr" | "rtl";
79
77
  clickable: boolean;
78
+ max: number;
79
+ overlap: number;
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ time: number;
37
38
  status: "default" | "success" | "error" | "warning" | "info";
38
39
  strokeWidth: number;
39
- time: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
+ time: number;
37
38
  status: "default" | "success" | "error" | "warning" | "info";
38
39
  strokeWidth: number;
39
- time: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -86,8 +86,8 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- repeat: number;
90
89
  loading: boolean;
90
+ repeat: number;
91
91
  preset: SkeletonPreset;
92
92
  animation: SkeletonAnimation;
93
93
  borderRadius: string;
@@ -86,8 +86,8 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- repeat: number;
90
89
  loading: boolean;
90
+ repeat: number;
91
91
  preset: SkeletonPreset;
92
92
  animation: SkeletonAnimation;
93
93
  borderRadius: string;
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
+ connected: boolean;
39
+ current: number;
38
40
  direction: "horizontal" | "vertical";
39
41
  clickable: boolean;
40
- current: number;
41
- connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
+ connected: boolean;
39
+ current: number;
38
40
  direction: "horizontal" | "vertical";
39
41
  clickable: boolean;
40
- current: number;
41
- connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -84,17 +84,17 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- expand: (item: TimelineItem, expanded: boolean) => any;
88
87
  "item-click": (item: TimelineItem, index: number) => any;
88
+ expand: (item: TimelineItem, expanded: boolean) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
90
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
92
92
  }>, {
93
- size: "small" | "medium" | "large";
94
93
  reverse: boolean;
95
- items: TimelineItem[];
94
+ size: "small" | "medium" | "large";
96
95
  pending: boolean;
97
96
  mode: "vertical" | "horizontal";
97
+ items: TimelineItem[];
98
98
  labelPlacement: "left" | "right" | "alternate";
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
@@ -84,17 +84,17 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- expand: (item: TimelineItem, expanded: boolean) => any;
88
87
  "item-click": (item: TimelineItem, index: number) => any;
88
+ expand: (item: TimelineItem, expanded: boolean) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
90
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
92
92
  }>, {
93
- size: "small" | "medium" | "large";
94
93
  reverse: boolean;
95
- items: TimelineItem[];
94
+ size: "small" | "medium" | "large";
96
95
  pending: boolean;
97
96
  mode: "vertical" | "horizontal";
97
+ items: TimelineItem[];
98
98
  labelPlacement: "left" | "right" | "alternate";
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
@@ -58,14 +58,14 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
58
58
  declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
59
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
60
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
- onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
62
62
  }> & (typeof globalThis extends {
63
63
  __VLS_PROPS_FALLBACK: infer P;
64
64
  } ? P : {});
65
65
  expose: (exposed: {}) => void;
66
66
  attrs: any;
67
67
  slots: {};
68
- emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void);
69
69
  }>) => vue.VNode & {
70
70
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
71
71
  };
@@ -58,14 +58,14 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
58
58
  declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
59
  props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
60
60
  "onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
61
- onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
61
+ onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
62
62
  }> & (typeof globalThis extends {
63
63
  __VLS_PROPS_FALLBACK: infer P;
64
64
  } ? P : {});
65
65
  expose: (exposed: {}) => void;
66
66
  attrs: any;
67
67
  slots: {};
68
- emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
68
+ emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void);
69
69
  }>) => vue.VNode & {
70
70
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
71
71
  };
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
+ width: number;
23
24
  height: number;
24
25
  label: string;
25
- width: number;
26
26
  fontSize: number;
27
27
  lineColor: string;
28
28
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
29
- showBorder: boolean;
30
- showLabel: boolean;
31
29
  showText: boolean;
32
30
  textPosition: "bottom" | "top";
33
31
  background: string;
32
+ showBorder: boolean;
33
+ showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
+ width: number;
23
24
  height: number;
24
25
  label: string;
25
- width: number;
26
26
  fontSize: number;
27
27
  lineColor: string;
28
28
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
29
- showBorder: boolean;
30
- showLabel: boolean;
31
29
  showText: boolean;
32
30
  textPosition: "bottom" | "top";
33
31
  background: string;
32
+ showBorder: boolean;
33
+ showLabel: boolean;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -106,9 +106,9 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
106
106
  "onEmoji-click"?: (() => any) | undefined;
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
- placeholder: string;
110
- title: string;
111
109
  virtualScroll: boolean;
110
+ title: string;
111
+ placeholder: string;
112
112
  showContacts: boolean;
113
113
  showTimestamp: boolean;
114
114
  showSendBtn: boolean;
@@ -106,9 +106,9 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
106
106
  "onEmoji-click"?: (() => any) | undefined;
107
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
108
108
  }>, {
109
- placeholder: string;
110
- title: string;
111
109
  virtualScroll: boolean;
110
+ title: string;
111
+ placeholder: string;
112
112
  showContacts: boolean;
113
113
  showTimestamp: boolean;
114
114
  showSendBtn: boolean;
@@ -23,18 +23,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
- copy: (code: string) => any;
27
- click: (event: MouseEvent) => any;
28
26
  fullscreen: (isFullscreen: boolean) => any;
27
+ click: (event: MouseEvent) => any;
28
+ copy: (code: string) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onCopy?: ((code: string) => any) | undefined;
31
- onClick?: ((event: MouseEvent) => any) | undefined;
32
30
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
31
+ onClick?: ((event: MouseEvent) => any) | undefined;
32
+ onCopy?: ((code: string) => any) | undefined;
33
33
  }>, {
34
- trim: boolean;
35
- code: string;
36
34
  language: string;
37
35
  showHeader: boolean;
36
+ trim: boolean;
37
+ code: string;
38
38
  showLineNumbers: boolean;
39
39
  wordWrap: boolean;
40
40
  showFullscreen: boolean;
@@ -23,18 +23,18 @@ declare const __VLS_export: vue.DefineComponent<Props, {
23
23
  copyCode: typeof copyCode;
24
24
  toggleFullscreen: typeof toggleFullscreen;
25
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
26
- copy: (code: string) => any;
27
- click: (event: MouseEvent) => any;
28
26
  fullscreen: (isFullscreen: boolean) => any;
27
+ click: (event: MouseEvent) => any;
28
+ copy: (code: string) => any;
29
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
30
- onCopy?: ((code: string) => any) | undefined;
31
- onClick?: ((event: MouseEvent) => any) | undefined;
32
30
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
31
+ onClick?: ((event: MouseEvent) => any) | undefined;
32
+ onCopy?: ((code: string) => any) | undefined;
33
33
  }>, {
34
- trim: boolean;
35
- code: string;
36
34
  language: string;
37
35
  showHeader: boolean;
36
+ trim: boolean;
37
+ code: string;
38
38
  showLineNumbers: boolean;
39
39
  wordWrap: boolean;
40
40
  showFullscreen: boolean;
@@ -76,9 +76,9 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
76
76
  onClose?: (() => any) | undefined;
77
77
  }>, {
78
78
  disabled: boolean;
79
- items: ContextMenuItem[];
80
79
  minWidth: number;
81
80
  maxWidth: number;
81
+ items: ContextMenuItem[];
82
82
  subMenuPlacement: "right" | "left";
83
83
  autoClose: boolean;
84
84
  zIndex: number;
@@ -83,12 +83,12 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- error: (error: Error) => any;
87
86
  ready: (map: MapInstance) => any;
87
+ error: (error: Error) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onError?: ((error: Error) => any) | undefined;
91
90
  onReady?: ((map: MapInstance) => any) | undefined;
91
+ onError?: ((error: Error) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
@@ -83,12 +83,12 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- error: (error: Error) => any;
87
86
  ready: (map: MapInstance) => any;
87
+ error: (error: Error) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onError?: ((error: Error) => any) | undefined;
91
90
  onReady?: ((map: MapInstance) => any) | undefined;
91
+ onError?: ((error: Error) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
@@ -13,7 +13,8 @@ interface ActionDropdownItem {
13
13
  icon?: string;
14
14
  disabled?: ActionState;
15
15
  show?: ActionState;
16
- onClick?: () => void | Promise<void>;
16
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
17
+ onClick?: () => unknown;
17
18
  }
18
19
  interface ActionItem {
19
20
  /** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
@@ -31,7 +32,8 @@ interface ActionItem {
31
32
  dropdown?: ActionDropdownItem[];
32
33
  /** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
33
34
  autoLoading?: boolean;
34
- onClick?: () => void | Promise<void>;
35
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
36
+ onClick?: () => unknown;
35
37
  /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
36
38
  buttonProps?: Partial<ButtonProps>;
37
39
  directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
package/dist/presets.d.ts CHANGED
@@ -13,7 +13,8 @@ interface ActionDropdownItem {
13
13
  icon?: string;
14
14
  disabled?: ActionState;
15
15
  show?: ActionState;
16
- onClick?: () => void | Promise<void>;
16
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
17
+ onClick?: () => unknown;
17
18
  }
18
19
  interface ActionItem {
19
20
  /** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
@@ -31,7 +32,8 @@ interface ActionItem {
31
32
  dropdown?: ActionDropdownItem[];
32
33
  /** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
33
34
  autoLoading?: boolean;
34
- onClick?: () => void | Promise<void>;
35
+ /** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
36
+ onClick?: () => unknown;
35
37
  /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
36
38
  buttonProps?: Partial<ButtonProps>;
37
39
  directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;