sctj-components 1.1.5 → 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.
@@ -2652,8 +2652,8 @@ const _sfc_main$j = {
2652
2652
  }
2653
2653
  };
2654
2654
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-056cfdde"]]);
2655
- const index_vue_vue_type_style_index_0_scoped_753d67eb_lang = "";
2656
- const _withScopeId$8 = (n) => (pushScopeId("data-v-753d67eb"), n = n(), popScopeId(), n);
2655
+ const index_vue_vue_type_style_index_0_scoped_6419b31c_lang = "";
2656
+ const _withScopeId$8 = (n) => (pushScopeId("data-v-6419b31c"), n = n(), popScopeId(), n);
2657
2657
  const _hoisted_1$e = {
2658
2658
  key: 0,
2659
2659
  class: "search-container"
@@ -2838,8 +2838,6 @@ const _sfc_main$i = {
2838
2838
  );
2839
2839
  res = await response.json();
2840
2840
  }
2841
- if (res.code !== 200)
2842
- return;
2843
2841
  dataList.value = (_b = (_a = res == null ? void 0 : res.rows) != null ? _a : res.data) != null ? _b : [];
2844
2842
  total.value = (res == null ? void 0 : res.total) || 0;
2845
2843
  await nextTick();
@@ -3203,7 +3201,7 @@ const _sfc_main$i = {
3203
3201
  };
3204
3202
  }
3205
3203
  };
3206
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-753d67eb"]]);
3204
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6419b31c"]]);
3207
3205
  const index_vue_vue_type_style_index_0_scoped_15a9a632_lang = "";
3208
3206
  const _sfc_main$h = {
3209
3207
  __name: "index",
@@ -5401,12 +5399,12 @@ const _sfc_main$8 = {
5401
5399
  };
5402
5400
  }
5403
5401
  };
5404
- const index_vue_vue_type_style_index_0_scoped_997e9741_lang = "";
5405
- const _hoisted_1$6 = { class: "action-container" };
5406
- const _hoisted_2$5 = {
5402
+ const index_vue_vue_type_style_index_0_scoped_6004966e_lang = "";
5403
+ const _hoisted_1$6 = {
5407
5404
  key: 0,
5408
- class: "legendContainer"
5405
+ class: "action-container"
5409
5406
  };
5407
+ const _hoisted_2$5 = { class: "legendContainer" };
5410
5408
  const _sfc_main$7 = {
5411
5409
  __name: "index",
5412
5410
  props: {
@@ -5493,8 +5491,8 @@ const _sfc_main$7 = {
5493
5491
  setup(__props, { expose, emit }) {
5494
5492
  const props = __props;
5495
5493
  useCssVars((_ctx) => ({
5496
- "11732c32": __props.width,
5497
- "50904db4": __props.height
5494
+ "6cd645c6": __props.width,
5495
+ "14237927": __props.height
5498
5496
  }));
5499
5497
  const controlsPositionVars = computed$1(() => {
5500
5498
  const position = props.controlsPosition || {};
@@ -5523,6 +5521,12 @@ const _sfc_main$7 = {
5523
5521
  const polygonTextInstances = shallowRef([]);
5524
5522
  const typeVisibility = shallowRef(/* @__PURE__ */ new Map());
5525
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
+ });
5526
5530
  const state = reactive({
5527
5531
  currentZoom: 10,
5528
5532
  baseZoom: 10,
@@ -6343,6 +6347,7 @@ const _sfc_main$7 = {
6343
6347
  });
6344
6348
  return (_ctx, _cache) => {
6345
6349
  const _component_el_checkbox = resolveComponent("el-checkbox");
6350
+ const _component_el_button = resolveComponent("el-button");
6346
6351
  const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
6347
6352
  return openBlock(), createElementBlock("div", {
6348
6353
  class: "mapViewContainer",
@@ -6351,15 +6356,15 @@ const _sfc_main$7 = {
6351
6356
  ref: mapContainer,
6352
6357
  style: normalizeStyle(unref(controlsPositionVars))
6353
6358
  }, [
6354
- createElementVNode("div", _hoisted_1$6, [
6355
- __props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
6359
+ __props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
6360
+ createElementVNode("div", _hoisted_2$5, [
6356
6361
  createVNode(_component_el_checkbox_group, {
6357
6362
  modelValue: legend.value,
6358
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => legend.value = $event),
6363
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => legend.value = $event),
6359
6364
  onChange: handleLegendChange
6360
6365
  }, {
6361
6366
  default: withCtx(() => [
6362
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.legendConfig, (item) => {
6367
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(showLegendConfig), (item) => {
6363
6368
  return openBlock(), createBlock(_component_el_checkbox, {
6364
6369
  key: item.value,
6365
6370
  label: item.value,
@@ -6370,17 +6375,29 @@ const _sfc_main$7 = {
6370
6375
  ]),
6371
6376
  _: 2
6372
6377
  }, 1032, ["label", "value"]);
6373
- }), 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)
6374
6391
  ]),
6375
6392
  _: 1
6376
6393
  }, 8, ["modelValue"])
6377
- ])) : createCommentVNode("", true)
6378
- ])
6394
+ ])
6395
+ ])) : createCommentVNode("", true)
6379
6396
  ], 4);
6380
6397
  };
6381
6398
  }
6382
6399
  };
6383
- const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-997e9741"]]);
6400
+ const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-6004966e"]]);
6384
6401
  const index_vue_vue_type_style_index_0_scoped_761d2ab4_lang = "";
6385
6402
  const _withScopeId$4 = (n) => (pushScopeId("data-v-761d2ab4"), n = n(), popScopeId(), n);
6386
6403
  const _hoisted_1$5 = {