@funcho/ui 1.1.14 → 1.1.17
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/README.md +3 -0
- package/dist/cjs/business/DataTable/DataTable.vue.js +6 -0
- package/dist/cjs/business/EditFormCard/EditFormCard.vue.js +239 -0
- package/dist/cjs/business/EditFormCard/EditFormCard.vue3.js +10 -0
- package/dist/cjs/business/EditFormCard/index.js +12 -0
- package/dist/cjs/business/FormDialog/FormDialog.vue.js +129 -0
- package/dist/cjs/business/FormDialog/FormDialog.vue3.js +10 -0
- package/dist/cjs/business/FormDialog/index.js +12 -0
- package/dist/cjs/business/ProForm/ProForm.vue.js +45 -8
- package/dist/cjs/business/SidebarMainLayout/SidebarMainLayout.vue.js +1 -0
- package/dist/cjs/business/TreeCheckFilter/TreeCheckFilter.vue.js +1 -0
- package/dist/cjs/business/TreeTransfer/TreeTransfer.vue.js +1 -0
- package/dist/cjs/business/index.js +4 -0
- package/dist/cjs/components/Button/DangerButton.vue.js +2 -2
- package/dist/cjs/components/Cascader/Cascader.vue.js +3 -1
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup.vue.js +3 -1
- package/dist/cjs/components/Dropdown/Dropdown.vue.js +3 -1
- package/dist/cjs/components/LovText/LovText.vue.js +61 -0
- package/dist/cjs/components/LovText/LovText.vue3.js +10 -0
- package/dist/cjs/components/LovText/index.js +12 -0
- package/dist/cjs/components/Radio/Radio.vue.js +3 -1
- package/dist/cjs/components/Select/Select.vue.js +3 -1
- package/dist/cjs/components/index.js +2 -0
- package/dist/cjs/index.js +22 -16
- package/dist/cjs/packages/ui/package.json.js +1 -1
- package/dist/esm/business/DataTable/DataTable.vue.mjs +6 -0
- package/dist/esm/business/EditFormCard/EditFormCard.vue.mjs +235 -0
- package/dist/esm/business/EditFormCard/EditFormCard.vue3.mjs +6 -0
- package/dist/esm/business/EditFormCard/index.mjs +7 -0
- package/dist/esm/business/FormDialog/FormDialog.vue.mjs +125 -0
- package/dist/esm/business/FormDialog/FormDialog.vue3.mjs +6 -0
- package/dist/esm/business/FormDialog/index.mjs +7 -0
- package/dist/esm/business/ProForm/ProForm.vue.mjs +46 -9
- package/dist/esm/business/SidebarMainLayout/SidebarMainLayout.vue.mjs +1 -0
- package/dist/esm/business/TreeCheckFilter/TreeCheckFilter.vue.mjs +1 -0
- package/dist/esm/business/TreeTransfer/TreeTransfer.vue.mjs +1 -0
- package/dist/esm/business/index.mjs +2 -0
- package/dist/esm/components/Button/DangerButton.vue.mjs +2 -2
- package/dist/esm/components/Cascader/Cascader.vue.mjs +3 -1
- package/dist/esm/components/CheckboxGroup/CheckboxGroup.vue.mjs +3 -1
- package/dist/esm/components/Dropdown/Dropdown.vue.mjs +3 -1
- package/dist/esm/components/LovText/LovText.vue.mjs +57 -0
- package/dist/esm/components/LovText/LovText.vue3.mjs +6 -0
- package/dist/esm/components/LovText/index.mjs +7 -0
- package/dist/esm/components/Radio/Radio.vue.mjs +3 -1
- package/dist/esm/components/Select/Select.vue.mjs +3 -1
- package/dist/esm/components/index.mjs +1 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/packages/ui/package.json.mjs +1 -1
- package/dist/style.css +14 -3
- package/dist/types/business/DataTable/DataTable.vue.d.ts +438 -1208
- package/dist/types/business/DataTable/index.d.ts +438 -1208
- package/dist/types/business/EditFormCard/EditFormCard.types.d.ts +1 -0
- package/dist/types/business/EditFormCard/EditFormCard.vue.d.ts +1169 -0
- package/dist/types/business/EditFormCard/index.d.ts +1569 -0
- package/dist/types/business/FormDialog/FormDialog.types.d.ts +1 -0
- package/dist/types/business/FormDialog/FormDialog.vue.d.ts +1006 -0
- package/dist/types/business/FormDialog/index.d.ts +1077 -0
- package/dist/types/business/ProForm/ProForm.types.d.ts +9 -0
- package/dist/types/business/ProForm/ProForm.vue.d.ts +37 -422
- package/dist/types/business/ProForm/index.d.ts +236 -1391
- package/dist/types/business/index.d.ts +2 -0
- package/dist/types/components/Cascader/Cascader.vue.d.ts +2 -0
- package/dist/types/components/Cascader/CascaderCheck.vue.d.ts +16 -2
- package/dist/types/components/Cascader/CascaderEnd.vue.d.ts +16 -2
- package/dist/types/components/Cascader/CascaderMultiple.vue.d.ts +16 -2
- package/dist/types/components/Cascader/index.d.ts +60 -3
- package/dist/types/components/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -0
- package/dist/types/components/CheckboxGroup/index.d.ts +6 -0
- package/dist/types/components/DatePicker/BzDatePicker.vue.d.ts +9 -1
- package/dist/types/components/DatePicker/DatePicker.vue.d.ts +4 -0
- package/dist/types/components/DatePicker/DatePickerRanger.vue.d.ts +27 -3
- package/dist/types/components/DatePicker/DateTimePicker.vue.d.ts +26 -2
- package/dist/types/components/DatePicker/DateTimePickerRanger.vue.d.ts +27 -3
- package/dist/types/components/DatePicker/index.d.ts +126 -10
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/dist/types/components/Dropdown/index.d.ts +6 -0
- package/dist/types/components/LovText/LovText.types.d.ts +1 -0
- package/dist/types/components/LovText/LovText.vue.d.ts +13 -0
- package/dist/types/components/LovText/index.d.ts +45 -0
- package/dist/types/components/Menu/Menu.vue.d.ts +4 -0
- package/dist/types/components/Menu/index.d.ts +12 -0
- package/dist/types/components/Radio/Radio.vue.d.ts +2 -0
- package/dist/types/components/Radio/index.d.ts +6 -0
- package/dist/types/components/Select/Select.vue.d.ts +2 -0
- package/dist/types/components/Select/SelectAllowCreateSelect.vue.d.ts +12 -2
- package/dist/types/components/Select/SelectMultiple.vue.d.ts +12 -2
- package/dist/types/components/Select/index.d.ts +18 -2
- package/dist/types/components/Table/Table.vue.d.ts +6 -6
- package/dist/types/components/Text/Text.vue.d.ts +1 -81
- package/dist/types/components/Text/index.d.ts +3 -243
- package/dist/types/components/TimePicker/TimePicker.vue.d.ts +4 -0
- package/dist/types/components/TimePicker/index.d.ts +12 -0
- package/dist/types/components/TreeSelect/TreeSelect.vue.d.ts +2 -500
- package/dist/types/components/TreeSelect/index.d.ts +27 -1521
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +6 -4
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { ComponentsMap } from './componentsMap';
|
|
2
2
|
import { Ref, VNode } from 'vue';
|
|
3
|
+
import { FormInstance, FormRules } from 'element-plus';
|
|
3
4
|
export type TProFormField = {
|
|
4
5
|
span?: number | 'full';
|
|
5
6
|
prop: string;
|
|
6
7
|
label: string;
|
|
8
|
+
tooltip?: string;
|
|
7
9
|
type?: (typeof ComponentsMap)[keyof typeof ComponentsMap]['name'];
|
|
8
10
|
attrs?: Record<string, any>;
|
|
9
11
|
render?: (model: Ref<any>, prop: string, label: string) => VNode;
|
|
10
12
|
};
|
|
11
13
|
export type TProFormProps = {
|
|
12
14
|
inline?: boolean;
|
|
15
|
+
columns?: number | 'auto-fill' | 'auto-fit';
|
|
13
16
|
labelPosition?: 'top' | 'left' | 'right';
|
|
17
|
+
labelWidth?: string | number;
|
|
14
18
|
fields: Array<TProFormField>;
|
|
19
|
+
rules?: FormRules;
|
|
20
|
+
};
|
|
21
|
+
export type ProFormInstance = FormInstance & {
|
|
22
|
+
setValues: (data: Record<string, any>) => void;
|
|
23
|
+
model: any;
|
|
15
24
|
};
|
|
@@ -2,7 +2,7 @@ import { TProFormProps } from './ProForm.types';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<TProFormProps, {
|
|
3
3
|
$: import('vue').ComponentInternalInstance;
|
|
4
4
|
$data: {};
|
|
5
|
-
$props: Partial<{
|
|
5
|
+
$props: Partial<{
|
|
6
6
|
labelWidth: string | number;
|
|
7
7
|
labelPosition: "left" | "right" | "top";
|
|
8
8
|
requireAsteriskPosition: "left" | "right";
|
|
@@ -34,422 +34,18 @@ declare const _default: import('vue').DefineComponent<TProFormProps, {
|
|
|
34
34
|
};
|
|
35
35
|
$refs: {
|
|
36
36
|
[x: string]: unknown;
|
|
37
|
-
} & {
|
|
38
|
-
elRef: ({
|
|
39
|
-
$: import('vue').ComponentInternalInstance;
|
|
40
|
-
$data: {};
|
|
41
|
-
$props: Partial<{
|
|
42
|
-
labelWidth: string | number;
|
|
43
|
-
labelPosition: "left" | "right" | "top";
|
|
44
|
-
requireAsteriskPosition: "left" | "right";
|
|
45
|
-
labelSuffix: string;
|
|
46
|
-
showMessage: boolean;
|
|
47
|
-
validateOnRuleChange: boolean;
|
|
48
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
49
|
-
}> & Omit<{
|
|
50
|
-
readonly labelPosition: "left" | "right" | "top";
|
|
51
|
-
readonly requireAsteriskPosition: "left" | "right";
|
|
52
|
-
readonly labelWidth: string | number;
|
|
53
|
-
readonly labelSuffix: string;
|
|
54
|
-
readonly showMessage: boolean;
|
|
55
|
-
readonly validateOnRuleChange: boolean;
|
|
56
|
-
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
57
|
-
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
58
|
-
readonly disabled?: boolean | undefined;
|
|
59
|
-
readonly model?: Record<string, any> | undefined;
|
|
60
|
-
readonly rules?: import('element-plus').FormRules | undefined;
|
|
61
|
-
readonly inline?: boolean | undefined;
|
|
62
|
-
readonly inlineMessage?: boolean | undefined;
|
|
63
|
-
readonly statusIcon?: boolean | undefined;
|
|
64
|
-
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
65
|
-
readonly scrollToError?: boolean | undefined;
|
|
66
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
67
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
|
|
68
|
-
$attrs: {
|
|
69
|
-
[x: string]: unknown;
|
|
70
|
-
};
|
|
71
|
-
$refs: {
|
|
72
|
-
[x: string]: unknown;
|
|
73
|
-
};
|
|
74
|
-
$slots: Readonly<{
|
|
75
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
76
|
-
}>;
|
|
77
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
78
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
79
|
-
$host: Element | null;
|
|
80
|
-
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
81
|
-
$el: any;
|
|
82
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
83
|
-
size: {
|
|
84
|
-
type: import('vue').PropType<"" | "default" | "small" | "large">;
|
|
85
|
-
};
|
|
86
|
-
disabled: {
|
|
87
|
-
type: import('vue').PropType<boolean>;
|
|
88
|
-
};
|
|
89
|
-
model: {
|
|
90
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
91
|
-
};
|
|
92
|
-
rules: {
|
|
93
|
-
type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
94
|
-
};
|
|
95
|
-
labelPosition: {
|
|
96
|
-
type: import('vue').PropType<"top" | "left" | "right">;
|
|
97
|
-
default: string;
|
|
98
|
-
};
|
|
99
|
-
requireAsteriskPosition: {
|
|
100
|
-
type: import('vue').PropType<"left" | "right">;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
labelWidth: {
|
|
104
|
-
type: import('vue').PropType<string | number>;
|
|
105
|
-
default: string;
|
|
106
|
-
};
|
|
107
|
-
labelSuffix: {
|
|
108
|
-
type: import('vue').PropType<string>;
|
|
109
|
-
default: string;
|
|
110
|
-
};
|
|
111
|
-
inline: {
|
|
112
|
-
type: import('vue').PropType<boolean>;
|
|
113
|
-
};
|
|
114
|
-
inlineMessage: {
|
|
115
|
-
type: import('vue').PropType<boolean>;
|
|
116
|
-
};
|
|
117
|
-
statusIcon: {
|
|
118
|
-
type: import('vue').PropType<boolean>;
|
|
119
|
-
};
|
|
120
|
-
showMessage: {
|
|
121
|
-
type: import('vue').PropType<boolean>;
|
|
122
|
-
default: boolean;
|
|
123
|
-
};
|
|
124
|
-
validateOnRuleChange: {
|
|
125
|
-
type: import('vue').PropType<boolean>;
|
|
126
|
-
default: boolean;
|
|
127
|
-
};
|
|
128
|
-
hideRequiredAsterisk: {
|
|
129
|
-
type: import('vue').PropType<boolean>;
|
|
130
|
-
};
|
|
131
|
-
scrollToError: {
|
|
132
|
-
type: import('vue').PropType<boolean>;
|
|
133
|
-
};
|
|
134
|
-
scrollIntoViewOptions: {
|
|
135
|
-
type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
|
|
136
|
-
default: boolean;
|
|
137
|
-
};
|
|
138
|
-
}>> & {
|
|
139
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
140
|
-
}, {
|
|
141
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
142
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
143
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
144
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
145
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
146
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
147
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
148
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
149
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
150
|
-
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
151
|
-
}, string, {
|
|
152
|
-
labelWidth: string | number;
|
|
153
|
-
labelPosition: "left" | "right" | "top";
|
|
154
|
-
requireAsteriskPosition: "left" | "right";
|
|
155
|
-
labelSuffix: string;
|
|
156
|
-
showMessage: boolean;
|
|
157
|
-
validateOnRuleChange: boolean;
|
|
158
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
159
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
160
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
161
|
-
created?: (() => void) | (() => void)[];
|
|
162
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
163
|
-
mounted?: (() => void) | (() => void)[];
|
|
164
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
165
|
-
updated?: (() => void) | (() => void)[];
|
|
166
|
-
activated?: (() => void) | (() => void)[];
|
|
167
|
-
deactivated?: (() => void) | (() => void)[];
|
|
168
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
169
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
170
|
-
destroyed?: (() => void) | (() => void)[];
|
|
171
|
-
unmounted?: (() => void) | (() => void)[];
|
|
172
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
173
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
174
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
175
|
-
};
|
|
176
|
-
$forceUpdate: () => void;
|
|
177
|
-
$nextTick: typeof import('vue').nextTick;
|
|
178
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T 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;
|
|
179
|
-
} & Readonly<{
|
|
180
|
-
labelWidth: string | number;
|
|
181
|
-
labelPosition: "left" | "right" | "top";
|
|
182
|
-
requireAsteriskPosition: "left" | "right";
|
|
183
|
-
labelSuffix: string;
|
|
184
|
-
showMessage: boolean;
|
|
185
|
-
validateOnRuleChange: boolean;
|
|
186
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
187
|
-
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
188
|
-
size: {
|
|
189
|
-
type: import('vue').PropType<"" | "default" | "small" | "large">;
|
|
190
|
-
};
|
|
191
|
-
disabled: {
|
|
192
|
-
type: import('vue').PropType<boolean>;
|
|
193
|
-
};
|
|
194
|
-
model: {
|
|
195
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
196
|
-
};
|
|
197
|
-
rules: {
|
|
198
|
-
type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
199
|
-
};
|
|
200
|
-
labelPosition: {
|
|
201
|
-
type: import('vue').PropType<"top" | "left" | "right">;
|
|
202
|
-
default: string;
|
|
203
|
-
};
|
|
204
|
-
requireAsteriskPosition: {
|
|
205
|
-
type: import('vue').PropType<"left" | "right">;
|
|
206
|
-
default: string;
|
|
207
|
-
};
|
|
208
|
-
labelWidth: {
|
|
209
|
-
type: import('vue').PropType<string | number>;
|
|
210
|
-
default: string;
|
|
211
|
-
};
|
|
212
|
-
labelSuffix: {
|
|
213
|
-
type: import('vue').PropType<string>;
|
|
214
|
-
default: string;
|
|
215
|
-
};
|
|
216
|
-
inline: {
|
|
217
|
-
type: import('vue').PropType<boolean>;
|
|
218
|
-
};
|
|
219
|
-
inlineMessage: {
|
|
220
|
-
type: import('vue').PropType<boolean>;
|
|
221
|
-
};
|
|
222
|
-
statusIcon: {
|
|
223
|
-
type: import('vue').PropType<boolean>;
|
|
224
|
-
};
|
|
225
|
-
showMessage: {
|
|
226
|
-
type: import('vue').PropType<boolean>;
|
|
227
|
-
default: boolean;
|
|
228
|
-
};
|
|
229
|
-
validateOnRuleChange: {
|
|
230
|
-
type: import('vue').PropType<boolean>;
|
|
231
|
-
default: boolean;
|
|
232
|
-
};
|
|
233
|
-
hideRequiredAsterisk: {
|
|
234
|
-
type: import('vue').PropType<boolean>;
|
|
235
|
-
};
|
|
236
|
-
scrollToError: {
|
|
237
|
-
type: import('vue').PropType<boolean>;
|
|
238
|
-
};
|
|
239
|
-
scrollIntoViewOptions: {
|
|
240
|
-
type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
|
|
241
|
-
default: boolean;
|
|
242
|
-
};
|
|
243
|
-
}>> & {
|
|
244
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
245
|
-
}, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
246
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
247
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
248
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
249
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
250
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
251
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
252
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
253
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
254
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
255
|
-
$slots: {
|
|
256
|
-
default?: (props: {}) => any;
|
|
257
|
-
};
|
|
258
|
-
}) | null;
|
|
259
37
|
};
|
|
260
|
-
$slots:
|
|
38
|
+
$slots: Readonly<{
|
|
39
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
40
|
+
}> & {
|
|
41
|
+
default?: (props: {}) => any;
|
|
42
|
+
};
|
|
261
43
|
$root: import('vue').ComponentPublicInstance | null;
|
|
262
44
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
263
45
|
$host: Element | null;
|
|
264
|
-
$emit: (
|
|
46
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
265
47
|
$el: any;
|
|
266
|
-
$options: import('vue').ComponentOptionsBase<Readonly<
|
|
267
|
-
$: import('vue').ComponentInternalInstance;
|
|
268
|
-
$data: {};
|
|
269
|
-
$props: Partial<{
|
|
270
|
-
labelWidth: string | number;
|
|
271
|
-
labelPosition: "left" | "right" | "top";
|
|
272
|
-
requireAsteriskPosition: "left" | "right";
|
|
273
|
-
labelSuffix: string;
|
|
274
|
-
showMessage: boolean;
|
|
275
|
-
validateOnRuleChange: boolean;
|
|
276
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
277
|
-
}> & Omit<{
|
|
278
|
-
readonly labelPosition: "left" | "right" | "top";
|
|
279
|
-
readonly requireAsteriskPosition: "left" | "right";
|
|
280
|
-
readonly labelWidth: string | number;
|
|
281
|
-
readonly labelSuffix: string;
|
|
282
|
-
readonly showMessage: boolean;
|
|
283
|
-
readonly validateOnRuleChange: boolean;
|
|
284
|
-
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
285
|
-
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
286
|
-
readonly disabled?: boolean | undefined;
|
|
287
|
-
readonly model?: Record<string, any> | undefined;
|
|
288
|
-
readonly rules?: import('element-plus').FormRules | undefined;
|
|
289
|
-
readonly inline?: boolean | undefined;
|
|
290
|
-
readonly inlineMessage?: boolean | undefined;
|
|
291
|
-
readonly statusIcon?: boolean | undefined;
|
|
292
|
-
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
293
|
-
readonly scrollToError?: boolean | undefined;
|
|
294
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
295
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
|
|
296
|
-
$attrs: {
|
|
297
|
-
[x: string]: unknown;
|
|
298
|
-
};
|
|
299
|
-
$refs: {
|
|
300
|
-
[x: string]: unknown;
|
|
301
|
-
};
|
|
302
|
-
$slots: Readonly<{
|
|
303
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
304
|
-
}> & {
|
|
305
|
-
default?: (props: {}) => any;
|
|
306
|
-
};
|
|
307
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
308
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
309
|
-
$host: Element | null;
|
|
310
|
-
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
311
|
-
$el: any;
|
|
312
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
313
|
-
size: {
|
|
314
|
-
type: import('vue').PropType<"" | "default" | "small" | "large">;
|
|
315
|
-
};
|
|
316
|
-
disabled: {
|
|
317
|
-
type: import('vue').PropType<boolean>;
|
|
318
|
-
};
|
|
319
|
-
model: {
|
|
320
|
-
type: import('vue').PropType<Record<string, any>>;
|
|
321
|
-
};
|
|
322
|
-
rules: {
|
|
323
|
-
type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
324
|
-
};
|
|
325
|
-
labelPosition: {
|
|
326
|
-
type: import('vue').PropType<"top" | "left" | "right">;
|
|
327
|
-
default: string;
|
|
328
|
-
};
|
|
329
|
-
requireAsteriskPosition: {
|
|
330
|
-
type: import('vue').PropType<"left" | "right">;
|
|
331
|
-
default: string;
|
|
332
|
-
};
|
|
333
|
-
labelWidth: {
|
|
334
|
-
type: import('vue').PropType<string | number>;
|
|
335
|
-
default: string;
|
|
336
|
-
};
|
|
337
|
-
labelSuffix: {
|
|
338
|
-
type: import('vue').PropType<string>;
|
|
339
|
-
default: string;
|
|
340
|
-
};
|
|
341
|
-
inline: {
|
|
342
|
-
type: import('vue').PropType<boolean>;
|
|
343
|
-
};
|
|
344
|
-
inlineMessage: {
|
|
345
|
-
type: import('vue').PropType<boolean>;
|
|
346
|
-
};
|
|
347
|
-
statusIcon: {
|
|
348
|
-
type: import('vue').PropType<boolean>;
|
|
349
|
-
};
|
|
350
|
-
showMessage: {
|
|
351
|
-
type: import('vue').PropType<boolean>;
|
|
352
|
-
default: boolean;
|
|
353
|
-
};
|
|
354
|
-
validateOnRuleChange: {
|
|
355
|
-
type: import('vue').PropType<boolean>;
|
|
356
|
-
default: boolean;
|
|
357
|
-
};
|
|
358
|
-
hideRequiredAsterisk: {
|
|
359
|
-
type: import('vue').PropType<boolean>;
|
|
360
|
-
};
|
|
361
|
-
scrollToError: {
|
|
362
|
-
type: import('vue').PropType<boolean>;
|
|
363
|
-
};
|
|
364
|
-
scrollIntoViewOptions: {
|
|
365
|
-
type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
|
|
366
|
-
default: boolean;
|
|
367
|
-
};
|
|
368
|
-
}>> & {
|
|
369
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
370
|
-
}, {
|
|
371
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
372
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
373
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
374
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
375
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
376
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
377
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
378
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
379
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
380
|
-
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
381
|
-
}, string, {
|
|
382
|
-
labelWidth: string | number;
|
|
383
|
-
labelPosition: "left" | "right" | "top";
|
|
384
|
-
requireAsteriskPosition: "left" | "right";
|
|
385
|
-
labelSuffix: string;
|
|
386
|
-
showMessage: boolean;
|
|
387
|
-
validateOnRuleChange: boolean;
|
|
388
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
389
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
390
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
391
|
-
created?: (() => void) | (() => void)[];
|
|
392
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
393
|
-
mounted?: (() => void) | (() => void)[];
|
|
394
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
395
|
-
updated?: (() => void) | (() => void)[];
|
|
396
|
-
activated?: (() => void) | (() => void)[];
|
|
397
|
-
deactivated?: (() => void) | (() => void)[];
|
|
398
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
399
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
400
|
-
destroyed?: (() => void) | (() => void)[];
|
|
401
|
-
unmounted?: (() => void) | (() => void)[];
|
|
402
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
403
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
404
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
405
|
-
};
|
|
406
|
-
$forceUpdate: () => void;
|
|
407
|
-
$nextTick: typeof import('vue').nextTick;
|
|
408
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T 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;
|
|
409
|
-
labelWidth: string | number;
|
|
410
|
-
labelPosition: "left" | "right" | "top";
|
|
411
|
-
requireAsteriskPosition: "left" | "right";
|
|
412
|
-
labelSuffix: string;
|
|
413
|
-
showMessage: boolean;
|
|
414
|
-
validateOnRuleChange: boolean;
|
|
415
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
416
|
-
size?: import('element-plus').ComponentSize;
|
|
417
|
-
disabled?: boolean;
|
|
418
|
-
model?: Record<string, any>;
|
|
419
|
-
rules?: import('element-plus').FormRules;
|
|
420
|
-
inline?: boolean;
|
|
421
|
-
inlineMessage?: boolean;
|
|
422
|
-
statusIcon?: boolean;
|
|
423
|
-
hideRequiredAsterisk?: boolean;
|
|
424
|
-
scrollToError?: boolean;
|
|
425
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
426
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
427
|
-
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
428
|
-
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
429
|
-
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
430
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
431
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
432
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
433
|
-
setInitialValues: (initModel: Record<string, any>) => void;
|
|
434
|
-
$route: import('vue-router').TypesConfig extends Record<"$route", infer T> ? T : import('vue-router').RouteLocationNormalizedLoaded;
|
|
435
|
-
$router: import('vue-router').TypesConfig extends Record<"$router", infer T> ? T : import('vue-router').Router;
|
|
436
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
437
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
438
|
-
created?: (() => void) | (() => void)[];
|
|
439
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
440
|
-
mounted?: (() => void) | (() => void)[];
|
|
441
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
442
|
-
updated?: (() => void) | (() => void)[];
|
|
443
|
-
activated?: (() => void) | (() => void)[];
|
|
444
|
-
deactivated?: (() => void) | (() => void)[];
|
|
445
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
446
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
447
|
-
destroyed?: (() => void) | (() => void)[];
|
|
448
|
-
unmounted?: (() => void) | (() => void)[];
|
|
449
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
450
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
451
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
452
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
48
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
453
49
|
size: {
|
|
454
50
|
type: import('vue').PropType<"" | "default" | "small" | "large">;
|
|
455
51
|
};
|
|
@@ -526,10 +122,26 @@ declare const _default: import('vue').DefineComponent<TProFormProps, {
|
|
|
526
122
|
showMessage: boolean;
|
|
527
123
|
validateOnRuleChange: boolean;
|
|
528
124
|
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
529
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions
|
|
125
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
126
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
127
|
+
created?: (() => void) | (() => void)[];
|
|
128
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
129
|
+
mounted?: (() => void) | (() => void)[];
|
|
130
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
131
|
+
updated?: (() => void) | (() => void)[];
|
|
132
|
+
activated?: (() => void) | (() => void)[];
|
|
133
|
+
deactivated?: (() => void) | (() => void)[];
|
|
134
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
135
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
136
|
+
destroyed?: (() => void) | (() => void)[];
|
|
137
|
+
unmounted?: (() => void) | (() => void)[];
|
|
138
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
139
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
140
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
141
|
+
};
|
|
530
142
|
$forceUpdate: () => void;
|
|
531
143
|
$nextTick: typeof import('vue').nextTick;
|
|
532
|
-
$watch
|
|
144
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T 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;
|
|
533
145
|
labelWidth: string | number;
|
|
534
146
|
labelPosition: "left" | "right" | "top";
|
|
535
147
|
requireAsteriskPosition: "left" | "right";
|
|
@@ -537,15 +149,15 @@ declare const _default: import('vue').DefineComponent<TProFormProps, {
|
|
|
537
149
|
showMessage: boolean;
|
|
538
150
|
validateOnRuleChange: boolean;
|
|
539
151
|
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
540
|
-
size?: import('element-plus').ComponentSize
|
|
541
|
-
disabled?: boolean
|
|
152
|
+
size?: import('element-plus').ComponentSize;
|
|
153
|
+
disabled?: boolean;
|
|
542
154
|
model: any;
|
|
543
|
-
rules?: import('element-plus').FormRules
|
|
544
|
-
inline?: boolean
|
|
545
|
-
inlineMessage?: boolean
|
|
546
|
-
statusIcon?: boolean
|
|
547
|
-
hideRequiredAsterisk?: boolean
|
|
548
|
-
scrollToError?: boolean
|
|
155
|
+
rules?: import('element-plus').FormRules;
|
|
156
|
+
inline?: boolean;
|
|
157
|
+
inlineMessage?: boolean;
|
|
158
|
+
statusIcon?: boolean;
|
|
159
|
+
hideRequiredAsterisk?: boolean;
|
|
160
|
+
scrollToError?: boolean;
|
|
549
161
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
550
162
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
551
163
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
@@ -559,9 +171,12 @@ declare const _default: import('vue').DefineComponent<TProFormProps, {
|
|
|
559
171
|
$router: import('vue-router').TypesConfig extends Record<"$router", infer T> ? T : import('vue-router').Router;
|
|
560
172
|
setValues: (data: Record<string, any>) => void;
|
|
561
173
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TProFormProps> & Readonly<{}>, {
|
|
174
|
+
rules: import('element-plus').FormRules;
|
|
562
175
|
labelPosition: "top" | "left" | "right";
|
|
176
|
+
labelWidth: string | number;
|
|
563
177
|
inline: boolean;
|
|
564
178
|
fields: Array<import('./ProForm.types').TProFormField>;
|
|
179
|
+
columns: number | "auto-fill" | "auto-fit";
|
|
565
180
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
566
181
|
formRef: ({
|
|
567
182
|
$: import('vue').ComponentInternalInstance;
|