@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
|
@@ -11,9 +11,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
uploadClick(e: any): void;
|
|
12
12
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
upload: (e: UploadFile) => UploadFile;
|
|
14
|
-
edit:
|
|
15
|
-
fly:
|
|
16
|
-
}, string, import("vue").
|
|
14
|
+
edit: any;
|
|
15
|
+
fly: any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
disabled: BooleanConstructor;
|
|
18
18
|
dialog: BooleanConstructor;
|
|
19
19
|
upload: {
|
|
@@ -21,12 +21,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
}>> & {
|
|
24
|
-
onUpload?: (
|
|
25
|
-
onEdit?: (
|
|
26
|
-
onFly?: (
|
|
24
|
+
onUpload?: (e: UploadFile) => any;
|
|
25
|
+
onEdit?: (...args: any[] | unknown[]) => any;
|
|
26
|
+
onFly?: (...args: any[] | unknown[]) => any;
|
|
27
27
|
}, {
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
dialog: boolean;
|
|
30
30
|
upload: boolean;
|
|
31
|
-
}>;
|
|
31
|
+
}, {}>;
|
|
32
32
|
export default _default;
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
EDIT_TYPE2["POINT"] = "point";
|
|
3
|
-
EDIT_TYPE2["POLYGON"] = "polygon";
|
|
4
|
-
EDIT_TYPE2["LINE_STRING"] = "line_string";
|
|
5
|
-
return EDIT_TYPE2;
|
|
6
|
-
})(EDIT_TYPE || {});
|
|
7
|
-
const EDIT_TYPE_OPTIONS = [
|
|
8
|
-
{
|
|
9
|
-
label: "\u70B9",
|
|
10
|
-
value: "point" /* POINT */,
|
|
11
|
-
availableCreatureTools: ["point"]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
label: "\u7EBF",
|
|
15
|
-
value: "line_string" /* LINE_STRING */,
|
|
16
|
-
availableCreatureTools: ["polyline"]
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: "\u9762",
|
|
20
|
-
value: "polygon" /* POLYGON */,
|
|
21
|
-
availableCreatureTools: ["polygon", "circle", "rectangle"]
|
|
22
|
-
}
|
|
23
|
-
];
|
|
24
|
-
const EDIT_TYPE_REFLECT = EDIT_TYPE_OPTIONS.reduce((acc, cur) => {
|
|
25
|
-
acc[cur.value] = cur;
|
|
26
|
-
return acc;
|
|
27
|
-
}, {});
|
|
28
|
-
const EMPTY_FEATURE_COLLECTION = {
|
|
29
|
-
type: "FeatureCollection",
|
|
30
|
-
features: []
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { EDIT_TYPE, EDIT_TYPE_OPTIONS, EDIT_TYPE_REFLECT, EMPTY_FEATURE_COLLECTION };
|
|
1
|
+
var a=(e=>(e.POINT="point",e.POLYGON="polygon",e.LINE_STRING="line_string",e))(a||{});const o=[{label:"\u70B9",value:"point",availableCreatureTools:["point"]},{label:"\u7EBF",value:"line_string",availableCreatureTools:["polyline"]},{label:"\u9762",value:"polygon",availableCreatureTools:["polygon","circle","rectangle"]}],t=o.reduce((e,l)=>(e[l.value]=l,e),{}),n={type:"FeatureCollection",features:[]};export{a as EDIT_TYPE,o as EDIT_TYPE_OPTIONS,t as EDIT_TYPE_REFLECT,n as EMPTY_FEATURE_COLLECTION};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/// <reference types="arcgis-js-api" />
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
3
|
import { FeatureCollection, Geometry } from 'geojson';
|
|
3
4
|
import { EDIT_TYPE } from './const';
|
|
4
5
|
export declare const props: {
|
|
5
|
-
viewComponent:
|
|
6
|
-
viewComponentAttrs:
|
|
6
|
+
viewComponent: any;
|
|
7
|
+
viewComponentAttrs: any;
|
|
7
8
|
readonly: {
|
|
8
9
|
type: BooleanConstructor;
|
|
9
|
-
default:
|
|
10
|
+
default: any;
|
|
10
11
|
};
|
|
11
12
|
view: {
|
|
12
13
|
type: PropType<__esri.MapView>;
|
|
@@ -28,13 +29,13 @@ export declare const props: {
|
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
};
|
|
31
|
-
viewModelActiveLineSymbol:
|
|
32
|
-
viewModelActivePointSymbol:
|
|
32
|
+
viewModelActiveLineSymbol: any;
|
|
33
|
+
viewModelActivePointSymbol: any;
|
|
33
34
|
modelValue: {
|
|
34
35
|
type: PropType<FeatureCollection<Geometry, any>>;
|
|
35
36
|
default: () => {
|
|
36
37
|
type: string;
|
|
37
|
-
features:
|
|
38
|
+
features: any[];
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
multiple: {
|
|
@@ -70,8 +71,8 @@ export declare const props: {
|
|
|
70
71
|
default: number;
|
|
71
72
|
};
|
|
72
73
|
visibleElements: {
|
|
73
|
-
type: PropType<__esri.SketchVisibleElements
|
|
74
|
-
default:
|
|
74
|
+
type: PropType<__esri.SketchVisibleElements>;
|
|
75
|
+
default: any;
|
|
75
76
|
};
|
|
76
77
|
maxlength: {
|
|
77
78
|
type: NumberConstructor;
|
|
@@ -83,32 +84,32 @@ export declare const props: {
|
|
|
83
84
|
};
|
|
84
85
|
inputSlots: {
|
|
85
86
|
type: PropType<import("../../input/src/types").InputSlots>;
|
|
86
|
-
default:
|
|
87
|
+
default: any;
|
|
87
88
|
};
|
|
88
89
|
rows: {
|
|
89
90
|
type: NumberConstructor;
|
|
90
|
-
default:
|
|
91
|
+
default: any;
|
|
91
92
|
};
|
|
92
|
-
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
93
93
|
label: StringConstructor;
|
|
94
94
|
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
95
95
|
prop: {
|
|
96
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
96
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
97
97
|
readonly required: false;
|
|
98
|
-
readonly validator: (
|
|
98
|
+
readonly validator: (val: unknown) => boolean;
|
|
99
99
|
__epPropKey: true;
|
|
100
100
|
};
|
|
101
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
101
102
|
rules: {
|
|
102
|
-
readonly type: PropType<
|
|
103
|
+
readonly type: PropType<unknown>;
|
|
103
104
|
readonly required: false;
|
|
104
|
-
readonly validator: (
|
|
105
|
+
readonly validator: (val: unknown) => boolean;
|
|
105
106
|
__epPropKey: true;
|
|
106
107
|
};
|
|
107
108
|
error: StringConstructor;
|
|
108
109
|
validateStatus: {
|
|
109
110
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
110
111
|
readonly required: false;
|
|
111
|
-
readonly validator: (
|
|
112
|
+
readonly validator: (val: unknown) => boolean;
|
|
112
113
|
__epPropKey: true;
|
|
113
114
|
};
|
|
114
115
|
for: StringConstructor;
|
|
@@ -120,7 +121,7 @@ export declare const props: {
|
|
|
120
121
|
};
|
|
121
122
|
formItemSlots: {
|
|
122
123
|
type: PropType<import("../../form-item/src/types").FormItemSlots>;
|
|
123
|
-
default:
|
|
124
|
+
default: any;
|
|
124
125
|
};
|
|
125
126
|
elRef: {
|
|
126
127
|
type: PropType<any>;
|
|
@@ -138,7 +139,7 @@ export declare const props: {
|
|
|
138
139
|
size: {
|
|
139
140
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
140
141
|
readonly required: false;
|
|
141
|
-
readonly validator: (
|
|
142
|
+
readonly validator: (val: unknown) => boolean;
|
|
142
143
|
__epPropKey: true;
|
|
143
144
|
};
|
|
144
145
|
disabled: BooleanConstructor;
|
|
@@ -146,65 +147,73 @@ export declare const props: {
|
|
|
146
147
|
resize: {
|
|
147
148
|
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical" | "none" | "both", unknown>>;
|
|
148
149
|
readonly required: false;
|
|
149
|
-
readonly validator: (
|
|
150
|
+
readonly validator: (val: unknown) => boolean;
|
|
150
151
|
__epPropKey: true;
|
|
151
152
|
};
|
|
152
|
-
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
153
|
+
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
154
|
+
minRows?: number;
|
|
155
|
+
maxRows?: number;
|
|
156
|
+
}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => boolean | {
|
|
157
|
+
minRows?: number;
|
|
158
|
+
maxRows?: number;
|
|
159
|
+
}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
|
|
153
160
|
autocomplete: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
|
154
161
|
formatter: {
|
|
155
162
|
readonly type: PropType<Function>;
|
|
156
163
|
readonly required: false;
|
|
157
|
-
readonly validator: (
|
|
164
|
+
readonly validator: (val: unknown) => boolean;
|
|
158
165
|
__epPropKey: true;
|
|
159
166
|
};
|
|
160
167
|
parser: {
|
|
161
168
|
readonly type: PropType<Function>;
|
|
162
169
|
readonly required: false;
|
|
163
|
-
readonly validator: (
|
|
170
|
+
readonly validator: (val: unknown) => boolean;
|
|
164
171
|
__epPropKey: true;
|
|
165
172
|
};
|
|
166
173
|
placeholder: {
|
|
167
174
|
readonly type: PropType<string>;
|
|
168
175
|
readonly required: false;
|
|
169
|
-
readonly validator: (
|
|
176
|
+
readonly validator: (val: unknown) => boolean;
|
|
170
177
|
__epPropKey: true;
|
|
171
178
|
};
|
|
172
179
|
form: {
|
|
173
180
|
readonly type: PropType<string>;
|
|
174
181
|
readonly required: false;
|
|
175
|
-
readonly validator: (
|
|
182
|
+
readonly validator: (val: unknown) => boolean;
|
|
176
183
|
__epPropKey: true;
|
|
177
184
|
};
|
|
178
185
|
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
179
186
|
showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
180
187
|
showWordLimit: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
181
188
|
suffixIcon: {
|
|
182
|
-
readonly type: PropType<
|
|
189
|
+
readonly type: PropType<unknown>;
|
|
183
190
|
readonly required: false;
|
|
184
|
-
readonly validator: (
|
|
191
|
+
readonly validator: (val: unknown) => boolean;
|
|
185
192
|
__epPropKey: true;
|
|
186
193
|
};
|
|
187
194
|
prefixIcon: {
|
|
188
|
-
readonly type: PropType<
|
|
195
|
+
readonly type: PropType<unknown>;
|
|
189
196
|
readonly required: false;
|
|
190
|
-
readonly validator: (
|
|
197
|
+
readonly validator: (val: unknown) => boolean;
|
|
191
198
|
__epPropKey: true;
|
|
192
199
|
};
|
|
193
200
|
containerRole: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
194
201
|
tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
195
202
|
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
196
|
-
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").
|
|
203
|
+
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
197
204
|
autofocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
198
205
|
};
|
|
199
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"
|
|
206
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> | Exclude<Extract<"dialogEdit", keyof T2>, KE> | Exclude<Extract<"dialogEditFullscreen", keyof T2>, KE> | Exclude<Extract<"dialogEditTitle", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"visibleElements", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", keyof T2>, KE> | Exclude<Extract<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", keyof T2>, KE> : Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: { [k in Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"required", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"type", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
|
|
200
207
|
export declare const emits: {
|
|
201
|
-
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry,
|
|
202
|
-
|
|
208
|
+
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, {
|
|
209
|
+
[name: string]: any;
|
|
210
|
+
}>;
|
|
211
|
+
'update:flying': any;
|
|
203
212
|
/**
|
|
204
213
|
* 点击地图定位按钮
|
|
205
214
|
*/
|
|
206
|
-
appendFly:
|
|
207
|
-
appendEdit:
|
|
215
|
+
appendFly: any;
|
|
216
|
+
appendEdit: any;
|
|
208
217
|
input: (value: string) => boolean;
|
|
209
218
|
change: (value: string) => boolean;
|
|
210
219
|
focus: (evt: FocusEvent) => boolean;
|
|
@@ -217,7 +226,7 @@ export declare const emits: {
|
|
|
217
226
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
218
227
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
219
228
|
};
|
|
220
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("
|
|
229
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("clear" | "input" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying" | "appendFly" | "appendEdit")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"clear", KE> | Exclude<"input", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"keydown", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> | Exclude<"update:flying", KE> | Exclude<"appendFly", KE> | Exclude<"appendEdit", KE> : "clear" | "input" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying" | "appendFly" | "appendEdit"]: {
|
|
221
230
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
222
231
|
'update:flying': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
223
232
|
appendFly: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -1,128 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
|
-
|
|
4
|
-
const EDIT_TYPE_OPTIONS = [
|
|
5
|
-
{
|
|
6
|
-
label: "\u70B9",
|
|
7
|
-
value: "point" /* POINT */,
|
|
8
|
-
availableCreatureTools: ["point"]
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
label: "\u7EBF",
|
|
12
|
-
value: "line_string" /* LINE_STRING */,
|
|
13
|
-
availableCreatureTools: ["polyline"]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
label: "\u9762",
|
|
17
|
-
value: "polygon" /* POLYGON */,
|
|
18
|
-
availableCreatureTools: ["polygon", "circle", "rectangle"]
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
EDIT_TYPE_OPTIONS.reduce((acc, cur) => {
|
|
22
|
-
acc[cur.value] = cur;
|
|
23
|
-
return acc;
|
|
24
|
-
}, {});
|
|
25
|
-
const EMPTY_FEATURE_COLLECTION = {
|
|
26
|
-
type: "FeatureCollection",
|
|
27
|
-
features: []
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
var __defProp = Object.defineProperty;
|
|
31
|
-
var __defProps = Object.defineProperties;
|
|
32
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
33
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
34
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
35
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
36
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37
|
-
var __spreadValues = (a, b) => {
|
|
38
|
-
for (var prop in b || (b = {}))
|
|
39
|
-
if (__hasOwnProp.call(b, prop))
|
|
40
|
-
__defNormalProp(a, prop, b[prop]);
|
|
41
|
-
if (__getOwnPropSymbols)
|
|
42
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
43
|
-
if (__propIsEnum.call(b, prop))
|
|
44
|
-
__defNormalProp(a, prop, b[prop]);
|
|
45
|
-
}
|
|
46
|
-
return a;
|
|
47
|
-
};
|
|
48
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
49
|
-
const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
|
|
50
|
-
viewComponent: null,
|
|
51
|
-
viewComponentAttrs: null,
|
|
52
|
-
readonly: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: void 0
|
|
55
|
-
},
|
|
56
|
-
view: {
|
|
57
|
-
type: Object
|
|
58
|
-
},
|
|
59
|
-
editTypes: {
|
|
60
|
-
type: [Array, String],
|
|
61
|
-
default: () => "polygon"
|
|
62
|
-
},
|
|
63
|
-
viewModelActiveFillSymbol: {
|
|
64
|
-
type: Object,
|
|
65
|
-
default: () => ({
|
|
66
|
-
type: "simple-fill",
|
|
67
|
-
color: [0, 0, 0, 0],
|
|
68
|
-
style: "solid",
|
|
69
|
-
outline: {
|
|
70
|
-
color: [255, 0, 0, 1],
|
|
71
|
-
width: 2,
|
|
72
|
-
style: "dash"
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
},
|
|
76
|
-
viewModelActiveLineSymbol: null,
|
|
77
|
-
viewModelActivePointSymbol: null,
|
|
78
|
-
modelValue: {
|
|
79
|
-
type: Object,
|
|
80
|
-
default: () => EMPTY_FEATURE_COLLECTION
|
|
81
|
-
},
|
|
82
|
-
multiple: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: true
|
|
85
|
-
},
|
|
86
|
-
skipSave: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: false
|
|
89
|
-
},
|
|
90
|
-
showMap: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: false
|
|
93
|
-
},
|
|
94
|
-
dialogEdit: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default: true
|
|
97
|
-
},
|
|
98
|
-
dialogEditFullscreen: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: true
|
|
101
|
-
},
|
|
102
|
-
dialogEditTitle: {
|
|
103
|
-
type: String,
|
|
104
|
-
default: "\u7ED8\u5236\u56FE\u6591"
|
|
105
|
-
},
|
|
106
|
-
flying: {
|
|
107
|
-
type: Boolean,
|
|
108
|
-
default: false
|
|
109
|
-
},
|
|
110
|
-
layerIndex: {
|
|
111
|
-
type: Number,
|
|
112
|
-
default: 100
|
|
113
|
-
},
|
|
114
|
-
visibleElements: {
|
|
115
|
-
type: Object,
|
|
116
|
-
default: void 0
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
const createBindProps = bindPropsFactory(props);
|
|
120
|
-
const emits = __spreadProps(__spreadValues({}, _VkfInputCtx.emits), {
|
|
121
|
-
"update:modelValue": (e) => e,
|
|
122
|
-
"update:flying": null,
|
|
123
|
-
"appendFly": null,
|
|
124
|
-
appendEdit: null
|
|
125
|
-
});
|
|
126
|
-
const createOnEmits = onEmitsFactory(emits);
|
|
127
|
-
|
|
128
|
-
export { createBindProps, createOnEmits, emits, props };
|
|
1
|
+
import{_VkfInputCtx as t}from"@vunk/form/components/input";import{bindPropsFactory as i,onEmitsFactory as n}from"@vunk/core/shared/utils-vue";const u=[{label:"\u70B9",value:"point",availableCreatureTools:["point"]},{label:"\u7EBF",value:"line_string",availableCreatureTools:["polyline"]},{label:"\u9762",value:"polygon",availableCreatureTools:["polygon","circle","rectangle"]}];u.reduce((e,l)=>(e[l.value]=l,e),{});const p={type:"FeatureCollection",features:[]},o={...t.props,viewComponent:null,viewComponentAttrs:null,readonly:{type:Boolean,default:void 0},view:{type:Object},editTypes:{type:[Array,String],default:()=>"polygon"},viewModelActiveFillSymbol:{type:Object,default:()=>({type:"simple-fill",color:[0,0,0,0],style:"solid",outline:{color:[255,0,0,1],width:2,style:"dash"}})},viewModelActiveLineSymbol:null,viewModelActivePointSymbol:null,modelValue:{type:Object,default:()=>p},multiple:{type:Boolean,default:!0},skipSave:{type:Boolean,default:!1},showMap:{type:Boolean,default:!1},dialogEdit:{type:Boolean,default:!0},dialogEditFullscreen:{type:Boolean,default:!0},dialogEditTitle:{type:String,default:"\u7ED8\u5236\u56FE\u6591"},flying:{type:Boolean,default:!1},layerIndex:{type:Number,default:100},visibleElements:{type:Object,default:void 0}},d=i(o),a={...t.emits,"update:modelValue":e=>e,"update:flying":null,appendFly:null,appendEdit:null},r=n(a);export{d as createBindProps,r as createOnEmits,a as emits,o as props};
|
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
43
43
|
annoType: import("vue").ComputedRef<"cia_c" | "cva_c" | "cta_c" | "cia_w" | "cva_w" | "cta_w">;
|
|
44
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
|
|
46
|
-
}, string, import("vue").
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
47
|
spatialReference: {
|
|
48
48
|
type: import("vue").PropType<__esri.SpatialReferenceProperties>;
|
|
49
49
|
default: () => {
|
|
@@ -83,20 +83,20 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
83
83
|
default: () => __esri.WebTileLayerProperties;
|
|
84
84
|
};
|
|
85
85
|
}>> & {
|
|
86
|
-
onLoad?: (
|
|
86
|
+
onLoad?: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => any;
|
|
87
87
|
}, {
|
|
88
|
-
type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
|
|
89
88
|
spatialReference: {
|
|
90
89
|
wkid: number;
|
|
91
90
|
};
|
|
92
91
|
orphan: boolean;
|
|
93
92
|
thumbnailUrl: string;
|
|
93
|
+
type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
|
|
94
94
|
maxScale: number;
|
|
95
95
|
minScale: number;
|
|
96
96
|
token: string;
|
|
97
97
|
anno: boolean;
|
|
98
98
|
webTileLayerOptions: __esri.WebTileLayerProperties;
|
|
99
|
-
}>;
|
|
99
|
+
}, {}>;
|
|
100
100
|
readonly VaMapView: import("vue").DefineComponent<{
|
|
101
101
|
defaultOptions: {
|
|
102
102
|
type: import("vue").PropType<__esri.MapViewProperties>;
|
|
@@ -113,7 +113,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
113
113
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
114
114
|
load: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => import("@vuesri/core/components/map-view/src/types").LoadEvent;
|
|
115
115
|
'update:cursor': (e: string) => string | true;
|
|
116
|
-
}, string, import("vue").
|
|
116
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
117
117
|
defaultOptions: {
|
|
118
118
|
type: import("vue").PropType<__esri.MapViewProperties>;
|
|
119
119
|
default: () => {};
|
|
@@ -123,11 +123,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
123
123
|
default: string;
|
|
124
124
|
};
|
|
125
125
|
}>> & {
|
|
126
|
-
onLoad?: (
|
|
127
|
-
"onUpdate:cursor"?: (
|
|
126
|
+
onLoad?: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => any;
|
|
127
|
+
"onUpdate:cursor"?: (e: string) => any;
|
|
128
128
|
}, {
|
|
129
129
|
defaultOptions: {};
|
|
130
130
|
cursor: string;
|
|
131
|
-
}>;
|
|
132
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
131
|
+
}, {}>;
|
|
132
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
133
133
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|