qy-vue-plugins 1.0.2-beta → 1.0.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/apply-element-plus-theme.cjs +1 -0
- package/dist/apply-element-plus-theme.mjs +22 -0
- package/dist/beijihua-map-icon/hiper-map-icon-1.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-10.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-11.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-12.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-13.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-14.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-15.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-16.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-17.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-18.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-19.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-2.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-20.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-21.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-22.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-23.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-24.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-25.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-26.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-27.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-28.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-29.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-3.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-30.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-31.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-32.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-33.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-34.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-35.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-36.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-37.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-38.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-39.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-4.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-40.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-41.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-42.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-43.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-44.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-45.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-46.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-47.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-48.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-49.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-5.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-50.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-51.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-52.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-53.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-54.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-55.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-56.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-57.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-58.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-59.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-6.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-60.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-61.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-62.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-63.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-64.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-65.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-7.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-8.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-9.png +0 -0
- package/dist/chunks/{EventKeys-1aL9cgT0.js → EventKeys-DZ_Hahro.js} +4 -4
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-C3__NQXN.js → MapTools.vue_vue_type_style_index_0_lang-C0C9opKY.js} +1 -1
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-BJi8BdV8.js → MapTools.vue_vue_type_style_index_0_lang-CZ_dEmHg.js} +2 -2
- package/dist/chunks/{ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C8wD6gZS.js → ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CjJ3e53H.js} +12 -13
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-m9hkScAC.js +1 -0
- package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
- package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
- package/dist/chunks/aria-B5rZ0WFy.js +5 -0
- package/dist/chunks/aria-BEkkcjlH.js +115 -0
- package/dist/chunks/constant-Bq4ASE9Q.js +1 -0
- package/dist/chunks/{constant-BqK1UnfT.js → constant-E83OJqPQ.js} +17 -36
- package/dist/chunks/debounce-CHS-N31c.js +1 -0
- package/dist/chunks/debounce-DBq5TVsN.js +55 -0
- package/dist/chunks/{el-loading-CBXyo6la.js → directive-C-4KkhaM.js} +2 -2
- package/dist/chunks/directive-DRO4tFsQ.js +1 -0
- package/dist/chunks/index-03UF6hCZ.js +14 -0
- package/dist/chunks/index-B6SD5IcP.js +1 -0
- package/dist/chunks/{index-DHO_7w-5.js → index-BCQYbM-I.js} +22 -22
- package/dist/chunks/{el-input-DCpRXscw.js → index-BdloQTv1.js} +171 -175
- package/dist/chunks/{el-overlay-BJQjrf5W.js → index-BeskO4C8.js} +76 -75
- package/dist/chunks/index-BoFuR9-k.js +2 -0
- package/dist/chunks/index-Bs9zhLlD.js +1 -0
- package/dist/chunks/index-C-WIOEu8.js +1 -0
- package/dist/chunks/index-CD-vLVPt.js +1 -0
- package/dist/chunks/index-CD4bijv7.js +1 -0
- package/dist/chunks/index-CHRyd-8X.js +1 -0
- package/dist/chunks/{el-button-Dh7ROB0R.js → index-CgKiWbxR.js} +110 -117
- package/dist/chunks/{el-popper-zUql4Vp-.js → index-Cv_K9rbv.js} +47 -46
- package/dist/chunks/{el-select-Dil0JEvg.js → index-Cyrc4mj-.js} +467 -492
- package/dist/chunks/index-DLBjU25P.js +3 -0
- package/dist/chunks/index-DgwQEHlD.js +12 -0
- package/dist/chunks/index-LWCtnbZP.js +13 -0
- package/dist/chunks/index-OtE8c8y9.js +1 -0
- package/dist/chunks/index-Qzqd5jTh.js +1 -0
- package/dist/chunks/index-VbRYJz2E.js +1 -0
- package/dist/chunks/index-YiSmXvH8.js +975 -0
- package/dist/chunks/{index-Dq3Y5qiS.js → index-_At9ftZd.js} +35 -35
- package/dist/chunks/{index-Cw_w6CLf.js → index-ieQ_IULW.js} +11 -11
- package/dist/chunks/{el-form-item-CXLLocXw.js → index-mDs-Bipv.js} +151 -150
- package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
- package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
- package/dist/chunks/{base-DfCoKyyG.js → style-COMeMpO8.js} +81 -80
- package/dist/chunks/{base-DK_JFP90.js → style-DiDWGUIe.js} +1 -1
- package/dist/chunks/toNumber-CCcOx5KD.js +1 -0
- package/dist/chunks/toNumber-CDwzVyqL.js +30 -0
- package/dist/chunks/use-form-common-props-BQtZKazE.js +66 -0
- package/dist/chunks/use-form-common-props-SdGVhyVk.js +1 -0
- package/dist/chunks/{use-global-config-DXAWJFeA.js → use-global-config-Ba3i7fKX.js} +18 -17
- package/dist/chunks/use-global-config-PaSl-b_9.js +1 -0
- package/dist/chunks/utils-BJ8Lu8TY.js +516 -0
- package/dist/chunks/utils-CrwGKkIz.js +1 -0
- package/dist/chunks/vnode-CvqQoLhR.js +1 -0
- package/dist/chunks/vnode-DpjFDm4v.js +70 -0
- package/dist/element-plus-style.cjs +1 -0
- package/dist/element-plus-style.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +13 -10
- package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
- package/dist/manageTable/index.cjs +1 -1
- package/dist/manageTable/index.mjs +10 -8
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +1 -1
- package/dist/mapbox/components/VideoDialog.cjs +1 -1
- package/dist/mapbox/components/VideoDialog.mjs +16 -17
- package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapbox/widgets/LayerAttributeDialog.mjs +30 -31
- package/dist/mapbox.cjs +1 -1
- package/dist/mapbox.mjs +22 -20
- package/dist/mapboxV2/MapView.cjs +1 -1
- package/dist/mapboxV2/MapView.mjs +3728 -1256
- package/dist/mapboxV2/components/MapLegend.cjs +1 -1
- package/dist/mapboxV2/components/MapLegend.mjs +51 -167
- package/dist/mapboxV2/components/MapTools.cjs +1 -1
- package/dist/mapboxV2/components/MapTools.mjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.cjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.mjs +12 -13
- package/dist/mapboxV2/components/mapSetting.cjs +1 -1
- package/dist/mapboxV2/components/mapSetting.mjs +1 -1
- package/dist/mapboxV2/components/mapTopic.cjs +1 -1
- package/dist/mapboxV2/components/mapTopic.mjs +349 -446
- package/dist/mapboxV2/constant.cjs +1 -1
- package/dist/mapboxV2/constant.mjs +13 -17
- package/dist/mapboxV2/useTif.cjs +1 -1
- package/dist/mapboxV2/useTif.mjs +86 -86
- package/dist/mapboxV2/utils.cjs +1 -1
- package/dist/mapboxV2/utils.mjs +362 -279
- package/dist/mapboxV2/widgets/CustomShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/CustomShapeDialog.mjs +87 -67
- package/dist/mapboxV2/widgets/IconPicker.cjs +1 -1
- package/dist/mapboxV2/widgets/IconPicker.mjs +59 -48
- package/dist/mapboxV2/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerAttributeDialog.mjs +17 -18
- package/dist/mapboxV2/widgets/LayerDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerDialog.mjs +94 -86
- package/dist/mapboxV2/widgets/LegendDialogLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogLine.mjs +95 -90
- package/dist/mapboxV2/widgets/LegendDialogPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogPoint.mjs +90 -85
- package/dist/mapboxV2/widgets/LegendLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendLine.mjs +28 -61
- package/dist/mapboxV2/widgets/LegendPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPoint.mjs +52 -66
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.mjs +16 -18
- package/dist/mapboxV2/widgets/LegendPopLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopLine.mjs +72 -73
- package/dist/mapboxV2/widgets/LegendPopPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopPoint.mjs +113 -112
- package/dist/mapboxV2/widgets/LegendShape.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendShape.mjs +17 -14
- package/dist/mapboxV2/widgets/LegendSymbol.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendSymbol.mjs +5 -5
- package/dist/mapboxV2/widgets/ShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/ShapeDialog.mjs +1663 -1422
- package/dist/mapboxV2/widgets/TopicItemPop.cjs +1 -1
- package/dist/mapboxV2/widgets/TopicItemPop.mjs +2 -2
- package/dist/mapboxV2/widgets/TopicPop.mjs +1 -1
- package/dist/mapboxV2.cjs +3 -3
- package/dist/mapboxV2.mjs +673 -824
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/apply-element-plus-theme.d.ts +1 -0
- package/dist/types/element-plus-style.d.ts +0 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
- package/dist/types/mapboxV2/MapView.vue.d.ts +130 -3
- package/dist/types/mapboxV2/components/mapTopic.vue.d.ts +10 -591
- package/dist/types/mapboxV2/types/map-layer.d.ts +185 -3
- package/dist/types/mapboxV2/useTif.d.ts +2 -2
- package/dist/types/mapboxV2/utils/geojsonRenderer.d.ts +123 -0
- package/dist/types/mapboxV2/utils.d.ts +5 -0
- package/dist/types/mapboxV2/widgets/IconPicker.vue.d.ts +8 -10
- package/dist/types/mapboxV2/widgets/index.d.ts +3 -0
- package/dist/types/mapboxV2/widgets/track/TrackImageDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackTextDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackVoiceDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/index.d.ts +3 -0
- package/dist/types/store/mapStore.d.ts +122 -0
- package/dist/types/types/map.d.ts +111 -7
- package/package/apply-element-plus-theme.ts +23 -0
- package/package/css/common.scss +33 -0
- package/package/css/element-plus-theme.scss +30 -0
- package/package/css/map.scss +42 -0
- package/package/element-plus-style.ts +48 -0
- package/package/manageTable/index.ts +5 -0
- package/package/mapbox/index.ts +5 -0
- package/package/mapboxV2/constant.ts +4 -12
- package/package/mapboxV2/index.ts +5 -0
- package/package/mapboxV2/useTif.ts +18 -13
- package/package/mapboxV2/utils.ts +303 -143
- package/package/mapboxV2/widgets/index.ts +5 -0
- package/package/types/map.ts +129 -32
- package/package.json +27 -3
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DnYed7Kh.js +0 -1
- package/dist/chunks/aria-B-Cm8P6h.js +0 -5
- package/dist/chunks/aria-GiGFrmP1.js +0 -175
- package/dist/chunks/constant-mXEWtcQf.js +0 -1
- package/dist/chunks/el-button-w9UOZkmd.js +0 -3
- package/dist/chunks/el-color-picker-panel-BWjyXHBz.js +0 -1
- package/dist/chunks/el-color-picker-panel-BfOVWDkH.js +0 -1024
- package/dist/chunks/el-form-item-ECXS8pAs.js +0 -12
- package/dist/chunks/el-input-tAiZBp5N.js +0 -1
- package/dist/chunks/el-loading-BDhLUhme.js +0 -1
- package/dist/chunks/el-overlay-BEd31jh6.js +0 -1
- package/dist/chunks/el-popper-C6hJmTeX.js +0 -1
- package/dist/chunks/el-select-BXP0YqqB.js +0 -1
- package/dist/chunks/index-BIPr63lF.js +0 -1
- package/dist/chunks/index-BIaoqnN4.js +0 -1
- package/dist/chunks/index-D9eecDRK.js +0 -2
- package/dist/chunks/mapSetting-BRasGCqk.js +0 -597
- package/dist/chunks/mapSetting-CfE-5SCc.js +0 -1
- package/dist/chunks/use-global-config-y6gk28OO.js +0 -1
- package/dist/chunks/utils-CZxmwfl_.js +0 -1
- package/dist/chunks/utils-n1i0zWzc.js +0 -454
- package/dist/chunks/vnode-CyTnPoXJ.js +0 -47
- package/dist/chunks/vnode-eKMqbqaC.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-BRUTHTNe.js +0 -12
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-CksusXxb.js +0 -28
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-DchJeGnp.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-yXKDlNvO.js +0 -17
|
@@ -1,75 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import { b as
|
|
4
|
-
import { _
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as d, createElementBlock as g, openBlock as m, createElementVNode as y, normalizeStyle as C } from "vue";
|
|
2
|
+
import { p as L, g as n } from "../../chunks/utils-BJ8Lu8TY.js";
|
|
3
|
+
import { b as t } from "../../chunks/constant-E83OJqPQ.js";
|
|
4
|
+
import { _ } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const S = { class: "qy-flex-col legend-icon-container" }, k = /* @__PURE__ */ u({
|
|
6
6
|
__name: "LegendLine",
|
|
7
7
|
props: {
|
|
8
8
|
topic: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
if (!
|
|
10
|
+
setup(f) {
|
|
11
|
+
const r = f, a = d(() => {
|
|
12
|
+
if (!r.topic)
|
|
13
13
|
return {};
|
|
14
|
-
const { topic:
|
|
15
|
-
if (
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
e.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (e.customLayerConfig) {
|
|
27
|
-
const o = n(
|
|
28
|
-
e.customLayerConfig,
|
|
29
|
-
e.layerType
|
|
30
|
-
);
|
|
31
|
-
return t(
|
|
32
|
-
o.lineStyle,
|
|
33
|
-
o?.fillColor ?? l
|
|
34
|
-
);
|
|
35
|
-
} else {
|
|
36
|
-
const o = n(
|
|
37
|
-
e.layerPaintConfig,
|
|
38
|
-
e.layerType
|
|
39
|
-
);
|
|
40
|
-
return t(
|
|
41
|
-
o.outlineStyle,
|
|
42
|
-
o?.outlineColor ?? o?.pointTintColor ?? l
|
|
43
|
-
);
|
|
14
|
+
const { topic: o } = r;
|
|
15
|
+
if (["sample-group", "track", "geojson", "kml", "kmz", "shp"].includes(o.layerType)) {
|
|
16
|
+
const e = L(o.layerPaintConfig, o.layerType);
|
|
17
|
+
if ("outlineConfigList" in e && e.outlineConfigList && e.outlineConfigList.length > 0) {
|
|
18
|
+
const i = e.outlineConfigList.find((s) => s.type === "custom");
|
|
19
|
+
if (i)
|
|
20
|
+
return n(i.lineStyle || "solid", i.outlineColor || t);
|
|
21
|
+
const l = e.outlineConfigList.find((s) => s.type === "default");
|
|
22
|
+
if (l)
|
|
23
|
+
return n(l.lineStyle || "solid", l.outlineColor || t);
|
|
24
|
+
const c = e.outlineConfigList[0];
|
|
25
|
+
return n(c.lineStyle || "solid", c.outlineColor || t);
|
|
44
26
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
e.layerPaintConfig,
|
|
48
|
-
e.layerType
|
|
49
|
-
) || u;
|
|
50
|
-
return t(
|
|
51
|
-
o.outlineConfigList[0].lineStyle,
|
|
52
|
-
o.outlineConfigList[0].outlineColor
|
|
53
|
-
);
|
|
54
|
-
} else {
|
|
55
|
-
const o = n(
|
|
56
|
-
e.customLayerConfig,
|
|
57
|
-
e.layerType
|
|
58
|
-
);
|
|
59
|
-
return t(
|
|
60
|
-
o.lineStyle,
|
|
61
|
-
o?.lineColor ?? l
|
|
62
|
-
);
|
|
27
|
+
if ("lineColor" in e)
|
|
28
|
+
return n(e.lineStyle || "solid", e.lineColor || t);
|
|
63
29
|
}
|
|
30
|
+
return {};
|
|
64
31
|
});
|
|
65
|
-
return (
|
|
66
|
-
|
|
32
|
+
return (o, p) => (m(), g("div", S, [
|
|
33
|
+
y("div", {
|
|
67
34
|
class: "legend-icon-line",
|
|
68
|
-
style:
|
|
35
|
+
style: C(a.value)
|
|
69
36
|
}, null, 4)
|
|
70
37
|
]));
|
|
71
38
|
}
|
|
72
|
-
}),
|
|
39
|
+
}), b = /* @__PURE__ */ _(k, [["__scopeId", "data-v-6feeb988"]]);
|
|
73
40
|
export {
|
|
74
|
-
|
|
41
|
+
b as default
|
|
75
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../chunks/utils-CrwGKkIz.js"),_=require("../../chunks/_plugin-vue_export-helper-BHFhmbuH.js"),C={key:0,class:"qy-flex-col legend-icon-container"},S=["src"],h={key:1,class:"qy-flex-col qy-flex-center legend-point-svg-container"},k=["src"],x={key:2,class:"qy-flex-col qy-flex-center legend-point-kit"},T={class:"qy-flex-col legend-point-kit-content"},N=e.defineComponent({__name:"LegendPoint",props:{layerPaintConfig:{},layerType:{}},setup(a){const u=e.inject("shapeOptions",e.ref([])),p=e.inject("iconOptions",e.ref([])),r=new Map,i=e.ref(""),l=e.computed(()=>{const n=y.parseLayerPaintConfig(a.layerPaintConfig,a.layerType),o=n,t=n,c=o.pointStyle||t.currentMapIconName||n.iconName||"hiper-map-icon-1.png",s=o.renderMode??t.pointRenderType??(n.iconName?"icon":"color");return{renderMode:s,isIconMode:s==="icon"||s==="icons",pointTintColor:o.pointTintColor||t.pointTintColor||"rgba(2, 210, 224, 1)",iconName:c,pointStyle:o.pointStyle||t.pointStyle||""}}),f=n=>n&&(p.value||[]).find(c=>c.id===n)?.url||"",g=async(n,o)=>{if(r.has(o))return r.get(o);try{const t=await fetch(n);if(!t.ok)return null;const c=await t.text();return r.set(o,c),c}catch{return null}},v=n=>(u.value||[]).find(c=>c.id===n)?.url||null,m=async()=>{const n=l.value.pointStyle;if(!n){i.value="";return}const o=l.value.pointTintColor,t=v(n);if(t){const c=await g(t,n);if(c){const s=c.replace(/\{color\}/g,o),d=btoa(unescape(encodeURIComponent(s)));i.value=`data:image/svg+xml;base64,${d}`;return}}i.value=""};return e.watch(()=>[l.value.pointStyle,l.value.pointTintColor],()=>{m()},{immediate:!0}),(n,o)=>l.value.isIconMode?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("img",{class:"legend-icon",src:f(l.value.iconName)},null,8,S)])):i.value?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("img",{class:"legend-point-svg",src:i.value},null,8,k)])):(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",T,[e.createElementVNode("div",{class:"point-legend-kit-content-inner",style:e.normalizeStyle(`background-color: ${l.value.pointTintColor}`)},null,4)]),o[0]||(o[0]=e.createElementVNode("div",{class:"legend-point-kit-line"},null,-1))]))}}),q=_._export_sfc(N,[["__scopeId","data-v-fdd10dca"]]);exports.default=q;
|
|
@@ -1,99 +1,85 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { _ as U } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const B = {
|
|
1
|
+
import { defineComponent as x, inject as g, ref as a, computed as S, watch as T, createElementBlock as d, openBlock as p, createElementVNode as s, normalizeStyle as k } from "vue";
|
|
2
|
+
import { p as I } from "../../chunks/utils-BJ8Lu8TY.js";
|
|
3
|
+
import { _ as N } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const M = {
|
|
7
5
|
key: 0,
|
|
8
6
|
class: "qy-flex-col legend-icon-container"
|
|
9
|
-
},
|
|
7
|
+
}, q = ["src"], w = {
|
|
10
8
|
key: 1,
|
|
11
9
|
class: "qy-flex-col qy-flex-center legend-point-svg-container"
|
|
12
|
-
},
|
|
10
|
+
}, b = ["src"], P = {
|
|
13
11
|
key: 2,
|
|
14
12
|
class: "qy-flex-col qy-flex-center legend-point-kit"
|
|
15
|
-
},
|
|
13
|
+
}, U = { class: "qy-flex-col legend-point-kit-content" }, O = /* @__PURE__ */ x({
|
|
16
14
|
__name: "LegendPoint",
|
|
17
15
|
props: {
|
|
18
16
|
layerPaintConfig: {},
|
|
19
17
|
layerType: {}
|
|
20
18
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const g = {
|
|
23
|
-
"
|
|
24
|
-
"地图点 (1).svg": P,
|
|
25
|
-
"地图点 (2).svg": $,
|
|
26
|
-
"地图点 (3).svg": N,
|
|
27
|
-
"地图点 (4).svg": G,
|
|
28
|
-
"地图点-红.svg": V,
|
|
29
|
-
"地图点位.svg": M,
|
|
30
|
-
"地图点位 (1).svg": q,
|
|
31
|
-
"实五角星.svg": I,
|
|
32
|
-
"正三角形.svg": b,
|
|
33
|
-
"标记地图点位.svg": T,
|
|
34
|
-
"24gf-square.svg": k,
|
|
35
|
-
"人-地图点位2x.svg": h,
|
|
36
|
-
"hexagon-fill.svg": x
|
|
37
|
-
}, t = p(""), s = m(() => {
|
|
38
|
-
const n = y(r.layerPaintConfig, r.layerType), e = n, o = n, l = e.renderMode ?? o.pointRenderType ?? "color";
|
|
19
|
+
setup(u) {
|
|
20
|
+
const v = g("shapeOptions", a([])), m = g("iconOptions", a([])), r = /* @__PURE__ */ new Map(), c = a(""), i = S(() => {
|
|
21
|
+
const e = I(u.layerPaintConfig, u.layerType), n = e, o = e, t = n.pointStyle || o.currentMapIconName || e.iconName || "hiper-map-icon-1.png", l = n.renderMode ?? o.pointRenderType ?? (e.iconName ? "icon" : "color");
|
|
39
22
|
return {
|
|
40
23
|
renderMode: l,
|
|
41
24
|
isIconMode: l === "icon" || l === "icons",
|
|
42
|
-
pointTintColor:
|
|
43
|
-
iconName:
|
|
44
|
-
pointStyle:
|
|
25
|
+
pointTintColor: n.pointTintColor || o.pointTintColor || "rgba(2, 210, 224, 1)",
|
|
26
|
+
iconName: t,
|
|
27
|
+
pointStyle: n.pointStyle || o.pointStyle || ""
|
|
45
28
|
};
|
|
46
|
-
}),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
}), y = (e) => e && (m.value || []).find((t) => t.id === e)?.url || "", _ = async (e, n) => {
|
|
30
|
+
if (r.has(n)) return r.get(n);
|
|
31
|
+
try {
|
|
32
|
+
const o = await fetch(e);
|
|
33
|
+
if (!o.ok) return null;
|
|
34
|
+
const t = await o.text();
|
|
35
|
+
return r.set(n, t), t;
|
|
36
|
+
} catch {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}, C = (e) => (v.value || []).find((t) => t.id === e)?.url || null, h = async () => {
|
|
40
|
+
const e = i.value.pointStyle;
|
|
41
|
+
if (!e) {
|
|
42
|
+
c.value = "";
|
|
50
43
|
return;
|
|
51
44
|
}
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
const n = i.value.pointTintColor, o = C(e);
|
|
46
|
+
if (o) {
|
|
47
|
+
const t = await _(o, e);
|
|
48
|
+
if (t) {
|
|
49
|
+
const l = t.replace(/\{color\}/g, n), f = btoa(unescape(encodeURIComponent(l)));
|
|
50
|
+
c.value = `data:image/svg+xml;base64,${f}`;
|
|
58
51
|
return;
|
|
59
52
|
}
|
|
60
|
-
console.log("SVG 原始内容长度:", o.length);
|
|
61
|
-
const l = o.replace(/\{color\}/g, e), _ = btoa(unescape(encodeURIComponent(l)));
|
|
62
|
-
t.value = `data:image/svg+xml;base64,${_}`, console.log("SVG Data URL 已生成,长度:", t.value.length);
|
|
63
|
-
} catch (o) {
|
|
64
|
-
console.error("加载 SVG 失败:", o), t.value = "";
|
|
65
53
|
}
|
|
54
|
+
c.value = "";
|
|
66
55
|
};
|
|
67
|
-
return
|
|
68
|
-
() => [
|
|
69
|
-
s.value.pointStyle,
|
|
70
|
-
s.value.pointTintColor
|
|
71
|
-
],
|
|
56
|
+
return T(
|
|
57
|
+
() => [i.value.pointStyle, i.value.pointTintColor],
|
|
72
58
|
() => {
|
|
73
|
-
|
|
59
|
+
h();
|
|
74
60
|
},
|
|
75
61
|
{ immediate: !0 }
|
|
76
|
-
), (
|
|
77
|
-
|
|
62
|
+
), (e, n) => i.value.isIconMode ? (p(), d("div", M, [
|
|
63
|
+
s("img", {
|
|
78
64
|
class: "legend-icon",
|
|
79
|
-
src:
|
|
80
|
-
}, null, 8,
|
|
81
|
-
])) :
|
|
82
|
-
|
|
65
|
+
src: y(i.value.iconName)
|
|
66
|
+
}, null, 8, q)
|
|
67
|
+
])) : c.value ? (p(), d("div", w, [
|
|
68
|
+
s("img", {
|
|
83
69
|
class: "legend-point-svg",
|
|
84
|
-
src:
|
|
85
|
-
}, null, 8,
|
|
86
|
-
])) : (
|
|
87
|
-
|
|
88
|
-
|
|
70
|
+
src: c.value
|
|
71
|
+
}, null, 8, b)
|
|
72
|
+
])) : (p(), d("div", P, [
|
|
73
|
+
s("div", U, [
|
|
74
|
+
s("div", {
|
|
89
75
|
class: "point-legend-kit-content-inner",
|
|
90
|
-
style:
|
|
76
|
+
style: k(`background-color: ${i.value.pointTintColor}`)
|
|
91
77
|
}, null, 4)
|
|
92
78
|
]),
|
|
93
|
-
|
|
79
|
+
n[0] || (n[0] = s("div", { class: "legend-point-kit-line" }, null, -1))
|
|
94
80
|
]));
|
|
95
81
|
}
|
|
96
|
-
}),
|
|
82
|
+
}), E = /* @__PURE__ */ N(O, [["__scopeId", "data-v-fdd10dca"]]);
|
|
97
83
|
export {
|
|
98
|
-
|
|
84
|
+
E as default
|
|
99
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("../../chunks/EventKeys-BvyQ87Zy.js"),m=require("../../chunks/index-DgwQEHlD.js"),f=require("../../chunks/index-Qzqd5jTh.js"),y=require("../../chunks/index-OtE8c8y9.js"),g=require("../../chunks/index-VbRYJz2E.js"),w=require("../../chunks/_plugin-vue_export-helper-BHFhmbuH.js"),h={class:"legend-pop qy-flex-col"},S={class:"content"},E={class:"footer"},P=e.defineComponent({__name:"LegendPopInterestPoint",setup(q,{expose:b}){const n=e.ref("show"),i=e.ref(14),d=e.ref("rgba(0, 0, 0, 1)"),s=e.ref("Microsoft YaHei"),u=e.ref(!1),V=()=>{u.value=!1},N=()=>{const r={displayLabel:n.value==="show",labelSize:i.value,labelColor:d.value,labelFont:s.value};if(t.value){const l={layerType:t.value.layerType,layerName:t.value?.layerName||"",id:t.value.id,projectId:""};Object.assign(l,JSON.parse(JSON.stringify(t.value))),l.layerPaintConfig=JSON.stringify(r),t.value.layerPaintConfig=l.layerPaintConfig,console.log("更新兴趣点图层实体",l),x.createTopicBus.emit(l)}u.value=!1},t=e.ref();return b({show:r=>{u.value=!0,t.value=r,console.log("显示兴趣点图层配置面板",r);let l;try{l=JSON.parse(r.layerPaintConfig||"{}")}catch{l={}}console.log("兴趣点图层配置",l),n.value=l.displayLabel?"show":"hide",i.value=l.labelSize||14,d.value=l.labelColor||"rgba(0, 0, 0, 1)",s.value=l.labelFont||"Microsoft YaHei"}}),(r,l)=>{const o=f.ElOption,v=f.ElSelect,c=m.ElFormItem,_=y.ElColorPicker,C=m.ElForm,p=g.ElButton;return e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",h,[e.createElementVNode("div",{class:"header"},[l[4]||(l[4]=e.createElementVNode("div",null,"显示设置",-1)),e.createElementVNode("div",{class:"close-btn",onClick:V},"X")]),e.createElementVNode("div",S,[e.createVNode(C,{class:"point-style-form"},{default:e.withCtx(()=>[e.createVNode(c,{label:"兴趣点名称"},{default:e.withCtx(()=>[e.createVNode(v,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a),placeholder:"请选择"},{default:e.withCtx(()=>[e.createVNode(o,{value:"show",label:"显示"}),e.createVNode(o,{value:"hide",label:"不显示"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"字体大小"},{default:e.withCtx(()=>[e.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=a=>i.value=a),placeholder:"请选择字体大小"},{default:e.withCtx(()=>[e.createVNode(o,{value:12,label:"12"}),e.createVNode(o,{value:14,label:"14"}),e.createVNode(o,{value:16,label:"16"}),e.createVNode(o,{value:18,label:"18"}),e.createVNode(o,{value:20,label:"20"}),e.createVNode(o,{value:22,label:"22"}),e.createVNode(o,{value:24,label:"24"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"字体颜色",class:"color-picker"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:d.value,"onUpdate:modelValue":l[2]||(l[2]=a=>d.value=a),"show-alpha":"","color-format":"rgb"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"字体类型"},{default:e.withCtx(()=>[e.createVNode(v,{modelValue:s.value,"onUpdate:modelValue":l[3]||(l[3]=a=>s.value=a),placeholder:"请选择字体类型"},{default:e.withCtx(()=>[e.createVNode(o,{value:"SimSun",label:"宋体"}),e.createVNode(o,{value:"SimHei",label:"黑体"}),e.createVNode(o,{value:"Microsoft YaHei",label:"微软雅黑"}),e.createVNode(o,{value:"DengXian",label:"等线"}),e.createVNode(o,{value:"Arial",label:"Arial"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),e.createElementVNode("div",E,[e.createVNode(p,{onClick:V},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(p,{type:"primary",onClick:N},{default:e.withCtx(()=>[...l[6]||(l[6]=[e.createTextVNode("确认",-1)])]),_:1})])],512),[[e.vShow,u.value]])]),_:1})}}}),k=w._export_sfc(P,[["__scopeId","data-v-a06e4e81"]]);exports.default=k;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import { E as
|
|
4
|
-
import { E as
|
|
5
|
-
import "../../chunks/
|
|
6
|
-
import { E as
|
|
7
|
-
import "../../chunks/el-popper-zUql4Vp-.js";
|
|
8
|
-
import { defineComponent as x, ref as i, createBlock as L, openBlock as O, Transition as T, withCtx as o, withDirectives as F, createElementVNode as r, createVNode as l, createTextVNode as y, vShow as I } from "vue";
|
|
9
|
-
import { c as B } from "../../chunks/EventKeys-1aL9cgT0.js";
|
|
1
|
+
import { defineComponent as E, ref as i, createBlock as w, openBlock as N, Transition as P, withCtx as o, withDirectives as h, createElementVNode as r, createVNode as l, createTextVNode as y, vShow as k } from "vue";
|
|
2
|
+
import { c as x } from "../../chunks/EventKeys-DZ_Hahro.js";
|
|
3
|
+
import { E as L, a as O } from "../../chunks/index-mDs-Bipv.js";
|
|
4
|
+
import { E as T, a as F } from "../../chunks/index-Cyrc4mj-.js";
|
|
5
|
+
import { E as I } from "../../chunks/index-YiSmXvH8.js";
|
|
6
|
+
import { E as B } from "../../chunks/index-CgKiWbxR.js";
|
|
10
7
|
import { _ as H } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const J = { class: "legend-pop qy-flex-col" }, U = { class: "content" }, z = { class: "footer" }, M = /* @__PURE__ */
|
|
8
|
+
const J = { class: "legend-pop qy-flex-col" }, U = { class: "content" }, z = { class: "footer" }, M = /* @__PURE__ */ E({
|
|
12
9
|
__name: "LegendPopInterestPoint",
|
|
13
10
|
setup(Y, { expose: g }) {
|
|
14
11
|
const u = i("show"), d = i(14), c = i("rgba(0, 0, 0, 1)"), m = i("Microsoft YaHei"), p = i(!1), b = () => {
|
|
@@ -27,7 +24,7 @@ const J = { class: "legend-pop qy-flex-col" }, U = { class: "content" }, z = { c
|
|
|
27
24
|
id: t.value.id,
|
|
28
25
|
projectId: ""
|
|
29
26
|
};
|
|
30
|
-
Object.assign(e, JSON.parse(JSON.stringify(t.value))), e.layerPaintConfig = JSON.stringify(s), t.value.layerPaintConfig = e.layerPaintConfig, console.log("更新兴趣点图层实体", e),
|
|
27
|
+
Object.assign(e, JSON.parse(JSON.stringify(t.value))), e.layerPaintConfig = JSON.stringify(s), t.value.layerPaintConfig = e.layerPaintConfig, console.log("更新兴趣点图层实体", e), x.emit(e);
|
|
31
28
|
}
|
|
32
29
|
p.value = !1;
|
|
33
30
|
}, t = i();
|
|
@@ -43,13 +40,13 @@ const J = { class: "legend-pop qy-flex-col" }, U = { class: "content" }, z = { c
|
|
|
43
40
|
console.log("兴趣点图层配置", e), u.value = e.displayLabel ? "show" : "hide", d.value = e.labelSize || 14, c.value = e.labelColor || "rgba(0, 0, 0, 1)", m.value = e.labelFont || "Microsoft YaHei";
|
|
44
41
|
}
|
|
45
42
|
}), (s, e) => {
|
|
46
|
-
const a =
|
|
47
|
-
return
|
|
43
|
+
const a = F, f = T, v = O, C = I, S = L, _ = B;
|
|
44
|
+
return N(), w(P, {
|
|
48
45
|
name: "fade",
|
|
49
46
|
mode: "out-in"
|
|
50
47
|
}, {
|
|
51
48
|
default: o(() => [
|
|
52
|
-
|
|
49
|
+
h(r("div", J, [
|
|
53
50
|
r("div", { class: "header" }, [
|
|
54
51
|
e[4] || (e[4] = r("div", null, "显示设置", -1)),
|
|
55
52
|
r("div", {
|
|
@@ -132,7 +129,8 @@ const J = { class: "legend-pop qy-flex-col" }, U = { class: "content" }, z = { c
|
|
|
132
129
|
l(C, {
|
|
133
130
|
modelValue: c.value,
|
|
134
131
|
"onUpdate:modelValue": e[2] || (e[2] = (n) => c.value = n),
|
|
135
|
-
"show-alpha": ""
|
|
132
|
+
"show-alpha": "",
|
|
133
|
+
"color-format": "rgb"
|
|
136
134
|
}, null, 8, ["modelValue"])
|
|
137
135
|
]),
|
|
138
136
|
_: 1
|
|
@@ -193,14 +191,14 @@ const J = { class: "legend-pop qy-flex-col" }, U = { class: "content" }, z = { c
|
|
|
193
191
|
})
|
|
194
192
|
])
|
|
195
193
|
], 512), [
|
|
196
|
-
[
|
|
194
|
+
[k, p.value]
|
|
197
195
|
])
|
|
198
196
|
]),
|
|
199
197
|
_: 1
|
|
200
198
|
});
|
|
201
199
|
};
|
|
202
200
|
}
|
|
203
|
-
}),
|
|
201
|
+
}), R = /* @__PURE__ */ H(M, [["__scopeId", "data-v-a06e4e81"]]);
|
|
204
202
|
export {
|
|
205
|
-
|
|
203
|
+
R as default
|
|
206
204
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../chunks/EventKeys-BvyQ87Zy.js"),C=require("../../chunks/constant-Bq4ASE9Q.js"),o=require("element-plus"),x=require("../../chunks/index-Qzqd5jTh.js"),S=require("../../chunks/_plugin-vue_export-helper-BHFhmbuH.js"),k={class:"legend-pop qy-flex-col"},L={class:"content"},q={class:"qy-flex-between"},F={class:"line-style-options"},P=["onClick"],I={class:"qy-flex-between"},z={class:"qy-flex-align-end",style:{flex:"1"}},T={class:"qy-flex-between"},B={class:"slider-container"},D={class:"number-input"},O={class:"qy-flex-align-end",style:{flex:"1"}},U={class:"footer"},J=e.defineComponent({__name:"LegendPopLine",setup(j,{expose:E}){const s=e.ref(!1),r=e.ref(null),V=[{value:"solid-line",label:"实线"},{value:"simple-dash",label:"虚线-1"},{value:"dot-dash",label:"虚线-2"},{value:"long-dash",label:"虚线-3"},{value:"dot-line",label:"虚线-4"},{value:"complex-pattern",label:"虚线-5"}],u=e.ref(0),c=e.ref("solid-line"),d=e.ref("rgba(0, 0, 0, 1)"),i=e.ref(4),v=e.ref(!0),m=e.ref(12),f=e.ref("rgba(0, 0, 0, 1)"),p=e.ref("DengXian"),g=n=>{s.value=!0,r.value=n,console.log("显示线条样式设置面板",n);let l;try{l=JSON.parse(n.layerPaintConfig||"{}")}catch(a){console.error("解析图层配置失败",a),l={}}console.log("解析后的图层配置",l),c.value=l.lineStyle||"solid-line",d.value=l.lineColor||"rgba(0, 0, 0, 1)",i.value=l.lineWidth||4,v.value=l.displayLabel!==void 0?l.displayLabel:!0,m.value=l.labelSize||12,f.value=l.labelColor||"rgba(0, 0, 0, 1)",p.value=l.labelFont||"DengXian",u.value=V.findIndex(a=>a.value===c.value)},_=(n,l)=>{u.value=n,c.value=l},y=()=>{s.value=!1},h=()=>{const n={lineStyle:c.value,lineColor:d.value,lineWidth:i.value,displayLabel:v.value,labelSize:m.value,labelColor:f.value,labelFont:p.value};if(r.value){const l={layerType:r.value.layerType,layerName:r.value?.layerName||"",id:r.value.id,projectId:""};Object.assign(l,JSON.parse(JSON.stringify(r.value))),l.layerPaintConfig=JSON.stringify(n),r.value.layerPaintConfig=l.layerPaintConfig,console.log("更新图层实体",l),w.createTopicBus.emit(l)}s.value=!1};return E({show:g}),(n,l)=>{const a=x.ElOption,b=x.ElSelect;return e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",k,[e.createElementVNode("div",{class:"header"},[l[7]||(l[7]=e.createElementVNode("div",null,"显示设置",-1)),e.createElementVNode("div",{class:"close-btn",onClick:y},"X")]),e.createElementVNode("div",L,[e.createVNode(e.unref(o.ElForm),{"label-position":"top",class:"line-style-form"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElFormItem),{label:"线形",class:"style-item"},{label:e.withCtx(()=>[e.createElementVNode("div",q,[l[8]||(l[8]=e.createElementVNode("span",null,"线形 ",-1)),e.createElementVNode("div",null,e.toDisplayString(V[u.value].label),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",F,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(V,(t,N)=>e.createElementVNode("div",{key:N,class:e.normalizeClass(["line-style-option",{active:u.value===N}]),onClick:W=>_(N,t.value)},[e.createElementVNode("div",{class:e.normalizeClass(["line-preview",`${t.value}`])},null,2)],10,P)),64))])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{"label-position":"left",label:"线颜色"},{label:e.withCtx(()=>[e.createElementVNode("div",I,[l[9]||(l[9]=e.createElementVNode("span",null,"线颜色 ",-1)),e.createElementVNode("div",null,e.toDisplayString(d.value),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createVNode(e.unref(o.ElColorPicker),{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=t=>d.value=t),"show-alpha":!0,"color-format":"rgb",size:"default",class:"color-picker",predefine:e.unref(C.mapPointsColors)},null,8,["modelValue","predefine"])])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"线宽",class:"width-item"},{label:e.withCtx(()=>[e.createElementVNode("div",T,[l[10]||(l[10]=e.createElementVNode("span",null,"线宽 ",-1)),e.createElementVNode("div",null,e.toDisplayString(i.value)+"px",1)])]),default:e.withCtx(()=>[e.createElementVNode("div",B,[e.createVNode(e.unref(o.ElSlider),{modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=t=>i.value=t),min:1,max:10,step:.5},null,8,["modelValue"])]),e.createElementVNode("div",D,[e.createVNode(e.unref(o.ElInputNumber),{modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=t=>i.value=t),min:1,max:10,step:.5,size:"small"},null,8,["modelValue"])])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"标注(Label)"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:v.value,"onUpdate:modelValue":l[3]||(l[3]=t=>v.value=t),placeholder:"请选择"},{default:e.withCtx(()=>[e.createVNode(a,{label:"显示",value:!0}),e.createVNode(a,{label:"不显示",value:!1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"字体大小"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:m.value,"onUpdate:modelValue":l[4]||(l[4]=t=>m.value=t),placeholder:"请选择"},{default:e.withCtx(()=>[e.createVNode(a,{label:"12px",value:12}),e.createVNode(a,{label:"14px",value:14}),e.createVNode(a,{label:"16px",value:16}),e.createVNode(a,{label:"18px",value:18}),e.createVNode(a,{label:"20px",value:20})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{"label-position":"left",label:"字体颜色"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(o.ElColorPicker),{modelValue:f.value,"onUpdate:modelValue":l[5]||(l[5]=t=>f.value=t),"show-alpha":!0,"color-format":"rgb",size:"default",class:"color-picker",predefine:e.unref(C.mapPointsColors)},null,8,["modelValue","predefine"])])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"字体类型"},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:p.value,"onUpdate:modelValue":l[6]||(l[6]=t=>p.value=t),placeholder:"请选择字体类型"},{default:e.withCtx(()=>[e.createVNode(a,{value:"SimSun",label:"宋体"}),e.createVNode(a,{value:"SimHei",label:"黑体"}),e.createVNode(a,{value:"DengXian",label:"等线"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),e.createElementVNode("div",U,[e.createVNode(e.unref(o.ElButton),{onClick:y},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(o.ElButton),{type:"primary",onClick:h},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("确认",-1)])]),_:1})])],512),[[e.vShow,s.value]])]),_:1})}}}),X=S._export_sfc(J,[["__scopeId","data-v-dddd2ff4"]]);exports.default=X;
|