@vtj/ui 0.16.12 → 0.16.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1836 -1820
- package/dist/index.umd.js +5 -5
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +66 -66
- package/types/components/action/hooks.d.ts +12 -12
- package/types/components/action-bar/ActionBar.d.ts +44 -44
- package/types/components/attachment/Attachment.d.ts +85 -534
- package/types/components/data-item/DataItem.d.ts +44 -44
- package/types/components/dialog/Dialog.d.ts +5 -13
- package/types/components/dialog-form/DialogForm.d.ts +66 -326
- package/types/components/dialog-grid/DialogGrid.d.ts +11 -27
- package/types/components/field/Field.d.ts +36 -214
- package/types/components/form/Form.d.ts +49 -293
- package/types/components/grid/renderers/components/DateEdit.d.ts +60 -64
- package/types/components/grid/renderers/components/GridEdit.d.ts +80 -305
- package/types/components/grid-editor/GridEditor.d.ts +80 -305
- package/types/components/mask/Mask.d.ts +47 -51
- package/types/components/mask/components/Tabs.d.ts +2 -4
- package/types/components/panel/Panel.d.ts +3 -7
- package/types/components/picker/Dialog.d.ts +2 -4
- package/types/components/query-form/QueryForm.d.ts +114 -610
- package/types/components/tabs/Tabs.d.ts +22 -22
- package/types/version.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, ShallowRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, Reactive, PublicProps } from 'vue';
|
|
1
|
+
import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, ShallowRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, Reactive, PublicProps } from 'vue';
|
|
2
2
|
import { BaseSize } from '../shared';
|
|
3
3
|
import { DialogMode } from '../dialog';
|
|
4
4
|
import { DraggableOptions, ResizableOptions } from '../..';
|
|
@@ -8,7 +8,7 @@ import { ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAl
|
|
|
8
8
|
import { PanelBadge } from '../panel';
|
|
9
9
|
import { OnCleanup } from '@vue/reactivity';
|
|
10
10
|
import { HeaderProps } from '../header';
|
|
11
|
-
import { UseTooltipProps,
|
|
11
|
+
import { UseTooltipProps, FormRules, ComponentSize, FormItemProp, FormProps, FormValidateCallback, FormValidationResult, FormItemContext, ElTooltipProps } from 'element-plus';
|
|
12
12
|
import { FormModel } from '../form';
|
|
13
13
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
14
14
|
declare function __VLS_template(): {
|
|
@@ -59,8 +59,8 @@ declare function __VLS_template(): {
|
|
|
59
59
|
readonly title?: string | undefined;
|
|
60
60
|
readonly zIndex?: number | undefined;
|
|
61
61
|
readonly cancel?: string | boolean | undefined;
|
|
62
|
-
readonly left?: string | number | undefined;
|
|
63
62
|
readonly top?: string | number | undefined;
|
|
63
|
+
readonly left?: string | number | undefined;
|
|
64
64
|
readonly submit?: string | boolean | undefined;
|
|
65
65
|
readonly subtitle?: string | undefined;
|
|
66
66
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
@@ -119,9 +119,7 @@ declare function __VLS_template(): {
|
|
|
119
119
|
stop: () => void;
|
|
120
120
|
}) => any) | undefined;
|
|
121
121
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "primary" | "mode" | "pure" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
|
|
122
|
-
$attrs:
|
|
123
|
-
[x: string]: unknown;
|
|
124
|
-
};
|
|
122
|
+
$attrs: Attrs;
|
|
125
123
|
$refs: {
|
|
126
124
|
[x: string]: unknown;
|
|
127
125
|
} & {
|
|
@@ -303,9 +301,7 @@ declare function __VLS_template(): {
|
|
|
303
301
|
readonly height?: string | number | undefined;
|
|
304
302
|
readonly shadow?: "hover" | "always" | "none" | undefined;
|
|
305
303
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
|
|
306
|
-
$attrs:
|
|
307
|
-
[x: string]: unknown;
|
|
308
|
-
};
|
|
304
|
+
$attrs: Attrs;
|
|
309
305
|
$refs: {
|
|
310
306
|
[x: string]: unknown;
|
|
311
307
|
} & {
|
|
@@ -348,9 +344,7 @@ declare function __VLS_template(): {
|
|
|
348
344
|
readonly height?: string | number | undefined;
|
|
349
345
|
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
|
350
346
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
351
|
-
$attrs:
|
|
352
|
-
[x: string]: unknown;
|
|
353
|
-
};
|
|
347
|
+
$attrs: Attrs;
|
|
354
348
|
$refs: {
|
|
355
349
|
[x: string]: unknown;
|
|
356
350
|
} & {
|
|
@@ -1193,7 +1187,7 @@ declare function __VLS_template(): {
|
|
|
1193
1187
|
$props: Partial<{
|
|
1194
1188
|
footer: boolean;
|
|
1195
1189
|
inline: boolean;
|
|
1196
|
-
footerAlign: "
|
|
1190
|
+
footerAlign: "right" | "left" | "center";
|
|
1197
1191
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
1198
1192
|
model: Record<string, any>;
|
|
1199
1193
|
submitText: string | null;
|
|
@@ -1203,7 +1197,7 @@ declare function __VLS_template(): {
|
|
|
1203
1197
|
}> & Omit<{
|
|
1204
1198
|
readonly footer: boolean;
|
|
1205
1199
|
readonly inline: boolean;
|
|
1206
|
-
readonly footerAlign: "
|
|
1200
|
+
readonly footerAlign: "right" | "left" | "center";
|
|
1207
1201
|
readonly submitText: string | null;
|
|
1208
1202
|
readonly resetText: string | null;
|
|
1209
1203
|
readonly enterSubmit: boolean;
|
|
@@ -1216,45 +1210,33 @@ declare function __VLS_template(): {
|
|
|
1216
1210
|
readonly onReset?: (() => any) | undefined;
|
|
1217
1211
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
1218
1212
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "footerAlign" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit" | "sticky">;
|
|
1219
|
-
$attrs:
|
|
1220
|
-
[x: string]: unknown;
|
|
1221
|
-
};
|
|
1213
|
+
$attrs: Attrs;
|
|
1222
1214
|
$refs: {
|
|
1223
1215
|
[x: string]: unknown;
|
|
1224
1216
|
} & {
|
|
1225
1217
|
formRef: ({
|
|
1226
1218
|
$: ComponentInternalInstance;
|
|
1227
1219
|
$data: {};
|
|
1228
|
-
$props:
|
|
1229
|
-
labelWidth: string | number;
|
|
1230
|
-
labelPosition: "left" | "right" | "top";
|
|
1231
|
-
showMessage: boolean;
|
|
1232
|
-
requireAsteriskPosition: "left" | "right";
|
|
1233
|
-
labelSuffix: string;
|
|
1234
|
-
validateOnRuleChange: boolean;
|
|
1235
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1236
|
-
}> & Omit<{
|
|
1237
|
-
readonly labelWidth: string | number;
|
|
1238
|
-
readonly labelPosition: "left" | "right" | "top";
|
|
1239
|
-
readonly showMessage: boolean;
|
|
1240
|
-
readonly requireAsteriskPosition: "left" | "right";
|
|
1241
|
-
readonly labelSuffix: string;
|
|
1242
|
-
readonly validateOnRuleChange: boolean;
|
|
1243
|
-
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1244
|
-
readonly size?: ComponentSize | undefined;
|
|
1245
|
-
readonly disabled?: boolean | undefined;
|
|
1246
|
-
readonly inline?: boolean | undefined;
|
|
1220
|
+
$props: {
|
|
1247
1221
|
readonly model?: Record<string, any> | undefined;
|
|
1248
1222
|
readonly rules?: FormRules | undefined;
|
|
1223
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
1224
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
1225
|
+
readonly labelWidth?: string | number | undefined;
|
|
1226
|
+
readonly labelSuffix?: string | undefined;
|
|
1227
|
+
readonly inline?: boolean | undefined;
|
|
1249
1228
|
readonly inlineMessage?: boolean | undefined;
|
|
1250
1229
|
readonly statusIcon?: boolean | undefined;
|
|
1230
|
+
readonly showMessage?: boolean | undefined;
|
|
1231
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
1251
1232
|
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
1252
1233
|
readonly scrollToError?: boolean | undefined;
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
};
|
|
1234
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
1235
|
+
readonly size?: ComponentSize | undefined;
|
|
1236
|
+
readonly disabled?: boolean | undefined;
|
|
1237
|
+
readonly onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
1238
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1239
|
+
$attrs: Attrs;
|
|
1258
1240
|
$refs: {
|
|
1259
1241
|
[x: string]: unknown;
|
|
1260
1242
|
};
|
|
@@ -1266,65 +1248,9 @@ declare function __VLS_template(): {
|
|
|
1266
1248
|
$host: Element | null;
|
|
1267
1249
|
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
1268
1250
|
$el: any;
|
|
1269
|
-
$options: ComponentOptionsBase<Readonly<
|
|
1270
|
-
size: {
|
|
1271
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
1272
|
-
};
|
|
1273
|
-
disabled: {
|
|
1274
|
-
type: PropType<boolean>;
|
|
1275
|
-
};
|
|
1276
|
-
inline: {
|
|
1277
|
-
type: PropType<boolean>;
|
|
1278
|
-
};
|
|
1279
|
-
model: {
|
|
1280
|
-
type: PropType<Record<string, any>>;
|
|
1281
|
-
};
|
|
1282
|
-
labelWidth: {
|
|
1283
|
-
type: PropType<string | number>;
|
|
1284
|
-
default: string;
|
|
1285
|
-
};
|
|
1286
|
-
labelPosition: {
|
|
1287
|
-
type: PropType<"left" | "right" | "top">;
|
|
1288
|
-
default: string;
|
|
1289
|
-
};
|
|
1290
|
-
rules: {
|
|
1291
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1292
|
-
};
|
|
1293
|
-
inlineMessage: {
|
|
1294
|
-
type: PropType<boolean>;
|
|
1295
|
-
};
|
|
1296
|
-
showMessage: {
|
|
1297
|
-
type: PropType<boolean>;
|
|
1298
|
-
default: boolean;
|
|
1299
|
-
};
|
|
1300
|
-
requireAsteriskPosition: {
|
|
1301
|
-
type: PropType<"left" | "right">;
|
|
1302
|
-
default: string;
|
|
1303
|
-
};
|
|
1304
|
-
labelSuffix: {
|
|
1305
|
-
type: PropType<string>;
|
|
1306
|
-
default: string;
|
|
1307
|
-
};
|
|
1308
|
-
statusIcon: {
|
|
1309
|
-
type: PropType<boolean>;
|
|
1310
|
-
};
|
|
1311
|
-
validateOnRuleChange: {
|
|
1312
|
-
type: PropType<boolean>;
|
|
1313
|
-
default: boolean;
|
|
1314
|
-
};
|
|
1315
|
-
hideRequiredAsterisk: {
|
|
1316
|
-
type: PropType<boolean>;
|
|
1317
|
-
};
|
|
1318
|
-
scrollToError: {
|
|
1319
|
-
type: PropType<boolean>;
|
|
1320
|
-
};
|
|
1321
|
-
scrollIntoViewOptions: {
|
|
1322
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
1323
|
-
default: boolean;
|
|
1324
|
-
};
|
|
1325
|
-
}>> & {
|
|
1251
|
+
$options: ComponentOptionsBase<Readonly< FormProps> & Readonly<{
|
|
1326
1252
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1327
|
-
}
|
|
1253
|
+
}>, {
|
|
1328
1254
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
1329
1255
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
1330
1256
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -1333,16 +1259,16 @@ declare function __VLS_template(): {
|
|
|
1333
1259
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
1334
1260
|
fields: Reactive< FormItemContext[]>;
|
|
1335
1261
|
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1336
|
-
},
|
|
1262
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1337
1263
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
1338
1264
|
}, string, {
|
|
1265
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1339
1266
|
labelWidth: string | number;
|
|
1340
1267
|
labelPosition: "left" | "right" | "top";
|
|
1341
|
-
showMessage: boolean;
|
|
1342
1268
|
requireAsteriskPosition: "left" | "right";
|
|
1343
1269
|
labelSuffix: string;
|
|
1270
|
+
showMessage: boolean;
|
|
1344
1271
|
validateOnRuleChange: boolean;
|
|
1345
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1346
1272
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1347
1273
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1348
1274
|
created?: (() => void) | (() => void)[];
|
|
@@ -1364,72 +1290,16 @@ declare function __VLS_template(): {
|
|
|
1364
1290
|
$nextTick: nextTick;
|
|
1365
1291
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1366
1292
|
} & Readonly<{
|
|
1293
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
1367
1294
|
labelWidth: string | number;
|
|
1368
1295
|
labelPosition: "left" | "right" | "top";
|
|
1369
|
-
showMessage: boolean;
|
|
1370
1296
|
requireAsteriskPosition: "left" | "right";
|
|
1371
1297
|
labelSuffix: string;
|
|
1298
|
+
showMessage: boolean;
|
|
1372
1299
|
validateOnRuleChange: boolean;
|
|
1373
|
-
|
|
1374
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
|
1375
|
-
size: {
|
|
1376
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
1377
|
-
};
|
|
1378
|
-
disabled: {
|
|
1379
|
-
type: PropType<boolean>;
|
|
1380
|
-
};
|
|
1381
|
-
inline: {
|
|
1382
|
-
type: PropType<boolean>;
|
|
1383
|
-
};
|
|
1384
|
-
model: {
|
|
1385
|
-
type: PropType<Record<string, any>>;
|
|
1386
|
-
};
|
|
1387
|
-
labelWidth: {
|
|
1388
|
-
type: PropType<string | number>;
|
|
1389
|
-
default: string;
|
|
1390
|
-
};
|
|
1391
|
-
labelPosition: {
|
|
1392
|
-
type: PropType<"left" | "right" | "top">;
|
|
1393
|
-
default: string;
|
|
1394
|
-
};
|
|
1395
|
-
rules: {
|
|
1396
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1397
|
-
};
|
|
1398
|
-
inlineMessage: {
|
|
1399
|
-
type: PropType<boolean>;
|
|
1400
|
-
};
|
|
1401
|
-
showMessage: {
|
|
1402
|
-
type: PropType<boolean>;
|
|
1403
|
-
default: boolean;
|
|
1404
|
-
};
|
|
1405
|
-
requireAsteriskPosition: {
|
|
1406
|
-
type: PropType<"left" | "right">;
|
|
1407
|
-
default: string;
|
|
1408
|
-
};
|
|
1409
|
-
labelSuffix: {
|
|
1410
|
-
type: PropType<string>;
|
|
1411
|
-
default: string;
|
|
1412
|
-
};
|
|
1413
|
-
statusIcon: {
|
|
1414
|
-
type: PropType<boolean>;
|
|
1415
|
-
};
|
|
1416
|
-
validateOnRuleChange: {
|
|
1417
|
-
type: PropType<boolean>;
|
|
1418
|
-
default: boolean;
|
|
1419
|
-
};
|
|
1420
|
-
hideRequiredAsterisk: {
|
|
1421
|
-
type: PropType<boolean>;
|
|
1422
|
-
};
|
|
1423
|
-
scrollToError: {
|
|
1424
|
-
type: PropType<boolean>;
|
|
1425
|
-
};
|
|
1426
|
-
scrollIntoViewOptions: {
|
|
1427
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
1428
|
-
default: boolean;
|
|
1429
|
-
};
|
|
1430
|
-
}>> & {
|
|
1300
|
+
}> & Omit<Readonly< FormProps> & Readonly<{
|
|
1431
1301
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1432
|
-
}
|
|
1302
|
+
}>, "clearValidate" | "validate" | "fields" | "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
1433
1303
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
1434
1304
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
1435
1305
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -1512,7 +1382,7 @@ declare function __VLS_template(): {
|
|
|
1512
1382
|
}, string, {
|
|
1513
1383
|
footer: boolean;
|
|
1514
1384
|
inline: boolean;
|
|
1515
|
-
footerAlign: "
|
|
1385
|
+
footerAlign: "right" | "left" | "center";
|
|
1516
1386
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
1517
1387
|
model: Record<string, any>;
|
|
1518
1388
|
submitText: string | null;
|
|
@@ -1542,7 +1412,7 @@ declare function __VLS_template(): {
|
|
|
1542
1412
|
} & Readonly<{
|
|
1543
1413
|
footer: boolean;
|
|
1544
1414
|
inline: boolean;
|
|
1545
|
-
footerAlign: "
|
|
1415
|
+
footerAlign: "right" | "left" | "center";
|
|
1546
1416
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
1547
1417
|
model: Record<string, any>;
|
|
1548
1418
|
submitText: string | null;
|
|
@@ -1728,8 +1598,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1728
1598
|
readonly title?: string | undefined;
|
|
1729
1599
|
readonly zIndex?: number | undefined;
|
|
1730
1600
|
readonly cancel?: string | boolean | undefined;
|
|
1731
|
-
readonly left?: string | number | undefined;
|
|
1732
1601
|
readonly top?: string | number | undefined;
|
|
1602
|
+
readonly left?: string | number | undefined;
|
|
1733
1603
|
readonly submit?: string | boolean | undefined;
|
|
1734
1604
|
readonly subtitle?: string | undefined;
|
|
1735
1605
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
@@ -1788,9 +1658,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1788
1658
|
stop: () => void;
|
|
1789
1659
|
}) => any) | undefined;
|
|
1790
1660
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "primary" | "mode" | "pure" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
|
|
1791
|
-
$attrs:
|
|
1792
|
-
[x: string]: unknown;
|
|
1793
|
-
};
|
|
1661
|
+
$attrs: Attrs;
|
|
1794
1662
|
$refs: {
|
|
1795
1663
|
[x: string]: unknown;
|
|
1796
1664
|
} & {
|
|
@@ -1972,9 +1840,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1972
1840
|
readonly height?: string | number | undefined;
|
|
1973
1841
|
readonly shadow?: "hover" | "always" | "none" | undefined;
|
|
1974
1842
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
|
|
1975
|
-
$attrs:
|
|
1976
|
-
[x: string]: unknown;
|
|
1977
|
-
};
|
|
1843
|
+
$attrs: Attrs;
|
|
1978
1844
|
$refs: {
|
|
1979
1845
|
[x: string]: unknown;
|
|
1980
1846
|
} & {
|
|
@@ -2017,9 +1883,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2017
1883
|
readonly height?: string | number | undefined;
|
|
2018
1884
|
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
|
2019
1885
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
2020
|
-
$attrs:
|
|
2021
|
-
[x: string]: unknown;
|
|
2022
|
-
};
|
|
1886
|
+
$attrs: Attrs;
|
|
2023
1887
|
$refs: {
|
|
2024
1888
|
[x: string]: unknown;
|
|
2025
1889
|
} & {
|
|
@@ -2862,7 +2726,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2862
2726
|
$props: Partial<{
|
|
2863
2727
|
footer: boolean;
|
|
2864
2728
|
inline: boolean;
|
|
2865
|
-
footerAlign: "
|
|
2729
|
+
footerAlign: "right" | "left" | "center";
|
|
2866
2730
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
2867
2731
|
model: Record<string, any>;
|
|
2868
2732
|
submitText: string | null;
|
|
@@ -2872,7 +2736,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2872
2736
|
}> & Omit<{
|
|
2873
2737
|
readonly footer: boolean;
|
|
2874
2738
|
readonly inline: boolean;
|
|
2875
|
-
readonly footerAlign: "
|
|
2739
|
+
readonly footerAlign: "right" | "left" | "center";
|
|
2876
2740
|
readonly submitText: string | null;
|
|
2877
2741
|
readonly resetText: string | null;
|
|
2878
2742
|
readonly enterSubmit: boolean;
|
|
@@ -2885,45 +2749,33 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2885
2749
|
readonly onReset?: (() => any) | undefined;
|
|
2886
2750
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
2887
2751
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "footerAlign" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit" | "sticky">;
|
|
2888
|
-
$attrs:
|
|
2889
|
-
[x: string]: unknown;
|
|
2890
|
-
};
|
|
2752
|
+
$attrs: Attrs;
|
|
2891
2753
|
$refs: {
|
|
2892
2754
|
[x: string]: unknown;
|
|
2893
2755
|
} & {
|
|
2894
2756
|
formRef: ({
|
|
2895
2757
|
$: ComponentInternalInstance;
|
|
2896
2758
|
$data: {};
|
|
2897
|
-
$props:
|
|
2898
|
-
labelWidth: string | number;
|
|
2899
|
-
labelPosition: "left" | "right" | "top";
|
|
2900
|
-
showMessage: boolean;
|
|
2901
|
-
requireAsteriskPosition: "left" | "right";
|
|
2902
|
-
labelSuffix: string;
|
|
2903
|
-
validateOnRuleChange: boolean;
|
|
2904
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
2905
|
-
}> & Omit<{
|
|
2906
|
-
readonly labelWidth: string | number;
|
|
2907
|
-
readonly labelPosition: "left" | "right" | "top";
|
|
2908
|
-
readonly showMessage: boolean;
|
|
2909
|
-
readonly requireAsteriskPosition: "left" | "right";
|
|
2910
|
-
readonly labelSuffix: string;
|
|
2911
|
-
readonly validateOnRuleChange: boolean;
|
|
2912
|
-
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
2913
|
-
readonly size?: ComponentSize | undefined;
|
|
2914
|
-
readonly disabled?: boolean | undefined;
|
|
2915
|
-
readonly inline?: boolean | undefined;
|
|
2759
|
+
$props: {
|
|
2916
2760
|
readonly model?: Record<string, any> | undefined;
|
|
2917
2761
|
readonly rules?: FormRules | undefined;
|
|
2762
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
2763
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
2764
|
+
readonly labelWidth?: string | number | undefined;
|
|
2765
|
+
readonly labelSuffix?: string | undefined;
|
|
2766
|
+
readonly inline?: boolean | undefined;
|
|
2918
2767
|
readonly inlineMessage?: boolean | undefined;
|
|
2919
2768
|
readonly statusIcon?: boolean | undefined;
|
|
2769
|
+
readonly showMessage?: boolean | undefined;
|
|
2770
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
2920
2771
|
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
2921
2772
|
readonly scrollToError?: boolean | undefined;
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
};
|
|
2773
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
2774
|
+
readonly size?: ComponentSize | undefined;
|
|
2775
|
+
readonly disabled?: boolean | undefined;
|
|
2776
|
+
readonly onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
2777
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
2778
|
+
$attrs: Attrs;
|
|
2927
2779
|
$refs: {
|
|
2928
2780
|
[x: string]: unknown;
|
|
2929
2781
|
};
|
|
@@ -2935,65 +2787,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2935
2787
|
$host: Element | null;
|
|
2936
2788
|
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
2937
2789
|
$el: any;
|
|
2938
|
-
$options: ComponentOptionsBase<Readonly<
|
|
2939
|
-
size: {
|
|
2940
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
2941
|
-
};
|
|
2942
|
-
disabled: {
|
|
2943
|
-
type: PropType<boolean>;
|
|
2944
|
-
};
|
|
2945
|
-
inline: {
|
|
2946
|
-
type: PropType<boolean>;
|
|
2947
|
-
};
|
|
2948
|
-
model: {
|
|
2949
|
-
type: PropType<Record<string, any>>;
|
|
2950
|
-
};
|
|
2951
|
-
labelWidth: {
|
|
2952
|
-
type: PropType<string | number>;
|
|
2953
|
-
default: string;
|
|
2954
|
-
};
|
|
2955
|
-
labelPosition: {
|
|
2956
|
-
type: PropType<"left" | "right" | "top">;
|
|
2957
|
-
default: string;
|
|
2958
|
-
};
|
|
2959
|
-
rules: {
|
|
2960
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2961
|
-
};
|
|
2962
|
-
inlineMessage: {
|
|
2963
|
-
type: PropType<boolean>;
|
|
2964
|
-
};
|
|
2965
|
-
showMessage: {
|
|
2966
|
-
type: PropType<boolean>;
|
|
2967
|
-
default: boolean;
|
|
2968
|
-
};
|
|
2969
|
-
requireAsteriskPosition: {
|
|
2970
|
-
type: PropType<"left" | "right">;
|
|
2971
|
-
default: string;
|
|
2972
|
-
};
|
|
2973
|
-
labelSuffix: {
|
|
2974
|
-
type: PropType<string>;
|
|
2975
|
-
default: string;
|
|
2976
|
-
};
|
|
2977
|
-
statusIcon: {
|
|
2978
|
-
type: PropType<boolean>;
|
|
2979
|
-
};
|
|
2980
|
-
validateOnRuleChange: {
|
|
2981
|
-
type: PropType<boolean>;
|
|
2982
|
-
default: boolean;
|
|
2983
|
-
};
|
|
2984
|
-
hideRequiredAsterisk: {
|
|
2985
|
-
type: PropType<boolean>;
|
|
2986
|
-
};
|
|
2987
|
-
scrollToError: {
|
|
2988
|
-
type: PropType<boolean>;
|
|
2989
|
-
};
|
|
2990
|
-
scrollIntoViewOptions: {
|
|
2991
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
2992
|
-
default: boolean;
|
|
2993
|
-
};
|
|
2994
|
-
}>> & {
|
|
2790
|
+
$options: ComponentOptionsBase<Readonly< FormProps> & Readonly<{
|
|
2995
2791
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
2996
|
-
}
|
|
2792
|
+
}>, {
|
|
2997
2793
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
2998
2794
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
2999
2795
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -3002,16 +2798,16 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3002
2798
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
3003
2799
|
fields: Reactive< FormItemContext[]>;
|
|
3004
2800
|
setInitialValues: (initModel: Record<string, any>) => void;
|
|
3005
|
-
},
|
|
2801
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3006
2802
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
3007
2803
|
}, string, {
|
|
2804
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
3008
2805
|
labelWidth: string | number;
|
|
3009
2806
|
labelPosition: "left" | "right" | "top";
|
|
3010
|
-
showMessage: boolean;
|
|
3011
2807
|
requireAsteriskPosition: "left" | "right";
|
|
3012
2808
|
labelSuffix: string;
|
|
2809
|
+
showMessage: boolean;
|
|
3013
2810
|
validateOnRuleChange: boolean;
|
|
3014
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
3015
2811
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
3016
2812
|
beforeCreate?: (() => void) | (() => void)[];
|
|
3017
2813
|
created?: (() => void) | (() => void)[];
|
|
@@ -3033,72 +2829,16 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3033
2829
|
$nextTick: nextTick;
|
|
3034
2830
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
3035
2831
|
} & Readonly<{
|
|
2832
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
3036
2833
|
labelWidth: string | number;
|
|
3037
2834
|
labelPosition: "left" | "right" | "top";
|
|
3038
|
-
showMessage: boolean;
|
|
3039
2835
|
requireAsteriskPosition: "left" | "right";
|
|
3040
2836
|
labelSuffix: string;
|
|
2837
|
+
showMessage: boolean;
|
|
3041
2838
|
validateOnRuleChange: boolean;
|
|
3042
|
-
|
|
3043
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
|
3044
|
-
size: {
|
|
3045
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
3046
|
-
};
|
|
3047
|
-
disabled: {
|
|
3048
|
-
type: PropType<boolean>;
|
|
3049
|
-
};
|
|
3050
|
-
inline: {
|
|
3051
|
-
type: PropType<boolean>;
|
|
3052
|
-
};
|
|
3053
|
-
model: {
|
|
3054
|
-
type: PropType<Record<string, any>>;
|
|
3055
|
-
};
|
|
3056
|
-
labelWidth: {
|
|
3057
|
-
type: PropType<string | number>;
|
|
3058
|
-
default: string;
|
|
3059
|
-
};
|
|
3060
|
-
labelPosition: {
|
|
3061
|
-
type: PropType<"left" | "right" | "top">;
|
|
3062
|
-
default: string;
|
|
3063
|
-
};
|
|
3064
|
-
rules: {
|
|
3065
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
3066
|
-
};
|
|
3067
|
-
inlineMessage: {
|
|
3068
|
-
type: PropType<boolean>;
|
|
3069
|
-
};
|
|
3070
|
-
showMessage: {
|
|
3071
|
-
type: PropType<boolean>;
|
|
3072
|
-
default: boolean;
|
|
3073
|
-
};
|
|
3074
|
-
requireAsteriskPosition: {
|
|
3075
|
-
type: PropType<"left" | "right">;
|
|
3076
|
-
default: string;
|
|
3077
|
-
};
|
|
3078
|
-
labelSuffix: {
|
|
3079
|
-
type: PropType<string>;
|
|
3080
|
-
default: string;
|
|
3081
|
-
};
|
|
3082
|
-
statusIcon: {
|
|
3083
|
-
type: PropType<boolean>;
|
|
3084
|
-
};
|
|
3085
|
-
validateOnRuleChange: {
|
|
3086
|
-
type: PropType<boolean>;
|
|
3087
|
-
default: boolean;
|
|
3088
|
-
};
|
|
3089
|
-
hideRequiredAsterisk: {
|
|
3090
|
-
type: PropType<boolean>;
|
|
3091
|
-
};
|
|
3092
|
-
scrollToError: {
|
|
3093
|
-
type: PropType<boolean>;
|
|
3094
|
-
};
|
|
3095
|
-
scrollIntoViewOptions: {
|
|
3096
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
3097
|
-
default: boolean;
|
|
3098
|
-
};
|
|
3099
|
-
}>> & {
|
|
2839
|
+
}> & Omit<Readonly< FormProps> & Readonly<{
|
|
3100
2840
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
3101
|
-
}
|
|
2841
|
+
}>, "clearValidate" | "validate" | "fields" | "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
3102
2842
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
3103
2843
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
3104
2844
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -3181,7 +2921,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3181
2921
|
}, string, {
|
|
3182
2922
|
footer: boolean;
|
|
3183
2923
|
inline: boolean;
|
|
3184
|
-
footerAlign: "
|
|
2924
|
+
footerAlign: "right" | "left" | "center";
|
|
3185
2925
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
3186
2926
|
model: Record<string, any>;
|
|
3187
2927
|
submitText: string | null;
|
|
@@ -3211,7 +2951,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3211
2951
|
} & Readonly<{
|
|
3212
2952
|
footer: boolean;
|
|
3213
2953
|
inline: boolean;
|
|
3214
|
-
footerAlign: "
|
|
2954
|
+
footerAlign: "right" | "left" | "center";
|
|
3215
2955
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
3216
2956
|
model: Record<string, any>;
|
|
3217
2957
|
submitText: string | null;
|