@vunk/form 1.1.77 → 1.1.80
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/components/_plugin-vue_export-helper.mjs +9 -0
- package/components/button/{index.js → index.mjs} +33 -29
- package/components/button/src/ctx.d.ts +30 -30
- package/components/button/src/index.vue.d.ts +69 -69
- package/components/cascader/index.css +0 -2
- package/components/cascader/{index.js → index.mjs} +22 -22
- package/components/cascader/src/ctx.d.ts +37 -45
- package/components/cascader/src/index.vue.d.ts +92 -92
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.css +0 -9
- package/components/checkbox/{index.js → index.mjs} +45 -42
- package/components/checkbox/src/ctx.d.ts +29 -32
- package/components/checkbox/src/index.vue.d.ts +65 -65
- package/components/color-picker/{index.js → index.mjs} +23 -22
- package/components/color-picker/src/ctx.d.ts +29 -29
- package/components/color-picker/src/index.vue.d.ts +67 -67
- package/components/date-picker/index.d.ts +1 -0
- package/components/date-picker/{index.js → index.mjs} +46 -26
- package/components/date-picker/src/ctx.d.ts +51 -49
- package/components/date-picker/src/index.vue.d.ts +104 -104
- package/components/date-picker-range/index.css +18 -0
- package/components/date-picker-range/index.d.ts +4 -0
- package/components/date-picker-range/index.mjs +164 -0
- package/components/date-picker-range/src/ctx.d.ts +177 -0
- package/components/date-picker-range/src/index.vue.d.ts +398 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/download-plus/index.css +0 -6
- package/components/download-plus/{index.js → index.mjs} +119 -147
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +27 -26
- package/components/download-plus/src/index.vue.d.ts +59 -59
- package/components/esri-input-geojson/index.css +0 -10
- package/components/esri-input-geojson/index.mjs +1109 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +49 -72
- package/components/esri-input-geojson/src/index.vue.d.ts +138 -158
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +18 -19
- package/components/form/{index.js → index.mjs} +38 -36
- package/components/form/src/ctx.d.ts +13 -297
- package/components/form/src/index.vue.d.ts +97 -659
- package/components/form-item/index.css +0 -8
- package/components/form-item/{index.js → index.mjs} +22 -19
- package/components/form-item/src/ctx.d.ts +13 -11
- package/components/form-item/src/index.vue.d.ts +20 -20
- package/components/form-item-renderer/{index.js → index.mjs} +9 -7
- package/components/form-item-renderer/src/index.vue.d.ts +1 -1
- package/components/form-item-renderer-template/{index.js → index.mjs} +7 -7
- package/components/geoinput/{index.js → index.mjs} +10 -17
- package/components/geoinput/src/ctx.d.ts +48 -60
- package/components/geoinput/src/index.vue.d.ts +114 -132
- package/components/geoinput-read/index.css +0 -2
- package/components/geoinput-read/{index.js → index.mjs} +101 -109
- package/components/geoinput-read/src/core.vue.d.ts +123 -142
- package/components/geoinput-read/src/ctx.d.ts +50 -74
- package/components/geoinput-read/src/index.vue.d.ts +102 -120
- package/components/geoinput-update/index.css +0 -6
- package/components/geoinput-update/index.mjs +399 -0
- package/components/geoinput-update/src/ctx.d.ts +49 -69
- package/components/geoinput-update/src/index.vue.d.ts +126 -141
- package/components/index.mjs +11 -0
- package/components/index2.mjs +306 -0
- package/components/index3.mjs +484 -0
- package/components/input/{index.js → index.mjs} +31 -27
- package/components/input/src/ctx.d.ts +47 -66
- package/components/input/src/index.vue.d.ts +101 -113
- package/components/input-link/index.css +0 -2
- package/components/input-link/index.mjs +151 -0
- package/components/input-link/src/ctx.d.ts +40 -56
- package/components/input-link/src/index.vue.d.ts +89 -101
- package/components/input-number/index.css +0 -2
- package/components/input-number/{index.js → index.mjs} +25 -25
- package/components/input-number/src/ctx.d.ts +31 -37
- package/components/input-number/src/index.vue.d.ts +71 -71
- package/components/radio/index.css +0 -6
- package/components/radio/{index.js → index.mjs} +50 -47
- package/components/radio/src/ctx.d.ts +29 -29
- package/components/radio/src/index.vue.d.ts +64 -64
- package/components/select/index.css +0 -2
- package/components/select/{index.js → index.mjs} +49 -48
- package/components/select/src/ctx.d.ts +31 -85
- package/components/select/src/index.vue.d.ts +121 -230
- package/components/slider/{index.js → index.mjs} +28 -24
- package/components/slider/src/ctx.d.ts +35 -35
- package/components/slider/src/index.vue.d.ts +93 -93
- package/components/switch/index.css +0 -2
- package/components/switch/{index.js → index.mjs} +29 -24
- package/components/switch/src/ctx.d.ts +40 -40
- package/components/switch/src/index.vue.d.ts +91 -91
- package/components/templates-default/index.mjs +302 -0
- package/components/templates-default/src/ctx.d.ts +2 -4
- package/components/templates-default/src/index.vue.d.ts +2 -8
- package/components/templates-element-plus/index.mjs +106 -0
- package/components/templates-esri/index.mjs +59 -0
- package/components/templates-layout/index.css +0 -3
- package/components/templates-layout/index.mjs +131 -0
- package/components/templates-mapbox/index.mjs +59 -0
- package/components/templates-variant/index.d.ts +4 -0
- package/components/templates-variant/index.mjs +64 -0
- package/components/templates-variant/src/ctx.d.ts +11 -0
- package/components/templates-variant/src/index.vue.d.ts +20 -0
- package/components/templates-variant/src/types.d.ts +2 -0
- package/components/upload/index.css +0 -7
- package/components/upload/index.mjs +501 -0
- package/components/upload/src/ctx.d.ts +36 -38
- package/components/upload/src/file.vue.d.ts +22 -21
- package/components/upload/src/index.vue.d.ts +78 -78
- package/components/upload-plus/index.css +4 -8
- package/components/upload-plus/{index.js → index.mjs} +9497 -926
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +25 -28
- package/components/upload-plus/src/index.vue.d.ts +58 -58
- package/components/van-cascader/index.css +0 -2
- package/components/van-cascader/{index.js → index.mjs} +41 -44
- package/components/van-cascader/src/ctx.d.ts +35 -35
- package/components/van-cascader/src/index.vue.d.ts +82 -82
- package/components/var-datetime-picker/index.css +0 -2
- package/components/var-datetime-picker/index.mjs +324 -0
- package/components/var-datetime-picker/src/ctx.d.ts +27 -26
- package/components/var-datetime-picker/src/index.vue.d.ts +57 -57
- package/components/vditor/{index.js → index.mjs} +9 -14
- package/components/vditor/src/ctx.d.ts +2 -1
- package/components/vditor/src/index.vue.d.ts +2 -3
- package/composables/index.mjs +85 -0
- package/composables/useSourceManager.d.ts +2 -2
- package/defaults.d.ts +1 -1
- package/index.css +22 -168
- package/index.d.ts +1 -1
- package/index.esm.js +44 -1
- package/package.json +257 -2
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.mjs +56 -0
- package/shared/element-plus/ctx.d.ts +26 -94
- package/shared/element-plus/index.mjs +285 -0
- package/shared/element-plus/instances.d.ts +29 -28
- package/shared/form/index.mjs +30 -0
- package/shared/helper/index.mjs +9 -0
- package/shared/index.mjs +1 -0
- package/shared/infer-prop/index.mjs +34 -0
- package/shared/progress-it/index.mjs +38 -0
- package/shared/rules/index.mjs +53 -0
- package/shared/types/source/index.d.ts +2 -1
- package/shared/upload/index.mjs +771 -0
- package/components/button/src/ctx.js +0 -1
- package/components/cascader/src/ctx.js +0 -1
- package/components/cascader/src/types.js +0 -1
- package/components/cascader/src/use.js +0 -1
- package/components/checkbox/src/ctx.js +0 -1
- package/components/checkbox/src/index.css +0 -1
- package/components/checkbox/src/types.js +0 -1
- package/components/color-picker/index.css +0 -1
- package/components/color-picker/src/ctx.js +0 -1
- package/components/color-picker/src/index.css +0 -1
- package/components/color-picker/src/types.js +0 -1
- package/components/date-picker/index.css +0 -1
- package/components/date-picker/src/ctx.js +0 -1
- package/components/date-picker/src/index.css +0 -1
- package/components/date-picker/src/types.js +0 -1
- package/components/download-plus/src/api.js +0 -1
- package/components/download-plus/src/const.js +0 -1
- package/components/download-plus/src/ctx.js +0 -1
- package/components/download-plus/src/index.css +0 -1
- package/components/download-plus/src/types.js +0 -1
- package/components/esri-input-geojson/index.js +0 -1563
- package/components/esri-input-geojson/src/const.js +0 -1
- package/components/esri-input-geojson/src/ctx.js +0 -1
- package/components/esri-input-geojson/src/index.css +0 -1
- package/components/esri-input-geojson/src/types.js +0 -1
- package/components/form/index.css +0 -1
- package/components/form/src/ctx.js +0 -1
- package/components/form/src/index.css +0 -1
- package/components/form/src/types.js +0 -1
- package/components/form/src/utils.js +0 -1
- package/components/form-item/src/ctx.js +0 -1
- package/components/form-item/src/index.css +0 -1
- package/components/form-item/src/types.js +0 -1
- package/components/form-item-renderer/index.css +0 -1
- package/components/form-item-renderer/src/ctx.js +0 -1
- package/components/form-item-renderer/src/index.css +0 -1
- package/components/form-item-renderer/src/symbols.js +0 -1
- package/components/form-item-renderer/src/types.js +0 -1
- package/components/form-item-renderer-template/index.css +0 -1
- package/components/form-item-renderer-template/src/ctx.js +0 -1
- package/components/form-item-renderer-template/src/index.css +0 -1
- package/components/form-item-renderer-template/src/types.js +0 -1
- package/components/geoinput/index.css +0 -1
- package/components/geoinput/src/ctx.js +0 -1
- package/components/geoinput/src/index.css +0 -1
- package/components/geoinput/src/types.js +0 -1
- package/components/geoinput-read/src/ctx.js +0 -1
- package/components/geoinput-read/src/index.css +0 -1
- package/components/geoinput-read/src/types.js +0 -1
- package/components/geoinput-update/index.js +0 -930
- package/components/geoinput-update/src/ctx.js +0 -1
- package/components/geoinput-update/src/index.css +0 -1
- package/components/geoinput-update/src/types.js +0 -1
- package/components/input/index.css +0 -1
- package/components/input/src/ctx.js +0 -1
- package/components/input/src/index.css +0 -1
- package/components/input/src/types.js +0 -1
- package/components/input-link/index.js +0 -163
- package/components/input-link/src/ctx.js +0 -1
- package/components/input-link/src/index.css +0 -1
- package/components/input-link/src/types.js +0 -1
- package/components/input-number/src/ctx.js +0 -1
- package/components/input-number/src/index.css +0 -1
- package/components/input-number/src/types.js +0 -1
- package/components/radio/src/ctx.js +0 -1
- package/components/radio/src/index.css +0 -1
- package/components/radio/src/types.js +0 -1
- package/components/select/src/ctx.js +0 -1
- package/components/select/src/index.css +0 -1
- package/components/select/src/types.js +0 -1
- package/components/slider/index.css +0 -1
- package/components/slider/src/ctx.js +0 -1
- package/components/slider/src/index.css +0 -1
- package/components/slider/src/types.js +0 -1
- package/components/switch/src/ctx.js +0 -1
- package/components/switch/src/index.css +0 -1
- package/components/switch/src/types.js +0 -1
- package/components/templates-default/index.css +0 -1
- package/components/templates-default/index.js +0 -347
- package/components/templates-default/src/ctx.js +0 -1
- package/components/templates-default/src/index.css +0 -1
- package/components/templates-default/src/types.js +0 -1
- package/components/templates-element-plus/index.css +0 -1
- package/components/templates-element-plus/index.js +0 -110
- package/components/templates-element-plus/src/ctx.js +0 -1
- package/components/templates-element-plus/src/index.css +0 -1
- package/components/templates-element-plus/src/types.js +0 -1
- package/components/templates-esri/index.css +0 -1
- package/components/templates-esri/index.js +0 -65
- package/components/templates-esri/src/ctx.js +0 -1
- package/components/templates-esri/src/index.css +0 -1
- package/components/templates-esri/src/types.js +0 -1
- package/components/templates-layout/index.js +0 -141
- package/components/templates-layout/src/ctx.js +0 -1
- package/components/templates-layout/src/index.css +0 -1
- package/components/templates-layout/src/types.js +0 -1
- package/components/templates-mapbox/index.css +0 -1
- package/components/templates-mapbox/index.js +0 -65
- package/components/templates-mapbox/src/ctx.js +0 -1
- package/components/templates-mapbox/src/index.css +0 -1
- package/components/templates-mapbox/src/types.js +0 -1
- package/components/upload/index.js +0 -565
- package/components/upload/src/ctx.js +0 -1
- package/components/upload/src/index.css +0 -1
- package/components/upload/src/types.js +0 -1
- package/components/upload-plus/src/api.js +0 -28
- package/components/upload-plus/src/const.js +0 -1
- package/components/upload-plus/src/ctx.js +0 -1
- package/components/upload-plus/src/index.css +0 -1
- package/components/upload-plus/src/types.js +0 -1
- package/components/van-cascader/src/ctx.js +0 -1
- package/components/van-cascader/src/index.css +0 -1
- package/components/van-cascader/src/types.js +0 -1
- package/components/var-datetime-picker/index.js +0 -299
- package/components/var-datetime-picker/src/const.js +0 -1
- package/components/var-datetime-picker/src/ctx.js +0 -1
- package/components/var-datetime-picker/src/index.css +0 -1
- package/components/var-datetime-picker/src/types.js +0 -1
- package/components/vditor/index.css +0 -1
- package/components/vditor/src/ctx.js +0 -1
- package/components/vditor/src/index.css +0 -1
- package/components/vditor/src/types.js +0 -1
- package/composables/index.css +0 -1
- package/composables/index.js +0 -1
- package/shared/const/index.css +0 -1
- package/shared/const/index.js +0 -1
- package/shared/element-plus/index.css +0 -1
- package/shared/element-plus/index.js +0 -1
- package/shared/form/index.css +0 -1
- package/shared/form/index.js +0 -1
- package/shared/helper/index.css +0 -1
- package/shared/helper/index.js +0 -1
- package/shared/index.css +0 -1
- package/shared/index.js +0 -1
- package/shared/infer-prop/index.css +0 -1
- package/shared/infer-prop/index.js +0 -1
- package/shared/progress-it/index.css +0 -1
- package/shared/progress-it/index.js +0 -1
- package/shared/rules/index.css +0 -1
- package/shared/rules/index.js +0 -1
- package/shared/types/form/index.css +0 -1
- package/shared/types/form/index.js +0 -1
- package/shared/types/index.css +0 -1
- package/shared/types/index.js +0 -1
- package/shared/types/source/index.css +0 -1
- package/shared/types/source/index.js +0 -1
- package/shared/types/source-manager/index.css +0 -1
- package/shared/types/source-manager/index.js +0 -1
- package/shared/upload/index.css +0 -1
- package/shared/upload/index.js +0 -1
- /package/{components/button/index.css → shared/types/form/index.mjs} +0 -0
- /package/{components/button/src/index.css → shared/types/index.mjs} +0 -0
- /package/{components/cascader/src/index.css → shared/types/source/index.mjs} +0 -0
- /package/{components/button/src/types.js → shared/types/source-manager/index.mjs} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import { ElForm } from 'element-plus';
|
|
3
|
+
import type { Func, SetDataEvent } from '@vunk/core';
|
|
3
4
|
import { ColItem, RowItem } from './types';
|
|
4
5
|
export declare const props: {
|
|
5
6
|
data: {
|
|
@@ -14,288 +15,7 @@ export declare const props: {
|
|
|
14
15
|
type: BooleanConstructor;
|
|
15
16
|
};
|
|
16
17
|
elRef: {
|
|
17
|
-
type: PropType<
|
|
18
|
-
readonly model: ObjectConstructor;
|
|
19
|
-
readonly rules: {
|
|
20
|
-
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
21
|
-
readonly required: false;
|
|
22
|
-
readonly validator: (val: unknown) => boolean;
|
|
23
|
-
__epPropKey: true;
|
|
24
|
-
};
|
|
25
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left" | "top", unknown, "right", boolean>;
|
|
26
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
27
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
28
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
29
|
-
readonly inline: BooleanConstructor;
|
|
30
|
-
readonly inlineMessage: BooleanConstructor;
|
|
31
|
-
readonly statusIcon: BooleanConstructor;
|
|
32
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
33
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
34
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
35
|
-
readonly scrollToError: BooleanConstructor;
|
|
36
|
-
readonly scrollIntoViewOptions: {
|
|
37
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
38
|
-
readonly required: false;
|
|
39
|
-
readonly validator: (val: unknown) => boolean;
|
|
40
|
-
__epPropKey: true;
|
|
41
|
-
};
|
|
42
|
-
readonly size: {
|
|
43
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
44
|
-
readonly required: false;
|
|
45
|
-
readonly validator: (val: unknown) => boolean;
|
|
46
|
-
__epPropKey: true;
|
|
47
|
-
};
|
|
48
|
-
readonly disabled: BooleanConstructor;
|
|
49
|
-
}>> & {
|
|
50
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
51
|
-
}, {
|
|
52
|
-
COMPONENT_NAME: string;
|
|
53
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
-
readonly model: ObjectConstructor;
|
|
55
|
-
readonly rules: {
|
|
56
|
-
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
57
|
-
readonly required: false;
|
|
58
|
-
readonly validator: (val: unknown) => boolean;
|
|
59
|
-
__epPropKey: true;
|
|
60
|
-
};
|
|
61
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left" | "top", unknown, "right", boolean>;
|
|
62
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
63
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
64
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
65
|
-
readonly inline: BooleanConstructor;
|
|
66
|
-
readonly inlineMessage: BooleanConstructor;
|
|
67
|
-
readonly statusIcon: BooleanConstructor;
|
|
68
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
69
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
70
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
71
|
-
readonly scrollToError: BooleanConstructor;
|
|
72
|
-
readonly scrollIntoViewOptions: {
|
|
73
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
74
|
-
readonly required: false;
|
|
75
|
-
readonly validator: (val: unknown) => boolean;
|
|
76
|
-
__epPropKey: true;
|
|
77
|
-
};
|
|
78
|
-
readonly size: {
|
|
79
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
80
|
-
readonly required: false;
|
|
81
|
-
readonly validator: (val: unknown) => boolean;
|
|
82
|
-
__epPropKey: true;
|
|
83
|
-
};
|
|
84
|
-
readonly disabled: BooleanConstructor;
|
|
85
|
-
}>> & {
|
|
86
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
87
|
-
}>>;
|
|
88
|
-
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
89
|
-
fields: import("element-plus").FormItemContext[];
|
|
90
|
-
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
91
|
-
ns: {
|
|
92
|
-
namespace: import("vue").ComputedRef<string>;
|
|
93
|
-
b: (blockSuffix?: string) => string;
|
|
94
|
-
e: (element?: string) => string;
|
|
95
|
-
m: (modifier?: string) => string;
|
|
96
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
97
|
-
em: (element?: string, modifier?: string) => string;
|
|
98
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
99
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
100
|
-
is: {
|
|
101
|
-
(name: string, state: boolean): string;
|
|
102
|
-
(name: string): string;
|
|
103
|
-
};
|
|
104
|
-
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
105
|
-
cssVarName: (name: string) => string;
|
|
106
|
-
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
107
|
-
cssVarBlockName: (name: string) => string;
|
|
108
|
-
};
|
|
109
|
-
formClasses: import("vue").ComputedRef<(string | {
|
|
110
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "right" | "left" | "top", unknown>;
|
|
111
|
-
})[]>;
|
|
112
|
-
getField: (prop: string) => import("element-plus").FormItemContext;
|
|
113
|
-
addField: (field: import("element-plus").FormItemContext) => void;
|
|
114
|
-
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
115
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
116
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
117
|
-
isValidatable: import("vue").ComputedRef<boolean>;
|
|
118
|
-
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
119
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
120
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
121
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
122
|
-
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
123
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
124
|
-
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => boolean;
|
|
125
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
126
|
-
readonly model: ObjectConstructor;
|
|
127
|
-
readonly rules: {
|
|
128
|
-
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
129
|
-
readonly required: false;
|
|
130
|
-
readonly validator: (val: unknown) => boolean;
|
|
131
|
-
__epPropKey: true;
|
|
132
|
-
};
|
|
133
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left" | "top", unknown, "right", boolean>;
|
|
134
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
135
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
136
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
137
|
-
readonly inline: BooleanConstructor;
|
|
138
|
-
readonly inlineMessage: BooleanConstructor;
|
|
139
|
-
readonly statusIcon: BooleanConstructor;
|
|
140
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
141
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
142
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
143
|
-
readonly scrollToError: BooleanConstructor;
|
|
144
|
-
readonly scrollIntoViewOptions: {
|
|
145
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
146
|
-
readonly required: false;
|
|
147
|
-
readonly validator: (val: unknown) => boolean;
|
|
148
|
-
__epPropKey: true;
|
|
149
|
-
};
|
|
150
|
-
readonly size: {
|
|
151
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
152
|
-
readonly required: false;
|
|
153
|
-
readonly validator: (val: unknown) => boolean;
|
|
154
|
-
__epPropKey: true;
|
|
155
|
-
};
|
|
156
|
-
readonly disabled: BooleanConstructor;
|
|
157
|
-
}>> & {
|
|
158
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
159
|
-
}, {
|
|
160
|
-
readonly disabled: boolean;
|
|
161
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "right" | "left" | "top", unknown>;
|
|
162
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
163
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
164
|
-
readonly labelSuffix: string;
|
|
165
|
-
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
166
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
167
|
-
readonly inline: boolean;
|
|
168
|
-
readonly inlineMessage: boolean;
|
|
169
|
-
readonly statusIcon: boolean;
|
|
170
|
-
readonly hideRequiredAsterisk: boolean;
|
|
171
|
-
readonly scrollToError: boolean;
|
|
172
|
-
}, true, {}, {}, {
|
|
173
|
-
P: {};
|
|
174
|
-
B: {};
|
|
175
|
-
D: {};
|
|
176
|
-
C: {};
|
|
177
|
-
M: {};
|
|
178
|
-
Defaults: {};
|
|
179
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
180
|
-
readonly model: ObjectConstructor;
|
|
181
|
-
readonly rules: {
|
|
182
|
-
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
183
|
-
readonly required: false;
|
|
184
|
-
readonly validator: (val: unknown) => boolean;
|
|
185
|
-
__epPropKey: true;
|
|
186
|
-
};
|
|
187
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left" | "top", unknown, "right", boolean>;
|
|
188
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
189
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
190
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
191
|
-
readonly inline: BooleanConstructor;
|
|
192
|
-
readonly inlineMessage: BooleanConstructor;
|
|
193
|
-
readonly statusIcon: BooleanConstructor;
|
|
194
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
195
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
196
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
197
|
-
readonly scrollToError: BooleanConstructor;
|
|
198
|
-
readonly scrollIntoViewOptions: {
|
|
199
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
200
|
-
readonly required: false;
|
|
201
|
-
readonly validator: (val: unknown) => boolean;
|
|
202
|
-
__epPropKey: true;
|
|
203
|
-
};
|
|
204
|
-
readonly size: {
|
|
205
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
206
|
-
readonly required: false;
|
|
207
|
-
readonly validator: (val: unknown) => boolean;
|
|
208
|
-
__epPropKey: true;
|
|
209
|
-
};
|
|
210
|
-
readonly disabled: BooleanConstructor;
|
|
211
|
-
}>> & {
|
|
212
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
213
|
-
}, {
|
|
214
|
-
COMPONENT_NAME: string;
|
|
215
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
216
|
-
readonly model: ObjectConstructor;
|
|
217
|
-
readonly rules: {
|
|
218
|
-
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
219
|
-
readonly required: false;
|
|
220
|
-
readonly validator: (val: unknown) => boolean;
|
|
221
|
-
__epPropKey: true;
|
|
222
|
-
};
|
|
223
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left" | "top", unknown, "right", boolean>;
|
|
224
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
225
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
226
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
227
|
-
readonly inline: BooleanConstructor;
|
|
228
|
-
readonly inlineMessage: BooleanConstructor;
|
|
229
|
-
readonly statusIcon: BooleanConstructor;
|
|
230
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
231
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
232
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
233
|
-
readonly scrollToError: BooleanConstructor;
|
|
234
|
-
readonly scrollIntoViewOptions: {
|
|
235
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
236
|
-
readonly required: false;
|
|
237
|
-
readonly validator: (val: unknown) => boolean;
|
|
238
|
-
__epPropKey: true;
|
|
239
|
-
};
|
|
240
|
-
readonly size: {
|
|
241
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
242
|
-
readonly required: false;
|
|
243
|
-
readonly validator: (val: unknown) => boolean;
|
|
244
|
-
__epPropKey: true;
|
|
245
|
-
};
|
|
246
|
-
readonly disabled: BooleanConstructor;
|
|
247
|
-
}>> & {
|
|
248
|
-
onValidate?: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any;
|
|
249
|
-
}>>;
|
|
250
|
-
emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
251
|
-
fields: import("element-plus").FormItemContext[];
|
|
252
|
-
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
253
|
-
ns: {
|
|
254
|
-
namespace: import("vue").ComputedRef<string>;
|
|
255
|
-
b: (blockSuffix?: string) => string;
|
|
256
|
-
e: (element?: string) => string;
|
|
257
|
-
m: (modifier?: string) => string;
|
|
258
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
259
|
-
em: (element?: string, modifier?: string) => string;
|
|
260
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
261
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
262
|
-
is: {
|
|
263
|
-
(name: string, state: boolean): string;
|
|
264
|
-
(name: string): string;
|
|
265
|
-
};
|
|
266
|
-
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
267
|
-
cssVarName: (name: string) => string;
|
|
268
|
-
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
269
|
-
cssVarBlockName: (name: string) => string;
|
|
270
|
-
};
|
|
271
|
-
formClasses: import("vue").ComputedRef<(string | {
|
|
272
|
-
[x: string]: boolean | import("element-plus/es/utils").EpPropMergeType<StringConstructor, "right" | "left" | "top", unknown>;
|
|
273
|
-
})[]>;
|
|
274
|
-
getField: (prop: string) => import("element-plus").FormItemContext;
|
|
275
|
-
addField: (field: import("element-plus").FormItemContext) => void;
|
|
276
|
-
removeField: (field: import("element-plus").FormItemContext) => void;
|
|
277
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
278
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
279
|
-
isValidatable: import("vue").ComputedRef<boolean>;
|
|
280
|
-
obtainValidateFields: (props: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => import("element-plus").FormItemContext[];
|
|
281
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
282
|
-
doValidateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => Promise<boolean>;
|
|
283
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
284
|
-
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
285
|
-
}, {}, {}, {}, {
|
|
286
|
-
readonly disabled: boolean;
|
|
287
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "right" | "left" | "top", unknown>;
|
|
288
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
289
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
290
|
-
readonly labelSuffix: string;
|
|
291
|
-
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
292
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
293
|
-
readonly inline: boolean;
|
|
294
|
-
readonly inlineMessage: boolean;
|
|
295
|
-
readonly statusIcon: boolean;
|
|
296
|
-
readonly hideRequiredAsterisk: boolean;
|
|
297
|
-
readonly scrollToError: boolean;
|
|
298
|
-
}>) => any>;
|
|
18
|
+
type: PropType<Func<InstanceType<typeof ElForm>>>;
|
|
299
19
|
default: () => () => void;
|
|
300
20
|
};
|
|
301
21
|
/**
|
|
@@ -325,13 +45,13 @@ export declare const props: {
|
|
|
325
45
|
};
|
|
326
46
|
model: ObjectConstructor;
|
|
327
47
|
rules: {
|
|
328
|
-
readonly type: PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
48
|
+
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
329
49
|
readonly required: false;
|
|
330
|
-
readonly validator: (val: unknown) => boolean;
|
|
50
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
331
51
|
__epPropKey: true;
|
|
332
52
|
};
|
|
333
|
-
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
334
|
-
requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
53
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
54
|
+
requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
335
55
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
336
56
|
labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
337
57
|
inline: BooleanConstructor;
|
|
@@ -342,27 +62,23 @@ export declare const props: {
|
|
|
342
62
|
hideRequiredAsterisk: BooleanConstructor;
|
|
343
63
|
scrollToError: BooleanConstructor;
|
|
344
64
|
scrollIntoViewOptions: {
|
|
345
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
65
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
346
66
|
readonly required: false;
|
|
347
|
-
readonly validator: (val: unknown) => boolean;
|
|
67
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
348
68
|
__epPropKey: true;
|
|
349
69
|
};
|
|
350
70
|
size: {
|
|
351
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
71
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
352
72
|
readonly required: false;
|
|
353
|
-
readonly validator: (val: unknown) => boolean;
|
|
73
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
354
74
|
__epPropKey: true;
|
|
355
75
|
};
|
|
356
76
|
disabled: BooleanConstructor;
|
|
357
77
|
};
|
|
358
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"
|
|
78
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"data", keyof T2> | Extract<"model", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2> | Extract<"formItems", keyof T2> | Extract<"layout", keyof T2> | Extract<"rowSource", keyof T2> | Extract<"colSource", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "elRef" | "inline" | "readonly" | "labelPosition" | "labelWidth" | "rules" | "inlineMessage" | "showMessage" | "data" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "layout" | "rowSource" | "colSource", keyof T2>, KE> : Extract<"size" | "disabled" | "elRef" | "inline" | "readonly" | "labelPosition" | "labelWidth" | "rules" | "inlineMessage" | "showMessage" | "data" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "layout" | "rowSource" | "colSource", keyof T2>]: { [k in Extract<"size" | "disabled" | "elRef" | "inline" | "readonly" | "labelPosition" | "labelWidth" | "rules" | "inlineMessage" | "showMessage" | "data" | "model" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "formItems" | "layout" | "rowSource" | "colSource", keyof T2>]: T2[k]; }[P]; }>;
|
|
359
79
|
export declare const emits: {
|
|
360
80
|
setData: (e: SetDataEvent) => SetDataEvent;
|
|
361
81
|
validate: any;
|
|
362
82
|
submit: any;
|
|
363
83
|
};
|
|
364
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("
|
|
365
|
-
setData: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
366
|
-
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
367
|
-
submit: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
368
|
-
}[P]; };
|
|
84
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("submit" | "validate" | "setData")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"submit" | "validate" | "setData", KE> : "submit" | "validate" | "setData"]: { [k in "submit" | "validate" | "setData"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|