@vunk/form 1.1.76 → 1.1.79
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} +24 -23
- package/components/color-picker/src/ctx.d.ts +29 -29
- package/components/color-picker/src/index.vue.d.ts +77 -64
- package/components/date-picker/{index.js → index.mjs} +28 -25
- package/components/date-picker/src/ctx.d.ts +49 -49
- package/components/date-picker/src/index.vue.d.ts +104 -104
- 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} +31 -27
- 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/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 +4 -169
- package/index.d.ts +1 -1
- package/index.esm.js +44 -1
- package/package.json +246 -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/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,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="arcgis-js-api" />
|
|
2
1
|
import { PropType } from 'vue';
|
|
3
2
|
import MapView from '@arcgis/core/views/MapView';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
view: {
|
|
6
|
-
type: PropType<MapView>;
|
|
5
|
+
type: PropType<__esri.MapView>;
|
|
7
6
|
default: any;
|
|
8
7
|
};
|
|
9
8
|
viewComponent: {
|
|
@@ -11,13 +10,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
10
|
default: () => import("vue").DefineComponent<{}, {
|
|
12
11
|
readonly VaTdtBasemap: import("vue").DefineComponent<{
|
|
13
12
|
spatialReference: {
|
|
14
|
-
type: PropType<__esri.SpatialReferenceProperties>;
|
|
13
|
+
type: import("vue").PropType<__esri.SpatialReferenceProperties>;
|
|
15
14
|
default: () => {
|
|
16
15
|
wkid: number;
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
type: {
|
|
20
|
-
type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
19
|
+
type: import("vue").PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
21
20
|
default: string;
|
|
22
21
|
};
|
|
23
22
|
orphan: {
|
|
@@ -45,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
44
|
default: any;
|
|
46
45
|
};
|
|
47
46
|
webTileLayerOptions: {
|
|
48
|
-
type: PropType<__esri.WebTileLayerProperties>;
|
|
47
|
+
type: import("vue").PropType<__esri.WebTileLayerProperties>;
|
|
49
48
|
default: () => __esri.WebTileLayerProperties;
|
|
50
49
|
};
|
|
51
50
|
}, {
|
|
@@ -55,13 +54,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
54
|
load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
|
|
56
55
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
56
|
spatialReference: {
|
|
58
|
-
type: PropType<__esri.SpatialReferenceProperties>;
|
|
57
|
+
type: import("vue").PropType<__esri.SpatialReferenceProperties>;
|
|
59
58
|
default: () => {
|
|
60
59
|
wkid: number;
|
|
61
60
|
};
|
|
62
61
|
};
|
|
63
62
|
type: {
|
|
64
|
-
type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
63
|
+
type: import("vue").PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
65
64
|
default: string;
|
|
66
65
|
};
|
|
67
66
|
orphan: {
|
|
@@ -89,7 +88,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
88
|
default: any;
|
|
90
89
|
};
|
|
91
90
|
webTileLayerOptions: {
|
|
92
|
-
type: PropType<__esri.WebTileLayerProperties>;
|
|
91
|
+
type: import("vue").PropType<__esri.WebTileLayerProperties>;
|
|
93
92
|
default: () => __esri.WebTileLayerProperties;
|
|
94
93
|
};
|
|
95
94
|
}>> & {
|
|
@@ -109,7 +108,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
108
|
}, {}>;
|
|
110
109
|
readonly VaMapView: import("vue").DefineComponent<{
|
|
111
110
|
defaultOptions: {
|
|
112
|
-
type: PropType<__esri.MapViewProperties>;
|
|
111
|
+
type: import("vue").PropType<__esri.MapViewProperties>;
|
|
113
112
|
default: () => {};
|
|
114
113
|
};
|
|
115
114
|
cursor: {
|
|
@@ -125,7 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
124
|
'update:cursor': (e: string) => string | true;
|
|
126
125
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
127
126
|
defaultOptions: {
|
|
128
|
-
type: PropType<__esri.MapViewProperties>;
|
|
127
|
+
type: import("vue").PropType<__esri.MapViewProperties>;
|
|
129
128
|
default: () => {};
|
|
130
129
|
};
|
|
131
130
|
cursor: {
|
|
@@ -147,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
147
146
|
};
|
|
148
147
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
149
148
|
view: {
|
|
150
|
-
type: PropType<MapView>;
|
|
149
|
+
type: PropType<__esri.MapView>;
|
|
151
150
|
default: any;
|
|
152
151
|
};
|
|
153
152
|
viewComponent: {
|
|
@@ -155,13 +154,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
154
|
default: () => import("vue").DefineComponent<{}, {
|
|
156
155
|
readonly VaTdtBasemap: import("vue").DefineComponent<{
|
|
157
156
|
spatialReference: {
|
|
158
|
-
type: PropType<__esri.SpatialReferenceProperties>;
|
|
157
|
+
type: import("vue").PropType<__esri.SpatialReferenceProperties>;
|
|
159
158
|
default: () => {
|
|
160
159
|
wkid: number;
|
|
161
160
|
};
|
|
162
161
|
};
|
|
163
162
|
type: {
|
|
164
|
-
type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
163
|
+
type: import("vue").PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
165
164
|
default: string;
|
|
166
165
|
};
|
|
167
166
|
orphan: {
|
|
@@ -189,7 +188,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
188
|
default: any;
|
|
190
189
|
};
|
|
191
190
|
webTileLayerOptions: {
|
|
192
|
-
type: PropType<__esri.WebTileLayerProperties>;
|
|
191
|
+
type: import("vue").PropType<__esri.WebTileLayerProperties>;
|
|
193
192
|
default: () => __esri.WebTileLayerProperties;
|
|
194
193
|
};
|
|
195
194
|
}, {
|
|
@@ -199,13 +198,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
198
|
load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
|
|
200
199
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
201
200
|
spatialReference: {
|
|
202
|
-
type: PropType<__esri.SpatialReferenceProperties>;
|
|
201
|
+
type: import("vue").PropType<__esri.SpatialReferenceProperties>;
|
|
203
202
|
default: () => {
|
|
204
203
|
wkid: number;
|
|
205
204
|
};
|
|
206
205
|
};
|
|
207
206
|
type: {
|
|
208
|
-
type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
207
|
+
type: import("vue").PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
|
|
209
208
|
default: string;
|
|
210
209
|
};
|
|
211
210
|
orphan: {
|
|
@@ -233,7 +232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
233
232
|
default: any;
|
|
234
233
|
};
|
|
235
234
|
webTileLayerOptions: {
|
|
236
|
-
type: PropType<__esri.WebTileLayerProperties>;
|
|
235
|
+
type: import("vue").PropType<__esri.WebTileLayerProperties>;
|
|
237
236
|
default: () => __esri.WebTileLayerProperties;
|
|
238
237
|
};
|
|
239
238
|
}>> & {
|
|
@@ -253,7 +252,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
253
252
|
}, {}>;
|
|
254
253
|
readonly VaMapView: import("vue").DefineComponent<{
|
|
255
254
|
defaultOptions: {
|
|
256
|
-
type: PropType<__esri.MapViewProperties>;
|
|
255
|
+
type: import("vue").PropType<__esri.MapViewProperties>;
|
|
257
256
|
default: () => {};
|
|
258
257
|
};
|
|
259
258
|
cursor: {
|
|
@@ -269,7 +268,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
269
268
|
'update:cursor': (e: string) => string | true;
|
|
270
269
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
271
270
|
defaultOptions: {
|
|
272
|
-
type: PropType<__esri.MapViewProperties>;
|
|
271
|
+
type: import("vue").PropType<__esri.MapViewProperties>;
|
|
273
272
|
default: () => {};
|
|
274
273
|
};
|
|
275
274
|
cursor: {
|
|
@@ -9,6 +9,7 @@ import { VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
|
9
9
|
import { VkfTemplatesLayout } from '@vunk/form/components/templates-layout';
|
|
10
10
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
11
11
|
import { genTemplateIfFunc } from '@vunk/form/shared/form';
|
|
12
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
12
13
|
|
|
13
14
|
const props = {
|
|
14
15
|
...formProps,
|
|
@@ -87,20 +88,24 @@ const genColItem = (formItem, options = {}) => {
|
|
|
87
88
|
...options,
|
|
88
89
|
templateType: "ElCol",
|
|
89
90
|
span,
|
|
90
|
-
templateSlots: [
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
templateSlots: [
|
|
92
|
+
pickObject(formItem, {
|
|
93
|
+
excludes: ["span"]
|
|
94
|
+
})
|
|
95
|
+
]
|
|
93
96
|
};
|
|
94
97
|
};
|
|
95
98
|
const genRowItem = (defaultItem, options = {}) => {
|
|
96
99
|
return {
|
|
97
100
|
...options,
|
|
98
101
|
templateType: "ElRow",
|
|
99
|
-
templateSlots: defaultItem ? [
|
|
102
|
+
templateSlots: defaultItem ? [
|
|
103
|
+
defaultItem
|
|
104
|
+
] : []
|
|
100
105
|
};
|
|
101
106
|
};
|
|
102
107
|
|
|
103
|
-
var
|
|
108
|
+
var _sfc_main = defineComponent({
|
|
104
109
|
name: "VkfForm",
|
|
105
110
|
props,
|
|
106
111
|
emits,
|
|
@@ -110,9 +115,7 @@ var script = defineComponent({
|
|
|
110
115
|
VkfTemplatesDefault,
|
|
111
116
|
VkfTemplatesLayout
|
|
112
117
|
},
|
|
113
|
-
setup(props2, {
|
|
114
|
-
emit
|
|
115
|
-
}) {
|
|
118
|
+
setup(props2, { emit }) {
|
|
116
119
|
const formProps = createFormBindProps(props2, ["model"]);
|
|
117
120
|
const formEmits = createFormOnEmits(emit);
|
|
118
121
|
const formRef = shallowRef();
|
|
@@ -166,7 +169,7 @@ var script = defineComponent({
|
|
|
166
169
|
}
|
|
167
170
|
});
|
|
168
171
|
|
|
169
|
-
function
|
|
172
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
170
173
|
const _component_VkfTemplatesDefault = resolveComponent("VkfTemplatesDefault");
|
|
171
174
|
const _component_VkfTemplatesLayout = resolveComponent("VkfTemplatesLayout");
|
|
172
175
|
const _component_VkfFormItemRenderer = resolveComponent("VkfFormItemRenderer");
|
|
@@ -180,32 +183,33 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
180
183
|
ref: _ctx.getRef,
|
|
181
184
|
onSubmit: _ctx.handleSubmit
|
|
182
185
|
}), {
|
|
183
|
-
default: withCtx(() => [
|
|
184
|
-
source: _ctx.rendererSource
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
186
|
+
default: withCtx(() => [
|
|
187
|
+
createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createVNode(_component_VkfTemplatesDefault, {
|
|
190
|
+
data: _ctx.data,
|
|
191
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
192
|
+
}, null, 8, ["data"]),
|
|
193
|
+
createVNode(_component_VkfTemplatesLayout, { data: _ctx.data }, null, 8, ["data"]),
|
|
194
|
+
renderSlot(_ctx.$slots, "rendererTemplate")
|
|
195
|
+
]),
|
|
196
|
+
_: 3
|
|
197
|
+
/* FORWARDED */
|
|
198
|
+
}, 8, ["source"]),
|
|
199
|
+
renderSlot(_ctx.$slots, "default")
|
|
200
|
+
]),
|
|
195
201
|
_: 3
|
|
196
202
|
/* FORWARDED */
|
|
197
203
|
}, 16, ["class", "model", "onSubmit"]);
|
|
198
204
|
}
|
|
199
|
-
|
|
200
|
-
script.render = render;
|
|
201
|
-
script.__file = "form/src/index.vue";
|
|
205
|
+
var VkfForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\form\\src\\index.vue"]]);
|
|
202
206
|
|
|
203
207
|
var types = /*#__PURE__*/Object.freeze({
|
|
204
208
|
__proto__: null
|
|
205
209
|
});
|
|
206
210
|
|
|
207
|
-
|
|
208
|
-
app.component(
|
|
211
|
+
VkfForm.install = (app) => {
|
|
212
|
+
app.component(VkfForm.name, VkfForm);
|
|
209
213
|
};
|
|
210
214
|
|
|
211
|
-
export {
|
|
215
|
+
export { VkfForm, ctx as _VkfFormCtx, types as __VkfForm, VkfForm as default };
|
|
@@ -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]; };
|