@robot-admin/naive-ui-components 0.11.5 → 0.11.6

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 (99) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/SECURITY.md +1 -0
  5. package/dist/C_Map.css +3 -3
  6. package/dist/C_Map.d.cts +2 -2
  7. package/dist/C_Map.d.ts +2 -2
  8. package/dist/C_Map2.cjs +1 -1
  9. package/dist/C_Map2.js +1 -1
  10. package/dist/constants2.d.cts +1 -1
  11. package/dist/constants2.d.ts +1 -1
  12. package/dist/constants4.d.cts +4 -4
  13. package/dist/constants4.d.ts +4 -4
  14. package/dist/constants5.d.cts +2 -2
  15. package/dist/constants5.d.ts +2 -2
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.vue.d.cts +1 -1
  19. package/dist/index.vue.d.ts +1 -1
  20. package/dist/index10.vue.d.cts +2 -2
  21. package/dist/index10.vue.d.ts +3 -3
  22. package/dist/index11.vue.d.cts +3 -3
  23. package/dist/index11.vue.d.ts +1 -1
  24. package/dist/index12.vue.d.cts +1 -1
  25. package/dist/index12.vue.d.ts +2 -2
  26. package/dist/index13.vue.d.cts +2 -2
  27. package/dist/index13.vue.d.ts +1 -1
  28. package/dist/index14.vue.d.cts +1 -1
  29. package/dist/index14.vue.d.ts +6 -6
  30. package/dist/index15.vue.d.cts +6 -6
  31. package/dist/index15.vue.d.ts +1 -1
  32. package/dist/index16.vue.d.cts +1 -1
  33. package/dist/index16.vue.d.ts +1 -1
  34. package/dist/index17.vue.d.cts +1 -1
  35. package/dist/index17.vue.d.ts +3 -3
  36. package/dist/index18.vue.d.cts +3 -3
  37. package/dist/index18.vue.d.ts +2 -2
  38. package/dist/index19.vue.d.cts +2 -2
  39. package/dist/index19.vue.d.ts +2 -2
  40. package/dist/index2.vue.d.cts +5 -5
  41. package/dist/index2.vue.d.ts +5 -5
  42. package/dist/index20.vue.d.cts +1 -1
  43. package/dist/index20.vue.d.ts +1 -1
  44. package/dist/index21.vue.d.cts +2 -2
  45. package/dist/index21.vue.d.ts +2 -2
  46. package/dist/index22.vue.d.cts +2 -2
  47. package/dist/index22.vue.d.ts +2 -2
  48. package/dist/index24.vue.d.cts +3 -3
  49. package/dist/index24.vue.d.ts +3 -3
  50. package/dist/index26.vue.d.cts +4 -4
  51. package/dist/index26.vue.d.ts +4 -4
  52. package/dist/index27.vue.d.cts +2 -2
  53. package/dist/index27.vue.d.ts +2 -2
  54. package/dist/index3.vue.d.cts +3 -3
  55. package/dist/index3.vue.d.ts +3 -3
  56. package/dist/index4.vue.d.cts +1 -1
  57. package/dist/index4.vue.d.ts +1 -1
  58. package/dist/index5.vue.d.cts +2 -2
  59. package/dist/index7.vue.d.ts +4 -4
  60. package/dist/index8.vue.d.cts +4 -4
  61. package/dist/index9.vue.d.ts +2 -2
  62. package/dist/mapUtils.d.cts +12 -3
  63. package/dist/mapUtils.d.ts +12 -3
  64. package/dist/style.css +3 -3
  65. package/dist/useCalendarEvents.d.cts +1 -1
  66. package/dist/useCalendarEvents.d.ts +1 -1
  67. package/dist/useCollapsePanel.d.cts +2 -2
  68. package/dist/useCollapsePanel.d.ts +2 -2
  69. package/dist/useCropperCore.d.cts +3 -3
  70. package/dist/useCropperCore.d.ts +3 -3
  71. package/dist/useDraggableLayout.d.cts +4 -4
  72. package/dist/useDraggableLayout.d.ts +4 -4
  73. package/dist/useDynamicFormState.d.cts +3 -3
  74. package/dist/useDynamicFormState.d.ts +3 -3
  75. package/dist/useEdgeInteraction.d.cts +1 -1
  76. package/dist/useEdgeInteraction.d.ts +1 -1
  77. package/dist/useFullscreen.d.cts +2 -2
  78. package/dist/useFullscreen.d.ts +2 -2
  79. package/dist/useInfiniteScroll.d.cts +2 -2
  80. package/dist/useInfiniteScroll.d.ts +2 -2
  81. package/dist/useQRCode.d.cts +2 -2
  82. package/dist/useQRCode.d.ts +2 -2
  83. package/dist/useSearchState.d.cts +24 -24
  84. package/dist/useSearchState.d.ts +24 -24
  85. package/dist/useSignatureHistory.d.cts +3 -3
  86. package/dist/useSignatureHistory.d.ts +3 -3
  87. package/dist/useSplitResize.d.cts +6 -6
  88. package/dist/useSplitResize.d.ts +6 -6
  89. package/dist/useTableQuery.d.cts +1 -1
  90. package/dist/useTableQuery.d.ts +1 -1
  91. package/dist/useTimeSelection.d.cts +3 -3
  92. package/dist/useTimeSelection.d.ts +3 -3
  93. package/dist/useTreeOperations.d.cts +8 -8
  94. package/dist/useTreeOperations.d.ts +8 -8
  95. package/dist/useWorkflowValidation.d.cts +5 -5
  96. package/dist/useWorkflowValidation.d.ts +5 -5
  97. package/dist/verification.d.cts +2 -2
  98. package/dist/verification.d.ts +2 -2
  99. package/package.json +1 -1
@@ -5,6 +5,14 @@ import { LeafletMouseEvent, Map, TileLayerOptions } from "leaflet";
5
5
  type MapType = 'osm' | 'amap';
6
6
  type MapCoordinate = [latitude: number, longitude: number];
7
7
  type AMapPosition = [longitude: number, latitude: number];
8
+ /** 高德 JS API 安全配置;生产环境优先使用服务端代理。 */
9
+ type AMapSecurityConfig = {
10
+ serviceHost: string;
11
+ securityJsCode?: never;
12
+ } | {
13
+ securityJsCode: string;
14
+ serviceHost?: never;
15
+ };
8
16
  interface MapMarker {
9
17
  id?: string | number;
10
18
  lat: number;
@@ -58,6 +66,7 @@ interface MapProps {
58
66
  markers?: MapMarker[];
59
67
  mapType?: MapType;
60
68
  amapKey?: string;
69
+ amapSecurityConfig?: AMapSecurityConfig;
61
70
  amapLoadTimeout?: number;
62
71
  amapOptions?: Record<string, unknown>;
63
72
  tileConfig?: MapTileConfig;
@@ -83,10 +92,10 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
83
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
84
93
  }>, {
85
94
  height: string;
86
- center: MapCoordinate;
87
95
  zoom: number;
88
- ariaLabel: string;
96
+ center: MapCoordinate;
89
97
  mapType: MapType;
98
+ ariaLabel: string;
90
99
  markers: MapMarker[];
91
100
  amapKey: string;
92
101
  amapLoadTimeout: number;
@@ -132,4 +141,4 @@ declare function normalizeMapZoom(zoom: number, minZoom?: 1, maxZoom?: 19): numb
132
141
  /** 合并默认瓦片配置,并将 URL 与 Leaflet options 分离。 */
133
142
  declare function resolveTileConfig(config?: MapTileConfig): ResolvedTileConfig;
134
143
  //#endregion
135
- export { MapType as C, MapTileConfig as S, MapFitOptions as _, toAMapPosition as a, MapMarkerEvent as b, OSM_TILE_CONFIG as c, AMapMapInstance as d, AMapMarkerEvent as f, MapExpose as g, MapCoordinate as h, resolveTileConfig as i, _default as l, MapConfig as m, isValidMapCoordinate as n, DEFAULT_MAP_CONFIG as o, AMapPosition as p, normalizeMapZoom as r, MAP_TYPES as s, getValidMapMarkers as t, AMapApi as u, MapInstance as v, MapProps as x, MapMarker as y };
144
+ export { MapTileConfig as C, MapProps as S, MapExpose as _, toAMapPosition as a, MapMarker as b, OSM_TILE_CONFIG as c, AMapMapInstance as d, AMapMarkerEvent as f, MapCoordinate as g, MapConfig as h, resolveTileConfig as i, _default as l, AMapSecurityConfig as m, isValidMapCoordinate as n, DEFAULT_MAP_CONFIG as o, AMapPosition as p, normalizeMapZoom as r, MAP_TYPES as s, getValidMapMarkers as t, AMapApi as u, MapFitOptions as v, MapType as w, MapMarkerEvent as x, MapInstance as y };
@@ -5,6 +5,14 @@ import { LeafletMouseEvent, Map, TileLayerOptions } from "leaflet";
5
5
  type MapType = 'osm' | 'amap';
6
6
  type MapCoordinate = [latitude: number, longitude: number];
7
7
  type AMapPosition = [longitude: number, latitude: number];
8
+ /** 高德 JS API 安全配置;生产环境优先使用服务端代理。 */
9
+ type AMapSecurityConfig = {
10
+ serviceHost: string;
11
+ securityJsCode?: never;
12
+ } | {
13
+ securityJsCode: string;
14
+ serviceHost?: never;
15
+ };
8
16
  interface MapMarker {
9
17
  id?: string | number;
10
18
  lat: number;
@@ -58,6 +66,7 @@ interface MapProps {
58
66
  markers?: MapMarker[];
59
67
  mapType?: MapType;
60
68
  amapKey?: string;
69
+ amapSecurityConfig?: AMapSecurityConfig;
61
70
  amapLoadTimeout?: number;
62
71
  amapOptions?: Record<string, unknown>;
63
72
  tileConfig?: MapTileConfig;
@@ -83,10 +92,10 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
83
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
84
93
  }>, {
85
94
  height: string;
86
- center: MapCoordinate;
87
95
  zoom: number;
88
- ariaLabel: string;
96
+ center: MapCoordinate;
89
97
  mapType: MapType;
98
+ ariaLabel: string;
90
99
  markers: MapMarker[];
91
100
  amapKey: string;
92
101
  amapLoadTimeout: number;
@@ -132,4 +141,4 @@ declare function normalizeMapZoom(zoom: number, minZoom?: 1, maxZoom?: 19): numb
132
141
  /** 合并默认瓦片配置,并将 URL 与 Leaflet options 分离。 */
133
142
  declare function resolveTileConfig(config?: MapTileConfig): ResolvedTileConfig;
134
143
  //#endregion
135
- export { MapType as C, MapTileConfig as S, MapFitOptions as _, toAMapPosition as a, MapMarkerEvent as b, OSM_TILE_CONFIG as c, AMapMapInstance as d, AMapMarkerEvent as f, MapExpose as g, MapCoordinate as h, resolveTileConfig as i, _default as l, MapConfig as m, isValidMapCoordinate as n, DEFAULT_MAP_CONFIG as o, AMapPosition as p, normalizeMapZoom as r, MAP_TYPES as s, getValidMapMarkers as t, AMapApi as u, MapInstance as v, MapProps as x, MapMarker as y };
144
+ export { MapTileConfig as C, MapProps as S, MapExpose as _, toAMapPosition as a, MapMarker as b, OSM_TILE_CONFIG as c, AMapMapInstance as d, AMapMarkerEvent as f, MapCoordinate as g, MapConfig as h, resolveTileConfig as i, _default as l, AMapSecurityConfig as m, isValidMapCoordinate as n, DEFAULT_MAP_CONFIG as o, AMapPosition as p, normalizeMapZoom as r, MAP_TYPES as s, getValidMapMarkers as t, AMapApi as u, MapFitOptions as v, MapType as w, MapMarkerEvent as x, MapInstance as y };
package/dist/style.css CHANGED
@@ -8105,7 +8105,7 @@ to {
8105
8105
 
8106
8106
 
8107
8107
  /* --- C_Map --- */
8108
- /* unplugin-vue-components disabled */.c-map[data-v-5e6d0330] {
8108
+ /* unplugin-vue-components disabled */.c-map[data-v-536a68a9] {
8109
8109
  position: relative;
8110
8110
  width: 100%;
8111
8111
  min-height: 300px;
@@ -8113,13 +8113,13 @@ to {
8113
8113
  border-radius: var(--c-radius-sm, 4px);
8114
8114
  overflow: hidden;
8115
8115
  }
8116
- .c-map .map-container[data-v-5e6d0330] {
8116
+ .c-map .map-container[data-v-536a68a9] {
8117
8117
  width: 100%;
8118
8118
  height: 100%;
8119
8119
  border-radius: inherit;
8120
8120
  overflow: hidden;
8121
8121
  }
8122
- .c-map .map-loading[data-v-5e6d0330] {
8122
+ .c-map .map-loading[data-v-536a68a9] {
8123
8123
  position: absolute;
8124
8124
  top: 0;
8125
8125
  left: 0;
@@ -66,9 +66,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
66
66
  }) => any) | undefined;
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
- editable: boolean;
70
69
  events: CalendarEvent[];
71
70
  initialView: CalendarViewType;
71
+ editable: boolean;
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -66,9 +66,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
66
66
  }) => any) | undefined;
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
- editable: boolean;
70
69
  events: CalendarEvent[];
71
70
  initialView: CalendarViewType;
71
+ editable: boolean;
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -71,14 +71,14 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
71
71
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
72
72
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
73
73
  change: (activeKeys: string[]) => any;
74
+ "update:activeKeys": (keys: string[]) => any;
74
75
  expand: (key: string) => any;
75
76
  collapse: (key: string) => any;
76
- "update:activeKeys": (keys: string[]) => any;
77
77
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
78
78
  onChange?: ((activeKeys: string[]) => any) | undefined;
79
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
79
80
  onExpand?: ((key: string) => any) | undefined;
80
81
  onCollapse?: ((key: string) => any) | undefined;
81
- "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
82
82
  }>, {
83
83
  bordered: boolean;
84
84
  persistKey: string;
@@ -71,14 +71,14 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
71
71
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
72
72
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
73
73
  change: (activeKeys: string[]) => any;
74
+ "update:activeKeys": (keys: string[]) => any;
74
75
  expand: (key: string) => any;
75
76
  collapse: (key: string) => any;
76
- "update:activeKeys": (keys: string[]) => any;
77
77
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
78
78
  onChange?: ((activeKeys: string[]) => any) | undefined;
79
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
79
80
  onExpand?: ((key: string) => any) | undefined;
80
81
  onCollapse?: ((key: string) => any) | undefined;
81
- "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
82
82
  }>, {
83
83
  bordered: boolean;
84
84
  persistKey: string;
@@ -51,20 +51,21 @@ interface ImageCropperEmits {
51
51
  //#endregion
52
52
  //#region src/components/C_ImageCropper/index.vue.d.ts
53
53
  declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
54
+ cancel: () => any;
54
55
  error: (error: Event) => any;
55
56
  crop: (result: any) => any;
56
57
  ready: () => any;
57
58
  confirm: (result: any) => any;
58
- cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
+ onCancel?: (() => any) | undefined;
60
61
  onError?: ((error: Event) => any) | undefined;
61
62
  onCrop?: ((result: any) => any) | undefined;
62
63
  onReady?: (() => any) | undefined;
63
64
  onConfirm?: ((result: any) => any) | undefined;
64
- onCancel?: (() => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
67
  height: string | number;
68
+ showToolbar: boolean;
68
69
  src: string;
69
70
  aspectRatio: number;
70
71
  outputFormat: CropOutputFormat;
@@ -72,7 +73,6 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
72
73
  maxOutputWidth: number;
73
74
  maxOutputHeight: number;
74
75
  showPreview: boolean;
75
- showToolbar: boolean;
76
76
  circular: boolean;
77
77
  modal: boolean;
78
78
  modalTitle: string;
@@ -51,20 +51,21 @@ interface ImageCropperEmits {
51
51
  //#endregion
52
52
  //#region src/components/C_ImageCropper/index.vue.d.ts
53
53
  declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
54
+ cancel: () => any;
54
55
  error: (error: Event) => any;
55
56
  crop: (result: any) => any;
56
57
  ready: () => any;
57
58
  confirm: (result: any) => any;
58
- cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
+ onCancel?: (() => any) | undefined;
60
61
  onError?: ((error: Event) => any) | undefined;
61
62
  onCrop?: ((result: any) => any) | undefined;
62
63
  onReady?: (() => any) | undefined;
63
64
  onConfirm?: ((result: any) => any) | undefined;
64
- onCancel?: (() => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
67
  height: string | number;
68
+ showToolbar: boolean;
68
69
  src: string;
69
70
  aspectRatio: number;
70
71
  outputFormat: CropOutputFormat;
@@ -72,7 +73,6 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
72
73
  maxOutputWidth: number;
73
74
  maxOutputHeight: number;
74
75
  showPreview: boolean;
75
- showToolbar: boolean;
76
76
  circular: boolean;
77
77
  modal: boolean;
78
78
  modalTitle: string;
@@ -116,13 +116,15 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
116
116
  "onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
117
117
  "onList-change"?: ((list: DraggableItem[]) => any) | undefined;
118
118
  }>, {
119
- modelValue: DraggableItem[];
120
119
  sort: boolean;
120
+ modelValue: DraggableItem[];
121
+ layout: LayoutMode;
121
122
  disabled: boolean;
122
123
  delay: number;
123
124
  direction: "vertical" | "horizontal";
124
- group: string | GroupOptions;
125
125
  animation: number;
126
+ gap: string | number;
127
+ group: string | GroupOptions;
126
128
  handle: string;
127
129
  showHandle: boolean;
128
130
  ghostClass: string;
@@ -135,10 +137,8 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
135
137
  emptyText: string;
136
138
  swapThreshold: number;
137
139
  invertSwap: boolean;
138
- layout: LayoutMode;
139
140
  gridColumns: number;
140
141
  gridRows: number;
141
- gap: string | number;
142
142
  flexWrap: boolean;
143
143
  justifyContent: JustifyContent;
144
144
  alignItems: AlignItems;
@@ -116,13 +116,15 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
116
116
  "onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
117
117
  "onList-change"?: ((list: DraggableItem[]) => any) | undefined;
118
118
  }>, {
119
- modelValue: DraggableItem[];
120
119
  sort: boolean;
120
+ modelValue: DraggableItem[];
121
+ layout: LayoutMode;
121
122
  disabled: boolean;
122
123
  delay: number;
123
124
  direction: "vertical" | "horizontal";
124
- group: string | GroupOptions;
125
125
  animation: number;
126
+ gap: string | number;
127
+ group: string | GroupOptions;
126
128
  handle: string;
127
129
  showHandle: boolean;
128
130
  ghostClass: string;
@@ -135,10 +137,8 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
135
137
  emptyText: string;
136
138
  swapThreshold: number;
137
139
  invertSwap: boolean;
138
- layout: LayoutMode;
139
140
  gridColumns: number;
140
141
  gridRows: number;
141
- gap: string | number;
142
142
  flexWrap: boolean;
143
143
  justifyContent: JustifyContent;
144
144
  alignItems: AlignItems;
@@ -580,10 +580,10 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
580
580
  config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
581
581
  renderers?: Record<string, FormRenderer>;
582
582
  } & {
583
- "onUpdate:modelValue"?: ((model: T) => any) | undefined;
584
583
  onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
585
- "onValidate-error"?: ((errors: unknown) => any) | undefined;
584
+ "onUpdate:modelValue"?: ((model: T) => any) | undefined;
586
585
  "onValidate-success"?: ((model: T) => any) | undefined;
586
+ "onValidate-error"?: ((errors: unknown) => any) | undefined;
587
587
  }> & (typeof globalThis extends {
588
588
  __VLS_PROPS_FALLBACK: infer P;
589
589
  } ? P : {});
@@ -626,7 +626,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
626
626
  }>) => void;
627
627
  attrs: any;
628
628
  slots: FormSlots<T>;
629
- emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "validate-success", model: T) => void);
629
+ emit: ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
630
630
  }>) => vue.VNode & {
631
631
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
632
632
  };
@@ -580,10 +580,10 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
580
580
  config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
581
581
  renderers?: Record<string, FormRenderer>;
582
582
  } & {
583
- "onUpdate:modelValue"?: ((model: T) => any) | undefined;
584
583
  onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
585
- "onValidate-error"?: ((errors: unknown) => any) | undefined;
584
+ "onUpdate:modelValue"?: ((model: T) => any) | undefined;
586
585
  "onValidate-success"?: ((model: T) => any) | undefined;
586
+ "onValidate-error"?: ((errors: unknown) => any) | undefined;
587
587
  }> & (typeof globalThis extends {
588
588
  __VLS_PROPS_FALLBACK: infer P;
589
589
  } ? P : {});
@@ -626,7 +626,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
626
626
  }>) => void;
627
627
  attrs: any;
628
628
  slots: FormSlots<T>;
629
- emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "validate-success", model: T) => void);
629
+ emit: ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
630
630
  }>) => vue.VNode & {
631
631
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
632
632
  };
@@ -259,10 +259,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
259
259
  onReady?: ((graph: any) => any) | undefined;
260
260
  "onData-change"?: ((data: DiagramData) => any) | undefined;
261
261
  }>, {
262
+ readonly: boolean;
262
263
  theme: "light" | "dark";
263
264
  width: string | number;
264
265
  height: string | number;
265
- readonly: boolean;
266
266
  showToolbar: boolean;
267
267
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
268
268
  declare const _default: typeof __VLS_export;
@@ -259,10 +259,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
259
259
  onReady?: ((graph: any) => any) | undefined;
260
260
  "onData-change"?: ((data: DiagramData) => any) | undefined;
261
261
  }>, {
262
+ readonly: boolean;
262
263
  theme: "light" | "dark";
263
264
  width: string | number;
264
265
  height: string | number;
265
- readonly: boolean;
266
266
  showToolbar: boolean;
267
267
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
268
268
  declare const _default: typeof __VLS_export;
@@ -9,11 +9,11 @@ type __VLS_Props = {
9
9
  autoPreview?: boolean;
10
10
  };
11
11
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
12
- preview: (file: string | File) => any;
13
12
  download: (file: string | File) => any;
13
+ preview: (file: string | File) => any;
14
14
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onPreview?: ((file: string | File) => any) | undefined;
16
15
  onDownload?: ((file: string | File) => any) | undefined;
16
+ onPreview?: ((file: string | File) => any) | undefined;
17
17
  }>, {
18
18
  fileName: string;
19
19
  autoPreview: boolean;
@@ -9,11 +9,11 @@ type __VLS_Props = {
9
9
  autoPreview?: boolean;
10
10
  };
11
11
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
12
- preview: (file: string | File) => any;
13
12
  download: (file: string | File) => any;
13
+ preview: (file: string | File) => any;
14
14
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onPreview?: ((file: string | File) => any) | undefined;
16
15
  onDownload?: ((file: string | File) => any) | undefined;
16
+ onPreview?: ((file: string | File) => any) | undefined;
17
17
  }>, {
18
18
  fileName: string;
19
19
  autoPreview: boolean;
@@ -79,13 +79,13 @@ type __VLS_Slots = {} & {
79
79
  footer?: (props: typeof __VLS_5) => any;
80
80
  };
81
81
  declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- "load-more": () => any;
83
82
  "item-click": (item: WaterFallItem, index: number) => any;
83
+ "load-more": () => any;
84
84
  "image-loaded": (item: WaterFallItem) => any;
85
85
  "image-error": (item: WaterFallItem) => any;
86
86
  }, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
87
- "onLoad-more"?: (() => any) | undefined;
88
87
  "onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
88
+ "onLoad-more"?: (() => any) | undefined;
89
89
  "onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
90
90
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
91
91
  }>, {
@@ -79,13 +79,13 @@ type __VLS_Slots = {} & {
79
79
  footer?: (props: typeof __VLS_5) => any;
80
80
  };
81
81
  declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- "load-more": () => any;
83
82
  "item-click": (item: WaterFallItem, index: number) => any;
83
+ "load-more": () => any;
84
84
  "image-loaded": (item: WaterFallItem) => any;
85
85
  "image-error": (item: WaterFallItem) => any;
86
86
  }, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
87
- "onLoad-more"?: (() => any) | undefined;
88
87
  "onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
88
+ "onLoad-more"?: (() => any) | undefined;
89
89
  "onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
90
90
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
91
91
  }>, {
@@ -50,10 +50,10 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
50
50
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
51
51
  onError?: ((error: Error) => any) | undefined;
52
52
  }>, {
53
- label: string;
54
53
  size: number;
55
- color: string;
56
54
  mode: RenderMode;
55
+ label: string;
56
+ color: string;
57
57
  showBorder: boolean;
58
58
  showLabel: boolean;
59
59
  margin: number;
@@ -50,10 +50,10 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
50
50
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
51
51
  onError?: ((error: Error) => any) | undefined;
52
52
  }>, {
53
- label: string;
54
53
  size: number;
55
- color: string;
56
54
  mode: RenderMode;
55
+ label: string;
56
+ color: string;
57
57
  showBorder: boolean;
58
58
  showLabel: boolean;
59
59
  margin: number;
@@ -163,6 +163,14 @@ declare function useSearchState(emits: {
163
163
  attrs?: Record<string, unknown> | undefined;
164
164
  rules?: {
165
165
  type?: async_validator0.RuleType | undefined;
166
+ required?: boolean | undefined;
167
+ pattern?: (RegExp | string) | undefined;
168
+ min?: number | undefined;
169
+ max?: number | undefined;
170
+ len?: number | undefined;
171
+ enum?: Array<string | number | boolean | null | undefined> | undefined;
172
+ whitespace?: boolean | undefined;
173
+ fields?: Record<string, async_validator0.Rule> | undefined;
166
174
  options?: {
167
175
  suppressWarning?: boolean | undefined;
168
176
  suppressValidatorError?: boolean | undefined;
@@ -218,14 +226,6 @@ declare function useSearchState(emits: {
218
226
  keys?: string[] | undefined;
219
227
  error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
220
228
  } | undefined;
221
- pattern?: (RegExp | string) | undefined;
222
- required?: boolean | undefined;
223
- max?: number | undefined;
224
- min?: number | undefined;
225
- len?: number | undefined;
226
- enum?: Array<string | number | boolean | null | undefined> | undefined;
227
- whitespace?: boolean | undefined;
228
- fields?: Record<string, async_validator0.Rule> | undefined;
229
229
  defaultField?: {
230
230
  type?: async_validator0.RuleType | undefined;
231
231
  required?: boolean | undefined;
@@ -394,6 +394,14 @@ declare function useSearchState(emits: {
394
394
  attrs?: Record<string, unknown> | undefined;
395
395
  rules?: {
396
396
  type?: async_validator0.RuleType | undefined;
397
+ required?: boolean | undefined;
398
+ pattern?: (RegExp | string) | undefined;
399
+ min?: number | undefined;
400
+ max?: number | undefined;
401
+ len?: number | undefined;
402
+ enum?: Array<string | number | boolean | null | undefined> | undefined;
403
+ whitespace?: boolean | undefined;
404
+ fields?: Record<string, async_validator0.Rule> | undefined;
397
405
  options?: {
398
406
  suppressWarning?: boolean | undefined;
399
407
  suppressValidatorError?: boolean | undefined;
@@ -449,14 +457,6 @@ declare function useSearchState(emits: {
449
457
  keys?: string[] | undefined;
450
458
  error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
451
459
  } | undefined;
452
- pattern?: (RegExp | string) | undefined;
453
- required?: boolean | undefined;
454
- max?: number | undefined;
455
- min?: number | undefined;
456
- len?: number | undefined;
457
- enum?: Array<string | number | boolean | null | undefined> | undefined;
458
- whitespace?: boolean | undefined;
459
- fields?: Record<string, async_validator0.Rule> | undefined;
460
460
  defaultField?: {
461
461
  type?: async_validator0.RuleType | undefined;
462
462
  required?: boolean | undefined;
@@ -637,6 +637,14 @@ declare function useSearchState(emits: {
637
637
  attrs?: Record<string, unknown> | undefined;
638
638
  rules?: {
639
639
  type?: async_validator0.RuleType | undefined;
640
+ required?: boolean | undefined;
641
+ pattern?: (RegExp | string) | undefined;
642
+ min?: number | undefined;
643
+ max?: number | undefined;
644
+ len?: number | undefined;
645
+ enum?: Array<string | number | boolean | null | undefined> | undefined;
646
+ whitespace?: boolean | undefined;
647
+ fields?: Record<string, async_validator0.Rule> | undefined;
640
648
  options?: {
641
649
  suppressWarning?: boolean | undefined;
642
650
  suppressValidatorError?: boolean | undefined;
@@ -692,14 +700,6 @@ declare function useSearchState(emits: {
692
700
  keys?: string[] | undefined;
693
701
  error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
694
702
  } | undefined;
695
- pattern?: (RegExp | string) | undefined;
696
- required?: boolean | undefined;
697
- max?: number | undefined;
698
- min?: number | undefined;
699
- len?: number | undefined;
700
- enum?: Array<string | number | boolean | null | undefined> | undefined;
701
- whitespace?: boolean | undefined;
702
- fields?: Record<string, async_validator0.Rule> | undefined;
703
703
  defaultField?: {
704
704
  type?: async_validator0.RuleType | undefined;
705
705
  required?: boolean | undefined;
@@ -272,6 +272,14 @@ declare function useSearchState(emits: {
272
272
  attrs?: Record<string, unknown> | undefined;
273
273
  rules?: {
274
274
  type?: RuleType | undefined;
275
+ required?: boolean | undefined;
276
+ pattern?: (RegExp | string) | undefined;
277
+ min?: number | undefined;
278
+ max?: number | undefined;
279
+ len?: number | undefined;
280
+ enum?: Array<string | number | boolean | null | undefined> | undefined;
281
+ whitespace?: boolean | undefined;
282
+ fields?: Record<string, Rule> | undefined;
275
283
  options?: {
276
284
  suppressWarning?: boolean | undefined;
277
285
  suppressValidatorError?: boolean | undefined;
@@ -327,14 +335,6 @@ declare function useSearchState(emits: {
327
335
  keys?: string[] | undefined;
328
336
  error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
329
337
  } | undefined;
330
- pattern?: (RegExp | string) | undefined;
331
- required?: boolean | undefined;
332
- max?: number | undefined;
333
- min?: number | undefined;
334
- len?: number | undefined;
335
- enum?: Array<string | number | boolean | null | undefined> | undefined;
336
- whitespace?: boolean | undefined;
337
- fields?: Record<string, Rule> | undefined;
338
338
  defaultField?: {
339
339
  type?: RuleType | undefined;
340
340
  required?: boolean | undefined;
@@ -503,6 +503,14 @@ declare function useSearchState(emits: {
503
503
  attrs?: Record<string, unknown> | undefined;
504
504
  rules?: {
505
505
  type?: RuleType | undefined;
506
+ required?: boolean | undefined;
507
+ pattern?: (RegExp | string) | undefined;
508
+ min?: number | undefined;
509
+ max?: number | undefined;
510
+ len?: number | undefined;
511
+ enum?: Array<string | number | boolean | null | undefined> | undefined;
512
+ whitespace?: boolean | undefined;
513
+ fields?: Record<string, Rule> | undefined;
506
514
  options?: {
507
515
  suppressWarning?: boolean | undefined;
508
516
  suppressValidatorError?: boolean | undefined;
@@ -558,14 +566,6 @@ declare function useSearchState(emits: {
558
566
  keys?: string[] | undefined;
559
567
  error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
560
568
  } | undefined;
561
- pattern?: (RegExp | string) | undefined;
562
- required?: boolean | undefined;
563
- max?: number | undefined;
564
- min?: number | undefined;
565
- len?: number | undefined;
566
- enum?: Array<string | number | boolean | null | undefined> | undefined;
567
- whitespace?: boolean | undefined;
568
- fields?: Record<string, Rule> | undefined;
569
569
  defaultField?: {
570
570
  type?: RuleType | undefined;
571
571
  required?: boolean | undefined;
@@ -746,6 +746,14 @@ declare function useSearchState(emits: {
746
746
  attrs?: Record<string, unknown> | undefined;
747
747
  rules?: {
748
748
  type?: RuleType | undefined;
749
+ required?: boolean | undefined;
750
+ pattern?: (RegExp | string) | undefined;
751
+ min?: number | undefined;
752
+ max?: number | undefined;
753
+ len?: number | undefined;
754
+ enum?: Array<string | number | boolean | null | undefined> | undefined;
755
+ whitespace?: boolean | undefined;
756
+ fields?: Record<string, Rule> | undefined;
749
757
  options?: {
750
758
  suppressWarning?: boolean | undefined;
751
759
  suppressValidatorError?: boolean | undefined;
@@ -801,14 +809,6 @@ declare function useSearchState(emits: {
801
809
  keys?: string[] | undefined;
802
810
  error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
803
811
  } | undefined;
804
- pattern?: (RegExp | string) | undefined;
805
- required?: boolean | undefined;
806
- max?: number | undefined;
807
- min?: number | undefined;
808
- len?: number | undefined;
809
- enum?: Array<string | number | boolean | null | undefined> | undefined;
810
- whitespace?: boolean | undefined;
811
- fields?: Record<string, Rule> | undefined;
812
812
  defaultField?: {
813
813
  type?: RuleType | undefined;
814
814
  required?: boolean | undefined;