ym-giswidget-2d 1.0.3 → 1.0.4
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/components/horizontally-top-toolbar/horizontallyTopToolbar.vue2.js +1 -1
- package/components/multi-screen/MultiScreen.vue.js +2 -2
- package/components/multi-screen/MultiScreen.vue2.js +11 -2
- package/components/multi-screen/index.css +3 -3
- package/components/multi-screen/index.js +2 -2
- package/components/{multi-screen → multi-screen-panel}/PanelMultiScreen.vue2.js +3 -3
- package/components/multi-screen-panel/index.js +8 -0
- package/components/toc-card/index.css +1 -1
- package/components/toc-card/index.d.ts +6 -2
- package/components/toc-card/tocCard.vue.d.ts +5 -1
- package/components/toc-card/tocCard.vue.js +1 -1
- package/components/toc-card/tocCard.vue2.js +8 -2
- package/package.json +2 -2
- package/components/multi-screen/MultiScreen.vue.d.ts +0 -12
- package/components/multi-screen/index.d.ts +0 -14
- /package/components/{multi-screen → multi-screen-panel}/PanelMultiScreen.vue.js +0 -0
|
@@ -128,7 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["layerInitLoaded"],
|
|
130
130
|
setup(__props, { emit: __emit }) {
|
|
131
|
-
const modules = /* @__PURE__ */ Object.assign({ "./horizontallyTopToolbar.vue": () => import("./horizontallyTopToolbar.vue.js"), "./index.ts": () => import("./index.js"), "./style.scss": () => Promise.resolve({ }), "../layer-tree/index.ts": () => import("../layer-tree/index.js"), "../layer-tree/layerTree.vue": () => import("../layer-tree/layerTree.vue.js"), "../multi-screen/
|
|
131
|
+
const modules = /* @__PURE__ */ Object.assign({ "./horizontallyTopToolbar.vue": () => import("./horizontallyTopToolbar.vue.js"), "./index.ts": () => import("./index.js"), "./style.scss": () => Promise.resolve({ }), "../layer-tree/index.ts": () => import("../layer-tree/index.js"), "../layer-tree/layerTree.vue": () => import("../layer-tree/layerTree.vue.js"), "../multi-screen-panel/PanelMultiScreen.vue": () => import("../multi-screen-panel/PanelMultiScreen.vue.js"), "../multi-screen-panel/index.ts": () => import("../multi-screen-panel/index.js"), "../multi-screen/MultiScreen.vue": () => import("../multi-screen/MultiScreen.vue.js"), "../multi-screen/index.ts": () => import("../multi-screen/index.js"), "../toc-card/index.ts": () => import("../toc-card/index.js"), "../toc-card/tocCard.vue": () => import("../toc-card/tocCard.vue.js") });
|
|
132
132
|
const props = __props;
|
|
133
133
|
const reactiveValue = reactive({
|
|
134
134
|
activeIds: [],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./MultiScreen.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _MultiScreen = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-34aec27a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_MultiScreen as default
|
|
7
7
|
};
|
|
@@ -16,7 +16,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
mainMap: {},
|
|
17
17
|
options: {}
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
emits: ["loaded"],
|
|
20
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
|
+
const emit = __emit;
|
|
20
22
|
const props = __props;
|
|
21
23
|
const reactiveValue = reactive({
|
|
22
24
|
screenMaps: []
|
|
@@ -46,6 +48,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
48
|
});
|
|
47
49
|
onUnmounted(() => {
|
|
48
50
|
});
|
|
51
|
+
function loadedLayer() {
|
|
52
|
+
emit("loaded");
|
|
53
|
+
}
|
|
49
54
|
const screenStyle = computed(
|
|
50
55
|
() => {
|
|
51
56
|
return {
|
|
@@ -53,6 +58,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
58
|
};
|
|
54
59
|
}
|
|
55
60
|
);
|
|
61
|
+
__expose({
|
|
62
|
+
screenMaps: reactiveValue.screenMaps
|
|
63
|
+
});
|
|
56
64
|
return (_ctx, _cache) => {
|
|
57
65
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
58
66
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.screenNum, (item) => {
|
|
@@ -68,7 +76,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
76
|
reactiveValue.screenMaps[item - 1] ? (openBlock(), createBlock(unref(TocCard), {
|
|
69
77
|
key: 0,
|
|
70
78
|
data: _ctx.layers,
|
|
71
|
-
map: reactiveValue.screenMaps[item - 1]
|
|
79
|
+
map: reactiveValue.screenMaps[item - 1],
|
|
80
|
+
onLoaded: loadedLayer
|
|
72
81
|
}, null, 8, ["data", "map"])) : createCommentVNode("", true)
|
|
73
82
|
], 4);
|
|
74
83
|
}), 128))
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.multi-screen-container[data-v-
|
|
1
|
+
.multi-screen-container[data-v-34aec27a] {
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
|
5
5
|
}
|
|
6
|
-
.multi-screen-container .multi-screen[data-v-
|
|
6
|
+
.multi-screen-container .multi-screen[data-v-34aec27a] {
|
|
7
7
|
border: 1px solid black;
|
|
8
8
|
}
|
|
9
|
-
.multi-screen-container .multi-screen .multi-screen__map[data-v-
|
|
9
|
+
.multi-screen-container .multi-screen .multi-screen__map[data-v-34aec27a] {
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 100%;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { withInstall } from "../../utils/wthInstall.js";
|
|
3
|
-
import
|
|
4
|
-
const MultiScreen = withInstall(
|
|
3
|
+
import _MultiScreen from "./MultiScreen.vue.js";
|
|
4
|
+
const MultiScreen = withInstall(_MultiScreen);
|
|
5
5
|
export {
|
|
6
6
|
MultiScreen,
|
|
7
7
|
MultiScreen as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, openBlock, createBlock, withCtx, createVNode, unref } from "vue";
|
|
2
2
|
import DraggablePanel from "../../panel/DraggablePanel.vue.js";
|
|
3
|
-
import MultiScreen from "
|
|
3
|
+
import { MultiScreen } from "../multi-screen/index.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "PanelMultiScreen",
|
|
6
6
|
props: {
|
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
title: "多屏"
|
|
15
15
|
}, {
|
|
16
16
|
default: withCtx(() => [
|
|
17
|
-
createVNode(MultiScreen, {
|
|
17
|
+
createVNode(unref(MultiScreen), {
|
|
18
18
|
layers: _ctx.data,
|
|
19
19
|
screenNum: 2
|
|
20
20
|
}, null, 8, ["layers"])
|
|
@@ -2,9 +2,13 @@ export declare const TocCard: import('../../utils').WithInstall<import('vue').De
|
|
|
2
2
|
data: import('ym-giscomm-2d/entity').IMapService[];
|
|
3
3
|
map: import('ym-giscomm-2d/mapView/Map').default;
|
|
4
4
|
editLayerTag?: string;
|
|
5
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
loaded: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
6
8
|
data: import('ym-giscomm-2d/entity').IMapService[];
|
|
7
9
|
map: import('ym-giscomm-2d/mapView/Map').default;
|
|
8
10
|
editLayerTag?: string;
|
|
9
|
-
}> & Readonly<{
|
|
11
|
+
}> & Readonly<{
|
|
12
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
|
|
10
14
|
export default TocCard;
|
|
@@ -5,5 +5,9 @@ type __VLS_Props = {
|
|
|
5
5
|
map: OLMap;
|
|
6
6
|
editLayerTag?: string;
|
|
7
7
|
};
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
loaded: (...args: any[]) => void;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
13
|
export default _default;
|
|
@@ -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-
|
|
4
|
+
const _TocCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-92118f87"]]);
|
|
5
5
|
export {
|
|
6
6
|
_TocCard as default
|
|
7
7
|
};
|
|
@@ -10,8 +10,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
map: {},
|
|
11
11
|
editLayerTag: {}
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
emits: ["loaded"],
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
15
|
+
const emit = __emit;
|
|
14
16
|
const props = __props;
|
|
17
|
+
function loadedLayer() {
|
|
18
|
+
emit("loaded");
|
|
19
|
+
}
|
|
15
20
|
return (_ctx, _cache) => {
|
|
16
21
|
const _component_el_card = ElCard;
|
|
17
22
|
return openBlock(), createBlock(_component_el_card, { class: "toc-card" }, {
|
|
@@ -19,7 +24,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
24
|
createVNode(unref(LayerTree), {
|
|
20
25
|
data: props.data,
|
|
21
26
|
map: props.map,
|
|
22
|
-
editLayerTag: props.editLayerTag
|
|
27
|
+
editLayerTag: props.editLayerTag,
|
|
28
|
+
onLoaded: loadedLayer
|
|
23
29
|
}, null, 8, ["data", "map", "editLayerTag"])
|
|
24
30
|
]),
|
|
25
31
|
_: 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ym-giswidget-2d",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"ol": "^9.2.4",
|
|
11
11
|
"@element-plus/icons-vue": "^2.3.1",
|
|
12
12
|
"element-plus": "^2.9.0",
|
|
13
|
-
"ym-giscomm-2d": "1.0.
|
|
13
|
+
"ym-giscomm-2d": "1.0.3"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as OLMap, OlMapOptions } from 'ym-giscomm-2d/mapView/Map';
|
|
2
|
-
import { default as IMapService } from 'ym-giscomm-2d/entity/layer/IMapService';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
layers: IMapService[];
|
|
5
|
-
screenNum: number;
|
|
6
|
-
mainMap?: OLMap;
|
|
7
|
-
options?: OlMapOptions;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
-
screenNum: number;
|
|
11
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const MultiScreen: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
layers: import('ym-giscomm-2d/entity').IMapService[];
|
|
3
|
-
screenNum: number;
|
|
4
|
-
mainMap?: import('ym-giscomm-2d/mapView/Map').default;
|
|
5
|
-
options?: import('ym-giscomm-2d/mapView/Map').OlMapOptions;
|
|
6
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
-
layers: import('ym-giscomm-2d/entity').IMapService[];
|
|
8
|
-
screenNum: number;
|
|
9
|
-
mainMap?: import('ym-giscomm-2d/mapView/Map').default;
|
|
10
|
-
options?: import('ym-giscomm-2d/mapView/Map').OlMapOptions;
|
|
11
|
-
}> & Readonly<{}>, {
|
|
12
|
-
screenNum: number;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
14
|
-
export default MultiScreen;
|
|
File without changes
|