ym-giswidget-2d 1.0.63 → 1.0.64

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.
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./TocCard.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _TocCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8416d467"]]);
4
+ const _TocCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-56c15beb"]]);
5
5
  export {
6
6
  _TocCard as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { ElCard } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/card/style/css";
4
- import { defineComponent, createBlock, openBlock, withCtx, renderSlot, createVNode, unref } from "vue";
4
+ import { defineComponent, ref, createBlock, openBlock, withCtx, renderSlot, createVNode, unref } from "vue";
5
5
  import { LayerTree } from "../layer-tree/index.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "TocCard",
@@ -13,18 +13,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  showFilter: { type: Boolean, default: false }
14
14
  },
15
15
  emits: ["loaded"],
16
- setup(__props, { emit: __emit }) {
16
+ setup(__props, { expose: __expose, emit: __emit }) {
17
17
  const emit = __emit;
18
18
  const props = __props;
19
+ const layerTree = ref();
19
20
  function loadedLayer() {
20
21
  emit("loaded");
21
22
  }
23
+ function setChecked(id, checked) {
24
+ layerTree.value.setChecked(id, checked);
25
+ }
26
+ __expose({
27
+ setChecked
28
+ });
22
29
  return (_ctx, _cache) => {
23
30
  const _component_el_card = ElCard;
24
31
  return openBlock(), createBlock(_component_el_card, { class: "toc-card" }, {
25
32
  default: withCtx(() => [
26
33
  renderSlot(_ctx.$slots, "title", {}, void 0, true),
27
34
  createVNode(unref(LayerTree), {
35
+ ref_key: "layerTree",
36
+ ref: layerTree,
28
37
  data: props.data,
29
38
  map: props.map,
30
39
  editLayerTag: props.editLayerTag,
@@ -1,4 +1,4 @@
1
- .toc-card[data-v-8416d467] {
1
+ .toc-card[data-v-56c15beb] {
2
2
  background-color: var(--system-primary-color);
3
3
  position: absolute;
4
4
  width: 245px;