sctj-components 1.1.6 → 1.1.7
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/lib/sctj-components.es.js +33 -14
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -5399,12 +5399,12 @@ const _sfc_main$8 = {
|
|
|
5399
5399
|
};
|
|
5400
5400
|
}
|
|
5401
5401
|
};
|
|
5402
|
-
const
|
|
5403
|
-
const _hoisted_1$6 = {
|
|
5404
|
-
const _hoisted_2$5 = {
|
|
5402
|
+
const index_vue_vue_type_style_index_0_scoped_6004966e_lang = "";
|
|
5403
|
+
const _hoisted_1$6 = {
|
|
5405
5404
|
key: 0,
|
|
5406
|
-
class: "
|
|
5405
|
+
class: "action-container"
|
|
5407
5406
|
};
|
|
5407
|
+
const _hoisted_2$5 = { class: "legendContainer" };
|
|
5408
5408
|
const _sfc_main$7 = {
|
|
5409
5409
|
__name: "index",
|
|
5410
5410
|
props: {
|
|
@@ -5491,8 +5491,8 @@ const _sfc_main$7 = {
|
|
|
5491
5491
|
setup(__props, { expose, emit }) {
|
|
5492
5492
|
const props = __props;
|
|
5493
5493
|
useCssVars((_ctx) => ({
|
|
5494
|
-
"
|
|
5495
|
-
"
|
|
5494
|
+
"6cd645c6": __props.width,
|
|
5495
|
+
"14237927": __props.height
|
|
5496
5496
|
}));
|
|
5497
5497
|
const controlsPositionVars = computed$1(() => {
|
|
5498
5498
|
const position = props.controlsPosition || {};
|
|
@@ -5521,6 +5521,12 @@ const _sfc_main$7 = {
|
|
|
5521
5521
|
const polygonTextInstances = shallowRef([]);
|
|
5522
5522
|
const typeVisibility = shallowRef(/* @__PURE__ */ new Map());
|
|
5523
5523
|
const overlayGroups = shallowRef(/* @__PURE__ */ new Map());
|
|
5524
|
+
const isMoreLegend = ref$1(false);
|
|
5525
|
+
const showLegendConfig = computed$1(() => {
|
|
5526
|
+
if (props.legendConfig.length < 6)
|
|
5527
|
+
return props.legendConfig;
|
|
5528
|
+
return isMoreLegend.value ? props.legendConfig : props.legendConfig.slice(0, 5);
|
|
5529
|
+
});
|
|
5524
5530
|
const state = reactive({
|
|
5525
5531
|
currentZoom: 10,
|
|
5526
5532
|
baseZoom: 10,
|
|
@@ -6341,6 +6347,7 @@ const _sfc_main$7 = {
|
|
|
6341
6347
|
});
|
|
6342
6348
|
return (_ctx, _cache) => {
|
|
6343
6349
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
6350
|
+
const _component_el_button = resolveComponent("el-button");
|
|
6344
6351
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
6345
6352
|
return openBlock(), createElementBlock("div", {
|
|
6346
6353
|
class: "mapViewContainer",
|
|
@@ -6349,15 +6356,15 @@ const _sfc_main$7 = {
|
|
|
6349
6356
|
ref: mapContainer,
|
|
6350
6357
|
style: normalizeStyle(unref(controlsPositionVars))
|
|
6351
6358
|
}, [
|
|
6352
|
-
|
|
6353
|
-
|
|
6359
|
+
__props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
6360
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
6354
6361
|
createVNode(_component_el_checkbox_group, {
|
|
6355
6362
|
modelValue: legend.value,
|
|
6356
|
-
"onUpdate:modelValue": _cache[
|
|
6363
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => legend.value = $event),
|
|
6357
6364
|
onChange: handleLegendChange
|
|
6358
6365
|
}, {
|
|
6359
6366
|
default: withCtx(() => [
|
|
6360
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
6367
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showLegendConfig), (item) => {
|
|
6361
6368
|
return openBlock(), createBlock(_component_el_checkbox, {
|
|
6362
6369
|
key: item.value,
|
|
6363
6370
|
label: item.value,
|
|
@@ -6368,17 +6375,29 @@ const _sfc_main$7 = {
|
|
|
6368
6375
|
]),
|
|
6369
6376
|
_: 2
|
|
6370
6377
|
}, 1032, ["label", "value"]);
|
|
6371
|
-
}), 128))
|
|
6378
|
+
}), 128)),
|
|
6379
|
+
__props.legendConfig.length > 5 ? (openBlock(), createBlock(_component_el_button, {
|
|
6380
|
+
key: 0,
|
|
6381
|
+
icon: isMoreLegend.value ? "ArrowUp" : "ArrowDown",
|
|
6382
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isMoreLegend.value = !isMoreLegend.value),
|
|
6383
|
+
type: "primary",
|
|
6384
|
+
link: ""
|
|
6385
|
+
}, {
|
|
6386
|
+
default: withCtx(() => [
|
|
6387
|
+
createTextVNode(toDisplayString(isMoreLegend.value ? "\u6536\u8D77" : "\u66F4\u591A"), 1)
|
|
6388
|
+
]),
|
|
6389
|
+
_: 1
|
|
6390
|
+
}, 8, ["icon"])) : createCommentVNode("", true)
|
|
6372
6391
|
]),
|
|
6373
6392
|
_: 1
|
|
6374
6393
|
}, 8, ["modelValue"])
|
|
6375
|
-
])
|
|
6376
|
-
])
|
|
6394
|
+
])
|
|
6395
|
+
])) : createCommentVNode("", true)
|
|
6377
6396
|
], 4);
|
|
6378
6397
|
};
|
|
6379
6398
|
}
|
|
6380
6399
|
};
|
|
6381
|
-
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
6400
|
+
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-6004966e"]]);
|
|
6382
6401
|
const index_vue_vue_type_style_index_0_scoped_761d2ab4_lang = "";
|
|
6383
6402
|
const _withScopeId$4 = (n) => (pushScopeId("data-v-761d2ab4"), n = n(), popScopeId(), n);
|
|
6384
6403
|
const _hoisted_1$5 = {
|