hy-dispatch-ui-v3 0.2.86 → 0.2.88
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/tailwind.css +196 -4
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +1 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +1 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +1 -0
- package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +1 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +1 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +3 -3
- package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +3 -3
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +1 -0
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +7 -1
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +1 -0
- package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +7 -1
- package/es/bussiness/hyFilePlayback/locale/en_US.mjs +17 -17
- package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +17 -17
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +1 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +1 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +1 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +1 -0
- package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.mjs +3 -3
- package/es/bussiness/hySelectDeviceTree/selectDeviceTree.vue.mjs +2 -8
- package/es/bussiness/hyUserTree/userTree.vue.mjs +1 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +9 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +1 -0
- package/es/components/hyButton/button.vue.mjs +1 -0
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +1 -0
- package/es/components/hyConfigProvider/configProvider.vue.mjs +36 -35
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -0
- package/es/components/hyCutter/cutter.vue.mjs +10 -1
- package/es/components/hyDatePicker/datePicker.vue.mjs +1 -0
- package/es/components/hyDialog/dialog.vue.mjs +1 -0
- package/es/components/hyDrawer/drawer.vue.mjs +1 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +15 -11
- package/es/components/hyForm/form.vue.mjs +2 -3
- package/es/components/hyIcon/icon.vue.mjs +1 -0
- package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
- package/es/components/hyInput/input.vue.mjs +1 -0
- package/es/components/hyInput/inputSearch.vue.mjs +1 -0
- package/es/components/hyKindEditor/kindEditor.vue.mjs +17 -4
- package/es/components/hyMenu/menu.vue.mjs +1 -0
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -0
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -0
- package/es/components/hyOrgCascader/js/index.mjs +0 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +4 -1
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
- package/es/components/hySearch/search.vue.mjs +5 -1
- package/es/components/hyStatus/status.vue.mjs +1 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +5 -1
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +11 -2
- package/es/components/hyTable/js/index.mjs +7 -2
- package/es/components/hyTable/table.vue.mjs +5 -1
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +1 -0
- package/es/components/hyTableForm/batchTableForm.vue.mjs +6 -3
- package/es/components/hyTableForm/tableForm.vue.mjs +1 -0
- package/es/components/hyTimePicker/timePicker.vue.mjs +1 -0
- package/es/components/hyTooltip/tooltip.vue.mjs +1 -0
- package/es/components/hyTour/tour.vue.mjs +1 -0
- package/es/components/hyTree/js/index.mjs +8 -2
- package/es/components/hyTree/tree.vue.mjs +1 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -0
- package/es/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.mjs +9 -9
- package/es/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.mjs +656 -0
- package/es/components/hyVideoPlayer/index.mjs +2 -2
- package/es/components/hyVideoPlayer/locale/en_US.mjs +31 -0
- package/es/components/hyVideoPlayer/locale/index.mjs +2 -0
- package/es/components/hyVideoPlayer/locale/zh_CN.mjs +31 -0
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +5 -645
- package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +8 -0
- package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +947 -0
- package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +951 -0
- package/es/hooks/useLocale.mjs +7 -2
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
- package/es/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
- package/es/static/map/bm.geometryutil.js +3 -3
- package/es/static/map/bmDraw.js +6 -6
- package/es/static/map/markercluster.js +22 -22
- package/es/static/map/moveMarker.js +1 -1
- package/es/static/vite-plugin-hy-svg-icons.js +2 -2
- package/es/utils/file.mjs +7 -3
- package/es/utils/form.mjs +3 -1
- package/es/utils/map/hook/bigMap.mjs +18 -5
- package/es/utils/map/hook/gaode.mjs +4 -1
- package/es/utils/map/hook/leafletjs.mjs +29 -8
- package/es/utils/map/index.mjs +0 -1
- package/es/utils/useUiComponent.mjs +3 -1
- package/es/version.mjs +1 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +1 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +1 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +1 -0
- package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +1 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +1 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +3 -3
- package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +3 -3
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +1 -0
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +7 -1
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +1 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +7 -1
- package/lib/bussiness/hyFilePlayback/locale/en_US.js +17 -17
- package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +17 -17
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +1 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +1 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +1 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +1 -0
- package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.js +3 -3
- package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.vue.js +2 -8
- package/lib/bussiness/hyUserTree/userTree.vue.js +1 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +9 -1
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +1 -0
- package/lib/components/hyButton/button.vue.js +1 -0
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +1 -0
- package/lib/components/hyConfigProvider/configProvider.vue.js +36 -35
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -0
- package/lib/components/hyCutter/cutter.vue.js +10 -1
- package/lib/components/hyDatePicker/datePicker.vue.js +1 -0
- package/lib/components/hyDialog/dialog.vue.js +1 -0
- package/lib/components/hyDrawer/drawer.vue.js +1 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +15 -11
- package/lib/components/hyForm/form.vue.js +2 -3
- package/lib/components/hyIcon/icon.vue.js +1 -0
- package/lib/components/hyIconBox/iconBox.vue.js +1 -0
- package/lib/components/hyInput/input.vue.js +1 -0
- package/lib/components/hyInput/inputSearch.vue.js +1 -0
- package/lib/components/hyKindEditor/kindEditor.vue.js +17 -4
- package/lib/components/hyMenu/menu.vue.js +1 -0
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -0
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -0
- package/lib/components/hyOrgCascader/js/index.js +0 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +4 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +3 -1
- package/lib/components/hySearch/search.vue.js +5 -1
- package/lib/components/hyStatus/status.vue.js +1 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +5 -1
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +1 -1
- package/lib/components/hyTable/cpns/virtualTable.vue.js +11 -2
- package/lib/components/hyTable/js/index.js +7 -2
- package/lib/components/hyTable/table.vue.js +5 -1
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +1 -0
- package/lib/components/hyTableForm/batchTableForm.vue.js +6 -3
- package/lib/components/hyTableForm/tableForm.vue.js +1 -0
- package/lib/components/hyTimePicker/timePicker.vue.js +1 -0
- package/lib/components/hyTooltip/tooltip.vue.js +1 -0
- package/lib/components/hyTour/tour.vue.js +1 -0
- package/lib/components/hyTree/js/index.js +8 -2
- package/lib/components/hyTree/tree.vue.js +1 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -0
- package/lib/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.js +9 -9
- package/lib/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.js +660 -0
- package/lib/components/hyVideoPlayer/locale/en_US.js +35 -0
- package/lib/components/hyVideoPlayer/locale/index.js +9 -0
- package/lib/components/hyVideoPlayer/locale/zh_CN.js +35 -0
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +5 -645
- package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +12 -0
- package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +951 -0
- package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +955 -0
- package/lib/hooks/useLocale.js +7 -2
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
- package/lib/static/map/bm.geometryutil.js +3 -3
- package/lib/static/map/bmDraw.js +6 -6
- package/lib/static/map/markercluster.js +22 -22
- package/lib/static/map/moveMarker.js +1 -1
- package/lib/static/vite-plugin-hy-svg-icons.js +2 -2
- package/lib/utils/file.js +7 -3
- package/lib/utils/form.js +3 -1
- package/lib/utils/map/hook/bigMap.js +18 -5
- package/lib/utils/map/hook/gaode.js +4 -1
- package/lib/utils/map/hook/leafletjs.js +29 -8
- package/lib/utils/map/index.js +0 -1
- package/lib/utils/useUiComponent.js +3 -1
- package/lib/version.js +1 -1
- package/package.json +8 -8
- /package/es/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
- /package/lib/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
|
@@ -86,7 +86,7 @@ export function hySvgIconsPlugin(options = {}) {
|
|
|
86
86
|
const m = idRe.exec(content);
|
|
87
87
|
if (m) map.set(m[1], file);
|
|
88
88
|
} catch {}
|
|
89
|
-
})
|
|
89
|
+
})
|
|
90
90
|
);
|
|
91
91
|
available = map;
|
|
92
92
|
}
|
|
@@ -130,7 +130,7 @@ export function hySvgIconsPlugin(options = {}) {
|
|
|
130
130
|
while ((m = nameRe.exec(content))) {
|
|
131
131
|
if (available.has(m[0])) found.add(m[0]);
|
|
132
132
|
}
|
|
133
|
-
})
|
|
133
|
+
})
|
|
134
134
|
);
|
|
135
135
|
return found;
|
|
136
136
|
}
|
package/lib/utils/file.js
CHANGED
|
@@ -37,9 +37,13 @@ async function fileJsonUplaod(file) {
|
|
|
37
37
|
}
|
|
38
38
|
async function preSignedUrlGetApi(keyList) {
|
|
39
39
|
const { api } = useApi.useApi();
|
|
40
|
-
return await vue.unref(api).post(
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
return await vue.unref(api).post(
|
|
41
|
+
"file/preSignedUrlGet",
|
|
42
|
+
{ keyList },
|
|
43
|
+
{
|
|
44
|
+
isJSON: true
|
|
45
|
+
}
|
|
46
|
+
);
|
|
43
47
|
}
|
|
44
48
|
async function fileFormUpload(file) {
|
|
45
49
|
const { api } = useApi.useApi();
|
package/lib/utils/form.js
CHANGED
|
@@ -104,7 +104,9 @@ const columnRuleHandler = (column, model, config) => {
|
|
|
104
104
|
value = `${value}`;
|
|
105
105
|
}
|
|
106
106
|
if (is.isString(value) && value.length > 255) {
|
|
107
|
-
callback(
|
|
107
|
+
callback(
|
|
108
|
+
new Error(useLocale.$t("form.characterLimit", [columnLabelHandler(column, model), 255]))
|
|
109
|
+
);
|
|
108
110
|
return;
|
|
109
111
|
}
|
|
110
112
|
callback();
|
|
@@ -55,7 +55,10 @@ const generalMapMethods = {
|
|
|
55
55
|
// 导入到地图里面
|
|
56
56
|
getBounds: function(target, BM2) {
|
|
57
57
|
const bounds = target.getBounds ? target.getBounds() : target;
|
|
58
|
-
return BM2.latLngBounds(
|
|
58
|
+
return BM2.latLngBounds(
|
|
59
|
+
latAndLngCheck(bounds.getSouthWest()),
|
|
60
|
+
latAndLngCheck(bounds.getNorthEast())
|
|
61
|
+
);
|
|
59
62
|
},
|
|
60
63
|
getMap: function(map) {
|
|
61
64
|
return map.getRawMap ? map.getRawMap() : map;
|
|
@@ -63,7 +66,10 @@ const generalMapMethods = {
|
|
|
63
66
|
// 导出到外面
|
|
64
67
|
getBoundsExport: function(target, BM2) {
|
|
65
68
|
const bounds = target.getBounds();
|
|
66
|
-
return BM2.latLngBounds(
|
|
69
|
+
return BM2.latLngBounds(
|
|
70
|
+
latAndLngCheckExport(bounds.getSouthWest()),
|
|
71
|
+
latAndLngCheckExport(bounds.getNorthEast())
|
|
72
|
+
);
|
|
67
73
|
}
|
|
68
74
|
};
|
|
69
75
|
function latAndLngCheck(item) {
|
|
@@ -799,7 +805,9 @@ class bigMap extends events.EventEmitter {
|
|
|
799
805
|
const markerItem = rangingMarker[index];
|
|
800
806
|
const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
801
807
|
markerItem.setIcon({
|
|
802
|
-
divIcon: _this.DivIcon(
|
|
808
|
+
divIcon: _this.DivIcon(
|
|
809
|
+
rangingPointIconOption(options, distance, markerItem.options.extData.dicId, isLast)
|
|
810
|
+
)
|
|
803
811
|
});
|
|
804
812
|
markerItem.options.extData.distance = distance;
|
|
805
813
|
}
|
|
@@ -827,7 +835,10 @@ class bigMap extends events.EventEmitter {
|
|
|
827
835
|
rangingPointsIng.push({ lat, lng });
|
|
828
836
|
} else {
|
|
829
837
|
const latlngs = [
|
|
830
|
-
[
|
|
838
|
+
[
|
|
839
|
+
rangingPointsIng[rangingPointsIng.length - 1].lat,
|
|
840
|
+
rangingPointsIng[rangingPointsIng.length - 1].lng
|
|
841
|
+
],
|
|
831
842
|
[lat, lng]
|
|
832
843
|
];
|
|
833
844
|
const polyline = _this.Polyline(latlngs, {
|
|
@@ -845,7 +856,9 @@ class bigMap extends events.EventEmitter {
|
|
|
845
856
|
{ lat: latlngs[1][0], lng: latlngs[1][1] }
|
|
846
857
|
);
|
|
847
858
|
distance = parseFloat((distance / 1e3).toFixed(2));
|
|
848
|
-
const total = parseFloat(
|
|
859
|
+
const total = parseFloat(
|
|
860
|
+
rangingMarker[rangingMarker.length - 1].options.extData.distance || 0
|
|
861
|
+
);
|
|
849
862
|
distance = (distance + total).toFixed(2);
|
|
850
863
|
const customIcon = _this.DivIcon(rangingPointIconOption(options, distance, dicId));
|
|
851
864
|
const markerItem = _this.Marker({
|
|
@@ -143,7 +143,10 @@ class Google extends events.EventEmitter {
|
|
|
143
143
|
const handlers = {
|
|
144
144
|
// return 单位:m
|
|
145
145
|
distance: function(target, latAndlng1, latAndlng2) {
|
|
146
|
-
return AMap.GeometryUtil.distance(
|
|
146
|
+
return AMap.GeometryUtil.distance(
|
|
147
|
+
[latAndlng1.lng, latAndlng1.lat],
|
|
148
|
+
[latAndlng2.lng, latAndlng2.lat]
|
|
149
|
+
);
|
|
147
150
|
},
|
|
148
151
|
// 删除地图
|
|
149
152
|
removeMap: function(target) {
|
|
@@ -87,7 +87,10 @@ const generalMapMethods = {
|
|
|
87
87
|
*/
|
|
88
88
|
getBounds(target) {
|
|
89
89
|
const bounds = target.getBounds();
|
|
90
|
-
return L.latLngBounds(
|
|
90
|
+
return L.latLngBounds(
|
|
91
|
+
latAndLngCheck(bounds.getSouthWest()),
|
|
92
|
+
latAndLngCheck(bounds.getNorthEast())
|
|
93
|
+
);
|
|
91
94
|
},
|
|
92
95
|
/**
|
|
93
96
|
* 包装Map实例
|
|
@@ -104,7 +107,10 @@ const generalMapMethods = {
|
|
|
104
107
|
*/
|
|
105
108
|
getBoundsExport(target) {
|
|
106
109
|
const bounds = target.getBounds();
|
|
107
|
-
return L.latLngBounds(
|
|
110
|
+
return L.latLngBounds(
|
|
111
|
+
latAndLngCheckExport(bounds.getSouthWest()),
|
|
112
|
+
latAndLngCheckExport(bounds.getNorthEast())
|
|
113
|
+
);
|
|
108
114
|
}
|
|
109
115
|
};
|
|
110
116
|
function latAndLngCheck(item) {
|
|
@@ -132,7 +138,8 @@ function latLngListCheck(dataList = []) {
|
|
|
132
138
|
function latLngListCheckExport(dataList = []) {
|
|
133
139
|
return dataList.map((item) => {
|
|
134
140
|
const isArray = Array.isArray(item);
|
|
135
|
-
if (isArray && (item.length === 0 || typeof item[0] === "object"))
|
|
141
|
+
if (isArray && (item.length === 0 || typeof item[0] === "object"))
|
|
142
|
+
return latLngListCheckExport(item);
|
|
136
143
|
const { lat, lng } = latAndLngCheckExport(item);
|
|
137
144
|
return isArray ? [lat, lng] : { ...item, lat, lng };
|
|
138
145
|
});
|
|
@@ -410,7 +417,12 @@ class Leafletjs extends events.EventEmitter {
|
|
|
410
417
|
}
|
|
411
418
|
// 超图 WMTS 图层(不适用所有的WMTS图层,目前仅支持超图WMTS,因不同的WMTS服务规范不一样,主要体现在路由访问参数)
|
|
412
419
|
createWMTSLayer(map, option = {}) {
|
|
413
|
-
const {
|
|
420
|
+
const {
|
|
421
|
+
url,
|
|
422
|
+
layer,
|
|
423
|
+
tilematrixSet,
|
|
424
|
+
format = "image/png"
|
|
425
|
+
} = typeof option === "string" ? { url: option } : option;
|
|
414
426
|
const crs = getCrs(this.initParams.crs);
|
|
415
427
|
if (!L.WMTSLayer) {
|
|
416
428
|
L.WMTSLayer = L.TileLayer.extend({
|
|
@@ -519,7 +531,9 @@ class Leafletjs extends events.EventEmitter {
|
|
|
519
531
|
}
|
|
520
532
|
// 地图图层
|
|
521
533
|
layerGroup(map, markers = []) {
|
|
522
|
-
const layerGroup = L.layerGroup(markers.map((item) => item.getInitLayer?.() || item)).addTo(
|
|
534
|
+
const layerGroup = L.layerGroup(markers.map((item) => item.getInitLayer?.() || item)).addTo(
|
|
535
|
+
getInitMap(map)
|
|
536
|
+
);
|
|
523
537
|
const handlers = {
|
|
524
538
|
addLayer: function(target, addItem) {
|
|
525
539
|
return target.addLayer(addItem.getInitLayer?.() || addItem);
|
|
@@ -1041,7 +1055,9 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1041
1055
|
const markerItem = rangingMarker[index];
|
|
1042
1056
|
const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
|
|
1043
1057
|
markerItem.setIcon({
|
|
1044
|
-
divIcon: _this.DivIcon(
|
|
1058
|
+
divIcon: _this.DivIcon(
|
|
1059
|
+
rangingPointIconOption(options, distance, markerItem.options.extData.dicId, isLast)
|
|
1060
|
+
)
|
|
1045
1061
|
});
|
|
1046
1062
|
markerItem.options.extData.distance = distance;
|
|
1047
1063
|
}
|
|
@@ -1069,7 +1085,10 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1069
1085
|
rangingPointsIng.push({ lat, lng });
|
|
1070
1086
|
} else {
|
|
1071
1087
|
const latlngs = [
|
|
1072
|
-
[
|
|
1088
|
+
[
|
|
1089
|
+
rangingPointsIng[rangingPointsIng.length - 1].lat,
|
|
1090
|
+
rangingPointsIng[rangingPointsIng.length - 1].lng
|
|
1091
|
+
],
|
|
1073
1092
|
[lat, lng]
|
|
1074
1093
|
];
|
|
1075
1094
|
const polyline = _this.Polyline(latlngs, {
|
|
@@ -1087,7 +1106,9 @@ class Leafletjs extends events.EventEmitter {
|
|
|
1087
1106
|
{ lat: latlngs[1][0], lng: latlngs[1][1] }
|
|
1088
1107
|
);
|
|
1089
1108
|
distance = parseFloat((distance / 1e3).toFixed(2));
|
|
1090
|
-
const total = parseFloat(
|
|
1109
|
+
const total = parseFloat(
|
|
1110
|
+
rangingMarker[rangingMarker.length - 1].options.extData.distance || 0
|
|
1111
|
+
);
|
|
1091
1112
|
distance = (distance + total).toFixed(2);
|
|
1092
1113
|
const customIcon = _this.DivIcon(rangingPointIconOption(options, distance, dicId));
|
|
1093
1114
|
const markerItem = _this.Marker({
|
package/lib/utils/map/index.js
CHANGED
|
@@ -22,7 +22,9 @@ function useUiComponent(componentName) {
|
|
|
22
22
|
throw new Error(`[useUiComponent] \u7EC4\u4EF6 ${componentName} \u5728 componentsMap \u4E2D\u4E0D\u5B58\u5728`);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
throw new Error(
|
|
25
|
+
throw new Error(
|
|
26
|
+
`[useUiComponent] useUiComponent('${componentName}') \u9700\u8981\u901A\u8FC7 HyConfigProvider \u63D0\u4F9B componentsMap \u548C versionStore`
|
|
27
|
+
);
|
|
26
28
|
return {
|
|
27
29
|
currentComponentsMap,
|
|
28
30
|
currentVersionStore
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hy-dispatch-ui-v3",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.88",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"xlsx": "^0.17.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@babel/eslint-parser": "^7.28.6",
|
|
56
55
|
"@babel/parser": "^8.0.4",
|
|
56
|
+
"@eslint/js": "^10.0.1",
|
|
57
57
|
"@pnpm/find-workspace-packages": "^6.0.9",
|
|
58
58
|
"@rollup/plugin-alias": "^6.0.0",
|
|
59
59
|
"@rollup/plugin-babel": "7.0.0",
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"commander": "11.0.0",
|
|
71
71
|
"consola": "^2.15.3",
|
|
72
72
|
"element-plus": "^2.14.2",
|
|
73
|
-
"eslint": "
|
|
74
|
-
"eslint-config-prettier": "
|
|
75
|
-
"eslint-
|
|
76
|
-
"eslint-plugin-
|
|
77
|
-
"eslint-plugin-vue": "9.32.0",
|
|
73
|
+
"eslint": "^10.0.3",
|
|
74
|
+
"eslint-config-prettier": "^10.1.8",
|
|
75
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
76
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
78
77
|
"fast-glob": "^3.3.3",
|
|
79
78
|
"fs-extra": "^11.1.0",
|
|
79
|
+
"globals": "^17.4.0",
|
|
80
80
|
"gulp": "4.0.2",
|
|
81
81
|
"gulp-babel": "^8.0.0",
|
|
82
82
|
"gulp-postcss": "^10.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"vite": "^7.3.1",
|
|
99
99
|
"vue": "^3.5.25",
|
|
100
100
|
"vue-draggable-plus": "^0.6.1",
|
|
101
|
-
"vue-eslint-parser": "^
|
|
101
|
+
"vue-eslint-parser": "^10.4.0",
|
|
102
102
|
"vue-i18n": "^11.4.12",
|
|
103
103
|
"vue-router": "^5.2.0"
|
|
104
104
|
},
|
|
File without changes
|
|
File without changes
|