vue-business-kit 0.0.5 → 0.0.7

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.
package/dist/index.d.ts CHANGED
@@ -43,6 +43,7 @@ import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
43
43
  import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
44
44
  import { ExtractPropTypes } from 'vue';
45
45
  import { Filter } from 'element-plus';
46
+ import { FormEmits } from 'element-plus';
46
47
  import { FormInstance as FormInstance_2 } from 'element-plus';
47
48
  import { FormItemContext } from 'element-plus';
48
49
  import { FormItemProp } from 'element-plus';
@@ -108,14 +109,14 @@ readonly autoInsertSpace: EpPropMergeType<BooleanConstructor, unknown, unknown>;
108
109
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
109
110
  readonly loadingIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
110
111
  }> & Omit<{
111
- readonly type: EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
112
+ readonly type: EpPropMergeType<StringConstructor, "" | "success" | "default" | "text" | "primary" | "warning" | "info" | "danger", unknown>;
113
+ readonly dark: boolean;
114
+ readonly link: boolean;
112
115
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
113
116
  readonly loading: boolean;
114
- readonly link: boolean;
115
117
  readonly bg: boolean;
116
118
  readonly autofocus: boolean;
117
119
  readonly circle: boolean;
118
- readonly dark: boolean;
119
120
  readonly tag: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
120
121
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never> | undefined;
121
122
  readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -127,7 +128,7 @@ readonly round?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefin
127
128
  readonly color?: string | undefined;
128
129
  readonly autoInsertSpace?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
129
130
  onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
130
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag">;
131
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag">;
131
132
  $attrs: {
132
133
  [x: string]: unknown;
133
134
  };
@@ -264,7 +265,7 @@ readonly autoInsertSpace: EpPropFinalized<BooleanConstructor, unknown, unknown,
264
265
  readonly tag: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, "button", boolean>;
265
266
  }>> & {
266
267
  onClick?: ((evt: MouseEvent) => any) | undefined;
267
- }, "size" | "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
268
+ }, "size" | "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
268
269
  ref: Ref<HTMLButtonElement | undefined>;
269
270
  size: ComputedRef<"" | "small" | "default" | "large">;
270
271
  type: ComputedRef<string>;
@@ -296,14 +297,14 @@ readonly autoInsertSpace: EpPropMergeType<BooleanConstructor, unknown, unknown>;
296
297
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
297
298
  readonly loadingIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
298
299
  }> & Omit<{
299
- readonly type: EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
300
+ readonly type: EpPropMergeType<StringConstructor, "" | "success" | "default" | "text" | "primary" | "warning" | "info" | "danger", unknown>;
301
+ readonly dark: boolean;
302
+ readonly link: boolean;
300
303
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
301
304
  readonly loading: boolean;
302
- readonly link: boolean;
303
305
  readonly bg: boolean;
304
306
  readonly autofocus: boolean;
305
307
  readonly circle: boolean;
306
- readonly dark: boolean;
307
308
  readonly tag: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
308
309
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never> | undefined;
309
310
  readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -315,7 +316,7 @@ readonly round?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefin
315
316
  readonly color?: string | undefined;
316
317
  readonly autoInsertSpace?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
317
318
  onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
318
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag">;
319
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag">;
319
320
  $attrs: {
320
321
  [x: string]: unknown;
321
322
  };
@@ -452,7 +453,7 @@ readonly autoInsertSpace: EpPropFinalized<BooleanConstructor, unknown, unknown,
452
453
  readonly tag: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, "button", boolean>;
453
454
  }>> & {
454
455
  onClick?: ((evt: MouseEvent) => any) | undefined;
455
- }, "size" | "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
456
+ }, "size" | "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
456
457
  ref: Ref<HTMLButtonElement | undefined>;
457
458
  size: ComputedRef<"" | "small" | "default" | "large">;
458
459
  type: ComputedRef<string>;
@@ -486,14 +487,14 @@ readonly autoInsertSpace: EpPropMergeType<BooleanConstructor, unknown, unknown>;
486
487
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
487
488
  readonly loadingIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
488
489
  }> & Omit<{
489
- readonly type: EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
490
+ readonly type: EpPropMergeType<StringConstructor, "" | "success" | "default" | "text" | "primary" | "warning" | "info" | "danger", unknown>;
491
+ readonly dark: boolean;
492
+ readonly link: boolean;
490
493
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
491
494
  readonly loading: boolean;
492
- readonly link: boolean;
493
495
  readonly bg: boolean;
494
496
  readonly autofocus: boolean;
495
497
  readonly circle: boolean;
496
- readonly dark: boolean;
497
498
  readonly tag: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
498
499
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never> | undefined;
499
500
  readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -505,7 +506,7 @@ readonly round?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefin
505
506
  readonly color?: string | undefined;
506
507
  readonly autoInsertSpace?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
507
508
  onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
508
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag">;
509
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag">;
509
510
  $attrs: {
510
511
  [x: string]: unknown;
511
512
  };
@@ -642,7 +643,7 @@ readonly autoInsertSpace: EpPropFinalized<BooleanConstructor, unknown, unknown,
642
643
  readonly tag: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, "button", boolean>;
643
644
  }>> & {
644
645
  onClick?: ((evt: MouseEvent) => any) | undefined;
645
- }, "size" | "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
646
+ }, "size" | "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
646
647
  ref: Ref<HTMLButtonElement | undefined>;
647
648
  size: ComputedRef<"" | "small" | "default" | "large">;
648
649
  type: ComputedRef<string>;
@@ -676,7 +677,6 @@ readonly statusIcon: boolean;
676
677
  readonly hideRequiredAsterisk: boolean;
677
678
  readonly scrollToError: boolean;
678
679
  }> & Omit<{
679
- readonly disabled: boolean;
680
680
  readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
681
681
  readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
682
682
  readonly inlineMessage: boolean;
@@ -689,11 +689,12 @@ readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unkn
689
689
  readonly hideRequiredAsterisk: boolean;
690
690
  readonly scrollToError: boolean;
691
691
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
692
+ readonly disabled: boolean;
693
+ readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
692
694
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
693
695
  readonly model?: Record<string, any> | undefined;
694
- readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
695
696
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
696
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
697
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled">;
697
698
  $attrs: {
698
699
  [x: string]: unknown;
699
700
  };
@@ -824,7 +825,7 @@ __epPropKey: true;
824
825
  readonly disabled: BooleanConstructor;
825
826
  }>> & {
826
827
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
827
- }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
828
+ }, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
828
829
  validate: (callback?: FormValidateCallback) => FormValidationResult;
829
830
  validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
830
831
  resetFields: (props?: Arrayable<FormItemProp>) => void;
@@ -854,7 +855,6 @@ readonly statusIcon: boolean;
854
855
  readonly hideRequiredAsterisk: boolean;
855
856
  readonly scrollToError: boolean;
856
857
  }> & Omit<{
857
- readonly disabled: boolean;
858
858
  readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
859
859
  readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
860
860
  readonly inlineMessage: boolean;
@@ -867,11 +867,12 @@ readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unkn
867
867
  readonly hideRequiredAsterisk: boolean;
868
868
  readonly scrollToError: boolean;
869
869
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
870
+ readonly disabled: boolean;
871
+ readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
870
872
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
871
873
  readonly model?: Record<string, any> | undefined;
872
- readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
873
874
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
874
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
875
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled">;
875
876
  $attrs: {
876
877
  [x: string]: unknown;
877
878
  };
@@ -1002,7 +1003,7 @@ __epPropKey: true;
1002
1003
  readonly disabled: BooleanConstructor;
1003
1004
  }>> & {
1004
1005
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1005
- }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
1006
+ }, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
1006
1007
  validate: (callback?: FormValidateCallback) => FormValidationResult;
1007
1008
  validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
1008
1009
  resetFields: (props?: Arrayable<FormItemProp>) => void;
@@ -1015,15 +1016,7 @@ $slots: {
1015
1016
  default?(_: {}): any;
1016
1017
  };
1017
1018
  }) | undefined>;
1018
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1019
- reset: () => any;
1020
- submit: (model: Record<string, any>) => any;
1021
- validate: (prop: string, isValid: boolean, message: string) => any;
1022
- }, string, PublicProps, Readonly<FormInternalProps> & Readonly<{
1023
- onReset?: (() => any) | undefined;
1024
- onSubmit?: ((model: Record<string, any>) => any) | undefined;
1025
- onValidate?: ((prop: string, isValid: boolean, message: string) => any) | undefined;
1026
- }>, {
1019
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FormInternalProps> & Readonly<{}>, {
1027
1020
  items: FormItemCtx[];
1028
1021
  colNum: number;
1029
1022
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -1045,7 +1038,6 @@ readonly statusIcon: boolean;
1045
1038
  readonly hideRequiredAsterisk: boolean;
1046
1039
  readonly scrollToError: boolean;
1047
1040
  }> & Omit<{
1048
- readonly disabled: boolean;
1049
1041
  readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
1050
1042
  readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
1051
1043
  readonly inlineMessage: boolean;
@@ -1058,11 +1050,12 @@ readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unkn
1058
1050
  readonly hideRequiredAsterisk: boolean;
1059
1051
  readonly scrollToError: boolean;
1060
1052
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
1053
+ readonly disabled: boolean;
1054
+ readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
1061
1055
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
1062
1056
  readonly model?: Record<string, any> | undefined;
1063
- readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
1064
1057
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
1065
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
1058
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled">;
1066
1059
  $attrs: {
1067
1060
  [x: string]: unknown;
1068
1061
  };
@@ -1193,7 +1186,7 @@ __epPropKey: true;
1193
1186
  readonly disabled: BooleanConstructor;
1194
1187
  }>> & {
1195
1188
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
1196
- }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
1189
+ }, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
1197
1190
  validate: (callback?: FormValidateCallback) => FormValidationResult;
1198
1191
  validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
1199
1192
  resetFields: (props?: Arrayable<FormItemProp>) => void;
@@ -4368,6 +4361,10 @@ nativeScrollbar: boolean;
4368
4361
  preserveExpandedContent: boolean;
4369
4362
  }> | undefined>;
4370
4363
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4364
+ edit: (data: {
4365
+ action: "edit";
4366
+ data: any;
4367
+ }, row: any) => any;
4371
4368
  delete: (data: {
4372
4369
  action: "delete";
4373
4370
  data: any;
@@ -4376,19 +4373,19 @@ add: (data: {
4376
4373
  action: "add";
4377
4374
  data: any;
4378
4375
  }) => any;
4379
- search: (value: string, columns: string[]) => any;
4380
- edit: (data: {
4381
- action: "edit";
4382
- data: any;
4383
- }, row: any) => any;
4384
4376
  batch: (data: {
4385
4377
  action: "batch";
4386
4378
  data: any;
4387
4379
  }) => any;
4380
+ search: (value: string, columns: string[]) => any;
4388
4381
  refresh: () => any;
4389
4382
  export: (data: any[], columns: TableColumnCtx<DefaultRow>[]) => any;
4390
4383
  paginationChange: (page: number, size: number) => any;
4391
4384
  }, string, PublicProps, Readonly<TableInternalProps> & Readonly<{
4385
+ onEdit?: ((data: {
4386
+ action: "edit";
4387
+ data: any;
4388
+ }, row: any) => any) | undefined;
4392
4389
  onDelete?: ((data: {
4393
4390
  action: "delete";
4394
4391
  data: any;
@@ -4397,22 +4394,18 @@ onAdd?: ((data: {
4397
4394
  action: "add";
4398
4395
  data: any;
4399
4396
  }) => any) | undefined;
4400
- onSearch?: ((value: string, columns: string[]) => any) | undefined;
4401
- onEdit?: ((data: {
4402
- action: "edit";
4403
- data: any;
4404
- }, row: any) => any) | undefined;
4405
4397
  onBatch?: ((data: {
4406
4398
  action: "batch";
4407
4399
  data: any;
4408
4400
  }) => any) | undefined;
4401
+ onSearch?: ((value: string, columns: string[]) => any) | undefined;
4409
4402
  onRefresh?: (() => any) | undefined;
4410
4403
  onExport?: ((data: any[], columns: TableColumnCtx<DefaultRow>[]) => any) | undefined;
4411
4404
  onPaginationChange?: ((page: number, size: number) => any) | undefined;
4412
4405
  }>, {
4413
4406
  columns: TableColumnCtx[];
4414
4407
  numberFormat: boolean | FormatNumberOptions;
4415
- pagination: boolean | PaginationProps;
4408
+ pagination: boolean | Partial<PaginationProps>;
4416
4409
  rawData: any[];
4417
4410
  mergeColumns: string[];
4418
4411
  showSearch: boolean;
@@ -5926,14 +5919,14 @@ declare function __VLS_template(): {
5926
5919
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
5927
5920
  readonly loadingIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
5928
5921
  }> & Omit<{
5929
- readonly type: EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>;
5922
+ readonly type: EpPropMergeType<StringConstructor, "" | "success" | "default" | "text" | "primary" | "warning" | "info" | "danger", unknown>;
5923
+ readonly dark: boolean;
5924
+ readonly link: boolean;
5930
5925
  readonly nativeType: EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
5931
5926
  readonly loading: boolean;
5932
- readonly link: boolean;
5933
5927
  readonly bg: boolean;
5934
5928
  readonly autofocus: boolean;
5935
5929
  readonly circle: boolean;
5936
- readonly dark: boolean;
5937
5930
  readonly tag: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
5938
5931
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never> | undefined;
5939
5932
  readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
@@ -5945,7 +5938,7 @@ declare function __VLS_template(): {
5945
5938
  readonly color?: string | undefined;
5946
5939
  readonly autoInsertSpace?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
5947
5940
  onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
5948
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag">;
5941
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag">;
5949
5942
  $attrs: {
5950
5943
  [x: string]: unknown;
5951
5944
  };
@@ -6082,7 +6075,7 @@ declare function __VLS_template(): {
6082
6075
  readonly tag: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, "button", boolean>;
6083
6076
  }>> & {
6084
6077
  onClick?: ((evt: MouseEvent) => any) | undefined;
6085
- }, "size" | "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
6078
+ }, "size" | "type" | "disabled" | "dark" | "link" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "bg" | "autofocus" | "round" | "circle" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef< {
6086
6079
  ref: Ref<HTMLButtonElement | undefined>;
6087
6080
  size: ComputedRef<"" | "small" | "default" | "large">;
6088
6081
  type: ComputedRef<string>;
@@ -6101,7 +6094,9 @@ declare function __VLS_template(): {
6101
6094
 
6102
6095
  declare function __VLS_template_2(): {
6103
6096
  attrs: Partial<{}>;
6104
- slots: any;
6097
+ slots: {
6098
+ default?(_: {}): any;
6099
+ };
6105
6100
  refs: {
6106
6101
  formRef: ({
6107
6102
  $: ComponentInternalInstance;
@@ -6121,7 +6116,6 @@ declare function __VLS_template_2(): {
6121
6116
  readonly hideRequiredAsterisk: boolean;
6122
6117
  readonly scrollToError: boolean;
6123
6118
  }> & Omit<{
6124
- readonly disabled: boolean;
6125
6119
  readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
6126
6120
  readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
6127
6121
  readonly inlineMessage: boolean;
@@ -6134,11 +6128,12 @@ declare function __VLS_template_2(): {
6134
6128
  readonly hideRequiredAsterisk: boolean;
6135
6129
  readonly scrollToError: boolean;
6136
6130
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
6131
+ readonly disabled: boolean;
6132
+ readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
6137
6133
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
6138
6134
  readonly model?: Record<string, any> | undefined;
6139
- readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
6140
6135
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
6141
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
6136
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled">;
6142
6137
  $attrs: {
6143
6138
  [x: string]: unknown;
6144
6139
  };
@@ -6269,7 +6264,7 @@ declare function __VLS_template_2(): {
6269
6264
  readonly disabled: BooleanConstructor;
6270
6265
  }>> & {
6271
6266
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
6272
- }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validate" | "clearValidate" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
6267
+ }, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "disabled" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields"> & ShallowUnwrapRef< {
6273
6268
  validate: (callback?: FormValidateCallback) => FormValidationResult;
6274
6269
  validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
6275
6270
  resetFields: (props?: Arrayable<FormItemProp>) => void;
@@ -7952,8 +7947,10 @@ export declare const en: {
7952
7947
  operations: string;
7953
7948
  cancel: string;
7954
7949
  submit: string;
7950
+ confirm: string;
7955
7951
  upload: string;
7956
7952
  deleteItems: string;
7953
+ deleteConfirm: string;
7957
7954
  rowKeyWarning: string;
7958
7955
  };
7959
7956
  };
@@ -8160,11 +8157,7 @@ declare interface FormatNumberOptions {
8160
8157
  showUnit?: boolean;
8161
8158
  }
8162
8159
 
8163
- export declare interface FormEmits {
8164
- validate: [prop: string, isValid: boolean, message: string];
8165
- submit: [model: Record<string, any>];
8166
- reset: [];
8167
- }
8160
+ export { FormEmits }
8168
8161
 
8169
8162
  export declare interface FormInstance {
8170
8163
  formRef?: FormInstance_2;
@@ -8281,7 +8274,7 @@ export declare interface TableInternalProps {
8281
8274
  searchColumns?: string[];
8282
8275
  showRefresh?: boolean;
8283
8276
  showExport?: boolean;
8284
- pagination?: boolean | PaginationProps;
8277
+ pagination?: boolean | Partial<PaginationProps>;
8285
8278
  numberFormat?: boolean | FormatNumberOptions;
8286
8279
  defaultSelection?: boolean | (string | number)[];
8287
8280
  disabledSelection?: boolean | (string | number)[];
@@ -8339,8 +8332,10 @@ export declare const zhCn: {
8339
8332
  operations: string;
8340
8333
  cancel: string;
8341
8334
  submit: string;
8335
+ confirm: string;
8342
8336
  upload: string;
8343
8337
  deleteItems: string;
8338
+ deleteConfirm: string;
8344
8339
  rowKeyWarning: string;
8345
8340
  };
8346
8341
  };