ym-giswidget-2d 1.0.33 → 1.0.35

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,9 @@
1
1
  import { default as OLMap } from 'ym-gis-2d/mapView/Map';
2
2
  import { default as IStyle } from 'ym-gis-2d/entity/IStyle';
3
+ import { IMapService } from 'node_modules/ym-gis-2d/entity';
3
4
  type __VLS_Props = {
4
5
  map: OLMap;
6
+ selectLayers?: IMapService[];
5
7
  pointStyle?: IStyle;
6
8
  cancePointStyle?: IStyle;
7
9
  lineStyle?: IStyle;
@@ -7,6 +7,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "Identify",
8
8
  props: {
9
9
  map: {},
10
+ selectLayers: {},
10
11
  pointStyle: {},
11
12
  cancePointStyle: {},
12
13
  lineStyle: {},
@@ -27,12 +28,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
28
  lineStyle: props.lineStyle,
28
29
  canceLineStyle: props.canceLineStyle,
29
30
  polygonStyle: props.polygonStyle,
31
+ selectLayers: props.selectLayers,
30
32
  cancePolygonStyle: props.cancePolygonStyle,
31
33
  addTempLayer: true,
32
34
  selectTempLayer: false
33
35
  });
34
36
  props.map.interactionManager.addInteraction("identify", select);
35
- let loadingInstance;
37
+ let loadingInstance = null;
36
38
  select.on("selectstart", (event) => {
37
39
  loadingInstance = ElLoading.service({ text: "正在查询...", background: "rgba(0, 0, 0, 0.5)", target: props.map.getTarget() });
38
40
  });
@@ -1,5 +1,6 @@
1
1
  export declare const Identify: import('../../utils').WithInstall<import('vue').DefineComponent<{
2
2
  map: import('ym-gis-2d/mapView/Map').default;
3
+ selectLayers?: import('ym-gis-2d/entity').IMapService[];
3
4
  pointStyle?: import('ym-gis-2d/entity/IStyle').default;
4
5
  cancePointStyle?: import('ym-gis-2d/entity/IStyle').default;
5
6
  lineStyle?: import('ym-gis-2d/entity/IStyle').default;
@@ -8,6 +9,7 @@ export declare const Identify: import('../../utils').WithInstall<import('vue').D
8
9
  cancePolygonStyle?: import('ym-gis-2d/entity/IStyle').default;
9
10
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
11
  map: import('ym-gis-2d/mapView/Map').default;
12
+ selectLayers?: import('ym-gis-2d/entity').IMapService[];
11
13
  pointStyle?: import('ym-gis-2d/entity/IStyle').default;
12
14
  cancePointStyle?: import('ym-gis-2d/entity/IStyle').default;
13
15
  lineStyle?: import('ym-gis-2d/entity/IStyle').default;
@@ -153,6 +153,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
153
153
  default?(_: {}): any;
154
154
  footer?(_: {}): any;
155
155
  };
156
+ } & {
157
+ $props: {
158
+ onClick?: (...args: any[]) => void;
159
+ };
156
160
  }) | null;
157
161
  }, any>;
158
162
  export default _default;
@@ -2,7 +2,7 @@ import _sfc_main from "./Popup.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1f9a72ff"]]);
5
+ const _Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3f0d17b5"]]);
6
6
  export {
7
7
  _Popup as default
8
8
  };
@@ -5,8 +5,8 @@ import "element-plus/es/components/table/style/css";
5
5
  import "element-plus/es/components/table-column/style/css";
6
6
  import "element-plus/es/components/select/style/css";
7
7
  import "element-plus/es/components/option/style/css";
8
- import { defineComponent, reactive, ref, watch, onMounted, onUnmounted, withDirectives, createBlock, openBlock, withCtx, createElementVNode, createVNode, unref, toDisplayString, createElementBlock, Fragment, renderList, vShow } from "vue";
9
- import DraggablePanel from "../../panel/DraggablePanel.vue.js";
8
+ import { defineComponent, reactive, ref, watch, onMounted, onUnmounted, withDirectives, createBlock, openBlock, unref, withCtx, createElementVNode, createVNode, toDisplayString, createElementBlock, Fragment, renderList, vShow } from "vue";
9
+ import { DraggablePanel } from "../../panel/index.js";
10
10
  import Overlay from "ol/Overlay";
11
11
  import { getLayerFields } from "../../http/LayerField.js";
12
12
  import { ElMessage } from "element-plus";
@@ -180,7 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
180
  const _component_el_table_column = ElTableColumn;
181
181
  const _component_el_table = ElTable;
182
182
  const _component_el_pagination = ElPagination;
183
- return withDirectives((openBlock(), createBlock(DraggablePanel, {
183
+ return withDirectives((openBlock(), createBlock(unref(DraggablePanel), {
184
184
  ref_key: "popupDom",
185
185
  ref: popupDom,
186
186
  class: "identify-popup el-current",
@@ -1,4 +1,4 @@
1
- .identify-popup[data-v-1f9a72ff] {
1
+ .identify-popup[data-v-3f0d17b5] {
2
2
  top: unset !important;
3
3
  overflow: unset !important;
4
4
  transform: unset !important;
@@ -7,7 +7,7 @@
7
7
  left: -50px;
8
8
  transform: unset !important;
9
9
  }
10
- .identify-popup[data-v-1f9a72ff]::after, .identify-popup[data-v-1f9a72ff]::before {
10
+ .identify-popup[data-v-3f0d17b5]::after, .identify-popup[data-v-3f0d17b5]::before {
11
11
  top: 100%;
12
12
  border: solid transparent;
13
13
  content: " ";
@@ -16,39 +16,39 @@
16
16
  position: absolute;
17
17
  pointer-events: none;
18
18
  }
19
- .identify-popup[data-v-1f9a72ff]::after {
19
+ .identify-popup[data-v-3f0d17b5]::after {
20
20
  border-top-color: white;
21
21
  border-width: 10px;
22
22
  left: 48px;
23
23
  margin-left: -10px;
24
24
  }
25
- .identify-popup[data-v-1f9a72ff]::before {
25
+ .identify-popup[data-v-3f0d17b5]::before {
26
26
  border-top-color: #cccccc;
27
27
  border-width: 11px;
28
28
  left: 48px;
29
29
  margin-left: -11px;
30
30
  }
31
- .identify-popup .panel-header .el-select[data-v-1f9a72ff] {
31
+ .identify-popup .panel-header .el-select[data-v-3f0d17b5] {
32
32
  --el-fill-color-blank: "";
33
33
  --el-input-text-color: var(--system-primary-text-color);
34
34
  --el-input-icon-color: var(--system-primary-text-color);
35
35
  }
36
- .identify-popup .identify-popup-content[data-v-1f9a72ff] {
36
+ .identify-popup .identify-popup-content[data-v-3f0d17b5] {
37
37
  height: 100%;
38
38
  display: flex;
39
39
  flex-direction: column;
40
40
  }
41
- .identify-popup .identify-popup-content .el-table[data-v-1f9a72ff] {
41
+ .identify-popup .identify-popup-content .el-table[data-v-3f0d17b5] {
42
42
  --el-table-bg-color: "";
43
43
  --el-table-tr-bg-color: "";
44
44
  --el-table-text-color: var(--system-primary-text-color);
45
45
  --el-table-row-hover-bg-color: "";
46
46
  height: 100%;
47
47
  }
48
- .identify-popup .identify-popup-content .pagination-block[data-v-1f9a72ff] {
48
+ .identify-popup .identify-popup-content .pagination-block[data-v-3f0d17b5] {
49
49
  margin-top: 10px;
50
50
  }
51
- .identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-1f9a72ff] {
51
+ .identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-3f0d17b5] {
52
52
  justify-content: center;
53
53
  --el-pagination-bg-color: "";
54
54
  --el-pagination-text-color: var(--system-primary-text-color);
@@ -56,6 +56,6 @@
56
56
  --el-pagination-button-disabled-bg-color: "";
57
57
  --el-pagination-button-color: var(--system-primary-text-color);
58
58
  }
59
- .identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-1f9a72ff] .el-icon {
59
+ .identify-popup .identify-popup-content .pagination-block .el-pagination[data-v-3f0d17b5] .el-icon {
60
60
  color: var(--system-primary-text-color);
61
61
  }
@@ -152,6 +152,10 @@ export declare const Popup: import('../../utils').WithInstall<import('vue').Defi
152
152
  default?(_: {}): any;
153
153
  footer?(_: {}): any;
154
154
  };
155
+ } & {
156
+ $props: {
157
+ onClick?: (...args: any[]) => void;
158
+ };
155
159
  }) | null;
156
160
  }, any>>;
157
161
  export default Popup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ym-giswidget-2d",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -0,0 +1,137 @@
1
+ export declare const DraggablePanel: import('../utils').WithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
+ title?: string;
4
+ width?: number;
5
+ height?: number;
6
+ minWidth?: number;
7
+ minHeight?: number;
8
+ resizable?: boolean;
9
+ showClose?: boolean;
10
+ showMinimize?: boolean;
11
+ showMaximize?: boolean;
12
+ showDock?: boolean;
13
+ drag?: boolean;
14
+ showOk?: boolean;
15
+ showCancel?: boolean;
16
+ okText?: string;
17
+ cancelText?: string;
18
+ }> & Readonly<{
19
+ onClose?: ((...args: any[]) => any) | undefined;
20
+ onResize?: ((...args: any[]) => any) | undefined;
21
+ onMove?: ((...args: any[]) => any) | undefined;
22
+ onOk?: ((...args: any[]) => any) | undefined;
23
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ close: (...args: any[]) => void;
25
+ resize: (...args: any[]) => void;
26
+ move: (...args: any[]) => void;
27
+ ok: (...args: any[]) => void;
28
+ }, import('vue').PublicProps, {
29
+ title: string;
30
+ showClose: boolean;
31
+ drag: boolean;
32
+ minWidth: number;
33
+ minHeight: number;
34
+ resizable: boolean;
35
+ showMinimize: boolean;
36
+ showMaximize: boolean;
37
+ showDock: boolean;
38
+ showOk: boolean;
39
+ showCancel: boolean;
40
+ okText: string;
41
+ cancelText: string;
42
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
43
+ panelRef: HTMLDivElement;
44
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
45
+ P: {};
46
+ B: {};
47
+ D: {};
48
+ C: {};
49
+ M: {};
50
+ Defaults: {};
51
+ }, Readonly<{
52
+ title?: string;
53
+ width?: number;
54
+ height?: number;
55
+ minWidth?: number;
56
+ minHeight?: number;
57
+ resizable?: boolean;
58
+ showClose?: boolean;
59
+ showMinimize?: boolean;
60
+ showMaximize?: boolean;
61
+ showDock?: boolean;
62
+ drag?: boolean;
63
+ showOk?: boolean;
64
+ showCancel?: boolean;
65
+ okText?: string;
66
+ cancelText?: string;
67
+ }> & Readonly<{
68
+ onClose?: ((...args: any[]) => any) | undefined;
69
+ onResize?: ((...args: any[]) => any) | undefined;
70
+ onMove?: ((...args: any[]) => any) | undefined;
71
+ onOk?: ((...args: any[]) => any) | undefined;
72
+ }>, {}, {}, {}, {}, {
73
+ title: string;
74
+ showClose: boolean;
75
+ drag: boolean;
76
+ minWidth: number;
77
+ minHeight: number;
78
+ resizable: boolean;
79
+ showMinimize: boolean;
80
+ showMaximize: boolean;
81
+ showDock: boolean;
82
+ showOk: boolean;
83
+ showCancel: boolean;
84
+ okText: string;
85
+ cancelText: string;
86
+ }>;
87
+ __isFragment?: never;
88
+ __isTeleport?: never;
89
+ __isSuspense?: never;
90
+ } & import('vue').ComponentOptionsBase<Readonly<{
91
+ title?: string;
92
+ width?: number;
93
+ height?: number;
94
+ minWidth?: number;
95
+ minHeight?: number;
96
+ resizable?: boolean;
97
+ showClose?: boolean;
98
+ showMinimize?: boolean;
99
+ showMaximize?: boolean;
100
+ showDock?: boolean;
101
+ drag?: boolean;
102
+ showOk?: boolean;
103
+ showCancel?: boolean;
104
+ okText?: string;
105
+ cancelText?: string;
106
+ }> & Readonly<{
107
+ onClose?: ((...args: any[]) => any) | undefined;
108
+ onResize?: ((...args: any[]) => any) | undefined;
109
+ onMove?: ((...args: any[]) => any) | undefined;
110
+ onOk?: ((...args: any[]) => any) | undefined;
111
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
112
+ close: (...args: any[]) => void;
113
+ resize: (...args: any[]) => void;
114
+ move: (...args: any[]) => void;
115
+ ok: (...args: any[]) => void;
116
+ }, string, {
117
+ title: string;
118
+ showClose: boolean;
119
+ drag: boolean;
120
+ minWidth: number;
121
+ minHeight: number;
122
+ resizable: boolean;
123
+ showMinimize: boolean;
124
+ showMaximize: boolean;
125
+ showDock: boolean;
126
+ showOk: boolean;
127
+ showCancel: boolean;
128
+ okText: string;
129
+ cancelText: string;
130
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
131
+ $slots: {
132
+ header?(_: {}): any;
133
+ default?(_: {}): any;
134
+ footer?(_: {}): any;
135
+ };
136
+ })>;
137
+ export default DraggablePanel;
package/panel/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import "./index.css";
2
+ import { withInstall } from "../utils/wthInstall.js";
3
+ import DraggablePanel$1 from "./DraggablePanel.vue.js";
4
+ const DraggablePanel = withInstall(DraggablePanel$1);
5
+ export {
6
+ DraggablePanel,
7
+ DraggablePanel as default
8
+ };