zhihao-ui 1.2.68 → 1.2.70
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-BhnEjLKF.js → BaseInfo-BQ9mgGZQ.js} +1 -1
- package/dist/es/{BaseItem-C4NJy1i4.js → BaseItem-ByAS3S8w.js} +3 -3
- package/dist/es/{Button-CGndQwez.js → Button-BdGo3Kfv.js} +2 -2
- package/dist/es/CascaderLoadMore-B3dBPBJz.js +243 -0
- package/dist/es/DatePicker-C-2zM1dY.js +73 -0
- package/dist/es/{DetailHeader-DaabNj_4.js → DetailHeader-Dd_oHefQ.js} +3 -3
- package/dist/es/{DetailSubTitle-CzFZPXeE.js → DetailSubTitle-1YWi0mX_.js} +2 -2
- package/dist/es/{Dialog-BUW6ag1B.js → Dialog-Cib_m5sM.js} +3 -3
- package/dist/es/DiyDataTable-beBJdlLe.js +364 -0
- package/dist/es/{EditInfoPair-B2f6zoGY.js → EditInfoPair-BCbIIBEP.js} +3 -3
- package/dist/es/{FileWrapper-D4IxJemr.js → FileWrapper-ClTHhvQU.js} +4 -4
- package/dist/es/{Grid-DIs695lY.js → Grid-DvrmAWyU.js} +2 -2
- package/dist/es/{InfoPair-Ce7nDfxD.js → InfoPair-Bf-X09VT.js} +3 -3
- package/dist/es/{Input-C5X2X_YD.js → Input-uOt745UZ.js} +14 -14
- package/dist/es/{Loading-BgoEv5qE.js → Loading-C_6ERpeb.js} +2 -2
- package/dist/es/Map-XWdLIa5C.js +2528 -0
- package/dist/es/{MessageBox-DiGH5x51.js → MessageBox-h_sFrr4D.js} +2 -2
- package/dist/es/{MoneyInput-D0kYiOfP.js → MoneyInput-D8V7_PZq.js} +8 -8
- package/dist/es/{PageHeadPanel-C6IdOq6I.js → PageHeadPanel-DLs1xYME.js} +2 -2
- package/dist/es/Table-DgS42Pzw.js +1167 -0
- package/dist/es/{ToolTips-CiQHxGrw.js → ToolTips-CSVL9wbb.js} +6 -6
- package/dist/es/index.js +77 -60
- package/dist/es/{utils-D2wHR1YB.js → utils-UjENBVnX.js} +1 -1
- package/dist/es/{vendor-D2mv9LHk.js → vendor-9390iK3y.js} +30756 -26238
- package/dist/index.css +1 -1
- package/dist/types/components/BaseItem/index.d.ts +9 -9
- package/dist/types/components/Dialog/Dialog.vue.d.ts +16 -16
- package/dist/types/components/Dialog/index.d.ts +24 -24
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +18 -1
- package/dist/types/components/DiyDataTable/index.d.ts +30 -0
- package/dist/types/components/DiyDataTable/type.d.ts +17 -1
- package/dist/types/components/Map/Map.vue.d.ts +138 -101
- package/dist/types/components/Map/components/scaleLine.vue.d.ts +1 -2
- package/dist/types/components/Map/components/zoomControl.vue.d.ts +3 -7
- package/dist/types/components/Map/index.d.ts +390 -324
- package/dist/types/components/Map/interface/index.d.ts +13 -6
- package/dist/types/components/Map/types.d.ts +13 -1
- package/dist/types/components/Table/types.d.ts +1 -0
- package/dist/types/components/ToolTips/index.d.ts +12 -12
- package/dist/types/components/index.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +604 -130
- package/package.json +1 -1
- package/dist/es/DatePicker-Dy1K1cJQ.js +0 -57
- package/dist/es/DiyDataTable-D-UZVciZ.js +0 -331
- package/dist/es/Map-DbbD377l.js +0 -2235
- package/dist/es/Table-B_3YA1mb.js +0 -1155
- package/dist/types/components/Map/config/global.d.ts +0 -2
- package/dist/types/components/Map/config/index.d.ts +0 -2
- package/dist/types/components/Map/config/map.d.ts +0 -22
- package/dist/types/components/Map/function/carTrack.d.ts +0 -11
- package/dist/types/components/Map/function/drawLine.d.ts +0 -12
- package/dist/types/components/Map/function/drawPolygon.d.ts +0 -9
- package/dist/types/components/Map/function/event.d.ts +0 -9
- package/dist/types/components/Map/function/layers.d.ts +0 -10
- package/dist/types/components/Map/function/map.d.ts +0 -18
- package/dist/types/components/Map/function/port.d.ts +0 -10
- package/dist/types/components/Map/function/position.d.ts +0 -8
- package/dist/types/components/Map/function/props.d.ts +0 -7
- package/dist/types/components/Map/function/ship/index.d.ts +0 -16
- package/dist/types/components/Map/function/ship/label.d.ts +0 -5
- package/dist/types/components/Map/function/ship/style.d.ts +0 -23
- package/dist/types/components/Map/function/shipOverlay.d.ts +0 -12
- package/dist/types/components/Map/function/shipTrack.d.ts +0 -16
- package/dist/types/components/Map/interface/carTrack.d.ts +0 -70
- package/dist/types/components/Map/interface/label.d.ts +0 -27
- package/dist/types/components/Map/interface/mapProps.d.ts +0 -15
- package/dist/types/components/Map/interface/position.d.ts +0 -7
- package/dist/types/components/Map/interface/shipInfoVo.d.ts +0 -214
- package/dist/types/components/Map/interface/shipTrack.d.ts +0 -57
- package/dist/types/components/Map/interface/wharfEntity.d.ts +0 -20
- package/dist/types/components/Map/meta/index.d.ts +0 -17
- package/dist/types/components/Map/meta/ship.d.ts +0 -26
- package/dist/types/components/Map/useMap.d.ts +0 -17
- package/dist/types/components/Map/utils/cursor.d.ts +0 -3
- package/dist/types/components/Map/utils/events.d.ts +0 -4
- package/dist/types/components/Map/utils/overlay.d.ts +0 -5
- package/dist/types/components/Map/utils/rbush.d.ts +0 -13
- package/dist/types/components/Map/utils/shipOverlay.d.ts +0 -12
- package/dist/types/components/Map/utils/track.d.ts +0 -45
- package/dist/types/components/Map/utils/util.d.ts +0 -42
|
@@ -1,104 +1,144 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Map as MapType } from 'ol';
|
|
3
|
+
import { transform } from 'ol/proj';
|
|
4
|
+
import { ShipInfoVo } from './interface';
|
|
5
|
+
import { PointMarkerClass } from './render/renderPoint.ts';
|
|
2
6
|
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
toolPanel?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
zoom: number | null;
|
|
12
|
+
center: [number, number] | null;
|
|
13
|
+
vehicleMode: "truck" | "ship";
|
|
14
|
+
viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip" | "markerPosition";
|
|
15
|
+
mmsi?: string;
|
|
16
|
+
shipData?: ShipInfoVo;
|
|
17
|
+
logoType?: number;
|
|
18
|
+
showToolPanel?: boolean | undefined;
|
|
14
19
|
}>>, {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
20
|
+
mapInstance: Ref<MapType | undefined, MapType | undefined>;
|
|
21
|
+
initMap: () => void;
|
|
22
|
+
pointRender: (mapInstance: MapType, options: {
|
|
23
|
+
color: string;
|
|
24
|
+
activeUrl?: string;
|
|
25
|
+
url?: string;
|
|
26
|
+
activeColor?: string;
|
|
27
|
+
}) => PointMarkerClass;
|
|
28
|
+
renderTrucksMarker: (list: import('./interface').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
|
|
29
|
+
renderShip: (list: ShipInfoVo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | import('ol/layer').WebGLPoints<import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>>> | undefined;
|
|
30
|
+
renderTrack: (mmsi: string, list: any[], color: string, threshold?: number) => void;
|
|
31
|
+
findTruck: (vehicleInfo?: import('./interface').VehicleInfo, extendHtml?: string) => Promise<void>;
|
|
32
|
+
removeTruckIcon: () => void;
|
|
33
|
+
clearAllTruck: () => void;
|
|
34
|
+
closeTrack: (clearAll?: boolean) => void;
|
|
35
|
+
closeTruckTrack: () => void;
|
|
36
|
+
resetTrackView: (id?: number | string) => void;
|
|
37
|
+
playTrack: (id: number | string, speed: number) => void;
|
|
38
|
+
clearSelectFeature: () => void;
|
|
39
|
+
findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
|
|
40
|
+
focusShip: (id: string, shipData?: ShipInfoVo, hidden?: boolean) => void;
|
|
41
|
+
clearShipData: (clearSelect?: boolean) => void;
|
|
42
|
+
showTracks: Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
|
|
43
|
+
removeAllTrackLayer: () => void;
|
|
44
|
+
switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
|
|
45
|
+
rerenderShip: () => void;
|
|
46
|
+
switchGreenDot: () => void;
|
|
47
|
+
zoomTruckIcon: () => void;
|
|
48
|
+
renderTruckTrack: (vclN: string, list: any[], color: string, threshold?: number) => void;
|
|
49
|
+
drawCustomContent: (id: string, centerPixel: number[], html: string, positioning?: import('ol/Overlay').Positioning, draggable?: boolean, clear?: boolean) => import('ol').Overlay | undefined;
|
|
50
|
+
removerLayer: (index: number, id: string) => void;
|
|
51
|
+
renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
|
|
52
|
+
setMarkerPosition: (val: string) => void;
|
|
53
|
+
getZoomAndCenter: () => {
|
|
54
|
+
zoom: number;
|
|
55
|
+
center: any[];
|
|
56
|
+
} | null;
|
|
57
|
+
setCenter: (lonLat: number[]) => null | undefined;
|
|
58
|
+
deleteLabelFromArray: () => void;
|
|
59
|
+
drawPolygonTool: {
|
|
60
|
+
addInteraction: (callback?: Function) => void;
|
|
61
|
+
removeInteraction: () => void;
|
|
62
|
+
initFeature: (callback?: Function) => void;
|
|
63
|
+
reset: () => void;
|
|
64
|
+
destroy: () => void;
|
|
50
65
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
selected: (portData?: WharfEntity) => any;
|
|
66
|
+
setMapInstance: () => void;
|
|
67
|
+
store: {
|
|
68
|
+
showDrawLayer: () => boolean;
|
|
55
69
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
config: {
|
|
71
|
+
mapZoom: {
|
|
72
|
+
default: number;
|
|
73
|
+
min: number;
|
|
74
|
+
max: number;
|
|
75
|
+
findShipMin: number;
|
|
76
|
+
findShip: number;
|
|
77
|
+
findTruck: number;
|
|
78
|
+
shipGreenDotMax: number;
|
|
79
|
+
truckDefault: number;
|
|
80
|
+
truckStatistics: number;
|
|
81
|
+
shipModelMin: number;
|
|
82
|
+
shipModelMax: number;
|
|
83
|
+
markerPosition: number;
|
|
84
|
+
};
|
|
85
|
+
projection: {
|
|
86
|
+
data: string;
|
|
87
|
+
mercator: string;
|
|
88
|
+
};
|
|
73
89
|
};
|
|
74
90
|
utils: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
91
|
+
transform: {
|
|
92
|
+
gcj02ToWgs84: (lnglat: string) => string;
|
|
93
|
+
calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
|
|
94
|
+
leftTopPoint: {
|
|
95
|
+
lng: number;
|
|
96
|
+
lat: number;
|
|
97
|
+
};
|
|
98
|
+
rightTopPoint: {
|
|
99
|
+
lng: number;
|
|
100
|
+
lat: number;
|
|
101
|
+
};
|
|
102
|
+
rightBottomPoint: {
|
|
103
|
+
lng: number;
|
|
104
|
+
lat: number;
|
|
105
|
+
};
|
|
106
|
+
leftBottomPoint: {
|
|
107
|
+
lng: number;
|
|
108
|
+
lat: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
lonLatToMercator: (center: [number, number]) => number[];
|
|
112
|
+
mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
113
|
+
lon: number;
|
|
114
|
+
lat: number;
|
|
115
|
+
};
|
|
116
|
+
calculateBoundingBox: (coordinates: [number, number][]) => number[];
|
|
117
|
+
transform: typeof transform;
|
|
118
|
+
};
|
|
119
|
+
format: {
|
|
120
|
+
formatLength: (line: import('ol/geom').LineString, unit: number) => string;
|
|
121
|
+
convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
122
|
+
formatArea: (polygon: import('ol/geom').Polygon | import('ol/geom').Geometry, unit: number) => string | undefined;
|
|
123
|
+
};
|
|
78
124
|
};
|
|
79
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
scaleLineUnit: "metric" | "imperial" | "nautical";
|
|
97
|
-
mapMoveEnd: (zoom: number) => void;
|
|
98
|
-
areaDrawEnd: (area: []) => void;
|
|
99
|
-
selectShip: (id: string) => void;
|
|
100
|
-
selectPort: (id: WharfEntity) => void;
|
|
101
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
125
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
126
|
+
zoomChanged: (...args: any[]) => void;
|
|
127
|
+
extentChanged: (...args: any[]) => void;
|
|
128
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
129
|
+
zoom: number | null;
|
|
130
|
+
center: [number, number] | null;
|
|
131
|
+
vehicleMode: "truck" | "ship";
|
|
132
|
+
viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip" | "markerPosition";
|
|
133
|
+
mmsi?: string;
|
|
134
|
+
shipData?: ShipInfoVo;
|
|
135
|
+
logoType?: number;
|
|
136
|
+
showToolPanel?: boolean | undefined;
|
|
137
|
+
}>>> & Readonly<{
|
|
138
|
+
onZoomChanged?: ((...args: any[]) => any) | undefined;
|
|
139
|
+
onExtentChanged?: ((...args: any[]) => any) | undefined;
|
|
140
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
141
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
102
142
|
export default _default;
|
|
103
143
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
104
144
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -109,11 +149,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
109
149
|
required: true;
|
|
110
150
|
};
|
|
111
151
|
};
|
|
112
|
-
type
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
152
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
153
|
+
new (): {
|
|
154
|
+
$slots: S;
|
|
155
|
+
};
|
|
116
156
|
};
|
|
117
|
-
type __VLS_Prettify<T> = {
|
|
118
|
-
[K in keyof T]: T[K];
|
|
119
|
-
} & {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Units } from 'ol/control/ScaleLine';
|
|
2
|
-
import { Map } from 'ol';
|
|
3
2
|
|
|
4
3
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
5
|
-
setScaleLine: (
|
|
4
|
+
setScaleLine: (units: Units) => void;
|
|
6
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
6
|
export default _default;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
|
|
2
|
+
map: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
|
-
default: () => null;
|
|
5
4
|
};
|
|
6
5
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
-
|
|
6
|
+
map: {
|
|
8
7
|
type: ObjectConstructor;
|
|
9
|
-
default: () => null;
|
|
10
8
|
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
mapInstance: Record<string, any>;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
10
|
export default _default;
|