@vunk/form 1.1.65 → 1.1.67
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/component.d.ts +1 -1
- package/components/button/index.css +1 -0
- package/components/button/index.d.ts +1 -1
- package/components/button/index.js +43 -57
- package/components/button/src/ctx.d.ts +13 -13
- package/components/button/src/ctx.js +1 -39
- package/components/button/src/index.css +1 -0
- package/components/button/src/index.vue.d.ts +37 -73
- package/components/button/src/types.d.ts +1 -1
- package/components/cascader/index.css +1 -0
- package/components/cascader/index.d.ts +1 -1
- package/components/cascader/index.js +34 -49
- package/components/cascader/src/ctx.d.ts +15 -15
- package/components/cascader/src/ctx.js +1 -38
- package/components/cascader/src/index.css +1 -0
- package/components/cascader/src/index.vue.d.ts +45 -70
- package/components/cascader/src/use.d.ts +1 -1
- package/components/cascader/src/use.js +1 -28
- package/components/checkbox/index.css +1 -0
- package/components/checkbox/index.d.ts +1 -1
- package/components/checkbox/index.js +48 -53
- package/components/checkbox/src/ctx.d.ts +14 -14
- package/components/checkbox/src/ctx.js +1 -46
- package/components/checkbox/src/index.css +1 -0
- package/components/checkbox/src/index.vue.d.ts +43 -63
- package/components/color-picker/index.css +1 -0
- package/components/color-picker/index.d.ts +1 -1
- package/components/color-picker/index.js +38 -42
- package/components/color-picker/src/ctx.d.ts +15 -13
- package/components/color-picker/src/ctx.js +1 -23
- package/components/color-picker/src/index.css +1 -0
- package/components/color-picker/src/index.vue.d.ts +36 -65
- package/components/date-picker/index.css +1 -0
- package/components/date-picker/index.d.ts +1 -1
- package/components/date-picker/index.js +42 -55
- package/components/date-picker/src/ctx.d.ts +41 -34
- package/components/date-picker/src/ctx.js +1 -31
- package/components/date-picker/src/index.css +1 -0
- package/components/date-picker/src/index.vue.d.ts +122 -133
- package/components/date-picker/src/types.d.ts +9 -9
- package/components/date-picker/src/types.js +1 -11
- package/components/esri-input-geojson/index.css +8 -6
- package/components/esri-input-geojson/index.d.ts +1 -1
- package/components/esri-input-geojson/index.js +417 -535
- package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/const.js +1 -33
- package/components/esri-input-geojson/src/ctx.d.ts +44 -35
- package/components/esri-input-geojson/src/ctx.js +1 -128
- package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
- package/components/esri-input-geojson/src/index.css +1 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
- package/components/form/index.css +1 -0
- package/components/form/index.d.ts +1 -1
- package/components/form/index.js +57 -87
- package/components/form/src/ctx.d.ts +176 -204
- package/components/form/src/ctx.js +1 -61
- package/components/form/src/index.css +1 -0
- package/components/form/src/index.vue.d.ts +515 -601
- package/components/form/src/types.d.ts +3 -3
- package/components/form/src/utils.d.ts +1 -1
- package/components/form/src/utils.js +1 -55
- package/components/form-item/index.css +1 -0
- package/components/form-item/index.d.ts +1 -1
- package/components/form-item/index.js +22 -50
- package/components/form-item/src/ctx.d.ts +9 -9
- package/components/form-item/src/ctx.js +1 -53
- package/components/form-item/src/index.css +1 -0
- package/components/form-item/src/index.vue.d.ts +26 -26
- package/components/form-item/src/types.d.ts +1 -1
- package/components/form-item-renderer/index.css +1 -0
- package/components/form-item-renderer/index.d.ts +1 -1
- package/components/form-item-renderer/index.js +10 -18
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/ctx.js +1 -16
- package/components/form-item-renderer/src/index.css +1 -0
- package/components/form-item-renderer/src/index.vue.d.ts +9 -9
- package/components/form-item-renderer/src/symbols.js +1 -3
- package/components/form-item-renderer-template/index.css +1 -0
- package/components/form-item-renderer-template/index.d.ts +1 -1
- package/components/form-item-renderer-template/index.js +6 -13
- package/components/form-item-renderer-template/src/ctx.js +1 -9
- package/components/form-item-renderer-template/src/index.css +1 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
- package/components/geoinput/index.css +1 -0
- package/components/geoinput/index.d.ts +1 -1
- package/components/geoinput/index.js +45 -43
- package/components/geoinput/src/ctx.d.ts +42 -28
- package/components/geoinput/src/ctx.js +1 -39
- package/components/geoinput/src/index.css +1 -0
- package/components/geoinput/src/index.vue.d.ts +111 -223
- package/components/geoinput/src/types.d.ts +3 -3
- package/components/geoinput-read/index.css +1 -0
- package/components/geoinput-read/index.d.ts +1 -1
- package/components/geoinput-read/index.js +120 -160
- package/components/geoinput-read/src/append.vue.d.ts +4 -4
- package/components/geoinput-read/src/core.vue.d.ts +130 -104
- package/components/geoinput-read/src/ctx.d.ts +42 -30
- package/components/geoinput-read/src/ctx.js +1 -66
- package/components/geoinput-read/src/index.css +1 -0
- package/components/geoinput-read/src/index.vue.d.ts +108 -151
- package/components/geoinput-read/src/types.d.ts +1 -1
- package/components/geoinput-update/index.css +9 -7
- package/components/geoinput-update/index.d.ts +1 -1
- package/components/geoinput-update/index.js +335 -366
- package/components/geoinput-update/src/append.vue.d.ts +5 -5
- package/components/geoinput-update/src/ctx.d.ts +38 -28
- package/components/geoinput-update/src/ctx.js +1 -85
- package/components/geoinput-update/src/index.css +1 -0
- package/components/geoinput-update/src/index.vue.d.ts +120 -98
- package/components/geoinput-update/src/types.d.ts +2 -2
- package/components/input/index.css +1 -0
- package/components/input/index.d.ts +1 -1
- package/components/input/index.js +43 -60
- package/components/input/src/ctx.d.ts +31 -25
- package/components/input/src/ctx.js +1 -46
- package/components/input/src/index.css +1 -0
- package/components/input/src/index.vue.d.ts +94 -110
- package/components/input/src/types.d.ts +2 -2
- package/components/input-link/index.css +1 -0
- package/components/input-link/index.d.ts +1 -1
- package/components/input-link/index.js +71 -92
- package/components/input-link/src/ctx.d.ts +26 -20
- package/components/input-link/src/ctx.js +1 -66
- package/components/input-link/src/index.css +1 -0
- package/components/input-link/src/index.vue.d.ts +72 -116
- package/components/input-number/index.css +1 -0
- package/components/input-number/index.d.ts +1 -1
- package/components/input-number/index.js +37 -45
- package/components/input-number/src/ctx.d.ts +15 -15
- package/components/input-number/src/ctx.js +1 -38
- package/components/input-number/src/index.css +1 -0
- package/components/input-number/src/index.vue.d.ts +42 -65
- package/components/input-number/src/types.d.ts +1 -1
- package/components/radio/index.css +1 -0
- package/components/radio/index.d.ts +1 -1
- package/components/radio/index.js +45 -50
- package/components/radio/src/ctx.d.ts +11 -11
- package/components/radio/src/ctx.js +1 -39
- package/components/radio/src/index.css +1 -0
- package/components/radio/src/index.vue.d.ts +41 -60
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/index.css +1 -0
- package/components/select/index.d.ts +1 -1
- package/components/select/index.js +59 -64
- package/components/select/src/ctx.d.ts +39 -41
- package/components/select/src/ctx.js +1 -40
- package/components/select/src/index.css +1 -0
- package/components/select/src/index.vue.d.ts +130 -162
- package/components/select/src/types.d.ts +2 -2
- package/components/slider/index.css +1 -0
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.js +33 -50
- package/components/slider/src/ctx.d.ts +18 -18
- package/components/slider/src/ctx.js +1 -29
- package/components/slider/src/index.css +1 -0
- package/components/slider/src/index.vue.d.ts +62 -81
- package/components/switch/index.css +1 -0
- package/components/switch/index.d.ts +1 -1
- package/components/switch/index.js +33 -50
- package/components/switch/src/ctx.d.ts +22 -22
- package/components/switch/src/ctx.js +1 -31
- package/components/switch/src/index.css +1 -0
- package/components/switch/src/index.vue.d.ts +65 -83
- package/components/switch/src/types.d.ts +1 -1
- package/components/templates-default/index.css +1 -0
- package/components/templates-default/index.d.ts +1 -1
- package/components/templates-default/index.js +243 -172
- package/components/templates-default/src/ctx.d.ts +1 -1
- package/components/templates-default/src/ctx.js +1 -18
- package/components/templates-default/src/index.css +1 -0
- package/components/templates-default/src/index.vue.d.ts +9 -9
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-element-plus/index.css +1 -0
- package/components/templates-element-plus/index.d.ts +1 -1
- package/components/templates-element-plus/index.js +66 -36
- package/components/templates-element-plus/src/ctx.js +1 -9
- package/components/templates-element-plus/src/index.css +1 -0
- package/components/templates-element-plus/src/index.vue.d.ts +7 -7
- package/components/templates-element-plus/src/types.d.ts +1 -1
- package/components/templates-esri/index.css +1 -0
- package/components/templates-esri/index.d.ts +1 -1
- package/components/templates-esri/index.js +25 -24
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/ctx.js +1 -11
- package/components/templates-esri/src/index.css +1 -0
- package/components/templates-esri/src/index.vue.d.ts +6 -6
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-layout/index.css +1 -0
- package/components/templates-layout/index.d.ts +1 -1
- package/components/templates-layout/index.js +96 -63
- package/components/templates-layout/src/ctx.js +1 -9
- package/components/templates-layout/src/index.css +1 -0
- package/components/templates-layout/src/index.vue.d.ts +7 -7
- package/components/templates-layout/src/types.d.ts +3 -3
- package/components/templates-mapbox/index.css +1 -0
- package/components/templates-mapbox/index.d.ts +1 -1
- package/components/templates-mapbox/index.js +25 -24
- package/components/templates-mapbox/src/ctx.d.ts +1 -1
- package/components/templates-mapbox/src/ctx.js +1 -11
- package/components/templates-mapbox/src/index.css +1 -0
- package/components/templates-mapbox/src/index.vue.d.ts +6 -6
- package/components/templates-mapbox/src/types.d.ts +1 -1
- package/components/upload/index.css +11 -9
- package/components/upload/index.d.ts +1 -1
- package/components/upload/index.js +283 -296
- package/components/upload/src/ctx.d.ts +32 -22
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +28 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +63 -62
- package/components/upload-plus/index.css +1 -0
- package/components/upload-plus/index.d.ts +1 -1
- package/components/upload-plus/index.js +911 -9539
- package/components/upload-plus/src/api.d.ts +3 -3
- package/components/upload-plus/src/api.js +21 -18114
- package/components/upload-plus/src/const.js +1 -12
- package/components/upload-plus/src/ctx.d.ts +13 -13
- package/components/upload-plus/src/ctx.js +1 -58
- package/components/upload-plus/src/index.css +1 -0
- package/components/upload-plus/src/index.vue.d.ts +31 -48
- package/components/upload-plus/src/types.d.ts +1 -1
- package/components/van-cascader/index.css +1 -0
- package/components/van-cascader/index.d.ts +1 -1
- package/components/van-cascader/index.js +47 -55
- package/components/van-cascader/src/ctx.d.ts +13 -13
- package/components/van-cascader/src/ctx.js +1 -22
- package/components/van-cascader/src/index.css +1 -0
- package/components/van-cascader/src/index.vue.d.ts +40 -57
- package/components/var-datetime-picker/index.css +1 -0
- package/components/var-datetime-picker/index.d.ts +1 -1
- package/components/var-datetime-picker/index.js +137 -168
- package/components/var-datetime-picker/src/const.js +1 -91
- package/components/var-datetime-picker/src/ctx.d.ts +10 -10
- package/components/var-datetime-picker/src/ctx.js +1 -43
- package/components/var-datetime-picker/src/index.css +1 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +26 -42
- package/components/var-datetime-picker/src/types.d.ts +1 -1
- package/components/vditor/index.css +1 -0
- package/components/vditor/index.d.ts +1 -1
- package/components/vditor/index.js +22 -17
- package/components/vditor/src/ctx.js +1 -15
- package/components/vditor/src/index.css +1 -0
- package/components/vditor/src/index.vue.d.ts +4 -3
- package/components/vditor/src/types.d.ts +1 -1
- package/composables/index.css +1 -0
- package/composables/index.js +1 -104
- package/composables/useForm.d.ts +2 -2
- package/composables/useSourceManager.d.ts +1 -1
- package/index.css +127 -20
- package/index.esm.js +1 -44
- package/package.json +1 -1
- package/shared/const/index.css +1 -0
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.js +1 -56
- package/shared/element-plus/ctx.d.ts +28 -26
- package/shared/element-plus/index.css +1 -0
- package/shared/element-plus/index.js +1 -220
- package/shared/element-plus/instances.d.ts +45 -38
- package/shared/form/index.css +1 -0
- package/shared/form/index.js +1 -30
- package/shared/helper/index.css +1 -0
- package/shared/helper/index.js +1 -9
- package/shared/index.css +1 -0
- package/shared/index.js +1 -56
- package/shared/infer-prop/index.css +1 -0
- package/shared/infer-prop/index.d.ts +1 -1
- package/shared/infer-prop/index.js +1 -34
- package/shared/progress-it/index.css +1 -0
- package/shared/progress-it/index.d.ts +4 -4
- package/shared/progress-it/index.js +1 -57
- package/shared/rules/index.css +1 -0
- package/shared/rules/index.js +1 -32
- package/shared/types/form/index.css +1 -0
- package/shared/types/index.css +1 -0
- package/shared/types/source/index.css +1 -0
- package/shared/types/source/index.d.ts +2 -2
- package/shared/types/source-manager/index.css +1 -0
- package/shared/upload/index.css +1 -0
- package/shared/upload/index.js +1 -767
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="arcgis-js-api" />
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
3
|
import MapView from '@arcgis/core/views/MapView';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
view: {
|
|
5
6
|
type: PropType<MapView>;
|
|
6
|
-
default:
|
|
7
|
+
default: any;
|
|
7
8
|
};
|
|
8
9
|
viewComponent: {
|
|
9
10
|
type: PropType<any>;
|
|
@@ -52,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
53
|
annoType: import("vue").ComputedRef<"cia_c" | "cva_c" | "cta_c" | "cia_w" | "cva_w" | "cta_w">;
|
|
53
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
55
|
load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
|
|
55
|
-
}, string, import("vue").
|
|
56
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
57
|
spatialReference: {
|
|
57
58
|
type: PropType<__esri.SpatialReferenceProperties>;
|
|
58
59
|
default: () => {
|
|
@@ -92,20 +93,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
93
|
default: () => __esri.WebTileLayerProperties;
|
|
93
94
|
};
|
|
94
95
|
}>> & {
|
|
95
|
-
onLoad?: (
|
|
96
|
+
onLoad?: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => any;
|
|
96
97
|
}, {
|
|
97
|
-
type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
|
|
98
98
|
spatialReference: {
|
|
99
99
|
wkid: number;
|
|
100
100
|
};
|
|
101
101
|
orphan: boolean;
|
|
102
102
|
thumbnailUrl: string;
|
|
103
|
+
type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
|
|
103
104
|
maxScale: number;
|
|
104
105
|
minScale: number;
|
|
105
106
|
token: string;
|
|
106
107
|
anno: boolean;
|
|
107
108
|
webTileLayerOptions: __esri.WebTileLayerProperties;
|
|
108
|
-
}>;
|
|
109
|
+
}, {}>;
|
|
109
110
|
readonly VaMapView: import("vue").DefineComponent<{
|
|
110
111
|
defaultOptions: {
|
|
111
112
|
type: PropType<__esri.MapViewProperties>;
|
|
@@ -122,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
123
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
123
124
|
load: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => import("@vuesri/core/components/map-view/src/types").LoadEvent;
|
|
124
125
|
'update:cursor': (e: string) => string | true;
|
|
125
|
-
}, string, import("vue").
|
|
126
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
127
|
defaultOptions: {
|
|
127
128
|
type: PropType<__esri.MapViewProperties>;
|
|
128
129
|
default: () => {};
|
|
@@ -132,22 +133,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
133
|
default: string;
|
|
133
134
|
};
|
|
134
135
|
}>> & {
|
|
135
|
-
onLoad?: (
|
|
136
|
-
"onUpdate:cursor"?: (
|
|
136
|
+
onLoad?: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => any;
|
|
137
|
+
"onUpdate:cursor"?: (e: string) => any;
|
|
137
138
|
}, {
|
|
138
139
|
defaultOptions: {};
|
|
139
140
|
cursor: string;
|
|
140
|
-
}>;
|
|
141
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
141
|
+
}, {}>;
|
|
142
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
142
143
|
};
|
|
143
144
|
viewComponentAttrs: {
|
|
144
145
|
type: PropType<any>;
|
|
145
146
|
default: () => {};
|
|
146
147
|
};
|
|
147
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
148
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
148
149
|
view: {
|
|
149
150
|
type: PropType<MapView>;
|
|
150
|
-
default:
|
|
151
|
+
default: any;
|
|
151
152
|
};
|
|
152
153
|
viewComponent: {
|
|
153
154
|
type: PropType<any>;
|
|
@@ -196,7 +197,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
197
|
annoType: import("vue").ComputedRef<"cia_c" | "cva_c" | "cta_c" | "cia_w" | "cva_w" | "cta_w">;
|
|
197
198
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
198
199
|
load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
|
|
199
|
-
}, string, import("vue").
|
|
200
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
200
201
|
spatialReference: {
|
|
201
202
|
type: PropType<__esri.SpatialReferenceProperties>;
|
|
202
203
|
default: () => {
|
|
@@ -236,20 +237,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
236
237
|
default: () => __esri.WebTileLayerProperties;
|
|
237
238
|
};
|
|
238
239
|
}>> & {
|
|
239
|
-
onLoad?: (
|
|
240
|
+
onLoad?: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => any;
|
|
240
241
|
}, {
|
|
241
|
-
type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
|
|
242
242
|
spatialReference: {
|
|
243
243
|
wkid: number;
|
|
244
244
|
};
|
|
245
245
|
orphan: boolean;
|
|
246
246
|
thumbnailUrl: string;
|
|
247
|
+
type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
|
|
247
248
|
maxScale: number;
|
|
248
249
|
minScale: number;
|
|
249
250
|
token: string;
|
|
250
251
|
anno: boolean;
|
|
251
252
|
webTileLayerOptions: __esri.WebTileLayerProperties;
|
|
252
|
-
}>;
|
|
253
|
+
}, {}>;
|
|
253
254
|
readonly VaMapView: import("vue").DefineComponent<{
|
|
254
255
|
defaultOptions: {
|
|
255
256
|
type: PropType<__esri.MapViewProperties>;
|
|
@@ -266,7 +267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
266
267
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
267
268
|
load: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => import("@vuesri/core/components/map-view/src/types").LoadEvent;
|
|
268
269
|
'update:cursor': (e: string) => string | true;
|
|
269
|
-
}, string, import("vue").
|
|
270
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
270
271
|
defaultOptions: {
|
|
271
272
|
type: PropType<__esri.MapViewProperties>;
|
|
272
273
|
default: () => {};
|
|
@@ -276,13 +277,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
276
277
|
default: string;
|
|
277
278
|
};
|
|
278
279
|
}>> & {
|
|
279
|
-
onLoad?: (
|
|
280
|
-
"onUpdate:cursor"?: (
|
|
280
|
+
onLoad?: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => any;
|
|
281
|
+
"onUpdate:cursor"?: (e: string) => any;
|
|
281
282
|
}, {
|
|
282
283
|
defaultOptions: {};
|
|
283
284
|
cursor: string;
|
|
284
|
-
}>;
|
|
285
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
285
|
+
}, {}>;
|
|
286
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
286
287
|
};
|
|
287
288
|
viewComponentAttrs: {
|
|
288
289
|
type: PropType<any>;
|
|
@@ -292,5 +293,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
292
293
|
view: MapView;
|
|
293
294
|
viewComponent: any;
|
|
294
295
|
viewComponentAttrs: any;
|
|
295
|
-
}>;
|
|
296
|
+
}, {}>;
|
|
296
297
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/components/form/index.js
CHANGED
|
@@ -10,26 +10,8 @@ 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
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
16
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
17
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
18
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
19
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
20
|
-
var __spreadValues$1 = (a, b) => {
|
|
21
|
-
for (var prop in b || (b = {}))
|
|
22
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
23
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
24
|
-
if (__getOwnPropSymbols$1)
|
|
25
|
-
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
26
|
-
if (__propIsEnum$1.call(b, prop))
|
|
27
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
28
|
-
}
|
|
29
|
-
return a;
|
|
30
|
-
};
|
|
31
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
32
|
-
const props = __spreadProps$1(__spreadValues$1({}, formProps), {
|
|
13
|
+
const props = {
|
|
14
|
+
...formProps,
|
|
33
15
|
data: {
|
|
34
16
|
type: Object,
|
|
35
17
|
default: () => ({})
|
|
@@ -45,54 +27,49 @@ const props = __spreadProps$1(__spreadValues$1({}, formProps), {
|
|
|
45
27
|
type: Function,
|
|
46
28
|
default: () => NOOP
|
|
47
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* 是否开启布局模式
|
|
32
|
+
*/
|
|
48
33
|
layout: {
|
|
49
34
|
type: Boolean,
|
|
50
35
|
default: false
|
|
51
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* layout 为 true 时,
|
|
39
|
+
* 该值生效
|
|
40
|
+
* el-row 添加额外属性
|
|
41
|
+
*/
|
|
52
42
|
rowSource: {
|
|
53
43
|
type: Object,
|
|
54
44
|
default: () => ({})
|
|
55
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* layout 为 true 时,
|
|
48
|
+
* 该值生效
|
|
49
|
+
* el-col 添加额外属性
|
|
50
|
+
*/
|
|
56
51
|
colSource: {
|
|
57
52
|
type: Object,
|
|
58
53
|
default: () => ({})
|
|
59
54
|
}
|
|
60
|
-
}
|
|
55
|
+
};
|
|
61
56
|
const createBindProps = bindPropsFactory(props);
|
|
62
|
-
const emits =
|
|
57
|
+
const emits = {
|
|
58
|
+
...formEmits,
|
|
63
59
|
setData: (e) => e,
|
|
64
60
|
validate: null,
|
|
65
61
|
submit: null
|
|
66
|
-
}
|
|
62
|
+
};
|
|
67
63
|
const createOnEmits = onEmitsFactory(emits);
|
|
68
64
|
|
|
69
65
|
var ctx = /*#__PURE__*/Object.freeze({
|
|
70
66
|
__proto__: null,
|
|
71
|
-
props: props,
|
|
72
67
|
createBindProps: createBindProps,
|
|
68
|
+
createOnEmits: createOnEmits,
|
|
73
69
|
emits: emits,
|
|
74
|
-
|
|
70
|
+
props: props
|
|
75
71
|
});
|
|
76
72
|
|
|
77
|
-
var __defProp = Object.defineProperty;
|
|
78
|
-
var __defProps = Object.defineProperties;
|
|
79
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
80
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
81
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
82
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
83
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
84
|
-
var __spreadValues = (a, b) => {
|
|
85
|
-
for (var prop in b || (b = {}))
|
|
86
|
-
if (__hasOwnProp.call(b, prop))
|
|
87
|
-
__defNormalProp(a, prop, b[prop]);
|
|
88
|
-
if (__getOwnPropSymbols)
|
|
89
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
90
|
-
if (__propIsEnum.call(b, prop))
|
|
91
|
-
__defNormalProp(a, prop, b[prop]);
|
|
92
|
-
}
|
|
93
|
-
return a;
|
|
94
|
-
};
|
|
95
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
96
73
|
const getRowEmptySpan = (row) => {
|
|
97
74
|
return 24 - row.templateSlots.reduce((a, c) => {
|
|
98
75
|
if (!c.span) {
|
|
@@ -102,39 +79,28 @@ const getRowEmptySpan = (row) => {
|
|
|
102
79
|
}, 0);
|
|
103
80
|
};
|
|
104
81
|
const genColItem = (formItem, options = {}) => {
|
|
105
|
-
|
|
106
|
-
const span = (_a = formItem.span) != null ? _a : options.span;
|
|
82
|
+
const span = formItem.span ?? options.span;
|
|
107
83
|
if (span === void 0 || span === null) {
|
|
108
84
|
throw new Error("genColItem ElColSource span is required");
|
|
109
85
|
}
|
|
110
|
-
return
|
|
86
|
+
return {
|
|
87
|
+
...options,
|
|
111
88
|
templateType: "ElCol",
|
|
112
89
|
span,
|
|
113
|
-
templateSlots: [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
]
|
|
118
|
-
});
|
|
90
|
+
templateSlots: [pickObject(formItem, {
|
|
91
|
+
excludes: ["span"]
|
|
92
|
+
})]
|
|
93
|
+
};
|
|
119
94
|
};
|
|
120
95
|
const genRowItem = (defaultItem, options = {}) => {
|
|
121
|
-
return
|
|
96
|
+
return {
|
|
97
|
+
...options,
|
|
122
98
|
templateType: "ElRow",
|
|
123
|
-
templateSlots: defaultItem ? [
|
|
124
|
-
|
|
125
|
-
] : []
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
var _export_sfc = (sfc, props) => {
|
|
130
|
-
const target = sfc.__vccOpts || sfc;
|
|
131
|
-
for (const [key, val] of props) {
|
|
132
|
-
target[key] = val;
|
|
133
|
-
}
|
|
134
|
-
return target;
|
|
99
|
+
templateSlots: defaultItem ? [defaultItem] : []
|
|
100
|
+
};
|
|
135
101
|
};
|
|
136
102
|
|
|
137
|
-
|
|
103
|
+
var script = defineComponent({
|
|
138
104
|
name: "VkfForm",
|
|
139
105
|
props,
|
|
140
106
|
emits,
|
|
@@ -144,7 +110,9 @@ const _sfc_main = defineComponent({
|
|
|
144
110
|
VkfTemplatesDefault,
|
|
145
111
|
VkfTemplatesLayout
|
|
146
112
|
},
|
|
147
|
-
setup(props2, {
|
|
113
|
+
setup(props2, {
|
|
114
|
+
emit
|
|
115
|
+
}) {
|
|
148
116
|
const formProps = createFormBindProps(props2, ["model"]);
|
|
149
117
|
const formEmits = createFormOnEmits(emit);
|
|
150
118
|
const formRef = shallowRef();
|
|
@@ -197,7 +165,8 @@ const _sfc_main = defineComponent({
|
|
|
197
165
|
};
|
|
198
166
|
}
|
|
199
167
|
});
|
|
200
|
-
|
|
168
|
+
|
|
169
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
201
170
|
const _component_VkfTemplatesDefault = resolveComponent("VkfTemplatesDefault");
|
|
202
171
|
const _component_VkfTemplatesLayout = resolveComponent("VkfTemplatesLayout");
|
|
203
172
|
const _component_VkfFormItemRenderer = resolveComponent("VkfFormItemRenderer");
|
|
@@ -211,31 +180,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
211
180
|
ref: _ctx.getRef,
|
|
212
181
|
onSubmit: _ctx.handleSubmit
|
|
213
182
|
}), {
|
|
214
|
-
default: withCtx(() => [
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
renderSlot(_ctx.$slots, "default")
|
|
227
|
-
]),
|
|
183
|
+
default: withCtx(() => [createVNode(_component_VkfFormItemRenderer, {
|
|
184
|
+
source: _ctx.rendererSource
|
|
185
|
+
}, {
|
|
186
|
+
default: withCtx(() => [createVNode(_component_VkfTemplatesDefault, {
|
|
187
|
+
data: _ctx.data,
|
|
188
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
189
|
+
}, null, 8, ["data"]), createVNode(_component_VkfTemplatesLayout, {
|
|
190
|
+
data: _ctx.data
|
|
191
|
+
}, null, 8, ["data"]), renderSlot(_ctx.$slots, "rendererTemplate")]),
|
|
192
|
+
_: 3
|
|
193
|
+
/* FORWARDED */
|
|
194
|
+
}, 8, ["source"]), renderSlot(_ctx.$slots, "default")]),
|
|
228
195
|
_: 3
|
|
196
|
+
/* FORWARDED */
|
|
229
197
|
}, 16, ["class", "model", "onSubmit"]);
|
|
230
198
|
}
|
|
231
|
-
|
|
199
|
+
|
|
200
|
+
script.render = render;
|
|
201
|
+
script.__file = "form/src/index.vue";
|
|
232
202
|
|
|
233
203
|
var types = /*#__PURE__*/Object.freeze({
|
|
234
204
|
__proto__: null
|
|
235
205
|
});
|
|
236
206
|
|
|
237
|
-
|
|
238
|
-
app.component(
|
|
207
|
+
script.install = (app) => {
|
|
208
|
+
app.component(script.name, script);
|
|
239
209
|
};
|
|
240
210
|
|
|
241
|
-
export { VkfForm, ctx as _VkfFormCtx, types as __VkfForm,
|
|
211
|
+
export { script as VkfForm, ctx as _VkfFormCtx, types as __VkfForm, script as default };
|