vue-business-kit 0.0.5 → 0.0.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.
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';
@@ -690,8 +691,8 @@ readonly hideRequiredAsterisk: boolean;
690
691
  readonly scrollToError: boolean;
691
692
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
692
693
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
693
- readonly model?: Record<string, any> | undefined;
694
694
  readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
695
+ readonly model?: Record<string, any> | undefined;
695
696
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
696
697
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
697
698
  $attrs: {
@@ -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
+ }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "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;
@@ -868,8 +869,8 @@ readonly hideRequiredAsterisk: boolean;
868
869
  readonly scrollToError: boolean;
869
870
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
870
871
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
871
- readonly model?: Record<string, any> | undefined;
872
872
  readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
873
+ readonly model?: Record<string, any> | undefined;
873
874
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
874
875
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
875
876
  $attrs: {
@@ -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
+ }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "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, {
@@ -1059,8 +1052,8 @@ readonly hideRequiredAsterisk: boolean;
1059
1052
  readonly scrollToError: boolean;
1060
1053
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
1061
1054
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
1062
- readonly model?: Record<string, any> | undefined;
1063
1055
  readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
1056
+ readonly model?: Record<string, any> | undefined;
1064
1057
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
1065
1058
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
1066
1059
  $attrs: {
@@ -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
+ }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "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;
@@ -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;
@@ -6135,8 +6130,8 @@ declare function __VLS_template_2(): {
6135
6130
  readonly scrollToError: boolean;
6136
6131
  readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
6137
6132
  readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
6138
- readonly model?: Record<string, any> | undefined;
6139
6133
  readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
6134
+ readonly model?: Record<string, any> | undefined;
6140
6135
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
6141
6136
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
6142
6137
  $attrs: {
@@ -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
+ }, "disabled" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "inline" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "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;
@@ -8160,11 +8155,7 @@ declare interface FormatNumberOptions {
8160
8155
  showUnit?: boolean;
8161
8156
  }
8162
8157
 
8163
- export declare interface FormEmits {
8164
- validate: [prop: string, isValid: boolean, message: string];
8165
- submit: [model: Record<string, any>];
8166
- reset: [];
8167
- }
8158
+ export { FormEmits }
8168
8159
 
8169
8160
  export declare interface FormInstance {
8170
8161
  formRef?: FormInstance_2;