@robot-admin/naive-ui-components 0.11.3 → 0.11.4

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 (86) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/C_Form.d.cts +2 -2
  3. package/dist/C_Form.d.ts +2 -2
  4. package/dist/C_Form2.cjs +1 -1
  5. package/dist/C_Form2.js +1 -1
  6. package/dist/constants2.d.cts +2 -2
  7. package/dist/constants2.d.ts +2 -2
  8. package/dist/constants3.d.cts +3 -3
  9. package/dist/constants3.d.ts +3 -3
  10. package/dist/constants4.d.cts +4 -4
  11. package/dist/constants4.d.ts +4 -4
  12. package/dist/constants5.d.cts +2 -2
  13. package/dist/constants5.d.ts +2 -2
  14. package/dist/data.d.cts +1 -1
  15. package/dist/data.d.ts +1 -1
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  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 +1 -1
  21. package/dist/index12.vue.d.cts +1 -1
  22. package/dist/index12.vue.d.ts +1 -1
  23. package/dist/index13.vue.d.cts +1 -1
  24. package/dist/index13.vue.d.ts +2 -2
  25. package/dist/index14.vue.d.cts +2 -2
  26. package/dist/index14.vue.d.ts +5 -5
  27. package/dist/index15.vue.d.cts +5 -5
  28. package/dist/index16.vue.d.ts +1 -1
  29. package/dist/index17.vue.d.cts +1 -1
  30. package/dist/index17.vue.d.ts +3 -3
  31. package/dist/index18.vue.d.cts +3 -3
  32. package/dist/index18.vue.d.ts +1 -1
  33. package/dist/index19.vue.d.cts +2 -2
  34. package/dist/index19.vue.d.ts +2 -2
  35. package/dist/index21.vue.d.cts +1 -1
  36. package/dist/index21.vue.d.ts +1 -1
  37. package/dist/index22.vue.d.cts +1 -1
  38. package/dist/index22.vue.d.ts +1 -1
  39. package/dist/index24.vue.d.cts +2 -2
  40. package/dist/index24.vue.d.ts +2 -2
  41. package/dist/index25.vue.d.cts +1 -1
  42. package/dist/index25.vue.d.ts +1 -1
  43. package/dist/index26.vue.d.cts +4 -4
  44. package/dist/index26.vue.d.ts +4 -4
  45. package/dist/index3.vue.d.cts +2 -2
  46. package/dist/index3.vue.d.ts +2 -2
  47. package/dist/index4.vue.d.cts +3 -3
  48. package/dist/index4.vue.d.ts +3 -3
  49. package/dist/index5.vue.d.cts +1 -1
  50. package/dist/index7.vue.d.ts +3 -3
  51. package/dist/index8.vue.d.cts +3 -3
  52. package/dist/useCalendarEvents.d.cts +1 -1
  53. package/dist/useCalendarEvents.d.ts +1 -1
  54. package/dist/useCollapsePanel.d.cts +3 -3
  55. package/dist/useCollapsePanel.d.ts +3 -3
  56. package/dist/useCropperCore.d.cts +1 -1
  57. package/dist/useCropperCore.d.ts +1 -1
  58. package/dist/useDraggableLayout.d.cts +6 -6
  59. package/dist/useDraggableLayout.d.ts +6 -6
  60. package/dist/useDynamicFormState.d.cts +41 -22
  61. package/dist/useDynamicFormState.d.ts +41 -22
  62. package/dist/useFullscreen.d.cts +2 -2
  63. package/dist/useFullscreen.d.ts +2 -2
  64. package/dist/useGlobalSearch.d.cts +1 -1
  65. package/dist/useGlobalSearch.d.ts +1 -1
  66. package/dist/useInfiniteScroll.d.cts +1 -1
  67. package/dist/useInfiniteScroll.d.ts +1 -1
  68. package/dist/useQRCode.d.cts +5 -5
  69. package/dist/useQRCode.d.ts +5 -5
  70. package/dist/useSearchState.d.cts +6 -6
  71. package/dist/useSearchState.d.ts +6 -6
  72. package/dist/useSignatureHistory.d.cts +2 -2
  73. package/dist/useSignatureHistory.d.ts +2 -2
  74. package/dist/useSplitResize.d.cts +7 -7
  75. package/dist/useSplitResize.d.ts +7 -7
  76. package/dist/useTableQuery.d.cts +1 -1
  77. package/dist/useTableQuery.d.ts +1 -1
  78. package/dist/useTimeSelection.d.cts +3 -3
  79. package/dist/useTimeSelection.d.ts +3 -3
  80. package/dist/useTreeOperations.d.cts +7 -7
  81. package/dist/useTreeOperations.d.ts +7 -7
  82. package/dist/useWorkflowValidation.d.cts +3 -3
  83. package/dist/useWorkflowValidation.d.ts +3 -3
  84. package/dist/verification.d.cts +5 -5
  85. package/dist/verification.d.ts +5 -5
  86. package/package.json +1 -1
@@ -86,26 +86,26 @@ type __VLS_Slots = {} & {
86
86
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
87
  scrollToBottom: () => void;
88
88
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
89
+ "load-more": () => any;
89
90
  send: (content: string) => any;
90
91
  "select-contact": (id: string) => any;
91
- "load-more": () => any;
92
92
  "image-preview": (url: string) => any;
93
93
  "file-click": (msg: ChatMessage) => any;
94
94
  "file-upload": () => any;
95
95
  "emoji-click": () => any;
96
96
  resend: (msg: ChatMessage) => any;
97
97
  }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
98
+ "onLoad-more"?: (() => any) | undefined;
98
99
  onSend?: ((content: string) => any) | undefined;
99
100
  "onSelect-contact"?: ((id: string) => any) | undefined;
100
- "onLoad-more"?: (() => any) | undefined;
101
101
  "onImage-preview"?: ((url: string) => any) | undefined;
102
102
  "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
103
103
  "onFile-upload"?: (() => any) | undefined;
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
- placeholder: string;
108
107
  title: string;
108
+ placeholder: string;
109
109
  messages: ChatMessage[];
110
110
  showContacts: boolean;
111
111
  showTimestamp: boolean;
@@ -86,26 +86,26 @@ type __VLS_Slots = {} & {
86
86
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
87
  scrollToBottom: () => void;
88
88
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
89
+ "load-more": () => any;
89
90
  send: (content: string) => any;
90
91
  "select-contact": (id: string) => any;
91
- "load-more": () => any;
92
92
  "image-preview": (url: string) => any;
93
93
  "file-click": (msg: ChatMessage) => any;
94
94
  "file-upload": () => any;
95
95
  "emoji-click": () => any;
96
96
  resend: (msg: ChatMessage) => any;
97
97
  }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
98
+ "onLoad-more"?: (() => any) | undefined;
98
99
  onSend?: ((content: string) => any) | undefined;
99
100
  "onSelect-contact"?: ((id: string) => any) | undefined;
100
- "onLoad-more"?: (() => any) | undefined;
101
101
  "onImage-preview"?: ((url: string) => any) | undefined;
102
102
  "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
103
103
  "onFile-upload"?: (() => any) | undefined;
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
- placeholder: string;
108
107
  title: string;
108
+ placeholder: string;
109
109
  messages: ChatMessage[];
110
110
  showContacts: boolean;
111
111
  showTimestamp: boolean;
@@ -67,8 +67,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
69
  editable: boolean;
70
- events: CalendarEvent[];
71
70
  initialView: CalendarViewType;
71
+ events: CalendarEvent[];
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -67,8 +67,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
69
  editable: boolean;
70
- events: CalendarEvent[];
71
70
  initialView: CalendarViewType;
71
+ events: CalendarEvent[];
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -71,22 +71,22 @@ 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;
75
74
  expand: (key: string) => any;
76
75
  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;
80
79
  onExpand?: ((key: string) => any) | undefined;
81
80
  onCollapse?: ((key: string) => any) | undefined;
81
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
82
82
  }>, {
83
83
  bordered: boolean;
84
+ persistKey: string;
84
85
  activeKeys: string[];
85
86
  defaultActiveKeys: string[];
86
87
  accordion: boolean;
87
88
  variant: CollapsePanelVariant;
88
89
  expandIconPosition: ExpandIconPosition;
89
- persistKey: string;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
91
91
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
92
  declare const _default: typeof __VLS_export;
@@ -71,22 +71,22 @@ 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;
75
74
  expand: (key: string) => any;
76
75
  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;
80
79
  onExpand?: ((key: string) => any) | undefined;
81
80
  onCollapse?: ((key: string) => any) | undefined;
81
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
82
82
  }>, {
83
83
  bordered: boolean;
84
+ persistKey: string;
84
85
  activeKeys: string[];
85
86
  defaultActiveKeys: string[];
86
87
  accordion: boolean;
87
88
  variant: CollapsePanelVariant;
88
89
  expandIconPosition: ExpandIconPosition;
89
- persistKey: string;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
91
91
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
92
  declare const _default: typeof __VLS_export;
@@ -66,6 +66,7 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
66
66
  disabled: boolean;
67
67
  height: string | number;
68
68
  showToolbar: boolean;
69
+ showPreview: boolean;
69
70
  modal: boolean;
70
71
  src: string;
71
72
  aspectRatio: number;
@@ -73,7 +74,6 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
73
74
  outputQuality: number;
74
75
  maxOutputWidth: number;
75
76
  maxOutputHeight: number;
76
- showPreview: boolean;
77
77
  circular: boolean;
78
78
  modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -66,6 +66,7 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
66
66
  disabled: boolean;
67
67
  height: string | number;
68
68
  showToolbar: boolean;
69
+ showPreview: boolean;
69
70
  modal: boolean;
70
71
  src: string;
71
72
  aspectRatio: number;
@@ -73,7 +74,6 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
73
74
  outputQuality: number;
74
75
  maxOutputWidth: number;
75
76
  maxOutputHeight: number;
76
- showPreview: boolean;
77
77
  circular: boolean;
78
78
  modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -119,13 +119,9 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
119
119
  sort: boolean;
120
120
  modelValue: DraggableItem[];
121
121
  disabled: boolean;
122
- delay: number;
123
- direction: "vertical" | "horizontal";
124
- itemClass: string;
125
- emptyText: string;
126
- animation: number;
127
- layout: LayoutMode;
128
122
  group: string | GroupOptions;
123
+ animation: number;
124
+ delay: number;
129
125
  handle: string;
130
126
  showHandle: boolean;
131
127
  ghostClass: string;
@@ -133,9 +129,13 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
133
129
  dragClass: string;
134
130
  wrapperClass: string;
135
131
  listClass: string;
132
+ itemClass: string;
136
133
  showEmptyState: boolean;
134
+ emptyText: string;
137
135
  swapThreshold: number;
138
136
  invertSwap: boolean;
137
+ direction: "vertical" | "horizontal";
138
+ layout: LayoutMode;
139
139
  gridColumns: number;
140
140
  gridRows: number;
141
141
  gap: string | number;
@@ -119,13 +119,9 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
119
119
  sort: boolean;
120
120
  modelValue: DraggableItem[];
121
121
  disabled: boolean;
122
- delay: number;
123
- direction: "vertical" | "horizontal";
124
- itemClass: string;
125
- emptyText: string;
126
- animation: number;
127
- layout: LayoutMode;
128
122
  group: string | GroupOptions;
123
+ animation: number;
124
+ delay: number;
129
125
  handle: string;
130
126
  showHandle: boolean;
131
127
  ghostClass: string;
@@ -133,9 +129,13 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
133
129
  dragClass: string;
134
130
  wrapperClass: string;
135
131
  listClass: string;
132
+ itemClass: string;
136
133
  showEmptyState: boolean;
134
+ emptyText: string;
137
135
  swapThreshold: number;
138
136
  invertSwap: boolean;
137
+ direction: "vertical" | "horizontal";
138
+ layout: LayoutMode;
139
139
  gridColumns: number;
140
140
  gridRows: number;
141
141
  gap: string | number;
@@ -322,6 +322,43 @@ interface FormInstance<T extends object = FormRecord> {
322
322
  /** 验证并提交,成功返回 true */
323
323
  submit(): Promise<boolean>;
324
324
  }
325
+ /** C_Form 默认操作区插槽参数。 */
326
+ interface FormActionSlotProps<T extends object = FormRecord> {
327
+ form: FormInst | null;
328
+ model: FormModel<T>;
329
+ validate: FormInstance<T>['validate'];
330
+ validateField: FormInstance<T>['validateField'];
331
+ reset: FormInstance<T>['resetFields'];
332
+ setFields: FormInstance<T>['setFields'];
333
+ getModel: FormInstance<T>['getModel'];
334
+ clearValidation: FormInstance<T>['clearValidation'];
335
+ submit: FormInstance<T>['submit'];
336
+ reloadOptions: FormInstance<T>['reloadOptions'];
337
+ submitting: boolean;
338
+ }
339
+ /** Tabs 布局操作区插槽参数。 */
340
+ interface FormTabActionsSlotProps {
341
+ currentTab: string;
342
+ totalTabs: number;
343
+ validateTab: () => Promise<boolean>;
344
+ switchToTab: (targetTab: string) => Promise<boolean>;
345
+ }
346
+ /** Steps 布局操作区插槽参数。 */
347
+ interface FormStepActionsSlotProps {
348
+ currentStep: number;
349
+ totalSteps: number;
350
+ isFirstStep: boolean;
351
+ isLastStep: boolean;
352
+ nextStep: () => Promise<void>;
353
+ previousStep: () => void;
354
+ goToStep: (stepIndex: number) => Promise<void>;
355
+ }
356
+ /** C_Form 对外公开的具名插槽。 */
357
+ interface FormSlots<T extends object = FormRecord> {
358
+ action?: (props: FormActionSlotProps<T>) => unknown;
359
+ 'tab-actions'?: (props: FormTabActionsSlotProps) => unknown;
360
+ 'step-actions'?: (props: FormStepActionsSlotProps) => unknown;
361
+ }
325
362
  /**
326
363
  * 表单数据模型类型(泛型)
327
364
  */
@@ -544,8 +581,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
544
581
  renderers?: Record<string, FormRenderer>;
545
582
  } & {
546
583
  "onUpdate:modelValue"?: ((model: T) => any) | undefined;
547
- "onValidate-error"?: ((errors: unknown) => any) | undefined;
548
584
  onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
585
+ "onValidate-error"?: ((errors: unknown) => any) | undefined;
549
586
  "onValidate-success"?: ((model: T) => any) | undefined;
550
587
  }> & (typeof globalThis extends {
551
588
  __VLS_PROPS_FALLBACK: infer P;
@@ -588,26 +625,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
588
625
  submit: () => Promise<boolean>;
589
626
  }>) => void;
590
627
  attrs: any;
591
- slots: {
592
- action?: (props: {
593
- form: {
594
- validate: naive_ui_es_form_src_interface0.FormValidate;
595
- restoreValidation: () => void;
596
- invalidateLabelWidth: () => void;
597
- } | null;
598
- model: FormRecord;
599
- validate: () => Promise<void>;
600
- validateField: (field: string | string[]) => Promise<void>;
601
- reset: () => void;
602
- setFields: (fields: FormModel) => void;
603
- getModel: () => FormModel;
604
- clearValidation: (field?: string | string[]) => void;
605
- submit: () => Promise<boolean>;
606
- reloadOptions: (field?: string) => Promise<void>;
607
- submitting: boolean;
608
- }) => any;
609
- };
610
- emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
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);
611
630
  }>) => vue.VNode & {
612
631
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
613
632
  };
@@ -737,4 +756,4 @@ type DynamicFormStateType = DynamicFormController;
737
756
  */
738
757
  declare const DYNAMIC_FORM_STATE_KEY: unique symbol;
739
758
  //#endregion
740
- export { OptionItem as $, useFormGlobalConfig as A, FieldPathValue as B, FormConfig as C, mergeFormConfig as D, ResolvedFormConfig as E, DynamicFieldConfig as F, FormOption as G, FormInstance as H, DynamicFormConfig as I, InlineLayoutConfig as J, FormRecord as K, DynamicFormController as L, CardLayoutConfig as M, ComponentType as N, resolveFormConfig as O, CustomLayoutConfig as P, MaybePromise as Q, DynamicFormState as R, FORM_GLOBAL_CONFIG_KEY as S, LayoutCallbacks as T, FormMode as U, FormErrorContext as V, FormModel as W, LayoutConfig as X, LabelPlacement as Y, LayoutType as Z, UseFormRendererOptions as _, UseFormDirtyReturn as a, useFormRenderer as b, UseCFormOptions as c, useCForm as d, StepsLayoutConfig as et, _default as f, RendererProps as g, FormRendererContext as h, useDynamicFormState as i, AsyncOptionsContext as j, shouldShowActions as k, defineFormConfig as l, FormRenderer as m, DynamicFormStateType as n, TabsLayoutConfig as nt, useFormDirty as o, ComponentMap as p, GridLayoutConfig as q, FIELD_TYPE_OPTIONS as r, useFormState as s, DYNAMIC_FORM_STATE_KEY as t, SubmitEventPayload as tt, defineFormOptions as u, registerRenderer as v, LAYOUTS_WITH_OWN_CONTROLS as w, FORM_DEFAULTS as x, unregisterRenderer as y, FieldPath as z };
759
+ export { LabelPlacement as $, useFormGlobalConfig as A, FieldPathValue as B, FormConfig as C, mergeFormConfig as D, ResolvedFormConfig as E, DynamicFieldConfig as F, FormModel as G, FormErrorContext as H, DynamicFormConfig as I, FormSlots as J, FormOption as K, DynamicFormController as L, CardLayoutConfig as M, ComponentType as N, resolveFormConfig as O, CustomLayoutConfig as P, InlineLayoutConfig as Q, DynamicFormState as R, FORM_GLOBAL_CONFIG_KEY as S, LayoutCallbacks as T, FormInstance as U, FormActionSlotProps as V, FormMode as W, FormTabActionsSlotProps as X, FormStepActionsSlotProps as Y, GridLayoutConfig as Z, UseFormRendererOptions as _, UseFormDirtyReturn as a, SubmitEventPayload as at, useFormRenderer as b, UseCFormOptions as c, useCForm as d, LayoutConfig as et, _default as f, RendererProps as g, FormRendererContext as h, useDynamicFormState as i, StepsLayoutConfig as it, AsyncOptionsContext as j, shouldShowActions as k, defineFormConfig as l, FormRenderer as m, DynamicFormStateType as n, MaybePromise as nt, useFormDirty as o, TabsLayoutConfig as ot, ComponentMap as p, FormRecord as q, FIELD_TYPE_OPTIONS as r, OptionItem as rt, useFormState as s, DYNAMIC_FORM_STATE_KEY as t, LayoutType as tt, defineFormOptions as u, registerRenderer as v, LAYOUTS_WITH_OWN_CONTROLS as w, FORM_DEFAULTS as x, unregisterRenderer as y, FieldPath as z };
@@ -322,6 +322,43 @@ interface FormInstance<T extends object = FormRecord> {
322
322
  /** 验证并提交,成功返回 true */
323
323
  submit(): Promise<boolean>;
324
324
  }
325
+ /** C_Form 默认操作区插槽参数。 */
326
+ interface FormActionSlotProps<T extends object = FormRecord> {
327
+ form: FormInst | null;
328
+ model: FormModel<T>;
329
+ validate: FormInstance<T>['validate'];
330
+ validateField: FormInstance<T>['validateField'];
331
+ reset: FormInstance<T>['resetFields'];
332
+ setFields: FormInstance<T>['setFields'];
333
+ getModel: FormInstance<T>['getModel'];
334
+ clearValidation: FormInstance<T>['clearValidation'];
335
+ submit: FormInstance<T>['submit'];
336
+ reloadOptions: FormInstance<T>['reloadOptions'];
337
+ submitting: boolean;
338
+ }
339
+ /** Tabs 布局操作区插槽参数。 */
340
+ interface FormTabActionsSlotProps {
341
+ currentTab: string;
342
+ totalTabs: number;
343
+ validateTab: () => Promise<boolean>;
344
+ switchToTab: (targetTab: string) => Promise<boolean>;
345
+ }
346
+ /** Steps 布局操作区插槽参数。 */
347
+ interface FormStepActionsSlotProps {
348
+ currentStep: number;
349
+ totalSteps: number;
350
+ isFirstStep: boolean;
351
+ isLastStep: boolean;
352
+ nextStep: () => Promise<void>;
353
+ previousStep: () => void;
354
+ goToStep: (stepIndex: number) => Promise<void>;
355
+ }
356
+ /** C_Form 对外公开的具名插槽。 */
357
+ interface FormSlots<T extends object = FormRecord> {
358
+ action?: (props: FormActionSlotProps<T>) => unknown;
359
+ 'tab-actions'?: (props: FormTabActionsSlotProps) => unknown;
360
+ 'step-actions'?: (props: FormStepActionsSlotProps) => unknown;
361
+ }
325
362
  /**
326
363
  * 表单数据模型类型(泛型)
327
364
  */
@@ -544,8 +581,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
544
581
  renderers?: Record<string, FormRenderer>;
545
582
  } & {
546
583
  "onUpdate:modelValue"?: ((model: T) => any) | undefined;
547
- "onValidate-error"?: ((errors: unknown) => any) | undefined;
548
584
  onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
585
+ "onValidate-error"?: ((errors: unknown) => any) | undefined;
549
586
  "onValidate-success"?: ((model: T) => any) | undefined;
550
587
  }> & (typeof globalThis extends {
551
588
  __VLS_PROPS_FALLBACK: infer P;
@@ -588,26 +625,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
588
625
  submit: () => Promise<boolean>;
589
626
  }>) => void;
590
627
  attrs: any;
591
- slots: {
592
- action?: (props: {
593
- form: {
594
- validate: naive_ui_es_form_src_interface0.FormValidate;
595
- restoreValidation: () => void;
596
- invalidateLabelWidth: () => void;
597
- } | null;
598
- model: FormRecord;
599
- validate: () => Promise<void>;
600
- validateField: (field: string | string[]) => Promise<void>;
601
- reset: () => void;
602
- setFields: (fields: FormModel) => void;
603
- getModel: () => FormModel;
604
- clearValidation: (field?: string | string[]) => void;
605
- submit: () => Promise<boolean>;
606
- reloadOptions: (field?: string) => Promise<void>;
607
- submitting: boolean;
608
- }) => any;
609
- };
610
- emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
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);
611
630
  }>) => vue.VNode & {
612
631
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
613
632
  };
@@ -737,4 +756,4 @@ type DynamicFormStateType = DynamicFormController;
737
756
  */
738
757
  declare const DYNAMIC_FORM_STATE_KEY: unique symbol;
739
758
  //#endregion
740
- export { OptionItem as $, useFormGlobalConfig as A, FieldPathValue as B, FormConfig as C, mergeFormConfig as D, ResolvedFormConfig as E, DynamicFieldConfig as F, FormOption as G, FormInstance as H, DynamicFormConfig as I, InlineLayoutConfig as J, FormRecord as K, DynamicFormController as L, CardLayoutConfig as M, ComponentType as N, resolveFormConfig as O, CustomLayoutConfig as P, MaybePromise as Q, DynamicFormState as R, FORM_GLOBAL_CONFIG_KEY as S, LayoutCallbacks as T, FormMode as U, FormErrorContext as V, FormModel as W, LayoutConfig as X, LabelPlacement as Y, LayoutType as Z, UseFormRendererOptions as _, UseFormDirtyReturn as a, useFormRenderer as b, UseCFormOptions as c, useCForm as d, StepsLayoutConfig as et, _default as f, RendererProps as g, FormRendererContext as h, useDynamicFormState as i, AsyncOptionsContext as j, shouldShowActions as k, defineFormConfig as l, FormRenderer as m, DynamicFormStateType as n, TabsLayoutConfig as nt, useFormDirty as o, ComponentMap as p, GridLayoutConfig as q, FIELD_TYPE_OPTIONS as r, useFormState as s, DYNAMIC_FORM_STATE_KEY as t, SubmitEventPayload as tt, defineFormOptions as u, registerRenderer as v, LAYOUTS_WITH_OWN_CONTROLS as w, FORM_DEFAULTS as x, unregisterRenderer as y, FieldPath as z };
759
+ export { LabelPlacement as $, useFormGlobalConfig as A, FieldPathValue as B, FormConfig as C, mergeFormConfig as D, ResolvedFormConfig as E, DynamicFieldConfig as F, FormModel as G, FormErrorContext as H, DynamicFormConfig as I, FormSlots as J, FormOption as K, DynamicFormController as L, CardLayoutConfig as M, ComponentType as N, resolveFormConfig as O, CustomLayoutConfig as P, InlineLayoutConfig as Q, DynamicFormState as R, FORM_GLOBAL_CONFIG_KEY as S, LayoutCallbacks as T, FormInstance as U, FormActionSlotProps as V, FormMode as W, FormTabActionsSlotProps as X, FormStepActionsSlotProps as Y, GridLayoutConfig as Z, UseFormRendererOptions as _, UseFormDirtyReturn as a, SubmitEventPayload as at, useFormRenderer as b, UseCFormOptions as c, useCForm as d, LayoutConfig as et, _default as f, RendererProps as g, FormRendererContext as h, useDynamicFormState as i, StepsLayoutConfig as it, AsyncOptionsContext as j, shouldShowActions as k, defineFormConfig as l, FormRenderer as m, DynamicFormStateType as n, MaybePromise as nt, useFormDirty as o, TabsLayoutConfig as ot, ComponentMap as p, FormRecord as q, FIELD_TYPE_OPTIONS as r, OptionItem as rt, useFormState as s, DYNAMIC_FORM_STATE_KEY as t, LayoutType as tt, defineFormOptions as u, registerRenderer as v, LAYOUTS_WITH_OWN_CONTROLS as w, FORM_DEFAULTS as x, unregisterRenderer as y, FieldPath as z };
@@ -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
- download: (file: string | File) => any;
13
12
  preview: (file: string | File) => any;
13
+ download: (file: string | File) => any;
14
14
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onDownload?: ((file: string | File) => any) | undefined;
16
15
  onPreview?: ((file: string | File) => any) | undefined;
16
+ onDownload?: ((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
- download: (file: string | File) => any;
13
12
  preview: (file: string | File) => any;
13
+ download: (file: string | File) => any;
14
14
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onDownload?: ((file: string | File) => any) | undefined;
16
15
  onPreview?: ((file: string | File) => any) | undefined;
16
+ onDownload?: ((file: string | File) => any) | undefined;
17
17
  }>, {
18
18
  fileName: string;
19
19
  autoPreview: boolean;
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
51
51
  openDialog: () => Promise<void>;
52
52
  closeDialog: () => void;
53
53
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
54
- placeholder: string;
55
54
  emptyText: string;
55
+ placeholder: string;
56
56
  resultGroupTitle: string;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
51
51
  openDialog: () => Promise<void>;
52
52
  closeDialog: () => void;
53
53
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
54
- placeholder: string;
55
54
  emptyText: string;
55
+ placeholder: string;
56
56
  resultGroupTitle: string;
57
57
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
@@ -89,9 +89,9 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
89
89
  "onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
90
90
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
91
91
  }>, {
92
+ gap: number;
92
93
  loading: boolean;
93
94
  columns: number;
94
- gap: number;
95
95
  lazy: boolean;
96
96
  infinite: boolean;
97
97
  skeleton: boolean;
@@ -89,9 +89,9 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
89
89
  "onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
90
90
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
91
91
  }>, {
92
+ gap: number;
92
93
  loading: boolean;
93
94
  columns: number;
94
- gap: number;
95
95
  lazy: boolean;
96
96
  infinite: boolean;
97
97
  skeleton: boolean;
@@ -50,16 +50,16 @@ 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
- showBorder: boolean;
57
- showLabel: boolean;
54
+ label: string;
58
55
  mode: RenderMode;
59
- margin: number;
56
+ color: string;
60
57
  bgColor: string;
61
58
  errorCorrectionLevel: ErrorCorrectionLevel;
59
+ margin: number;
62
60
  logo: LogoOptions;
61
+ showBorder: boolean;
62
+ showLabel: boolean;
63
63
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
65
65
  //#endregion
@@ -50,16 +50,16 @@ 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
- showBorder: boolean;
57
- showLabel: boolean;
54
+ label: string;
58
55
  mode: RenderMode;
59
- margin: number;
56
+ color: string;
60
57
  bgColor: string;
61
58
  errorCorrectionLevel: ErrorCorrectionLevel;
59
+ margin: number;
62
60
  logo: LogoOptions;
61
+ showBorder: boolean;
62
+ showLabel: boolean;
63
63
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
65
65
  //#endregion
@@ -163,6 +163,7 @@ 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;
166
167
  options?: {
167
168
  suppressWarning?: boolean | undefined;
168
169
  suppressValidatorError?: boolean | undefined;
@@ -219,8 +220,6 @@ declare function useSearchState(emits: {
219
220
  error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
220
221
  } | undefined;
221
222
  pattern?: (RegExp | string) | undefined;
222
- required?: boolean | undefined;
223
- message?: string | ((a?: string) => string) | undefined;
224
223
  min?: number | undefined;
225
224
  max?: number | undefined;
226
225
  len?: number | undefined;
@@ -369,6 +368,7 @@ declare function useSearchState(emits: {
369
368
  validator?: ((rule: async_validator0.InternalRuleItem, value: async_validator0.Value, callback: (error?: string | Error) => void, source: async_validator0.Values, options: async_validator0.ValidateOption) => async_validator0.SyncValidateResult | void) | undefined;
370
369
  }[] | undefined;
371
370
  transform?: ((value: async_validator0.Value) => async_validator0.Value) | undefined;
371
+ message?: string | ((a?: string) => string) | undefined;
372
372
  key?: string | undefined;
373
373
  trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
374
374
  validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
@@ -394,6 +394,7 @@ 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;
397
398
  options?: {
398
399
  suppressWarning?: boolean | undefined;
399
400
  suppressValidatorError?: boolean | undefined;
@@ -450,8 +451,6 @@ declare function useSearchState(emits: {
450
451
  error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
451
452
  } | undefined;
452
453
  pattern?: (RegExp | string) | undefined;
453
- required?: boolean | undefined;
454
- message?: string | ((a?: string) => string) | undefined;
455
454
  min?: number | undefined;
456
455
  max?: number | undefined;
457
456
  len?: number | undefined;
@@ -600,6 +599,7 @@ declare function useSearchState(emits: {
600
599
  validator?: ((rule: async_validator0.InternalRuleItem, value: async_validator0.Value, callback: (error?: string | Error) => void, source: async_validator0.Values, options: async_validator0.ValidateOption) => async_validator0.SyncValidateResult | void) | undefined;
601
600
  }[] | undefined;
602
601
  transform?: ((value: async_validator0.Value) => async_validator0.Value) | undefined;
602
+ message?: string | ((a?: string) => string) | undefined;
603
603
  key?: string | undefined;
604
604
  trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
605
605
  validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
@@ -637,6 +637,7 @@ 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;
640
641
  options?: {
641
642
  suppressWarning?: boolean | undefined;
642
643
  suppressValidatorError?: boolean | undefined;
@@ -693,8 +694,6 @@ declare function useSearchState(emits: {
693
694
  error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
694
695
  } | undefined;
695
696
  pattern?: (RegExp | string) | undefined;
696
- required?: boolean | undefined;
697
- message?: string | ((a?: string) => string) | undefined;
698
697
  min?: number | undefined;
699
698
  max?: number | undefined;
700
699
  len?: number | undefined;
@@ -843,6 +842,7 @@ declare function useSearchState(emits: {
843
842
  validator?: ((rule: async_validator0.InternalRuleItem, value: async_validator0.Value, callback: (error?: string | Error) => void, source: async_validator0.Values, options: async_validator0.ValidateOption) => async_validator0.SyncValidateResult | void) | undefined;
844
843
  }[] | undefined;
845
844
  transform?: ((value: async_validator0.Value) => async_validator0.Value) | undefined;
845
+ message?: string | ((a?: string) => string) | undefined;
846
846
  key?: string | undefined;
847
847
  trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
848
848
  validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;