zhihao-ui 1.2.15 → 1.2.17
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/es/{BaseInfo-uUbvvsrZ.js → BaseInfo-Dr298ctb.js} +1 -1
- package/dist/es/{Button-8WUVSVx0.js → Button-OpzeoolK.js} +2 -2
- package/dist/es/{DatePicker-BumwuulN.js → DatePicker-vGQGWrmB.js} +2 -2
- package/dist/es/{DetailHeader-CMSTYZ3n.js → DetailHeader-Dy_GLl1j.js} +3 -3
- package/dist/es/{DetailSubTitle-Ck4-kTS6.js → DetailSubTitle-Cgs5HrKC.js} +2 -2
- package/dist/es/{Dialog-mXMk_A1l.js → Dialog-DsjDYguS.js} +3 -3
- package/dist/es/{DiyDataTable-B_mIRxiG.js → DiyDataTable-BzYgTozd.js} +126 -112
- package/dist/es/{EditInfoPair-re7I2_Hd.js → EditInfoPair-D5IdY32c.js} +3 -3
- package/dist/es/{FileWrapper-Bd67K2uz.js → FileWrapper-BWTQDfI0.js} +4 -4
- package/dist/es/{Grid-CeGoopKP.js → Grid-CIMCXeIw.js} +1 -1
- package/dist/es/{InfoPair-Zi5AQw4v.js → InfoPair-BCfbK9Vi.js} +3 -3
- package/dist/es/{Input-BpSs19mA.js → Input-Stgzni-P.js} +3 -3
- package/dist/es/{Loading-Vg9jMM-v.js → Loading-CV65SoyW.js} +2 -2
- package/dist/es/{Map-lPiX2Ato.js → Map-f7AQFEm9.js} +395 -388
- package/dist/es/{MessageBox-BU-x0a_N.js → MessageBox-7G0T_aYK.js} +2 -2
- package/dist/es/{MoneyInput-BpkcRnUd.js → MoneyInput-CILa4-8Q.js} +5 -5
- package/dist/es/{PageHeadPanel-BCJ2dIzS.js → PageHeadPanel-CAVlNQj7.js} +2 -2
- package/dist/es/Table-B786GVKD.js +1132 -0
- package/dist/es/{ToolTips-D1gBKbDi.js → ToolTips-B1YUKWTm.js} +3 -3
- package/dist/es/index.js +21 -21
- package/dist/es/{utils-DQpHM4si.js → utils-CbI5IWJJ.js} +1 -1
- package/dist/es/{vendor-HCJEPiOI.js → vendor-AIl6iHcE.js} +12 -11
- package/dist/index.css +1 -1
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +12 -0
- package/dist/types/components/DiyDataTable/index.d.ts +21 -0
- package/dist/types/components/DiyDataTable/type.d.ts +2 -0
- package/dist/types/components/Map/Map.vue.d.ts +22 -4
- package/dist/types/components/Map/components/measure.vue.d.ts +8 -0
- package/dist/types/components/Map/index.d.ts +44 -7
- package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +1 -0
- package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +1 -0
- package/dist/types/components/Map/render/drawPolygon.d.ts +2 -5
- package/dist/types/components/Map/render/renderShip.d.ts +1 -0
- package/dist/types/components/Map/utils/common.d.ts +13 -6
- package/dist/types/components/Map/utils/store.d.ts +3 -2
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +19 -19
- package/package.json +1 -1
- package/dist/es/Table-r8e67LNt.js +0 -1133
|
@@ -24,6 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
24
24
|
type: import('vue').PropType<number>;
|
|
25
25
|
default: number;
|
|
26
26
|
};
|
|
27
|
+
defaultMinWidth: {
|
|
28
|
+
type: import('vue').PropType<number>;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
27
31
|
}>, {
|
|
28
32
|
/** 初始化数据 */
|
|
29
33
|
initData: (rawdata: DiyDataType[], rawColumns: DiyDataTableColumnItem[]) => void;
|
|
@@ -36,6 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
36
40
|
key?: (number | string) | undefined;
|
|
37
41
|
isAdd?: boolean | undefined;
|
|
38
42
|
width?: number | undefined;
|
|
43
|
+
minWidth?: number | undefined;
|
|
39
44
|
maxlength?: number | undefined;
|
|
40
45
|
headerMaxlength?: number | undefined;
|
|
41
46
|
placeholder?: string | undefined;
|
|
@@ -53,6 +58,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
53
58
|
} | undefined>;
|
|
54
59
|
/** 更新列配置数据 */
|
|
55
60
|
updateColumn: (index: number, column: DiyDataTableColumnItem) => void;
|
|
61
|
+
/** 重置列配置数据 */
|
|
62
|
+
resetColumns: (cols: DiyDataTableColumnItem[]) => void;
|
|
56
63
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
57
64
|
rawData: {
|
|
58
65
|
required: true;
|
|
@@ -70,10 +77,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
70
77
|
type: import('vue').PropType<number>;
|
|
71
78
|
default: number;
|
|
72
79
|
};
|
|
80
|
+
defaultMinWidth: {
|
|
81
|
+
type: import('vue').PropType<number>;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
73
84
|
}>> & Readonly<{}>, {
|
|
74
85
|
isEdit: boolean;
|
|
75
86
|
maxRowLength: number;
|
|
76
87
|
maxColLength: number;
|
|
88
|
+
defaultMinWidth: number;
|
|
77
89
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
78
90
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
79
91
|
export default _default;
|
|
@@ -16,6 +16,10 @@ export declare const ZhDiyDataTable: {
|
|
|
16
16
|
type: import('vue').PropType<number>;
|
|
17
17
|
default: number;
|
|
18
18
|
};
|
|
19
|
+
defaultMinWidth: {
|
|
20
|
+
type: import('vue').PropType<number>;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
19
23
|
}>> & Readonly<{}>, {
|
|
20
24
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
21
25
|
getData: () => Promise<{
|
|
@@ -26,6 +30,7 @@ export declare const ZhDiyDataTable: {
|
|
|
26
30
|
key?: (number | string) | undefined;
|
|
27
31
|
isAdd?: boolean | undefined;
|
|
28
32
|
width?: number | undefined;
|
|
33
|
+
minWidth?: number | undefined;
|
|
29
34
|
maxlength?: number | undefined;
|
|
30
35
|
headerMaxlength?: number | undefined;
|
|
31
36
|
placeholder?: string | undefined;
|
|
@@ -42,10 +47,12 @@ export declare const ZhDiyDataTable: {
|
|
|
42
47
|
}[];
|
|
43
48
|
} | undefined>;
|
|
44
49
|
updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
|
|
50
|
+
resetColumns: (cols: import('./type').DiyDataTableColumnItem[]) => void;
|
|
45
51
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
46
52
|
isEdit: boolean;
|
|
47
53
|
maxRowLength: number;
|
|
48
54
|
maxColLength: number;
|
|
55
|
+
defaultMinWidth: number;
|
|
49
56
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
50
57
|
P: {};
|
|
51
58
|
B: {};
|
|
@@ -70,6 +77,10 @@ export declare const ZhDiyDataTable: {
|
|
|
70
77
|
type: import('vue').PropType<number>;
|
|
71
78
|
default: number;
|
|
72
79
|
};
|
|
80
|
+
defaultMinWidth: {
|
|
81
|
+
type: import('vue').PropType<number>;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
73
84
|
}>> & Readonly<{}>, {
|
|
74
85
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
75
86
|
getData: () => Promise<{
|
|
@@ -80,6 +91,7 @@ export declare const ZhDiyDataTable: {
|
|
|
80
91
|
key?: (number | string) | undefined;
|
|
81
92
|
isAdd?: boolean | undefined;
|
|
82
93
|
width?: number | undefined;
|
|
94
|
+
minWidth?: number | undefined;
|
|
83
95
|
maxlength?: number | undefined;
|
|
84
96
|
headerMaxlength?: number | undefined;
|
|
85
97
|
placeholder?: string | undefined;
|
|
@@ -96,10 +108,12 @@ export declare const ZhDiyDataTable: {
|
|
|
96
108
|
}[];
|
|
97
109
|
} | undefined>;
|
|
98
110
|
updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
|
|
111
|
+
resetColumns: (cols: import('./type').DiyDataTableColumnItem[]) => void;
|
|
99
112
|
}, {}, {}, {}, {
|
|
100
113
|
isEdit: boolean;
|
|
101
114
|
maxRowLength: number;
|
|
102
115
|
maxColLength: number;
|
|
116
|
+
defaultMinWidth: number;
|
|
103
117
|
}>;
|
|
104
118
|
__isFragment?: never;
|
|
105
119
|
__isTeleport?: never;
|
|
@@ -121,6 +135,10 @@ export declare const ZhDiyDataTable: {
|
|
|
121
135
|
type: import('vue').PropType<number>;
|
|
122
136
|
default: number;
|
|
123
137
|
};
|
|
138
|
+
defaultMinWidth: {
|
|
139
|
+
type: import('vue').PropType<number>;
|
|
140
|
+
default: number;
|
|
141
|
+
};
|
|
124
142
|
}>> & Readonly<{}>, {
|
|
125
143
|
initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
|
|
126
144
|
getData: () => Promise<{
|
|
@@ -131,6 +149,7 @@ export declare const ZhDiyDataTable: {
|
|
|
131
149
|
key?: (number | string) | undefined;
|
|
132
150
|
isAdd?: boolean | undefined;
|
|
133
151
|
width?: number | undefined;
|
|
152
|
+
minWidth?: number | undefined;
|
|
134
153
|
maxlength?: number | undefined;
|
|
135
154
|
headerMaxlength?: number | undefined;
|
|
136
155
|
placeholder?: string | undefined;
|
|
@@ -147,10 +166,12 @@ export declare const ZhDiyDataTable: {
|
|
|
147
166
|
}[];
|
|
148
167
|
} | undefined>;
|
|
149
168
|
updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
|
|
169
|
+
resetColumns: (cols: import('./type').DiyDataTableColumnItem[]) => void;
|
|
150
170
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
151
171
|
isEdit: boolean;
|
|
152
172
|
maxRowLength: number;
|
|
153
173
|
maxColLength: number;
|
|
174
|
+
defaultMinWidth: number;
|
|
154
175
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
155
176
|
$slots: Partial<Record<string, (_: {
|
|
156
177
|
row: any;
|
|
@@ -2,11 +2,16 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { Map } from 'ol';
|
|
3
3
|
import { ShipInfoVo } from './interface';
|
|
4
4
|
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
toolPanel?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
9
|
zoom: number | null;
|
|
7
10
|
center: [number, number] | null;
|
|
8
11
|
vehicleMode: "truck" | "ship";
|
|
9
|
-
viewMode: "PC" | "WxMiniprogram" | "APP";
|
|
12
|
+
viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip";
|
|
13
|
+
mmsi?: string;
|
|
14
|
+
shipData?: ShipInfoVo;
|
|
10
15
|
}>>, {
|
|
11
16
|
mapInstance: Ref<Map | undefined, Map | undefined>;
|
|
12
17
|
initMap: () => void;
|
|
@@ -22,7 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
27
|
playTrack: (index: number | string, speed: number) => void;
|
|
23
28
|
clearSelectFeature: () => void;
|
|
24
29
|
findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
25
|
-
focusShip: (id: string, shipData?: ShipInfoVo) => void;
|
|
30
|
+
focusShip: (id: string, shipData?: ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
26
31
|
showTracks: Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
27
32
|
removeAllTrackLayer: () => void;
|
|
28
33
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -30,8 +35,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
30
35
|
switchGreenDot: () => void;
|
|
31
36
|
zoomTruckIcon: () => void;
|
|
32
37
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
38
|
+
removerLayer: (index: number) => void;
|
|
33
39
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
34
40
|
setMarkerPosition: (val: string) => void;
|
|
41
|
+
getZoomAndCenter: () => {
|
|
42
|
+
zoom: number;
|
|
43
|
+
center: number[];
|
|
44
|
+
} | null;
|
|
35
45
|
drawPolygonTool: {
|
|
36
46
|
addInteraction: (callback?: Function) => void;
|
|
37
47
|
removeInteraction: () => void;
|
|
@@ -45,11 +55,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
45
55
|
zoom: number | null;
|
|
46
56
|
center: [number, number] | null;
|
|
47
57
|
vehicleMode: "truck" | "ship";
|
|
48
|
-
viewMode: "PC" | "WxMiniprogram" | "APP";
|
|
58
|
+
viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip";
|
|
59
|
+
mmsi?: string;
|
|
60
|
+
shipData?: ShipInfoVo;
|
|
49
61
|
}>>> & Readonly<{
|
|
50
62
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
51
63
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
52
64
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
53
66
|
export default _default;
|
|
54
67
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
68
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -60,3 +73,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
60
73
|
required: true;
|
|
61
74
|
};
|
|
62
75
|
};
|
|
76
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -2,6 +2,10 @@ declare function removeInteraction(): void;
|
|
|
2
2
|
declare function addInteraction(): void;
|
|
3
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
visible: import('vue').PropType<boolean>;
|
|
5
|
+
viewMode: {
|
|
6
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
5
9
|
}>, {
|
|
6
10
|
addInteraction: typeof addInteraction;
|
|
7
11
|
removeInteraction: typeof removeInteraction;
|
|
@@ -9,6 +13,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9
13
|
close: (...args: any[]) => void;
|
|
10
14
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
15
|
visible: import('vue').PropType<boolean>;
|
|
16
|
+
viewMode: {
|
|
17
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
12
20
|
}>> & Readonly<{
|
|
13
21
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -13,9 +13,15 @@ export declare const ZhMap: {
|
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
15
|
viewMode: {
|
|
16
|
-
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
16
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip">;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
+
mmsi: {
|
|
20
|
+
type: import('vue').PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
shipData: {
|
|
23
|
+
type: import('vue').PropType<import('./interface').ShipInfoVo>;
|
|
24
|
+
};
|
|
19
25
|
}>> & Readonly<{
|
|
20
26
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
21
27
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -34,7 +40,7 @@ export declare const ZhMap: {
|
|
|
34
40
|
playTrack: (index: number | string, speed: number) => void;
|
|
35
41
|
clearSelectFeature: () => void;
|
|
36
42
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
37
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
|
|
43
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
38
44
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
39
45
|
removeAllTrackLayer: () => void;
|
|
40
46
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -42,8 +48,13 @@ export declare const ZhMap: {
|
|
|
42
48
|
switchGreenDot: () => void;
|
|
43
49
|
zoomTruckIcon: () => void;
|
|
44
50
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
51
|
+
removerLayer: (index: number) => void;
|
|
45
52
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
46
53
|
setMarkerPosition: (val: string) => void;
|
|
54
|
+
getZoomAndCenter: () => {
|
|
55
|
+
zoom: number;
|
|
56
|
+
center: number[];
|
|
57
|
+
} | null;
|
|
47
58
|
drawPolygonTool: {
|
|
48
59
|
addInteraction: (callback?: Function) => void;
|
|
49
60
|
removeInteraction: () => void;
|
|
@@ -74,9 +85,15 @@ export declare const ZhMap: {
|
|
|
74
85
|
required: true;
|
|
75
86
|
};
|
|
76
87
|
viewMode: {
|
|
77
|
-
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
88
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip">;
|
|
78
89
|
required: true;
|
|
79
90
|
};
|
|
91
|
+
mmsi: {
|
|
92
|
+
type: import('vue').PropType<string>;
|
|
93
|
+
};
|
|
94
|
+
shipData: {
|
|
95
|
+
type: import('vue').PropType<import('./interface').ShipInfoVo>;
|
|
96
|
+
};
|
|
80
97
|
}>> & Readonly<{
|
|
81
98
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
82
99
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -95,7 +112,7 @@ export declare const ZhMap: {
|
|
|
95
112
|
playTrack: (index: number | string, speed: number) => void;
|
|
96
113
|
clearSelectFeature: () => void;
|
|
97
114
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
98
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
|
|
115
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
99
116
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
100
117
|
removeAllTrackLayer: () => void;
|
|
101
118
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -103,8 +120,13 @@ export declare const ZhMap: {
|
|
|
103
120
|
switchGreenDot: () => void;
|
|
104
121
|
zoomTruckIcon: () => void;
|
|
105
122
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
123
|
+
removerLayer: (index: number) => void;
|
|
106
124
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
107
125
|
setMarkerPosition: (val: string) => void;
|
|
126
|
+
getZoomAndCenter: () => {
|
|
127
|
+
zoom: number;
|
|
128
|
+
center: number[];
|
|
129
|
+
} | null;
|
|
108
130
|
drawPolygonTool: {
|
|
109
131
|
addInteraction: (callback?: Function) => void;
|
|
110
132
|
removeInteraction: () => void;
|
|
@@ -129,9 +151,15 @@ export declare const ZhMap: {
|
|
|
129
151
|
required: true;
|
|
130
152
|
};
|
|
131
153
|
viewMode: {
|
|
132
|
-
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP">;
|
|
154
|
+
type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip">;
|
|
133
155
|
required: true;
|
|
134
156
|
};
|
|
157
|
+
mmsi: {
|
|
158
|
+
type: import('vue').PropType<string>;
|
|
159
|
+
};
|
|
160
|
+
shipData: {
|
|
161
|
+
type: import('vue').PropType<import('./interface').ShipInfoVo>;
|
|
162
|
+
};
|
|
135
163
|
}>> & Readonly<{
|
|
136
164
|
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
137
165
|
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
@@ -150,7 +178,7 @@ export declare const ZhMap: {
|
|
|
150
178
|
playTrack: (index: number | string, speed: number) => void;
|
|
151
179
|
clearSelectFeature: () => void;
|
|
152
180
|
findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
|
|
153
|
-
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
|
|
181
|
+
focusShip: (id: string, shipData?: import('./interface').ShipInfoVo, hiddenOrther?: boolean) => void;
|
|
154
182
|
showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
155
183
|
removeAllTrackLayer: () => void;
|
|
156
184
|
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
@@ -158,8 +186,13 @@ export declare const ZhMap: {
|
|
|
158
186
|
switchGreenDot: () => void;
|
|
159
187
|
zoomTruckIcon: () => void;
|
|
160
188
|
renderTruckTrack: (vclN: string, list: any[], color: string) => void;
|
|
189
|
+
removerLayer: (index: number) => void;
|
|
161
190
|
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
162
191
|
setMarkerPosition: (val: string) => void;
|
|
192
|
+
getZoomAndCenter: () => {
|
|
193
|
+
zoom: number;
|
|
194
|
+
center: number[];
|
|
195
|
+
} | null;
|
|
163
196
|
drawPolygonTool: {
|
|
164
197
|
addInteraction: (callback?: Function) => void;
|
|
165
198
|
removeInteraction: () => void;
|
|
@@ -169,4 +202,8 @@ export declare const ZhMap: {
|
|
|
169
202
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
170
203
|
zoomChanged: (...args: any[]) => void;
|
|
171
204
|
extentChanged: (...args: any[]) => void;
|
|
172
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps &
|
|
205
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
206
|
+
$slots: {
|
|
207
|
+
toolPanel?(_: {}): any;
|
|
208
|
+
};
|
|
209
|
+
}) & import('vue').Plugin;
|
|
@@ -3,4 +3,5 @@ import { ShipTrack } from '../../interface';
|
|
|
3
3
|
|
|
4
4
|
export declare const renderTrackLine: (data: any, id: string, trackColor: string) => void;
|
|
5
5
|
export declare const handlePlay: (index: number) => void;
|
|
6
|
+
export declare const removeShipTrackLineFeatureByIndex: (index: number) => void;
|
|
6
7
|
export declare const setTrackLabelStyle: (featureData: ShipTrack, trackColor: string) => Style;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
declare function addInteraction(callback?: Function): void;
|
|
2
|
-
declare function removeInteraction(): void;
|
|
3
1
|
export declare const drawPolygonTool: {
|
|
4
|
-
addInteraction:
|
|
5
|
-
removeInteraction:
|
|
2
|
+
addInteraction: (callback?: Function) => void;
|
|
3
|
+
removeInteraction: () => void;
|
|
6
4
|
initFeature: (callback?: Function) => void;
|
|
7
5
|
reset: () => void;
|
|
8
6
|
};
|
|
9
|
-
export {};
|
|
@@ -8,6 +8,7 @@ import { SWITCH_BTN } from '../enum';
|
|
|
8
8
|
|
|
9
9
|
export declare const renderShips: (list: ShipInfoVo[]) => VectorLayer<VectorSource<any>, any> | WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined;
|
|
10
10
|
export declare const deleteAllShipMarkers: () => void;
|
|
11
|
+
export declare const setVisibleFeatureById: (id: string, visible: boolean) => void;
|
|
11
12
|
export declare const findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
12
13
|
export declare const clearSelectFeature: () => void;
|
|
13
14
|
export declare const hiddenAllShips: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Polygon } from 'ol/geom';
|
|
1
|
+
import { Geometry, Polygon } from 'ol/geom';
|
|
2
2
|
import { Coordinate } from 'ol/coordinate';
|
|
3
|
+
import { Feature } from 'ol';
|
|
3
4
|
import { default as VectorLayer } from 'ol/layer/Vector';
|
|
4
5
|
import { Style } from 'ol/style';
|
|
5
6
|
|
|
@@ -13,12 +14,18 @@ export declare const findFeatureById: (layer: VectorLayer, id: string) => any;
|
|
|
13
14
|
export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
|
|
14
15
|
export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;
|
|
15
16
|
export declare const getIconStyle: (symbol: string) => Style;
|
|
16
|
-
export declare function convertToRadians(
|
|
17
|
-
export declare function createFeature(geometry:
|
|
17
|
+
export declare function convertToRadians(feature: Feature): any;
|
|
18
|
+
export declare function createFeature(geometry: Geometry, properties: any, options?: {}): {
|
|
18
19
|
type: string;
|
|
19
20
|
};
|
|
20
|
-
export declare function createPoint(coordinates:
|
|
21
|
+
export declare function createPoint(coordinates: number[][], properties: any, options: any): {
|
|
21
22
|
type: string;
|
|
22
23
|
};
|
|
23
|
-
export declare function calculateAngle(pointA:
|
|
24
|
-
|
|
24
|
+
export declare function calculateAngle(pointA: Feature, pointB: Feature, options: any): any;
|
|
25
|
+
/**
|
|
26
|
+
* 计算两点之间连线的相对旋转方向
|
|
27
|
+
* @param {number[]} a - 第一个点的坐标 [longitude, latitude]
|
|
28
|
+
* @param {number[]} b - 第二个点的坐标 [longitude, latitude]
|
|
29
|
+
* @returns {number} - 旋转角度 (0 ~ 360°)
|
|
30
|
+
*/
|
|
31
|
+
export declare const getRotation: (a: number[][], b: number[][]) => number;
|
|
@@ -4,13 +4,14 @@ import { default as VectorLayer } from 'ol/layer/Vector';
|
|
|
4
4
|
import { default as WebGLPointsLayer } from 'ol/layer/WebGLPoints';
|
|
5
5
|
import { default as VectorSource } from 'ol/source/Vector';
|
|
6
6
|
import { Geometry } from 'ol/geom';
|
|
7
|
-
import { ShipInfoVo } from '../interface';
|
|
7
|
+
import { ShipInfoVo, ShipMapData } from '../interface';
|
|
8
8
|
|
|
9
9
|
export declare const mapInstance: Ref<MapType | undefined, MapType | undefined>;
|
|
10
10
|
export declare const shipsLayer: Ref<VectorLayer | undefined>;
|
|
11
|
+
export declare const largeAmountShipsLayer: Ref<WebGLPointsLayer<VectorSource<Feature<Geometry>>> | undefined>;
|
|
11
12
|
export declare const selectShipsLayer: Ref<VectorLayer | undefined>;
|
|
12
13
|
export declare const allShips: Ref<ShipInfoVo[]>;
|
|
13
|
-
export declare const
|
|
14
|
+
export declare const selectSingleShipData: Ref<ShipMapData>;
|
|
14
15
|
export declare const statisticsLayer: Ref<VectorLayer | undefined>;
|
|
15
16
|
export declare const trucksLayer: Ref<VectorLayer | undefined>;
|
|
16
17
|
export declare const shipTrackLineFeatures: Ref<Feature[]>;
|