rx-compo 1.0.59 → 1.0.61
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/es/components/RxFormPlus/index.css +4 -0
- package/es/components/RxFormPlus/index.d.ts +4 -0
- package/es/components/RxFormPlus/index.js +1 -0
- package/es/components/RxFormPlus/src/RxFormPlus.d.ts +66 -0
- package/es/components/RxFormPlus/src/RxFormPlus.vue.d.ts +364 -0
- package/es/components/RxFormPlus/src/componentMap.d.ts +12 -0
- package/es/components/RxFormPlus/src/components/checkbox-group.vue.d.ts +25 -0
- package/es/components/RxFormPlus/src/components/form-component.vue.d.ts +29 -0
- package/es/components/RxFormPlus/src/components/form-item.vue.d.ts +28 -0
- package/es/components/RxFormPlus/src/components/form-select.vue.d.ts +20 -0
- package/es/components/RxFormPlus/src/components/input-group.vue.d.ts +36 -0
- package/es/components/RxFormPlus/src/components/radio-group.vue.d.ts +25 -0
- package/es/components/RxFormPlus/src/components/select-input.vue.d.ts +52 -0
- package/es/components/RxFormPlus/src/components/upload.vue.d.ts +61 -0
- package/es/components/RxFormPlus/src/hooks/screens.d.ts +6 -0
- package/es/components/RxFormPlus/src/is.d.ts +3 -0
- package/es/components/RxFormPlus/src/setting/screens.d.ts +3 -0
- package/es/components/RxFormPlus/src/utils.d.ts +24 -0
- package/es/components/RxInput/index.js +1 -1
- package/es/components/RxInput/src/RxInput.d.ts +1 -1
- package/es/components/RxInput/src/RxInput.vue.d.ts +3 -3
- package/es/components/RxSelect/index.js +1 -1
- package/es/components/RxSelect/src/RxSelect.d.ts +4 -0
- package/es/components/RxSelect/src/RxSelect.vue.d.ts +9 -0
- package/es/components/RxSelectPlus/index.js +1 -1
- package/es/components/RxSuperCondition/index.js +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -1
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/lib/components/RxFormPlus/index.css +4 -0
- package/lib/components/RxFormPlus/index.d.ts +4 -0
- package/lib/components/RxFormPlus/index.js +1 -0
- package/lib/components/RxFormPlus/src/RxFormPlus.d.ts +66 -0
- package/lib/components/RxFormPlus/src/RxFormPlus.vue.d.ts +364 -0
- package/lib/components/RxFormPlus/src/componentMap.d.ts +12 -0
- package/lib/components/RxFormPlus/src/components/checkbox-group.vue.d.ts +25 -0
- package/lib/components/RxFormPlus/src/components/form-component.vue.d.ts +29 -0
- package/lib/components/RxFormPlus/src/components/form-item.vue.d.ts +28 -0
- package/lib/components/RxFormPlus/src/components/form-select.vue.d.ts +20 -0
- package/lib/components/RxFormPlus/src/components/input-group.vue.d.ts +36 -0
- package/lib/components/RxFormPlus/src/components/radio-group.vue.d.ts +25 -0
- package/lib/components/RxFormPlus/src/components/select-input.vue.d.ts +52 -0
- package/lib/components/RxFormPlus/src/components/upload.vue.d.ts +61 -0
- package/lib/components/RxFormPlus/src/hooks/screens.d.ts +6 -0
- package/lib/components/RxFormPlus/src/is.d.ts +3 -0
- package/lib/components/RxFormPlus/src/setting/screens.d.ts +3 -0
- package/lib/components/RxFormPlus/src/utils.d.ts +24 -0
- package/lib/components/RxInput/index.js +1 -1
- package/lib/components/RxInput/src/RxInput.d.ts +1 -1
- package/lib/components/RxInput/src/RxInput.vue.d.ts +3 -3
- package/lib/components/RxSelect/index.js +1 -1
- package/lib/components/RxSelect/src/RxSelect.d.ts +4 -0
- package/lib/components/RxSelect/src/RxSelect.vue.d.ts +9 -0
- package/lib/components/RxSelectPlus/index.js +1 -1
- package/lib/components/RxSuperCondition/index.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -1
- package/package.json +3 -2
- package/theme-chalk/components-style.css +4 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/rx-form-pack.css +0 -0
- package/theme-chalk/rx-form-plus.css +1 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ExtractInnerPropTypes, ExtractPublicPropTypes } from 'rx-compo/es/utils';
|
|
2
|
+
import { DefineComponent, PropType } from 'vue';
|
|
3
|
+
import { ColProps, FormItemSchema } from './types';
|
|
4
|
+
declare type ElComponentSize = 'large' | 'default' | 'small';
|
|
5
|
+
export declare const RxFormPlusProps: {
|
|
6
|
+
fields: {
|
|
7
|
+
type: PropType<FormItemSchema<any>[]>;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
rules: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
gutter: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
baseColProps: {
|
|
19
|
+
type: PropType<ColProps>;
|
|
20
|
+
default: () => ColProps;
|
|
21
|
+
};
|
|
22
|
+
actionColProps: PropType<ColProps>;
|
|
23
|
+
actionColStyle: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
actionAlign: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
actionLabelWidth: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
justify: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
hideLabel: BooleanConstructor;
|
|
37
|
+
advanceLines: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
submitLoading: BooleanConstructor;
|
|
42
|
+
resetLoading: BooleanConstructor;
|
|
43
|
+
submitLabel: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
resetLabel: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
showSubmitButton: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
showResetButton: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
size: PropType<ElComponentSize>;
|
|
60
|
+
extraData: ObjectConstructor;
|
|
61
|
+
noGrid: BooleanConstructor;
|
|
62
|
+
};
|
|
63
|
+
export declare type RxFormPlusProps = ExtractInnerPropTypes<typeof RxFormPlusProps>;
|
|
64
|
+
export declare type RxFormPlusPublicProps = ExtractPublicPropTypes<typeof RxFormPlusProps>;
|
|
65
|
+
export declare type RxFormPlusComponent = DefineComponent<keyof RxFormPlusPublicProps> & RxFormPlusPublicProps;
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { FormItemSchema } from './types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
fields: {
|
|
4
|
+
type: import("vue").PropType<FormItemSchema<any>[]>;
|
|
5
|
+
default: () => any[];
|
|
6
|
+
};
|
|
7
|
+
rules: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
gutter: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
baseColProps: {
|
|
16
|
+
type: import("vue").PropType<import("./types").ColProps>;
|
|
17
|
+
default: () => import("./types").ColProps;
|
|
18
|
+
};
|
|
19
|
+
actionColProps: import("vue").PropType<import("./types").ColProps>;
|
|
20
|
+
actionColStyle: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
actionAlign: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
actionLabelWidth: (StringConstructor | NumberConstructor)[];
|
|
29
|
+
justify: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
hideLabel: BooleanConstructor;
|
|
34
|
+
advanceLines: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
submitLoading: BooleanConstructor;
|
|
39
|
+
resetLoading: BooleanConstructor;
|
|
40
|
+
submitLabel: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
resetLabel: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
showSubmitButton: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
showResetButton: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
size: import("vue").PropType<"default" | "small" | "large">;
|
|
57
|
+
extraData: ObjectConstructor;
|
|
58
|
+
noGrid: BooleanConstructor;
|
|
59
|
+
}, {
|
|
60
|
+
formRef: import("vue").Ref<{
|
|
61
|
+
$: import("vue").ComponentInternalInstance;
|
|
62
|
+
$data: {};
|
|
63
|
+
$props: Partial<{
|
|
64
|
+
size: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "small" | "large", unknown>;
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
rules: Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>;
|
|
67
|
+
labelWidth: import("element-plus/es/utils").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
68
|
+
labelSuffix: string;
|
|
69
|
+
showMessage: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
70
|
+
validateOnRuleChange: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
71
|
+
hideRequiredAsterisk: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
72
|
+
inline: boolean;
|
|
73
|
+
inlineMessage: boolean;
|
|
74
|
+
statusIcon: boolean;
|
|
75
|
+
scrollToError: boolean;
|
|
76
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
77
|
+
readonly model: ObjectConstructor;
|
|
78
|
+
readonly rules: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>, unknown, unknown, unknown, unknown>;
|
|
79
|
+
readonly labelPosition: StringConstructor;
|
|
80
|
+
readonly labelWidth: import("element-plus/es/utils").BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
|
|
81
|
+
readonly labelSuffix: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
82
|
+
readonly inline: BooleanConstructor;
|
|
83
|
+
readonly inlineMessage: BooleanConstructor;
|
|
84
|
+
readonly statusIcon: BooleanConstructor;
|
|
85
|
+
readonly showMessage: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
86
|
+
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "default" | "small" | "large", unknown>;
|
|
87
|
+
readonly disabled: BooleanConstructor;
|
|
88
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
89
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
90
|
+
readonly scrollToError: BooleanConstructor;
|
|
91
|
+
}>> & {
|
|
92
|
+
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
93
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "disabled" | "rules" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
94
|
+
$attrs: {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
$refs: {
|
|
98
|
+
[x: string]: unknown;
|
|
99
|
+
};
|
|
100
|
+
$slots: Readonly<{
|
|
101
|
+
[name: string]: import("vue").Slot;
|
|
102
|
+
}>;
|
|
103
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
104
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
105
|
+
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
106
|
+
$el: any;
|
|
107
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
108
|
+
readonly model: ObjectConstructor;
|
|
109
|
+
readonly rules: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>, unknown, unknown, unknown, unknown>;
|
|
110
|
+
readonly labelPosition: StringConstructor;
|
|
111
|
+
readonly labelWidth: import("element-plus/es/utils").BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
|
|
112
|
+
readonly labelSuffix: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
113
|
+
readonly inline: BooleanConstructor;
|
|
114
|
+
readonly inlineMessage: BooleanConstructor;
|
|
115
|
+
readonly statusIcon: BooleanConstructor;
|
|
116
|
+
readonly showMessage: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
117
|
+
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "default" | "small" | "large", unknown>;
|
|
118
|
+
readonly disabled: BooleanConstructor;
|
|
119
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
120
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
121
|
+
readonly scrollToError: BooleanConstructor;
|
|
122
|
+
}>> & {
|
|
123
|
+
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
124
|
+
}, {
|
|
125
|
+
COMPONENT_NAME: string;
|
|
126
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
127
|
+
readonly model: ObjectConstructor;
|
|
128
|
+
readonly rules: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>, unknown, unknown, unknown, unknown>;
|
|
129
|
+
readonly labelPosition: StringConstructor;
|
|
130
|
+
readonly labelWidth: import("element-plus/es/utils").BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
|
|
131
|
+
readonly labelSuffix: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
132
|
+
readonly inline: BooleanConstructor;
|
|
133
|
+
readonly inlineMessage: BooleanConstructor;
|
|
134
|
+
readonly statusIcon: BooleanConstructor;
|
|
135
|
+
readonly showMessage: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
136
|
+
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "default" | "small" | "large", unknown>;
|
|
137
|
+
readonly disabled: BooleanConstructor;
|
|
138
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
139
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
140
|
+
readonly scrollToError: BooleanConstructor;
|
|
141
|
+
}>> & {
|
|
142
|
+
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
143
|
+
}>>;
|
|
144
|
+
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
145
|
+
fields: import("element-plus").FormItemContext[];
|
|
146
|
+
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
147
|
+
ns: {
|
|
148
|
+
namespace: import("vue").ComputedRef<string>;
|
|
149
|
+
b: (blockSuffix?: string) => string;
|
|
150
|
+
e: (element?: string) => string;
|
|
151
|
+
m: (modifier?: string) => string;
|
|
152
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
153
|
+
em: (element?: string, modifier?: string) => string;
|
|
154
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
155
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
156
|
+
is: {
|
|
157
|
+
(name: string, state: boolean): string;
|
|
158
|
+
(name: string): string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
formClasses: import("vue").ComputedRef<(string | {
|
|
162
|
+
[x: string]: string | boolean;
|
|
163
|
+
})[]>;
|
|
164
|
+
addField: (field: import("element-plus").FormItemContext) => void;
|
|
165
|
+
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
166
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
167
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
168
|
+
isValidatable: import("vue").ComputedRef<boolean>;
|
|
169
|
+
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
170
|
+
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
171
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
172
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
173
|
+
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
174
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
175
|
+
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
176
|
+
}, string, {
|
|
177
|
+
size: import("element-plus/es/utils").BuildPropType<StringConstructor, "" | "default" | "small" | "large", unknown>;
|
|
178
|
+
disabled: boolean;
|
|
179
|
+
rules: Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>;
|
|
180
|
+
labelWidth: import("element-plus/es/utils").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
181
|
+
labelSuffix: string;
|
|
182
|
+
showMessage: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
183
|
+
validateOnRuleChange: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
184
|
+
hideRequiredAsterisk: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
185
|
+
inline: boolean;
|
|
186
|
+
inlineMessage: boolean;
|
|
187
|
+
statusIcon: boolean;
|
|
188
|
+
scrollToError: boolean;
|
|
189
|
+
}> & {
|
|
190
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
191
|
+
created?: (() => void) | (() => void)[];
|
|
192
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
193
|
+
mounted?: (() => void) | (() => void)[];
|
|
194
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
195
|
+
updated?: (() => void) | (() => void)[];
|
|
196
|
+
activated?: (() => void) | (() => void)[];
|
|
197
|
+
deactivated?: (() => void) | (() => void)[];
|
|
198
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
199
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
200
|
+
destroyed?: (() => void) | (() => void)[];
|
|
201
|
+
unmounted?: (() => void) | (() => void)[];
|
|
202
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
203
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
204
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
205
|
+
};
|
|
206
|
+
$forceUpdate: () => void;
|
|
207
|
+
$nextTick: typeof import("vue").nextTick;
|
|
208
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
209
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
210
|
+
readonly model: ObjectConstructor;
|
|
211
|
+
readonly rules: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>, unknown, unknown, unknown, unknown>;
|
|
212
|
+
readonly labelPosition: StringConstructor;
|
|
213
|
+
readonly labelWidth: import("element-plus/es/utils").BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
|
|
214
|
+
readonly labelSuffix: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
215
|
+
readonly inline: BooleanConstructor;
|
|
216
|
+
readonly inlineMessage: BooleanConstructor;
|
|
217
|
+
readonly statusIcon: BooleanConstructor;
|
|
218
|
+
readonly showMessage: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
219
|
+
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "default" | "small" | "large", unknown>;
|
|
220
|
+
readonly disabled: BooleanConstructor;
|
|
221
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
222
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
223
|
+
readonly scrollToError: BooleanConstructor;
|
|
224
|
+
}>> & {
|
|
225
|
+
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
226
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
227
|
+
COMPONENT_NAME: string;
|
|
228
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
229
|
+
readonly model: ObjectConstructor;
|
|
230
|
+
readonly rules: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>, unknown, unknown, unknown, unknown>;
|
|
231
|
+
readonly labelPosition: StringConstructor;
|
|
232
|
+
readonly labelWidth: import("element-plus/es/utils").BuildPropReturn<readonly [StringConstructor, NumberConstructor], "", unknown, unknown, unknown>;
|
|
233
|
+
readonly labelSuffix: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
234
|
+
readonly inline: BooleanConstructor;
|
|
235
|
+
readonly inlineMessage: BooleanConstructor;
|
|
236
|
+
readonly statusIcon: BooleanConstructor;
|
|
237
|
+
readonly showMessage: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
238
|
+
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "default" | "small" | "large", unknown>;
|
|
239
|
+
readonly disabled: BooleanConstructor;
|
|
240
|
+
readonly validateOnRuleChange: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
241
|
+
readonly hideRequiredAsterisk: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
242
|
+
readonly scrollToError: BooleanConstructor;
|
|
243
|
+
}>> & {
|
|
244
|
+
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
245
|
+
}>>;
|
|
246
|
+
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
247
|
+
fields: import("element-plus").FormItemContext[];
|
|
248
|
+
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
249
|
+
ns: {
|
|
250
|
+
namespace: import("vue").ComputedRef<string>;
|
|
251
|
+
b: (blockSuffix?: string) => string;
|
|
252
|
+
e: (element?: string) => string;
|
|
253
|
+
m: (modifier?: string) => string;
|
|
254
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
255
|
+
em: (element?: string, modifier?: string) => string;
|
|
256
|
+
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
257
|
+
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
258
|
+
is: {
|
|
259
|
+
(name: string, state: boolean): string;
|
|
260
|
+
(name: string): string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
formClasses: import("vue").ComputedRef<(string | {
|
|
264
|
+
[x: string]: string | boolean;
|
|
265
|
+
})[]>;
|
|
266
|
+
addField: (field: import("element-plus").FormItemContext) => void;
|
|
267
|
+
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
268
|
+
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
269
|
+
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
270
|
+
isValidatable: import("vue").ComputedRef<boolean>;
|
|
271
|
+
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
272
|
+
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
273
|
+
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
274
|
+
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
275
|
+
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
276
|
+
}> & {} & import("vue").ComponentCustomProperties>;
|
|
277
|
+
submit: () => Promise<void>;
|
|
278
|
+
reset: () => Promise<void>;
|
|
279
|
+
formModel: import("vue").Ref<import("./types").Recordable<any>>;
|
|
280
|
+
isExpand: import("vue").Ref<boolean>;
|
|
281
|
+
advanceIndex: import("vue").ComputedRef<number>;
|
|
282
|
+
isHide: ({ hide }: FormItemSchema) => any;
|
|
283
|
+
isColHide: ({ colHide }: FormItemSchema) => any;
|
|
284
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "reset" | "beforeSubmit" | "onValidateError")[], "submit" | "reset" | "beforeSubmit" | "onValidateError", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
285
|
+
fields: {
|
|
286
|
+
type: import("vue").PropType<FormItemSchema<any>[]>;
|
|
287
|
+
default: () => any[];
|
|
288
|
+
};
|
|
289
|
+
rules: {
|
|
290
|
+
type: ObjectConstructor;
|
|
291
|
+
default: any;
|
|
292
|
+
};
|
|
293
|
+
gutter: {
|
|
294
|
+
type: NumberConstructor;
|
|
295
|
+
default: number;
|
|
296
|
+
};
|
|
297
|
+
baseColProps: {
|
|
298
|
+
type: import("vue").PropType<import("./types").ColProps>;
|
|
299
|
+
default: () => import("./types").ColProps;
|
|
300
|
+
};
|
|
301
|
+
actionColProps: import("vue").PropType<import("./types").ColProps>;
|
|
302
|
+
actionColStyle: {
|
|
303
|
+
type: StringConstructor;
|
|
304
|
+
default: string;
|
|
305
|
+
};
|
|
306
|
+
actionAlign: {
|
|
307
|
+
type: StringConstructor;
|
|
308
|
+
default: string;
|
|
309
|
+
};
|
|
310
|
+
actionLabelWidth: (StringConstructor | NumberConstructor)[];
|
|
311
|
+
justify: {
|
|
312
|
+
type: StringConstructor;
|
|
313
|
+
default: string;
|
|
314
|
+
};
|
|
315
|
+
hideLabel: BooleanConstructor;
|
|
316
|
+
advanceLines: {
|
|
317
|
+
type: NumberConstructor;
|
|
318
|
+
default: number;
|
|
319
|
+
};
|
|
320
|
+
submitLoading: BooleanConstructor;
|
|
321
|
+
resetLoading: BooleanConstructor;
|
|
322
|
+
submitLabel: {
|
|
323
|
+
type: StringConstructor;
|
|
324
|
+
default: string;
|
|
325
|
+
};
|
|
326
|
+
resetLabel: {
|
|
327
|
+
type: StringConstructor;
|
|
328
|
+
default: string;
|
|
329
|
+
};
|
|
330
|
+
showSubmitButton: {
|
|
331
|
+
type: BooleanConstructor;
|
|
332
|
+
default: boolean;
|
|
333
|
+
};
|
|
334
|
+
showResetButton: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
size: import("vue").PropType<"default" | "small" | "large">;
|
|
339
|
+
extraData: ObjectConstructor;
|
|
340
|
+
noGrid: BooleanConstructor;
|
|
341
|
+
}>> & {
|
|
342
|
+
onSubmit?: (...args: any[]) => any;
|
|
343
|
+
onReset?: (...args: any[]) => any;
|
|
344
|
+
onBeforeSubmit?: (...args: any[]) => any;
|
|
345
|
+
onOnValidateError?: (...args: any[]) => any;
|
|
346
|
+
}, {
|
|
347
|
+
rules: Record<string, any>;
|
|
348
|
+
hideLabel: boolean;
|
|
349
|
+
gutter: number;
|
|
350
|
+
justify: string;
|
|
351
|
+
fields: FormItemSchema<any>[];
|
|
352
|
+
baseColProps: import("./types").ColProps;
|
|
353
|
+
actionColStyle: string;
|
|
354
|
+
actionAlign: string;
|
|
355
|
+
advanceLines: number;
|
|
356
|
+
submitLoading: boolean;
|
|
357
|
+
resetLoading: boolean;
|
|
358
|
+
submitLabel: string;
|
|
359
|
+
resetLabel: string;
|
|
360
|
+
showSubmitButton: boolean;
|
|
361
|
+
showResetButton: boolean;
|
|
362
|
+
noGrid: boolean;
|
|
363
|
+
}>;
|
|
364
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ComponentType } from './types';
|
|
3
|
+
export declare const componentMap: Map<ComponentType, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
4
|
+
export declare function add(compName: ComponentType, component: Component): void;
|
|
5
|
+
export declare function del(compName: ComponentType): void;
|
|
6
|
+
declare function get(compName?: ComponentType): Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | ComponentType;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
add: typeof add;
|
|
9
|
+
del: typeof del;
|
|
10
|
+
get: typeof get;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { SelectOption } from '../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
options: {
|
|
5
|
+
type: PropType<SelectOption<unknown>[]>;
|
|
6
|
+
default: () => any[];
|
|
7
|
+
};
|
|
8
|
+
isButton: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
options: {
|
|
14
|
+
type: PropType<SelectOption<unknown>[]>;
|
|
15
|
+
default: () => any[];
|
|
16
|
+
};
|
|
17
|
+
isButton: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>>, {
|
|
22
|
+
options: SelectOption<unknown>[];
|
|
23
|
+
isButton: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormItemSchema, Recordable } from '../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
modelValue: any;
|
|
5
|
+
schema: {
|
|
6
|
+
type: PropType<FormItemSchema<any>>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
label: StringConstructor;
|
|
10
|
+
}, {
|
|
11
|
+
component: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../types").ComponentType;
|
|
12
|
+
propsSlots: import("vue").ComputedRef<Recordable<Function>>;
|
|
13
|
+
componentProps: import("vue").ComputedRef<{
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
[x: number]: any;
|
|
16
|
+
}>;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelValue: any;
|
|
19
|
+
schema: {
|
|
20
|
+
type: PropType<FormItemSchema<any>>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
label: StringConstructor;
|
|
24
|
+
}>> & {
|
|
25
|
+
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
26
|
+
}, {
|
|
27
|
+
modelValue: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComputedRef, PropType } from 'vue';
|
|
2
|
+
import { FormItemSchema, Recordable } from '../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
modelValue: any;
|
|
5
|
+
schema: {
|
|
6
|
+
type: PropType<FormItemSchema<any>>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
hideLabel: BooleanConstructor;
|
|
10
|
+
model: PropType<Recordable<any>>;
|
|
11
|
+
}, {
|
|
12
|
+
label: ComputedRef<string>;
|
|
13
|
+
showMessage: ComputedRef<boolean>;
|
|
14
|
+
tooltip: ComputedRef<string>;
|
|
15
|
+
formItemSlots: ComputedRef<Recordable<Function>>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
modelValue: any;
|
|
18
|
+
schema: {
|
|
19
|
+
type: PropType<FormItemSchema<any>>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
hideLabel: BooleanConstructor;
|
|
23
|
+
model: PropType<Recordable<any>>;
|
|
24
|
+
}>>, {
|
|
25
|
+
modelValue: any;
|
|
26
|
+
hideLabel: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
options: (ObjectConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
3
|
+
immediate: BooleanConstructor;
|
|
4
|
+
}, {
|
|
5
|
+
calcOptions: import("vue").Ref<{
|
|
6
|
+
value: any;
|
|
7
|
+
label: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
children?: any[];
|
|
10
|
+
}[]>;
|
|
11
|
+
remote: import("vue").ComputedRef<true>;
|
|
12
|
+
filterable: import("vue").ComputedRef<true>;
|
|
13
|
+
remoteMethod: import("vue").ComputedRef<(value?: string) => Promise<void>>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
options: (ObjectConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
16
|
+
immediate: BooleanConstructor;
|
|
17
|
+
}>>, {
|
|
18
|
+
immediate: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
length: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: () => any[];
|
|
10
|
+
};
|
|
11
|
+
placeholder: {
|
|
12
|
+
type: PropType<string[]>;
|
|
13
|
+
default: () => any[];
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
values: import("vue").WritableComputedRef<unknown[]>;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
length: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
default: () => any[];
|
|
25
|
+
};
|
|
26
|
+
placeholder: {
|
|
27
|
+
type: PropType<string[]>;
|
|
28
|
+
default: () => any[];
|
|
29
|
+
};
|
|
30
|
+
}>> & {
|
|
31
|
+
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
32
|
+
}, {
|
|
33
|
+
modelValue: unknown[];
|
|
34
|
+
placeholder: string[];
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { SelectOption } from '../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
isButton: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
type: PropType<SelectOption<unknown>[]>;
|
|
10
|
+
default: () => any[];
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
isButton: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
options: {
|
|
18
|
+
type: PropType<SelectOption<unknown>[]>;
|
|
19
|
+
default: () => any[];
|
|
20
|
+
};
|
|
21
|
+
}>>, {
|
|
22
|
+
options: SelectOption<unknown>[];
|
|
23
|
+
isButton: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|