@vrojs/element-plus 0.0.30 → 0.0.32
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 +1 -0
- package/dist/index.js +147 -139
- package/dist/style/deps.js +1 -0
- package/dist/vro-el-async-dialog/function-call.d.ts +3 -0
- package/dist/vro-el-async-dialog/function-call.js +20 -0
- package/dist/vro-el-async-dialog/index.d.ts +48 -0
- package/dist/vro-el-async-dialog/index.js +9 -0
- package/dist/vro-el-async-dialog/style/css.d.ts +0 -0
- package/dist/vro-el-async-dialog/style/css.js +2 -0
- package/dist/vro-el-async-dialog/style/deps.d.ts +0 -0
- package/dist/vro-el-async-dialog/style/deps.js +1 -0
- package/dist/vro-el-async-dialog/style/index.d.ts +0 -0
- package/dist/vro-el-async-dialog/style/index.js +2 -0
- package/dist/vro-el-async-dialog/types.d.ts +12 -0
- package/dist/vro-el-async-dialog/types.js +1 -0
- package/dist/vro-el-async-dialog/vro-el-async-dialog.vue.d.ts +28 -0
- package/dist/vro-el-async-dialog/vro-el-async-dialog.vue.js +58 -0
- package/dist/vro-el-async-dialog/vro-el-async-dialog.vue2.js +4 -0
- package/dist/vro-el-image/index.d.ts +3 -3
- package/dist/vro-el-image/utils.d.ts +1 -1
- package/dist/vro-el-image/vro-el-image.vue.d.ts +1 -1
- package/dist/vro-el-schema-form/defineVroElSchemaForm.d.ts +2 -3
- package/dist/vro-el-schema-form/types.d.ts +6 -2
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +446 -7
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +13 -13
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +58 -52
- package/dist/vro-el-schema-form-dialog/function-call.js +2 -2
- package/dist/vro-el-schema-form-dialog/index.d.ts +2 -1
- package/dist/vro-el-schema-form-dialog/index.js +13 -9
- package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.d.ts +12 -13
- package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.js +27 -15
- package/dist/vro-el-schema-form-dialog/utils.d.ts +2 -0
- package/dist/vro-el-schema-form-dialog/utils.js +6 -0
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +2 -2
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +25 -24
- package/dist/vro-el-schema-form-drawer/function-call.js +2 -2
- package/dist/vro-el-schema-form-drawer/index.d.ts +1 -1
- package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +2 -2
- package/dist/vro-el-select/index.d.ts +1 -1
- package/dist/vro-el-select/vro-el-select.vue.d.ts +1 -1
- package/dist/vro-el-with-config/index.d.ts +58 -11
- package/dist/vro-el-with-config/types.d.ts +7 -0
- package/dist/vro-el-with-config/types.js +8 -1
- package/dist/vro-el-with-config/vro-el-with-config.vue.d.ts +28 -2
- package/dist/vro-el-with-config/vro-el-with-config.vue.js +40 -19
- package/package.json +1 -1
|
@@ -30,11 +30,12 @@ export interface VroElSchemaFormFieldPropsMap {
|
|
|
30
30
|
}
|
|
31
31
|
export type VroElSchemaFormFieldType = keyof VroElSchemaFormFieldPropsMap;
|
|
32
32
|
export type VroElSchemaFormRawComponent = Raw<object>;
|
|
33
|
+
export type VroElSchemaFormSlotString = `slot-${string}`;
|
|
33
34
|
export interface VroElSchemaFormSchemaFieldBase<TProps = Record<string, any>> {
|
|
34
35
|
/**
|
|
35
36
|
* 字段渲染组件,支持内置注册名、外部注册名或组件对象。
|
|
36
37
|
*/
|
|
37
|
-
is?: VroElSchemaFormFieldType | VroElSchemaFormRawComponent;
|
|
38
|
+
is?: VroElSchemaFormFieldType | VroElSchemaFormRawComponent | VroElSchemaFormSlotString;
|
|
38
39
|
/**
|
|
39
40
|
* 表单项标签文本。
|
|
40
41
|
*/
|
|
@@ -115,11 +116,14 @@ export type VroElSchemaFormMappedSchemaField = {
|
|
|
115
116
|
};
|
|
116
117
|
}[VroElSchemaFormFieldType];
|
|
117
118
|
export type VroElSchemaFormCustomSchemaField = VroElSchemaFormSchemaFieldBase & {
|
|
118
|
-
is?: VroElSchemaFormRawComponent;
|
|
119
|
+
is?: VroElSchemaFormRawComponent | VroElSchemaFormSlotString;
|
|
119
120
|
};
|
|
120
121
|
export type VroElSchemaFormSchemaField = VroElSchemaFormMappedSchemaField | VroElSchemaFormCustomSchemaField;
|
|
121
122
|
export type VroElSchemaFormSchemaBase = Record<string, VroElSchemaFormSchemaFieldBase>;
|
|
122
123
|
export type VroElSchemaFormSchema = Record<string, VroElSchemaFormSchemaField>;
|
|
124
|
+
export type VroElSchemaFormNormalizedSchema<TSchema extends VroElSchemaFormSchema> = {
|
|
125
|
+
[K in keyof TSchema]: VroElSchemaFormSchemaFieldBase;
|
|
126
|
+
};
|
|
123
127
|
export type VroElSchemaFormFormProps = Partial<Omit<FormProps, 'model' | 'rules'>>;
|
|
124
128
|
export interface VroElSchemaFormFieldEvent {
|
|
125
129
|
key: string;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { UseAsyncTaskOptions } from '@vrojs/use';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { VroElSchemaFormInstance } from '.';
|
|
4
|
-
import {
|
|
4
|
+
import { VroElSchemaFormNormalizedSchema, VroElSchemaFormSchema } from './types';
|
|
5
5
|
export interface UseVroElSchemaFormOptions extends Omit<UseAsyncTaskOptions<any>, 'initialValue' | 'initialParams'> {
|
|
6
6
|
source?: Record<string, any>;
|
|
7
|
-
instanceRef?: Ref<VroElSchemaFormInstance | undefined
|
|
7
|
+
instanceRef?: Ref<VroElSchemaFormInstance | undefined> | string;
|
|
8
8
|
}
|
|
9
|
-
export type UseVroElSchemaFormSchema<TSchema extends VroElSchemaFormSchema> = {
|
|
10
|
-
[K in keyof TSchema]: VroElSchemaFormSchemaFieldBase;
|
|
11
|
-
};
|
|
12
9
|
export declare function useVroElSchemaForm<D extends Record<string, any> = any, T extends VroElSchemaFormSchema = VroElSchemaFormSchema>(rawSchema: (() => T) | T, task?: (data: D) => Promise<void>, options?: UseVroElSchemaFormOptions): {
|
|
13
10
|
data: Ref<Awaited<D> | undefined, Awaited<D> | undefined>;
|
|
14
11
|
error: Ref<unknown, unknown>;
|
|
15
|
-
schema: import('vue').Reactive<
|
|
12
|
+
schema: import('vue').Reactive<VroElSchemaFormNormalizedSchema<T>>;
|
|
16
13
|
schemaFormRef: Ref<({
|
|
17
14
|
$: import('vue').ComponentInternalInstance;
|
|
18
15
|
$data: {};
|
|
@@ -897,7 +894,449 @@ export declare function useVroElSchemaForm<D extends Record<string, any> = any,
|
|
|
897
894
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
898
895
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
899
896
|
$slots: Readonly<import('./types').VroElSchemaFormSlots> & import('./types').VroElSchemaFormSlots;
|
|
900
|
-
}) | undefined
|
|
897
|
+
}) | undefined> | Readonly<import('vue').ShallowRef<({
|
|
898
|
+
$: import('vue').ComponentInternalInstance;
|
|
899
|
+
$data: {};
|
|
900
|
+
$props: Partial<{
|
|
901
|
+
schema: VroElSchemaFormSchema;
|
|
902
|
+
colProps: Partial<import('element-plus').ColProps>;
|
|
903
|
+
formItemProps: Partial<import('element-plus').FormItemProps>;
|
|
904
|
+
formProps: Partial<Omit<import('element-plus').FormProps, "rules" | "model">>;
|
|
905
|
+
rowProps: Partial<import('element-plus').RowProps>;
|
|
906
|
+
}> & Omit<{
|
|
907
|
+
readonly schema: VroElSchemaFormSchema;
|
|
908
|
+
readonly colProps: Partial<import('element-plus').ColProps>;
|
|
909
|
+
readonly formItemProps: Partial<import('element-plus').FormItemProps>;
|
|
910
|
+
readonly formProps: Partial<Omit<import('element-plus').FormProps, "rules" | "model">>;
|
|
911
|
+
readonly rowProps: Partial<import('element-plus').RowProps>;
|
|
912
|
+
readonly "onChange-field"?: ((payload: import('./types').VroElSchemaFormFieldEvent) => any) | undefined;
|
|
913
|
+
readonly "onInput-field"?: ((payload: import('./types').VroElSchemaFormFieldEvent) => any) | undefined;
|
|
914
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "schema" | "colProps" | "formItemProps" | "formProps" | "rowProps">;
|
|
915
|
+
$attrs: {
|
|
916
|
+
[x: string]: unknown;
|
|
917
|
+
};
|
|
918
|
+
$refs: {
|
|
919
|
+
[x: string]: unknown;
|
|
920
|
+
} & {
|
|
921
|
+
formRef: ({
|
|
922
|
+
$: import('vue').ComponentInternalInstance;
|
|
923
|
+
$data: {};
|
|
924
|
+
$props: {
|
|
925
|
+
readonly model?: Record<string, any> | undefined;
|
|
926
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
927
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
928
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
929
|
+
readonly labelWidth?: string | number | undefined;
|
|
930
|
+
readonly labelSuffix?: string | undefined;
|
|
931
|
+
readonly inline?: boolean | undefined;
|
|
932
|
+
readonly inlineMessage?: boolean | undefined;
|
|
933
|
+
readonly statusIcon?: boolean | undefined;
|
|
934
|
+
readonly showMessage?: boolean | undefined;
|
|
935
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
936
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
937
|
+
readonly scrollToError?: boolean | undefined;
|
|
938
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
939
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
940
|
+
readonly disabled?: boolean | undefined;
|
|
941
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
942
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
943
|
+
$attrs: {
|
|
944
|
+
[x: string]: unknown;
|
|
945
|
+
};
|
|
946
|
+
$refs: {
|
|
947
|
+
[x: string]: unknown;
|
|
948
|
+
};
|
|
949
|
+
$slots: Readonly<{
|
|
950
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
951
|
+
}>;
|
|
952
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
953
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
954
|
+
$host: Element | null;
|
|
955
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
956
|
+
$el: any;
|
|
957
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
958
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
959
|
+
}>, {
|
|
960
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
961
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
962
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
963
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
964
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
965
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
966
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
967
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
968
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
969
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
970
|
+
}, string, {
|
|
971
|
+
labelWidth: string | number;
|
|
972
|
+
labelPosition: "left" | "right" | "top";
|
|
973
|
+
requireAsteriskPosition: "left" | "right";
|
|
974
|
+
labelSuffix: string;
|
|
975
|
+
showMessage: boolean;
|
|
976
|
+
validateOnRuleChange: boolean;
|
|
977
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
978
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
979
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
980
|
+
created?: (() => void) | (() => void)[];
|
|
981
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
982
|
+
mounted?: (() => void) | (() => void)[];
|
|
983
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
984
|
+
updated?: (() => void) | (() => void)[];
|
|
985
|
+
activated?: (() => void) | (() => void)[];
|
|
986
|
+
deactivated?: (() => void) | (() => void)[];
|
|
987
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
988
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
989
|
+
destroyed?: (() => void) | (() => void)[];
|
|
990
|
+
unmounted?: (() => void) | (() => void)[];
|
|
991
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
992
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
993
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
994
|
+
};
|
|
995
|
+
$forceUpdate: () => void;
|
|
996
|
+
$nextTick: typeof import('vue').nextTick;
|
|
997
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
998
|
+
} & Readonly<{
|
|
999
|
+
labelWidth: string | number;
|
|
1000
|
+
labelPosition: "left" | "right" | "top";
|
|
1001
|
+
requireAsteriskPosition: "left" | "right";
|
|
1002
|
+
labelSuffix: string;
|
|
1003
|
+
showMessage: boolean;
|
|
1004
|
+
validateOnRuleChange: boolean;
|
|
1005
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1006
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
1007
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1008
|
+
}>, "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
1009
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1010
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1011
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1012
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1013
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
1014
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
1015
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
1016
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1017
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1018
|
+
$slots: {
|
|
1019
|
+
default?: (props: {}) => any;
|
|
1020
|
+
};
|
|
1021
|
+
}) | null;
|
|
1022
|
+
componentRefs: unknown;
|
|
1023
|
+
};
|
|
1024
|
+
$slots: Readonly<{
|
|
1025
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
1026
|
+
}>;
|
|
1027
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
1028
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
1029
|
+
$host: Element | null;
|
|
1030
|
+
$emit: ((event: "change-field", payload: import('./types').VroElSchemaFormFieldEvent) => void) & ((event: "input-field", payload: import('./types').VroElSchemaFormFieldEvent) => void);
|
|
1031
|
+
$el: any;
|
|
1032
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
1033
|
+
formProps: {
|
|
1034
|
+
type: import('vue').PropType<import('./types').VroElSchemaFormFormProps>;
|
|
1035
|
+
default: () => {};
|
|
1036
|
+
};
|
|
1037
|
+
rowProps: {
|
|
1038
|
+
type: import('vue').PropType<Partial<import('element-plus').RowProps>>;
|
|
1039
|
+
default: () => {};
|
|
1040
|
+
};
|
|
1041
|
+
colProps: {
|
|
1042
|
+
type: import('vue').PropType<Partial<import('element-plus').ColProps>>;
|
|
1043
|
+
default: () => {};
|
|
1044
|
+
};
|
|
1045
|
+
formItemProps: {
|
|
1046
|
+
type: import('vue').PropType<Partial<import('element-plus').FormItemProps>>;
|
|
1047
|
+
default: () => {};
|
|
1048
|
+
};
|
|
1049
|
+
schema: {
|
|
1050
|
+
type: import('vue').PropType<VroElSchemaFormSchema>;
|
|
1051
|
+
default: () => {};
|
|
1052
|
+
};
|
|
1053
|
+
}>> & Readonly<{
|
|
1054
|
+
"onChange-field"?: ((payload: import('./types').VroElSchemaFormFieldEvent) => any) | undefined;
|
|
1055
|
+
"onInput-field"?: ((payload: import('./types').VroElSchemaFormFieldEvent) => any) | undefined;
|
|
1056
|
+
}>, {
|
|
1057
|
+
elForm: {
|
|
1058
|
+
$: import('vue').ComponentInternalInstance;
|
|
1059
|
+
$data: {};
|
|
1060
|
+
$props: {
|
|
1061
|
+
readonly model?: Record<string, any> | undefined;
|
|
1062
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
1063
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
1064
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
1065
|
+
readonly labelWidth?: string | number | undefined;
|
|
1066
|
+
readonly labelSuffix?: string | undefined;
|
|
1067
|
+
readonly inline?: boolean | undefined;
|
|
1068
|
+
readonly inlineMessage?: boolean | undefined;
|
|
1069
|
+
readonly statusIcon?: boolean | undefined;
|
|
1070
|
+
readonly showMessage?: boolean | undefined;
|
|
1071
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
1072
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
1073
|
+
readonly scrollToError?: boolean | undefined;
|
|
1074
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
1075
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
1076
|
+
readonly disabled?: boolean | undefined;
|
|
1077
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
1078
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1079
|
+
$attrs: {
|
|
1080
|
+
[x: string]: unknown;
|
|
1081
|
+
};
|
|
1082
|
+
$refs: {
|
|
1083
|
+
[x: string]: unknown;
|
|
1084
|
+
};
|
|
1085
|
+
$slots: Readonly<{
|
|
1086
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
1087
|
+
}>;
|
|
1088
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
1089
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
1090
|
+
$host: Element | null;
|
|
1091
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
1092
|
+
$el: any;
|
|
1093
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
1094
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1095
|
+
}>, {
|
|
1096
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1097
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1098
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1099
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1100
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
1101
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
1102
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
1103
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1104
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1105
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
1106
|
+
}, string, {
|
|
1107
|
+
labelWidth: string | number;
|
|
1108
|
+
labelPosition: "left" | "right" | "top";
|
|
1109
|
+
requireAsteriskPosition: "left" | "right";
|
|
1110
|
+
labelSuffix: string;
|
|
1111
|
+
showMessage: boolean;
|
|
1112
|
+
validateOnRuleChange: boolean;
|
|
1113
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1114
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1115
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1116
|
+
created?: (() => void) | (() => void)[];
|
|
1117
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1118
|
+
mounted?: (() => void) | (() => void)[];
|
|
1119
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1120
|
+
updated?: (() => void) | (() => void)[];
|
|
1121
|
+
activated?: (() => void) | (() => void)[];
|
|
1122
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1123
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1124
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1125
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1126
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1127
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
1128
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
1129
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1130
|
+
};
|
|
1131
|
+
$forceUpdate: () => void;
|
|
1132
|
+
$nextTick: typeof import('vue').nextTick;
|
|
1133
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1134
|
+
} & Readonly<{
|
|
1135
|
+
labelWidth: string | number;
|
|
1136
|
+
labelPosition: "left" | "right" | "top";
|
|
1137
|
+
requireAsteriskPosition: "left" | "right";
|
|
1138
|
+
labelSuffix: string;
|
|
1139
|
+
showMessage: boolean;
|
|
1140
|
+
validateOnRuleChange: boolean;
|
|
1141
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1142
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
1143
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1144
|
+
}>, "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
1145
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1146
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1147
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1148
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1149
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
1150
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
1151
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
1152
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1153
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1154
|
+
$slots: {
|
|
1155
|
+
default?: (props: {}) => any;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
validate: () => Promise<void>;
|
|
1159
|
+
resetFields: () => void | undefined;
|
|
1160
|
+
trigger: (ctx: {
|
|
1161
|
+
confirm: (...args: any[]) => void;
|
|
1162
|
+
hide: (reason?: any) => void;
|
|
1163
|
+
block: () => void;
|
|
1164
|
+
}) => any;
|
|
1165
|
+
extractValues: () => Promise<Record<string, any>>;
|
|
1166
|
+
validateField: (key: string) => Promise<boolean | undefined>;
|
|
1167
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1168
|
+
"change-field": (payload: import('./types').VroElSchemaFormFieldEvent) => any;
|
|
1169
|
+
"input-field": (payload: import('./types').VroElSchemaFormFieldEvent) => any;
|
|
1170
|
+
}, string, {
|
|
1171
|
+
schema: VroElSchemaFormSchema;
|
|
1172
|
+
colProps: Partial<import('element-plus').ColProps>;
|
|
1173
|
+
formItemProps: Partial<import('element-plus').FormItemProps>;
|
|
1174
|
+
formProps: Partial<Omit<import('element-plus').FormProps, "rules" | "model">>;
|
|
1175
|
+
rowProps: Partial<import('element-plus').RowProps>;
|
|
1176
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1177
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1178
|
+
created?: (() => void) | (() => void)[];
|
|
1179
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1180
|
+
mounted?: (() => void) | (() => void)[];
|
|
1181
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1182
|
+
updated?: (() => void) | (() => void)[];
|
|
1183
|
+
activated?: (() => void) | (() => void)[];
|
|
1184
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1185
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1186
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1187
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1188
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1189
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
1190
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
1191
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1192
|
+
};
|
|
1193
|
+
$forceUpdate: () => void;
|
|
1194
|
+
$nextTick: typeof import('vue').nextTick;
|
|
1195
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1196
|
+
} & Readonly<{
|
|
1197
|
+
schema: VroElSchemaFormSchema;
|
|
1198
|
+
colProps: Partial<import('element-plus').ColProps>;
|
|
1199
|
+
formItemProps: Partial<import('element-plus').FormItemProps>;
|
|
1200
|
+
formProps: Partial<Omit<import('element-plus').FormProps, "rules" | "model">>;
|
|
1201
|
+
rowProps: Partial<import('element-plus').RowProps>;
|
|
1202
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
1203
|
+
formProps: {
|
|
1204
|
+
type: import('vue').PropType<import('./types').VroElSchemaFormFormProps>;
|
|
1205
|
+
default: () => {};
|
|
1206
|
+
};
|
|
1207
|
+
rowProps: {
|
|
1208
|
+
type: import('vue').PropType<Partial<import('element-plus').RowProps>>;
|
|
1209
|
+
default: () => {};
|
|
1210
|
+
};
|
|
1211
|
+
colProps: {
|
|
1212
|
+
type: import('vue').PropType<Partial<import('element-plus').ColProps>>;
|
|
1213
|
+
default: () => {};
|
|
1214
|
+
};
|
|
1215
|
+
formItemProps: {
|
|
1216
|
+
type: import('vue').PropType<Partial<import('element-plus').FormItemProps>>;
|
|
1217
|
+
default: () => {};
|
|
1218
|
+
};
|
|
1219
|
+
schema: {
|
|
1220
|
+
type: import('vue').PropType<VroElSchemaFormSchema>;
|
|
1221
|
+
default: () => {};
|
|
1222
|
+
};
|
|
1223
|
+
}>> & Readonly<{
|
|
1224
|
+
"onChange-field"?: ((payload: import('./types').VroElSchemaFormFieldEvent) => any) | undefined;
|
|
1225
|
+
"onInput-field"?: ((payload: import('./types').VroElSchemaFormFieldEvent) => any) | undefined;
|
|
1226
|
+
}>, "trigger" | "validate" | "validateField" | "resetFields" | ("schema" | "colProps" | "formItemProps" | "formProps" | "rowProps") | "elForm" | "extractValues"> & import('vue').ShallowUnwrapRef<{
|
|
1227
|
+
elForm: {
|
|
1228
|
+
$: import('vue').ComponentInternalInstance;
|
|
1229
|
+
$data: {};
|
|
1230
|
+
$props: {
|
|
1231
|
+
readonly model?: Record<string, any> | undefined;
|
|
1232
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
1233
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
1234
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
1235
|
+
readonly labelWidth?: string | number | undefined;
|
|
1236
|
+
readonly labelSuffix?: string | undefined;
|
|
1237
|
+
readonly inline?: boolean | undefined;
|
|
1238
|
+
readonly inlineMessage?: boolean | undefined;
|
|
1239
|
+
readonly statusIcon?: boolean | undefined;
|
|
1240
|
+
readonly showMessage?: boolean | undefined;
|
|
1241
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
1242
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
1243
|
+
readonly scrollToError?: boolean | undefined;
|
|
1244
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
1245
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
1246
|
+
readonly disabled?: boolean | undefined;
|
|
1247
|
+
readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
1248
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1249
|
+
$attrs: {
|
|
1250
|
+
[x: string]: unknown;
|
|
1251
|
+
};
|
|
1252
|
+
$refs: {
|
|
1253
|
+
[x: string]: unknown;
|
|
1254
|
+
};
|
|
1255
|
+
$slots: Readonly<{
|
|
1256
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
1257
|
+
}>;
|
|
1258
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
1259
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
1260
|
+
$host: Element | null;
|
|
1261
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
1262
|
+
$el: any;
|
|
1263
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
1264
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1265
|
+
}>, {
|
|
1266
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1267
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1268
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1269
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1270
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
1271
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
1272
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
1273
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1274
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1275
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
1276
|
+
}, string, {
|
|
1277
|
+
labelWidth: string | number;
|
|
1278
|
+
labelPosition: "left" | "right" | "top";
|
|
1279
|
+
requireAsteriskPosition: "left" | "right";
|
|
1280
|
+
labelSuffix: string;
|
|
1281
|
+
showMessage: boolean;
|
|
1282
|
+
validateOnRuleChange: boolean;
|
|
1283
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1284
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1285
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1286
|
+
created?: (() => void) | (() => void)[];
|
|
1287
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1288
|
+
mounted?: (() => void) | (() => void)[];
|
|
1289
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1290
|
+
updated?: (() => void) | (() => void)[];
|
|
1291
|
+
activated?: (() => void) | (() => void)[];
|
|
1292
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1293
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1294
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1295
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1296
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1297
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
1298
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
1299
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1300
|
+
};
|
|
1301
|
+
$forceUpdate: () => void;
|
|
1302
|
+
$nextTick: typeof import('vue').nextTick;
|
|
1303
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1304
|
+
} & Readonly<{
|
|
1305
|
+
labelWidth: string | number;
|
|
1306
|
+
labelPosition: "left" | "right" | "top";
|
|
1307
|
+
requireAsteriskPosition: "left" | "right";
|
|
1308
|
+
labelSuffix: string;
|
|
1309
|
+
showMessage: boolean;
|
|
1310
|
+
validateOnRuleChange: boolean;
|
|
1311
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1312
|
+
}> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
|
|
1313
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1314
|
+
}>, "labelWidth" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
1315
|
+
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1316
|
+
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
1317
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1318
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
1319
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
1320
|
+
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
1321
|
+
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
1322
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1323
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1324
|
+
$slots: {
|
|
1325
|
+
default?: (props: {}) => any;
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
validate: () => Promise<void>;
|
|
1329
|
+
resetFields: () => void | undefined;
|
|
1330
|
+
trigger: (ctx: {
|
|
1331
|
+
confirm: (...args: any[]) => void;
|
|
1332
|
+
hide: (reason?: any) => void;
|
|
1333
|
+
block: () => void;
|
|
1334
|
+
}) => any;
|
|
1335
|
+
extractValues: () => Promise<Record<string, any>>;
|
|
1336
|
+
validateField: (key: string) => Promise<boolean | undefined>;
|
|
1337
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1338
|
+
$slots: Readonly<import('./types').VroElSchemaFormSlots> & import('./types').VroElSchemaFormSlots;
|
|
1339
|
+
}) | null>>;
|
|
901
1340
|
loading: Ref<boolean, boolean>;
|
|
902
1341
|
trigger: () => Promise<void>;
|
|
903
1342
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import d from "../node_modules/.pnpm/@ajuanjs_banana@0.0.3/node_modules/@ajuanjs/banana/dist/index.js";
|
|
2
|
-
import { isFunction as p } from "@daysnap/utils";
|
|
2
|
+
import { isFunction as p, isString as g } from "@daysnap/utils";
|
|
3
3
|
import { useAsyncTask as v } from "@vrojs/use";
|
|
4
|
-
import { reactive as
|
|
5
|
-
function V(
|
|
6
|
-
const { instanceRef:
|
|
7
|
-
p(
|
|
8
|
-
), t =
|
|
4
|
+
import { reactive as h, useTemplateRef as y, onBeforeMount as F } from "vue";
|
|
5
|
+
function V(e, s, i = {}) {
|
|
6
|
+
const { instanceRef: r = "schemaFormRef", source: a, ...c } = i, o = h(
|
|
7
|
+
p(e) ? e() : e
|
|
8
|
+
), t = g(r) ? y(r) : r, { loading: u, trigger: m, error: f, data: l } = v(async () => {
|
|
9
9
|
if (!t.value)
|
|
10
10
|
return;
|
|
11
11
|
try {
|
|
@@ -13,18 +13,18 @@ function V(r, n, i = {}) {
|
|
|
13
13
|
} catch {
|
|
14
14
|
throw "";
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
return await
|
|
16
|
+
const n = await t.value.extractValues();
|
|
17
|
+
return await s?.(n), n;
|
|
18
18
|
}, c);
|
|
19
|
-
return
|
|
20
|
-
a && await d.assign(a,
|
|
19
|
+
return F(async () => {
|
|
20
|
+
a && await d.assign(a, o);
|
|
21
21
|
}), {
|
|
22
22
|
data: l,
|
|
23
|
-
error:
|
|
24
|
-
schema:
|
|
23
|
+
error: f,
|
|
24
|
+
schema: o,
|
|
25
25
|
schemaFormRef: t,
|
|
26
26
|
loading: u,
|
|
27
|
-
trigger:
|
|
27
|
+
trigger: m
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
export {
|