@juzhenfe/modules 2.1.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.css +201 -0
- package/dist/index.min.js +3 -4
- package/dist/packages/a-map/src/components/marker/index.vue.d.ts +4 -8
- package/dist/packages/a-map/src/index.vue.d.ts +12 -26
- package/dist/types/a-map.d.ts +12 -4
- package/dist/types/shims-global.d.ts +8 -13
- package/package.json +4 -3
- package/dist/packages/a-map/src/setup/style.d.ts +0 -6
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
markers:
|
|
4
|
-
|
|
5
|
-
default: () => any[];
|
|
6
|
-
};
|
|
7
|
-
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update" | "click")[], "update" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
2
|
+
markers: any;
|
|
3
|
+
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update" | "click")[], "update" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
8
4
|
markers?: unknown;
|
|
9
5
|
} & {
|
|
10
|
-
markers:
|
|
6
|
+
markers: any;
|
|
11
7
|
} & {}> & {
|
|
12
8
|
onUpdate?: (...args: any[]) => any;
|
|
13
9
|
onClick?: (...args: any[]) => any;
|
|
14
10
|
}, {
|
|
15
|
-
markers:
|
|
11
|
+
markers: any;
|
|
16
12
|
}>;
|
|
17
13
|
export default _default;
|
|
@@ -1,44 +1,30 @@
|
|
|
1
|
-
import { PropType } from "vue";
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
modelValue: {
|
|
4
|
-
type: PropType<JuzhenAMap.LngLat>;
|
|
5
3
|
default: () => number[];
|
|
6
4
|
};
|
|
7
5
|
options: {
|
|
8
|
-
type: PropType<JuzhenAMap.MapOptions>;
|
|
9
6
|
default: () => {};
|
|
10
7
|
};
|
|
11
8
|
height: {
|
|
12
|
-
type: PropType<string | number>;
|
|
13
9
|
default: string;
|
|
14
10
|
};
|
|
15
11
|
width: {
|
|
16
|
-
type: PropType<string | number>;
|
|
17
12
|
default: string;
|
|
18
13
|
};
|
|
19
14
|
markers: {
|
|
20
|
-
type: PropType<JuzhenAMap.MarkerOptions[]>;
|
|
21
15
|
default: () => any[];
|
|
22
16
|
};
|
|
23
17
|
search: {
|
|
24
|
-
type:
|
|
18
|
+
type: BooleanConstructor;
|
|
25
19
|
default: boolean;
|
|
26
20
|
};
|
|
27
21
|
useCenter: {
|
|
28
22
|
type: BooleanConstructor;
|
|
29
23
|
default: boolean;
|
|
30
24
|
};
|
|
31
|
-
}, {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
height: string;
|
|
35
|
-
width: string;
|
|
36
|
-
}>;
|
|
37
|
-
useMarkers: import("vue").ComputedRef<JuzhenAMap.MarkerOptions[]>;
|
|
38
|
-
provideMap: (fn: Function) => void;
|
|
39
|
-
updateModelValue: (value: JuzhenAMap.LngLat) => void;
|
|
40
|
-
markerClick: (e: JuzhenAMap.MapsEvent) => void;
|
|
41
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "initMap" | "markerClick" | "click")[], "update:modelValue" | "initMap" | "markerClick" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
25
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "initMap" | "markerClick" | "click")[], "update:modelValue" | "initMap" | "markerClick" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
42
28
|
modelValue?: unknown;
|
|
43
29
|
options?: unknown;
|
|
44
30
|
height?: unknown;
|
|
@@ -47,12 +33,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
33
|
search?: unknown;
|
|
48
34
|
useCenter?: unknown;
|
|
49
35
|
} & {
|
|
36
|
+
width: string;
|
|
37
|
+
height: string;
|
|
50
38
|
search: boolean;
|
|
51
|
-
modelValue:
|
|
39
|
+
modelValue: number[];
|
|
52
40
|
options: {};
|
|
53
|
-
|
|
54
|
-
width: string | number;
|
|
55
|
-
markers: JuzhenAMap.MarkerOptions[];
|
|
41
|
+
markers: any[];
|
|
56
42
|
useCenter: boolean;
|
|
57
43
|
} & {}> & {
|
|
58
44
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
@@ -60,12 +46,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
46
|
onMarkerClick?: (...args: any[]) => any;
|
|
61
47
|
onClick?: (...args: any[]) => any;
|
|
62
48
|
}, {
|
|
49
|
+
width: string;
|
|
50
|
+
height: string;
|
|
63
51
|
search: boolean;
|
|
64
|
-
modelValue:
|
|
52
|
+
modelValue: number[];
|
|
65
53
|
options: {};
|
|
66
|
-
|
|
67
|
-
width: string | number;
|
|
68
|
-
markers: JuzhenAMap.MarkerOptions[];
|
|
54
|
+
markers: any[];
|
|
69
55
|
useCenter: boolean;
|
|
70
56
|
}>;
|
|
71
57
|
export default _default;
|
package/dist/types/a-map.d.ts
CHANGED
|
@@ -30,12 +30,19 @@ declare namespace JuzhenAMap {
|
|
|
30
30
|
type ANIMATION_TYPE = 'AMAP_ANIMATION_NONE' | 'AMAP_ANIMATION_DROP' | 'AMAP_ANIMATION_BOUNCE'
|
|
31
31
|
|
|
32
32
|
interface MarkerOptions {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
position?: LngLat;
|
|
34
|
+
|
|
35
35
|
anchor?: string;
|
|
36
|
+
|
|
36
37
|
offset?: [number, number];
|
|
38
|
+
|
|
37
39
|
icon?: string;
|
|
38
|
-
|
|
40
|
+
lng?: number;
|
|
41
|
+
lat?: number;
|
|
42
|
+
iconWidth?: number;
|
|
43
|
+
iconHeight?: number;
|
|
44
|
+
|
|
45
|
+
content?: string | Document;
|
|
39
46
|
bubble?: boolean;
|
|
40
47
|
visible?: boolean;
|
|
41
48
|
zIndex?: number;
|
|
@@ -45,7 +52,6 @@ declare namespace JuzhenAMap {
|
|
|
45
52
|
label?: string;
|
|
46
53
|
animation?: ANIMATION_TYPE;
|
|
47
54
|
update?(marker: any): any;
|
|
48
|
-
marker?: Marker;
|
|
49
55
|
[key: string]: any;
|
|
50
56
|
}
|
|
51
57
|
|
|
@@ -61,8 +67,10 @@ declare namespace JuzhenAMap {
|
|
|
61
67
|
interface Map {
|
|
62
68
|
on(eventName: string, fn: Function): any;
|
|
63
69
|
setCenter(center: LngLat): any;
|
|
70
|
+
setZoom(zoom: number): any;
|
|
64
71
|
remove(marker: Marker): any;
|
|
65
72
|
addControl(plugin: any): any;
|
|
73
|
+
add(data: any): any;
|
|
66
74
|
}
|
|
67
75
|
|
|
68
76
|
interface MapsEvent {
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
plugin(plugins: string[], cb: Function): any;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
1
|
+
interface Window {
|
|
2
|
+
AMap: {
|
|
3
|
+
Map: new (ele: string, opt?: JuzhenAMap.MapOptions) => JuzhenAMap.Map;
|
|
4
|
+
Marker: new (opt?: JuzhenAMap.MarkerOptions) => any;
|
|
5
|
+
Pixel: new (x: number, y: number) => any;
|
|
6
|
+
plugin(plugins: string[], cb: Function): any;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
14
9
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzhenfe/modules",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"main": "dist/index.min.js",
|
|
5
5
|
"types": "dist/packages/modules/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"dev": "vite --force",
|
|
7
|
+
"dev": "lerna bootstrap && vite --force",
|
|
8
8
|
"build": "cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
|
|
9
9
|
"clean": "rimraf dist",
|
|
10
10
|
"build:type": "node ./build/build-type.js",
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
"element-plus": "^1.1.0-beta.20",
|
|
37
37
|
"lerna": "^4.0.0",
|
|
38
38
|
"rimraf": "^3.0.2",
|
|
39
|
+
"rollup": "^2.60.1",
|
|
39
40
|
"rollup-plugin-scss": "^2.6.1",
|
|
40
41
|
"rollup-plugin-terser": "^7.0.2",
|
|
41
42
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
42
43
|
"rollup-plugin-vue": "^6.0.0",
|
|
43
|
-
"sass": "^1.
|
|
44
|
+
"sass": "^1.43.4",
|
|
44
45
|
"the-answer": "^1.0.0",
|
|
45
46
|
"typescript": "^4.3.4",
|
|
46
47
|
"vite": "^2.6.7",
|