@jnrs/vue-core 1.2.9 → 1.2.10
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 +9 -21
- package/dist/components/JnDatetime.vue.d.ts +1 -1
- package/dist/components/JnDialog.vue.d.ts +1 -1
- package/dist/components/JnFileUpload.vue.d.ts +294 -321
- package/dist/components/JnImportAndExport.vue.d.ts +387 -0
- package/dist/components/JnSelectTemplate.vue.d.ts +297 -213
- package/dist/components/JnTable.vue.d.ts +3086 -0
- package/dist/components/index.js +7 -7
- package/dist/composables/index.js +6 -6
- package/dist/{index-oXJvQR5x.js → index-BFtkMENx.js} +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/piniaStore/index.js +1 -1
- package/package.json +3 -7
- package/dist/index-Wfhohf_A.js +0 -3386
- package/dist/request/axios.d.ts +0 -8
- package/dist/request/fetch.d.ts +0 -0
- package/dist/request/index.d.ts +0 -1
- package/dist/request/index.js +0 -4
|
@@ -5,7 +5,7 @@ type SelectableTableRow = Record<string, unknown> & {
|
|
|
5
5
|
_selected?: boolean;
|
|
6
6
|
};
|
|
7
7
|
type ModelValue = SelectableTableRow | SelectableTableRow[] | string | number;
|
|
8
|
-
interface Props {
|
|
8
|
+
export interface Props {
|
|
9
9
|
/**
|
|
10
10
|
* 列表接口(必填)
|
|
11
11
|
*/
|
|
@@ -142,38 +142,32 @@ declare function __VLS_template(): {
|
|
|
142
142
|
$: import('vue').ComponentInternalInstance;
|
|
143
143
|
$data: {};
|
|
144
144
|
$props: Partial<{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
readonly labelSuffix: string;
|
|
153
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
154
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
155
|
-
readonly statusIcon: boolean;
|
|
156
|
-
readonly hideRequiredAsterisk: boolean;
|
|
157
|
-
readonly scrollToError: boolean;
|
|
145
|
+
labelWidth: string | number;
|
|
146
|
+
labelPosition: "left" | "right" | "top";
|
|
147
|
+
showMessage: boolean;
|
|
148
|
+
requireAsteriskPosition: "left" | "right";
|
|
149
|
+
labelSuffix: string;
|
|
150
|
+
validateOnRuleChange: boolean;
|
|
151
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
158
152
|
}> & Omit<{
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
153
|
+
readonly labelPosition: "left" | "right" | "top";
|
|
154
|
+
readonly requireAsteriskPosition: "left" | "right";
|
|
155
|
+
readonly labelWidth: string | number;
|
|
163
156
|
readonly labelSuffix: string;
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly hideRequiredAsterisk: boolean;
|
|
170
|
-
readonly scrollToError: boolean;
|
|
171
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
172
|
-
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
157
|
+
readonly showMessage: boolean;
|
|
158
|
+
readonly validateOnRuleChange: boolean;
|
|
159
|
+
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
160
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
161
|
+
readonly disabled?: boolean | undefined;
|
|
173
162
|
readonly model?: Record<string, any> | undefined;
|
|
174
|
-
readonly rules?:
|
|
163
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
164
|
+
readonly inline?: boolean | undefined;
|
|
165
|
+
readonly inlineMessage?: boolean | undefined;
|
|
166
|
+
readonly statusIcon?: boolean | undefined;
|
|
167
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
168
|
+
readonly scrollToError?: boolean | undefined;
|
|
175
169
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
176
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "
|
|
170
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
|
|
177
171
|
$attrs: {
|
|
178
172
|
[x: string]: unknown;
|
|
179
173
|
};
|
|
@@ -189,32 +183,61 @@ declare function __VLS_template(): {
|
|
|
189
183
|
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
190
184
|
$el: any;
|
|
191
185
|
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
186
|
+
size: {
|
|
187
|
+
type: import('vue').PropType<"" | "large" | "default" | "small">;
|
|
188
|
+
};
|
|
189
|
+
disabled: {
|
|
190
|
+
type: import('vue').PropType<boolean>;
|
|
191
|
+
};
|
|
192
|
+
model: {
|
|
193
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
194
|
+
};
|
|
195
|
+
rules: {
|
|
196
|
+
type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
197
|
+
};
|
|
198
|
+
labelPosition: {
|
|
199
|
+
type: import('vue').PropType<"top" | "left" | "right">;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
requireAsteriskPosition: {
|
|
203
|
+
type: import('vue').PropType<"left" | "right">;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
labelWidth: {
|
|
207
|
+
type: import('vue').PropType<string | number>;
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
labelSuffix: {
|
|
211
|
+
type: import('vue').PropType<string>;
|
|
212
|
+
default: string;
|
|
213
|
+
};
|
|
214
|
+
inline: {
|
|
215
|
+
type: import('vue').PropType<boolean>;
|
|
198
216
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
217
|
+
inlineMessage: {
|
|
218
|
+
type: import('vue').PropType<boolean>;
|
|
219
|
+
};
|
|
220
|
+
statusIcon: {
|
|
221
|
+
type: import('vue').PropType<boolean>;
|
|
222
|
+
};
|
|
223
|
+
showMessage: {
|
|
224
|
+
type: import('vue').PropType<boolean>;
|
|
225
|
+
default: boolean;
|
|
226
|
+
};
|
|
227
|
+
validateOnRuleChange: {
|
|
228
|
+
type: import('vue').PropType<boolean>;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
hideRequiredAsterisk: {
|
|
232
|
+
type: import('vue').PropType<boolean>;
|
|
233
|
+
};
|
|
234
|
+
scrollToError: {
|
|
235
|
+
type: import('vue').PropType<boolean>;
|
|
236
|
+
};
|
|
237
|
+
scrollIntoViewOptions: {
|
|
238
|
+
type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
|
|
239
|
+
default: boolean;
|
|
216
240
|
};
|
|
217
|
-
readonly disabled: BooleanConstructor;
|
|
218
241
|
}>> & {
|
|
219
242
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
220
243
|
}, {
|
|
@@ -225,22 +248,17 @@ declare function __VLS_template(): {
|
|
|
225
248
|
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
226
249
|
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
227
250
|
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
251
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
228
252
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
229
253
|
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
230
254
|
}, string, {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
readonly labelSuffix: string;
|
|
239
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
240
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
241
|
-
readonly statusIcon: boolean;
|
|
242
|
-
readonly hideRequiredAsterisk: boolean;
|
|
243
|
-
readonly scrollToError: boolean;
|
|
255
|
+
labelWidth: string | number;
|
|
256
|
+
labelPosition: "left" | "right" | "top";
|
|
257
|
+
showMessage: boolean;
|
|
258
|
+
requireAsteriskPosition: "left" | "right";
|
|
259
|
+
labelSuffix: string;
|
|
260
|
+
validateOnRuleChange: boolean;
|
|
261
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
244
262
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
245
263
|
beforeCreate?: (() => void) | (() => void)[];
|
|
246
264
|
created?: (() => void) | (() => void)[];
|
|
@@ -262,49 +280,72 @@ declare function __VLS_template(): {
|
|
|
262
280
|
$nextTick: typeof nextTick;
|
|
263
281
|
$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;
|
|
264
282
|
} & Readonly<{
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
readonly labelSuffix: string;
|
|
273
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
274
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
275
|
-
readonly statusIcon: boolean;
|
|
276
|
-
readonly hideRequiredAsterisk: boolean;
|
|
277
|
-
readonly scrollToError: boolean;
|
|
283
|
+
labelWidth: string | number;
|
|
284
|
+
labelPosition: "left" | "right" | "top";
|
|
285
|
+
showMessage: boolean;
|
|
286
|
+
requireAsteriskPosition: "left" | "right";
|
|
287
|
+
labelSuffix: string;
|
|
288
|
+
validateOnRuleChange: boolean;
|
|
289
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
278
290
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
291
|
+
size: {
|
|
292
|
+
type: import('vue').PropType<"" | "large" | "default" | "small">;
|
|
293
|
+
};
|
|
294
|
+
disabled: {
|
|
295
|
+
type: import('vue').PropType<boolean>;
|
|
296
|
+
};
|
|
297
|
+
model: {
|
|
298
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
299
|
+
};
|
|
300
|
+
rules: {
|
|
301
|
+
type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
302
|
+
};
|
|
303
|
+
labelPosition: {
|
|
304
|
+
type: import('vue').PropType<"top" | "left" | "right">;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
requireAsteriskPosition: {
|
|
308
|
+
type: import('vue').PropType<"left" | "right">;
|
|
309
|
+
default: string;
|
|
310
|
+
};
|
|
311
|
+
labelWidth: {
|
|
312
|
+
type: import('vue').PropType<string | number>;
|
|
313
|
+
default: string;
|
|
314
|
+
};
|
|
315
|
+
labelSuffix: {
|
|
316
|
+
type: import('vue').PropType<string>;
|
|
317
|
+
default: string;
|
|
318
|
+
};
|
|
319
|
+
inline: {
|
|
320
|
+
type: import('vue').PropType<boolean>;
|
|
321
|
+
};
|
|
322
|
+
inlineMessage: {
|
|
323
|
+
type: import('vue').PropType<boolean>;
|
|
324
|
+
};
|
|
325
|
+
statusIcon: {
|
|
326
|
+
type: import('vue').PropType<boolean>;
|
|
327
|
+
};
|
|
328
|
+
showMessage: {
|
|
329
|
+
type: import('vue').PropType<boolean>;
|
|
330
|
+
default: boolean;
|
|
331
|
+
};
|
|
332
|
+
validateOnRuleChange: {
|
|
333
|
+
type: import('vue').PropType<boolean>;
|
|
334
|
+
default: boolean;
|
|
335
|
+
};
|
|
336
|
+
hideRequiredAsterisk: {
|
|
337
|
+
type: import('vue').PropType<boolean>;
|
|
338
|
+
};
|
|
339
|
+
scrollToError: {
|
|
340
|
+
type: import('vue').PropType<boolean>;
|
|
341
|
+
};
|
|
342
|
+
scrollIntoViewOptions: {
|
|
343
|
+
type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
|
|
344
|
+
default: boolean;
|
|
345
|
+
};
|
|
305
346
|
}>> & {
|
|
306
347
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
307
|
-
}, "
|
|
348
|
+
}, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
308
349
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
309
350
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
310
351
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -312,9 +353,10 @@ declare function __VLS_template(): {
|
|
|
312
353
|
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
313
354
|
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
314
355
|
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
356
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
315
357
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
316
358
|
$slots: {
|
|
317
|
-
default
|
|
359
|
+
default?: (props: {}) => any;
|
|
318
360
|
};
|
|
319
361
|
}) | null;
|
|
320
362
|
};
|
|
@@ -332,38 +374,32 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
332
374
|
$: import('vue').ComponentInternalInstance;
|
|
333
375
|
$data: {};
|
|
334
376
|
$props: Partial<{
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
readonly labelSuffix: string;
|
|
343
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
344
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
345
|
-
readonly statusIcon: boolean;
|
|
346
|
-
readonly hideRequiredAsterisk: boolean;
|
|
347
|
-
readonly scrollToError: boolean;
|
|
377
|
+
labelWidth: string | number;
|
|
378
|
+
labelPosition: "left" | "right" | "top";
|
|
379
|
+
showMessage: boolean;
|
|
380
|
+
requireAsteriskPosition: "left" | "right";
|
|
381
|
+
labelSuffix: string;
|
|
382
|
+
validateOnRuleChange: boolean;
|
|
383
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
348
384
|
}> & Omit<{
|
|
349
|
-
readonly
|
|
350
|
-
readonly
|
|
351
|
-
readonly
|
|
352
|
-
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
385
|
+
readonly labelPosition: "left" | "right" | "top";
|
|
386
|
+
readonly requireAsteriskPosition: "left" | "right";
|
|
387
|
+
readonly labelWidth: string | number;
|
|
353
388
|
readonly labelSuffix: string;
|
|
354
|
-
readonly
|
|
355
|
-
readonly
|
|
356
|
-
readonly
|
|
357
|
-
readonly
|
|
358
|
-
readonly
|
|
359
|
-
readonly hideRequiredAsterisk: boolean;
|
|
360
|
-
readonly scrollToError: boolean;
|
|
361
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
362
|
-
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
389
|
+
readonly showMessage: boolean;
|
|
390
|
+
readonly validateOnRuleChange: boolean;
|
|
391
|
+
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
392
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
393
|
+
readonly disabled?: boolean | undefined;
|
|
363
394
|
readonly model?: Record<string, any> | undefined;
|
|
364
|
-
readonly rules?:
|
|
395
|
+
readonly rules?: import('element-plus').FormRules | undefined;
|
|
396
|
+
readonly inline?: boolean | undefined;
|
|
397
|
+
readonly inlineMessage?: boolean | undefined;
|
|
398
|
+
readonly statusIcon?: boolean | undefined;
|
|
399
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
400
|
+
readonly scrollToError?: boolean | undefined;
|
|
365
401
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
366
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "
|
|
402
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions">;
|
|
367
403
|
$attrs: {
|
|
368
404
|
[x: string]: unknown;
|
|
369
405
|
};
|
|
@@ -379,32 +415,61 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
379
415
|
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
380
416
|
$el: any;
|
|
381
417
|
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
418
|
+
size: {
|
|
419
|
+
type: import('vue').PropType<"" | "large" | "default" | "small">;
|
|
420
|
+
};
|
|
421
|
+
disabled: {
|
|
422
|
+
type: import('vue').PropType<boolean>;
|
|
423
|
+
};
|
|
424
|
+
model: {
|
|
425
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
426
|
+
};
|
|
427
|
+
rules: {
|
|
428
|
+
type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
429
|
+
};
|
|
430
|
+
labelPosition: {
|
|
431
|
+
type: import('vue').PropType<"top" | "left" | "right">;
|
|
432
|
+
default: string;
|
|
433
|
+
};
|
|
434
|
+
requireAsteriskPosition: {
|
|
435
|
+
type: import('vue').PropType<"left" | "right">;
|
|
436
|
+
default: string;
|
|
437
|
+
};
|
|
438
|
+
labelWidth: {
|
|
439
|
+
type: import('vue').PropType<string | number>;
|
|
440
|
+
default: string;
|
|
441
|
+
};
|
|
442
|
+
labelSuffix: {
|
|
443
|
+
type: import('vue').PropType<string>;
|
|
444
|
+
default: string;
|
|
445
|
+
};
|
|
446
|
+
inline: {
|
|
447
|
+
type: import('vue').PropType<boolean>;
|
|
448
|
+
};
|
|
449
|
+
inlineMessage: {
|
|
450
|
+
type: import('vue').PropType<boolean>;
|
|
451
|
+
};
|
|
452
|
+
statusIcon: {
|
|
453
|
+
type: import('vue').PropType<boolean>;
|
|
454
|
+
};
|
|
455
|
+
showMessage: {
|
|
456
|
+
type: import('vue').PropType<boolean>;
|
|
457
|
+
default: boolean;
|
|
458
|
+
};
|
|
459
|
+
validateOnRuleChange: {
|
|
460
|
+
type: import('vue').PropType<boolean>;
|
|
461
|
+
default: boolean;
|
|
462
|
+
};
|
|
463
|
+
hideRequiredAsterisk: {
|
|
464
|
+
type: import('vue').PropType<boolean>;
|
|
465
|
+
};
|
|
466
|
+
scrollToError: {
|
|
467
|
+
type: import('vue').PropType<boolean>;
|
|
468
|
+
};
|
|
469
|
+
scrollIntoViewOptions: {
|
|
470
|
+
type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
|
|
471
|
+
default: boolean;
|
|
472
|
+
};
|
|
408
473
|
}>> & {
|
|
409
474
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
410
475
|
}, {
|
|
@@ -415,22 +480,17 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
415
480
|
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
416
481
|
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
417
482
|
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
483
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
418
484
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
419
485
|
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
420
486
|
}, string, {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
readonly labelSuffix: string;
|
|
429
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
430
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
431
|
-
readonly statusIcon: boolean;
|
|
432
|
-
readonly hideRequiredAsterisk: boolean;
|
|
433
|
-
readonly scrollToError: boolean;
|
|
487
|
+
labelWidth: string | number;
|
|
488
|
+
labelPosition: "left" | "right" | "top";
|
|
489
|
+
showMessage: boolean;
|
|
490
|
+
requireAsteriskPosition: "left" | "right";
|
|
491
|
+
labelSuffix: string;
|
|
492
|
+
validateOnRuleChange: boolean;
|
|
493
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
434
494
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
435
495
|
beforeCreate?: (() => void) | (() => void)[];
|
|
436
496
|
created?: (() => void) | (() => void)[];
|
|
@@ -452,49 +512,72 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
452
512
|
$nextTick: typeof nextTick;
|
|
453
513
|
$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;
|
|
454
514
|
} & Readonly<{
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
readonly labelSuffix: string;
|
|
463
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
464
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
465
|
-
readonly statusIcon: boolean;
|
|
466
|
-
readonly hideRequiredAsterisk: boolean;
|
|
467
|
-
readonly scrollToError: boolean;
|
|
515
|
+
labelWidth: string | number;
|
|
516
|
+
labelPosition: "left" | "right" | "top";
|
|
517
|
+
showMessage: boolean;
|
|
518
|
+
requireAsteriskPosition: "left" | "right";
|
|
519
|
+
labelSuffix: string;
|
|
520
|
+
validateOnRuleChange: boolean;
|
|
521
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
468
522
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
523
|
+
size: {
|
|
524
|
+
type: import('vue').PropType<"" | "large" | "default" | "small">;
|
|
525
|
+
};
|
|
526
|
+
disabled: {
|
|
527
|
+
type: import('vue').PropType<boolean>;
|
|
528
|
+
};
|
|
529
|
+
model: {
|
|
530
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
531
|
+
};
|
|
532
|
+
rules: {
|
|
533
|
+
type: import('vue').PropType<Partial<Record<string, Record<string, any> | import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
|
534
|
+
};
|
|
535
|
+
labelPosition: {
|
|
536
|
+
type: import('vue').PropType<"top" | "left" | "right">;
|
|
537
|
+
default: string;
|
|
538
|
+
};
|
|
539
|
+
requireAsteriskPosition: {
|
|
540
|
+
type: import('vue').PropType<"left" | "right">;
|
|
541
|
+
default: string;
|
|
542
|
+
};
|
|
543
|
+
labelWidth: {
|
|
544
|
+
type: import('vue').PropType<string | number>;
|
|
545
|
+
default: string;
|
|
546
|
+
};
|
|
547
|
+
labelSuffix: {
|
|
548
|
+
type: import('vue').PropType<string>;
|
|
549
|
+
default: string;
|
|
550
|
+
};
|
|
551
|
+
inline: {
|
|
552
|
+
type: import('vue').PropType<boolean>;
|
|
553
|
+
};
|
|
554
|
+
inlineMessage: {
|
|
555
|
+
type: import('vue').PropType<boolean>;
|
|
556
|
+
};
|
|
557
|
+
statusIcon: {
|
|
558
|
+
type: import('vue').PropType<boolean>;
|
|
559
|
+
};
|
|
560
|
+
showMessage: {
|
|
561
|
+
type: import('vue').PropType<boolean>;
|
|
562
|
+
default: boolean;
|
|
563
|
+
};
|
|
564
|
+
validateOnRuleChange: {
|
|
565
|
+
type: import('vue').PropType<boolean>;
|
|
566
|
+
default: boolean;
|
|
567
|
+
};
|
|
568
|
+
hideRequiredAsterisk: {
|
|
569
|
+
type: import('vue').PropType<boolean>;
|
|
570
|
+
};
|
|
571
|
+
scrollToError: {
|
|
572
|
+
type: import('vue').PropType<boolean>;
|
|
475
573
|
};
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
480
|
-
readonly inline: BooleanConstructor;
|
|
481
|
-
readonly inlineMessage: BooleanConstructor;
|
|
482
|
-
readonly statusIcon: BooleanConstructor;
|
|
483
|
-
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
484
|
-
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
485
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
486
|
-
readonly scrollToError: BooleanConstructor;
|
|
487
|
-
readonly scrollIntoViewOptions: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
488
|
-
readonly size: {
|
|
489
|
-
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
490
|
-
readonly required: false;
|
|
491
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
492
|
-
__epPropKey: true;
|
|
574
|
+
scrollIntoViewOptions: {
|
|
575
|
+
type: import('vue').PropType<boolean | ScrollIntoViewOptions>;
|
|
576
|
+
default: boolean;
|
|
493
577
|
};
|
|
494
|
-
readonly disabled: BooleanConstructor;
|
|
495
578
|
}>> & {
|
|
496
579
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
497
|
-
}, "
|
|
580
|
+
}, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & import('vue').ShallowUnwrapRef<{
|
|
498
581
|
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
499
582
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
500
583
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
@@ -502,9 +585,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
502
585
|
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
503
586
|
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
504
587
|
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
588
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
505
589
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
506
590
|
$slots: {
|
|
507
|
-
default
|
|
591
|
+
default?: (props: {}) => any;
|
|
508
592
|
};
|
|
509
593
|
}) | null;
|
|
510
594
|
}, any>;
|