@supermapgis/vue-iclient-leaflet 11.2.1 → 11.3.0
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/dist/iclient-leaflet-vue.css +23 -9
- package/dist/iclient-leaflet-vue.js +21689 -44354
- package/dist/iclient-leaflet-vue.min.css +2 -2
- package/dist/iclient-leaflet-vue.min.js +39 -293
- package/lib/_assets/iconfont/icon-sm-components.css +21 -7
- package/lib/_assets/iconfont/icon-sm-components.ttf +0 -0
- package/lib/_assets/iconfont/icon-sm-components.woff +0 -0
- package/lib/_assets/iconfont/icon-sm-components.woff2 +0 -0
- package/lib/_lang/en.js +20 -8
- package/lib/_lang/index.js +18 -18
- package/lib/_lang/zh.js +20 -8
- package/lib/_mixin/AntdRender.js +15 -17
- package/lib/_mixin/Card.js +10 -11
- package/lib/_mixin/GridLayer.js +4 -4
- package/lib/_mixin/Layer.js +4 -4
- package/lib/_mixin/Options.js +2 -2
- package/lib/_mixin/Popper.js +2 -2
- package/lib/_mixin/Theme.js +13 -15
- package/lib/_mixin/ThirdService.js +15 -16
- package/lib/_mixin/TileLayer.js +4 -4
- package/lib/_mixin/Timer.js +8 -9
- package/lib/_mixin/VmUpdater.js +10 -11
- package/lib/_mixin/map-events.js +8 -9
- package/lib/_mixin/map-getter.js +13 -14
- package/lib/_types/AddressMatchParameter.js +2 -2
- package/lib/_types/GeoJSONParamter.js +2 -2
- package/lib/_types/RestDataParameter.js +5 -6
- package/lib/_types/RestMapParameter.js +5 -6
- package/lib/_types/RestParameter.js +2 -2
- package/lib/_types/event/BaseTypes.js +2 -2
- package/lib/_types/event/Event.js +4 -4
- package/lib/_types/event/Events.js +10 -10
- package/lib/_types/event/Pixel.js +2 -2
- package/lib/_types/event/Util.js +2 -2
- package/lib/_types/iPortalDataParameter.js +3 -2
- package/lib/_types/iServerBaseParameter.js +3 -2
- package/lib/_types/iServerDataParameter.js +5 -6
- package/lib/_types/iServerMapParameter.js +5 -6
- package/lib/_types/index.js +18 -18
- package/lib/_types/map-event.js +6 -6
- package/lib/_utils/EchartsDataService.js +24 -24
- package/lib/_utils/RestService.js +1345 -1149
- package/lib/_utils/epsg-define.js +45 -34
- package/lib/_utils/get-features.js +23 -10
- package/lib/_utils/global-event.js +6 -6
- package/lib/_utils/iPortalDataService.js +1368 -1147
- package/lib/_utils/iServerRestService.js +1518 -1269
- package/lib/_utils/props-binder.js +2 -2
- package/lib/_utils/statistics.js +8 -17
- package/lib/_utils/style/color/colorPalette.js +4 -4
- package/lib/_utils/style/color/serialColors.js +8 -8
- package/lib/_utils/style/theme/chart.js +1343 -1146
- package/lib/_utils/style/theme/set-theme.js +10 -10
- package/lib/_utils/style/theme/theme.json +6 -6
- package/lib/_utils/util.js +12 -12
- package/lib/_utils/vue-types/utils.js +2 -2
- package/lib/attribute-panel/style/attribute-panel.css +1 -0
- package/lib/attribute-panel/style/css.js +7 -0
- package/lib/attribute-panel/style/index.js +7 -0
- package/lib/avatar/index.js +25 -25
- package/lib/border/index.js +77 -77
- package/lib/breadcrumb/index.js +47 -41
- package/lib/button/index.js +53 -50
- package/lib/card/index.js +47 -41
- package/lib/chart/index.js +1437 -1238
- package/lib/checkbox/index.js +36 -33
- package/lib/collapse/index.js +39 -36
- package/lib/collapse-card/index.js +71 -76
- package/lib/color-picker/index.js +48 -49
- package/lib/date-picker/index.js +107 -95
- package/lib/dropdown/index.js +27 -27
- package/lib/empty/index.js +27 -27
- package/lib/icon/index.js +25 -25
- package/lib/identify/index.js +58 -59
- package/lib/iframe/index.js +31 -31
- package/lib/image/index.js +226 -42
- package/lib/image/style/image.css +1 -1
- package/lib/index.js +4 -4
- package/lib/indicator/index.js +70 -67
- package/lib/init.js +8 -8
- package/lib/input/index.js +150 -135
- package/lib/input-number/index.js +100 -97
- package/lib/layout/index.js +72 -60
- package/lib/liquid-fill/index.js +73 -73
- package/lib/marker/index.js +43 -44
- package/lib/menu/index.js +47 -41
- package/lib/message/index.js +3 -3
- package/lib/message/style/message.css +1 -1
- package/lib/modal/index.js +67 -67
- package/lib/modal/style/modal.css +1 -1
- package/lib/notification/index.js +6 -6
- package/lib/notification/style/notification.css +1 -1
- package/lib/pagination/index.js +34 -34
- package/lib/popup/index.js +45 -46
- package/lib/progress/index.js +440 -440
- package/lib/radio/index.js +48 -42
- package/lib/select/index.js +47 -41
- package/lib/slider/index.js +27 -27
- package/lib/slideshow/index.js +103 -160
- package/lib/spin/index.js +30 -30
- package/lib/steps/index.js +35 -32
- package/lib/switch/index.js +25 -25
- package/lib/table/index.js +50 -44
- package/lib/table/style/table.css +1 -1
- package/lib/table-popup/index.js +43 -37
- package/lib/table-popup/style/table-popup.css +1 -1
- package/lib/tabs/index.js +35 -32
- package/lib/text/index.js +39 -39
- package/lib/tile-layer/index.js +35 -36
- package/lib/time-line/index.js +41 -43
- package/lib/time-picker/index.js +27 -27
- package/lib/time-range/index.js +53 -55
- package/lib/time-slider/index.js +73 -75
- package/lib/time-text/index.js +31 -31
- package/lib/tooltip/index.js +25 -25
- package/lib/tooltip/style/tooltip.css +1 -0
- package/lib/transfer/index.js +27 -27
- package/lib/tree/index.js +48 -42
- package/lib/tree-select/index.js +37 -34
- package/lib/video-player/index.js +98 -97
- package/lib/video-player/style/video-player.css +1 -1
- package/lib/web-map/index.js +2336 -103
- package/package.json +2 -4
- package/src/common/_assets/iconfont/icon-sm-components.css +21 -7
- package/src/common/_assets/iconfont/icon-sm-components.ttf +0 -0
- package/src/common/_assets/iconfont/icon-sm-components.woff +0 -0
- package/src/common/_assets/iconfont/icon-sm-components.woff2 +0 -0
- package/src/common/_lang/en.js +19 -8
- package/src/common/_lang/zh.js +18 -6
- package/src/common/_mixin/Card.ts +1 -1
- package/src/common/_types/iPortalDataParameter.js +1 -0
- package/src/common/_types/iServerBaseParameter.ts +3 -0
- package/src/common/_utils/epsg-define.js +32 -27
- package/src/common/_utils/get-features.js +13 -2
- package/src/common/_utils/iPortalDataService.js +14 -3
- package/src/common/_utils/iServerRestService.js +144 -78
- package/src/common/_utils/statistics.js +6 -14
- package/src/common/_utils/style/theme/theme.json +6 -6
- package/src/common/attribute-panel/AttributePanel.vue +58 -0
- package/src/common/attribute-panel/__test__/AttributePanel.spec.js +39 -0
- package/src/common/attribute-panel/index.js +9 -0
- package/src/common/attribute-panel/style/attribute-panel.scss +35 -0
- package/src/common/attribute-panel/style/index.js +4 -0
- package/src/common/collapse-card/style/collapse-card.scss +2 -2
- package/src/common/iframe/Iframe.vue +1 -1
- package/src/common/image/Image.vue +68 -6
- package/src/common/image/style/image.scss +32 -0
- package/src/common/message/style/message.scss +1 -0
- package/src/common/modal/style/modal.scss +36 -0
- package/src/common/notification/style/notification.scss +9 -0
- package/src/common/slideshow/Slideshow.vue +42 -95
- package/src/common/slideshow/Swiper.js +1 -1
- package/src/common/table/style/table.scss +36 -0
- package/src/common/table-popup/TablePopup.vue +5 -0
- package/src/common/tooltip/style/tooltip.scss +3 -0
- package/src/common/video-player/style/video-player.scss +1 -1
- package/src/leaflet/entrys.json +0 -2
- package/src/leaflet/package.json +2 -4
- package/src/leaflet/web-map/WebMap.vue +4 -4
- package/src/leaflet/web-map/WebMapViewModel.ts +64 -17
- package/static/libs/iclient-common/iclient-common-webmapv2base.js +2 -0
- package/static/libs/iclient-common/iclient-common.js +1 -1
- package/static/libs/iclient-leaflet/iclient-leaflet.min.js +5 -1738
- package/lib/_assets/iconfont/icon-sm-components.eot +0 -0
- package/lib/_assets/iconfont/icon-sm-components.svg +0 -197
- package/lib/_mixin/WebMapBase.js +0 -3467
- package/lib/_utils/WebMapService.js +0 -1607
- package/src/common/_assets/iconfont/icon-sm-components.eot +0 -0
- package/src/common/_assets/iconfont/icon-sm-components.svg +0 -197
- package/src/common/_utils/WebMapService.ts +0 -1292
- package/src/common/web-map/WebMapBase.ts +0 -1178
- package/src/common/web-map/config/MunicipalCenter.json +0 -1
- package/src/common/web-map/config/ProvinceCenter.json +0 -1
package/lib/image/index.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 358);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -105,19 +105,20 @@ module.exports = require("@babel/runtime/helpers/interopRequireDefault");
|
|
|
105
105
|
// This module is a runtime utility for cleaner component module output and will
|
|
106
106
|
// be included in the final webpack user bundle.
|
|
107
107
|
|
|
108
|
-
function normalizeComponent(
|
|
108
|
+
function normalizeComponent (
|
|
109
109
|
scriptExports,
|
|
110
110
|
render,
|
|
111
111
|
staticRenderFns,
|
|
112
112
|
functionalTemplate,
|
|
113
113
|
injectStyles,
|
|
114
114
|
scopeId,
|
|
115
|
-
moduleIdentifier /* server only
|
|
115
|
+
moduleIdentifier, /* server only */
|
|
116
116
|
shadowMode /* vue-cli only */
|
|
117
117
|
) {
|
|
118
118
|
// Vue.extend constructor export interop
|
|
119
|
-
var options =
|
|
120
|
-
|
|
119
|
+
var options = typeof scriptExports === 'function'
|
|
120
|
+
? scriptExports.options
|
|
121
|
+
: scriptExports
|
|
121
122
|
|
|
122
123
|
// render functions
|
|
123
124
|
if (render) {
|
|
@@ -137,8 +138,7 @@ function normalizeComponent(
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
var hook
|
|
140
|
-
if (moduleIdentifier) {
|
|
141
|
-
// server build
|
|
141
|
+
if (moduleIdentifier) { // server build
|
|
142
142
|
hook = function (context) {
|
|
143
143
|
// 2.3 injection
|
|
144
144
|
context =
|
|
@@ -163,12 +163,7 @@ function normalizeComponent(
|
|
|
163
163
|
options._ssrRegister = hook
|
|
164
164
|
} else if (injectStyles) {
|
|
165
165
|
hook = shadowMode
|
|
166
|
-
? function () {
|
|
167
|
-
injectStyles.call(
|
|
168
|
-
this,
|
|
169
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
170
|
-
)
|
|
171
|
-
}
|
|
166
|
+
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
|
172
167
|
: injectStyles
|
|
173
168
|
}
|
|
174
169
|
|
|
@@ -177,16 +172,18 @@ function normalizeComponent(
|
|
|
177
172
|
// for template-only hot-reload because in that case the render fn doesn't
|
|
178
173
|
// go through the normalizer
|
|
179
174
|
options._injectStyles = hook
|
|
180
|
-
// register for
|
|
175
|
+
// register for functioal component in vue file
|
|
181
176
|
var originalRender = options.render
|
|
182
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
177
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
183
178
|
hook.call(context)
|
|
184
179
|
return originalRender(h, context)
|
|
185
180
|
}
|
|
186
181
|
} else {
|
|
187
182
|
// inject component registration as beforeCreate hook
|
|
188
183
|
var existing = options.beforeCreate
|
|
189
|
-
options.beforeCreate = existing
|
|
184
|
+
options.beforeCreate = existing
|
|
185
|
+
? [].concat(existing, hook)
|
|
186
|
+
: [hook]
|
|
190
187
|
}
|
|
191
188
|
}
|
|
192
189
|
|
|
@@ -199,19 +196,26 @@ function normalizeComponent(
|
|
|
199
196
|
|
|
200
197
|
/***/ }),
|
|
201
198
|
|
|
202
|
-
/***/
|
|
199
|
+
/***/ 11:
|
|
200
|
+
/***/ (function(module, exports) {
|
|
201
|
+
|
|
202
|
+
module.exports = require("@babel/runtime/helpers/extends");
|
|
203
|
+
|
|
204
|
+
/***/ }),
|
|
205
|
+
|
|
206
|
+
/***/ 116:
|
|
203
207
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
204
208
|
|
|
205
209
|
"use strict";
|
|
206
210
|
__webpack_require__.r(__webpack_exports__);
|
|
207
|
-
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
211
|
+
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(117);
|
|
208
212
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
209
213
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
210
214
|
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
211
215
|
|
|
212
216
|
/***/ }),
|
|
213
217
|
|
|
214
|
-
/***/
|
|
218
|
+
/***/ 117:
|
|
215
219
|
/***/ (function(module, exports, __webpack_require__) {
|
|
216
220
|
|
|
217
221
|
"use strict";
|
|
@@ -228,6 +232,21 @@ var _Theme = _interopRequireDefault(__webpack_require__(2));
|
|
|
228
232
|
|
|
229
233
|
var _util = __webpack_require__(9);
|
|
230
234
|
|
|
235
|
+
var _Modal = _interopRequireDefault(__webpack_require__(360));
|
|
236
|
+
|
|
237
|
+
var _index = _interopRequireDefault(__webpack_require__(15));
|
|
238
|
+
|
|
239
|
+
//
|
|
240
|
+
//
|
|
241
|
+
//
|
|
242
|
+
//
|
|
243
|
+
//
|
|
244
|
+
//
|
|
245
|
+
//
|
|
246
|
+
//
|
|
247
|
+
//
|
|
248
|
+
//
|
|
249
|
+
//
|
|
231
250
|
//
|
|
232
251
|
//
|
|
233
252
|
//
|
|
@@ -243,6 +262,9 @@ var _util = __webpack_require__(9);
|
|
|
243
262
|
//
|
|
244
263
|
var _default = exports.default = {
|
|
245
264
|
name: 'SmImage',
|
|
265
|
+
components: {
|
|
266
|
+
SmModal: _Modal.default
|
|
267
|
+
},
|
|
246
268
|
mixins: [_Theme.default],
|
|
247
269
|
props: {
|
|
248
270
|
src: {
|
|
@@ -256,6 +278,10 @@ var _default = exports.default = {
|
|
|
256
278
|
type: String,
|
|
257
279
|
default: ''
|
|
258
280
|
},
|
|
281
|
+
previewMode: {
|
|
282
|
+
type: String,
|
|
283
|
+
default: 'none'
|
|
284
|
+
},
|
|
259
285
|
target: {
|
|
260
286
|
type: String,
|
|
261
287
|
default: '_self'
|
|
@@ -263,12 +289,18 @@ var _default = exports.default = {
|
|
|
263
289
|
},
|
|
264
290
|
data: function data() {
|
|
265
291
|
return {
|
|
292
|
+
previewVisible: false,
|
|
266
293
|
repeatOption: {
|
|
267
294
|
center: {
|
|
268
295
|
backgroundRepeat: 'no-repeat',
|
|
269
296
|
backgroundPosition: 'center',
|
|
270
297
|
backgroundSize: 'contain'
|
|
271
298
|
},
|
|
299
|
+
left: {
|
|
300
|
+
backgroundRepeat: 'no-repeat',
|
|
301
|
+
backgroundPosition: 'left center',
|
|
302
|
+
backgroundSize: 'contain'
|
|
303
|
+
},
|
|
272
304
|
noRepeat: {
|
|
273
305
|
backgroundSize: '100% 100%',
|
|
274
306
|
backgroundRepeat: 'no-repeat'
|
|
@@ -289,6 +321,25 @@ var _default = exports.default = {
|
|
|
289
321
|
};
|
|
290
322
|
},
|
|
291
323
|
computed: {
|
|
324
|
+
fullScreenStyle: function fullScreenStyle() {
|
|
325
|
+
return this.previewMode === 'full' ? {
|
|
326
|
+
dialogStyle: {
|
|
327
|
+
backgroundColor: 'transparent',
|
|
328
|
+
height: '100%'
|
|
329
|
+
},
|
|
330
|
+
dialogClass: 'sm-component-image__full',
|
|
331
|
+
bodyStyle: {
|
|
332
|
+
padding: 0,
|
|
333
|
+
width: '100%',
|
|
334
|
+
height: '100%'
|
|
335
|
+
}
|
|
336
|
+
} : {
|
|
337
|
+
dialogClass: 'sm-component-image__preview',
|
|
338
|
+
bodyStyle: {
|
|
339
|
+
padding: 0
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
},
|
|
292
343
|
repeatStyle: function repeatStyle() {
|
|
293
344
|
return this.repeatOption[this.repeat];
|
|
294
345
|
},
|
|
@@ -306,9 +357,91 @@ var _default = exports.default = {
|
|
|
306
357
|
|
|
307
358
|
return href;
|
|
308
359
|
}
|
|
360
|
+
},
|
|
361
|
+
methods: {
|
|
362
|
+
handleLinkClick: function handleLinkClick(e) {
|
|
363
|
+
if (!this.href) {
|
|
364
|
+
e.preventDefault();
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
startPreview: function startPreview() {
|
|
368
|
+
if (this.previewMode === 'none') {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
_index.default.info(this.previewMode === 'popup' ? this.$t('info.pressEscToExit') : this.$t('info.pressEscOrClickToExit'), 3);
|
|
373
|
+
|
|
374
|
+
this.previewVisible = true;
|
|
375
|
+
},
|
|
376
|
+
endPreview: function endPreview() {
|
|
377
|
+
this.previewVisible = false;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
/***/ }),
|
|
383
|
+
|
|
384
|
+
/***/ 15:
|
|
385
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
386
|
+
|
|
387
|
+
"use strict";
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
var _interopRequireDefault = __webpack_require__(0);
|
|
391
|
+
|
|
392
|
+
Object.defineProperty(exports, "__esModule", {
|
|
393
|
+
value: true
|
|
394
|
+
});
|
|
395
|
+
exports.default = void 0;
|
|
396
|
+
|
|
397
|
+
var _Message = _interopRequireDefault(__webpack_require__(16));
|
|
398
|
+
|
|
399
|
+
var _default = exports.default = _Message.default;
|
|
400
|
+
|
|
401
|
+
/***/ }),
|
|
402
|
+
|
|
403
|
+
/***/ 16:
|
|
404
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
405
|
+
|
|
406
|
+
"use strict";
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
var _interopRequireDefault = __webpack_require__(0);
|
|
410
|
+
|
|
411
|
+
Object.defineProperty(exports, "__esModule", {
|
|
412
|
+
value: true
|
|
413
|
+
});
|
|
414
|
+
exports.default = void 0;
|
|
415
|
+
|
|
416
|
+
var _extends2 = _interopRequireDefault(__webpack_require__(11));
|
|
417
|
+
|
|
418
|
+
var _message = _interopRequireDefault(__webpack_require__(17));
|
|
419
|
+
|
|
420
|
+
var defaultPrefixCls = 'sm-component-message';
|
|
421
|
+
var configCallback = _message.default.config;
|
|
422
|
+
configCallback({
|
|
423
|
+
prefixCls: defaultPrefixCls
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
_message.default.config = function (options) {
|
|
427
|
+
if (options.prefixCls && options.prefixCls !== defaultPrefixCls) {
|
|
428
|
+
_message.default.destroy();
|
|
309
429
|
}
|
|
430
|
+
|
|
431
|
+
configCallback((0, _extends2.default)({}, options, {
|
|
432
|
+
prefixCls: options.prefixCls || defaultPrefixCls
|
|
433
|
+
}));
|
|
310
434
|
};
|
|
311
435
|
|
|
436
|
+
var _default = exports.default = _message.default;
|
|
437
|
+
|
|
438
|
+
/***/ }),
|
|
439
|
+
|
|
440
|
+
/***/ 17:
|
|
441
|
+
/***/ (function(module, exports) {
|
|
442
|
+
|
|
443
|
+
module.exports = require("ant-design-vue/es/message");
|
|
444
|
+
|
|
312
445
|
/***/ }),
|
|
313
446
|
|
|
314
447
|
/***/ 2:
|
|
@@ -318,7 +451,7 @@ module.exports = require("@supermapgis/vue-iclient-leaflet/lib/_mixin/Theme.js")
|
|
|
318
451
|
|
|
319
452
|
/***/ }),
|
|
320
453
|
|
|
321
|
-
/***/
|
|
454
|
+
/***/ 259:
|
|
322
455
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
323
456
|
|
|
324
457
|
"use strict";
|
|
@@ -327,8 +460,8 @@ module.exports = require("@supermapgis/vue-iclient-leaflet/lib/_mixin/Theme.js")
|
|
|
327
460
|
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
|
|
328
461
|
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });
|
|
329
462
|
|
|
330
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/image/Image.vue?vue&type=template&id=
|
|
331
|
-
var render = function
|
|
463
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/image/Image.vue?vue&type=template&id=0acca77c&
|
|
464
|
+
var render = function() {
|
|
332
465
|
var _vm = this
|
|
333
466
|
var _h = _vm.$createElement
|
|
334
467
|
var _c = _vm._self._c || _h
|
|
@@ -336,38 +469,79 @@ var render = function () {
|
|
|
336
469
|
"div",
|
|
337
470
|
{
|
|
338
471
|
staticClass: "sm-component-image",
|
|
339
|
-
style: [_vm.getBackgroundStyle, _vm.getTextColorStyle]
|
|
472
|
+
style: [_vm.getBackgroundStyle, _vm.getTextColorStyle]
|
|
340
473
|
},
|
|
341
474
|
[
|
|
342
475
|
_c(
|
|
343
476
|
"a",
|
|
344
477
|
{
|
|
345
|
-
class: [
|
|
346
|
-
"sm-component-image__link",
|
|
347
|
-
_vm.realHref ? "" : "sm-component-image__noLink",
|
|
348
|
-
],
|
|
478
|
+
class: ["sm-component-image__link"],
|
|
349
479
|
attrs: { href: _vm.realHref, target: _vm.target },
|
|
480
|
+
on: { click: _vm.handleLinkClick }
|
|
350
481
|
},
|
|
351
482
|
[
|
|
352
483
|
_vm.src
|
|
353
|
-
? _c(
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
484
|
+
? _c(
|
|
485
|
+
"div",
|
|
486
|
+
{
|
|
487
|
+
staticClass: "sm-component-image__content",
|
|
488
|
+
style: [_vm.repeatStyle, _vm.imgUrl],
|
|
489
|
+
on: { click: _vm.startPreview }
|
|
490
|
+
},
|
|
491
|
+
[
|
|
492
|
+
_c("img", {
|
|
493
|
+
staticStyle: {
|
|
494
|
+
visibility: "hidden",
|
|
495
|
+
"max-width": "100%",
|
|
496
|
+
"max-height": "100%"
|
|
497
|
+
},
|
|
498
|
+
attrs: { src: _vm.src }
|
|
499
|
+
})
|
|
500
|
+
]
|
|
501
|
+
)
|
|
357
502
|
: _c("i", {
|
|
358
503
|
staticClass:
|
|
359
|
-
"sm-components-icon-tupian sm-component-image__defaultImg"
|
|
360
|
-
})
|
|
504
|
+
"sm-components-icon-tupian sm-component-image__defaultImg"
|
|
505
|
+
})
|
|
361
506
|
]
|
|
362
507
|
),
|
|
363
|
-
|
|
508
|
+
_c(
|
|
509
|
+
"sm-modal",
|
|
510
|
+
{
|
|
511
|
+
attrs: {
|
|
512
|
+
zIndex: 1009,
|
|
513
|
+
centered: "",
|
|
514
|
+
width: "50%",
|
|
515
|
+
dialogClass: _vm.fullScreenStyle.dialogClass,
|
|
516
|
+
dialogStyle: _vm.fullScreenStyle.dialogStyle,
|
|
517
|
+
bodyStyle: _vm.fullScreenStyle.bodyStyle,
|
|
518
|
+
footer: null
|
|
519
|
+
},
|
|
520
|
+
model: {
|
|
521
|
+
value: _vm.previewVisible,
|
|
522
|
+
callback: function($$v) {
|
|
523
|
+
_vm.previewVisible = $$v
|
|
524
|
+
},
|
|
525
|
+
expression: "previewVisible"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
[
|
|
529
|
+
_c("img", {
|
|
530
|
+
style: { "object-fit": "contain", width: "100%", height: "100%" },
|
|
531
|
+
attrs: { src: _vm.src },
|
|
532
|
+
on: { click: _vm.endPreview }
|
|
533
|
+
})
|
|
534
|
+
]
|
|
535
|
+
)
|
|
536
|
+
],
|
|
537
|
+
1
|
|
364
538
|
)
|
|
365
539
|
}
|
|
366
540
|
var staticRenderFns = []
|
|
367
541
|
render._withStripped = true
|
|
368
542
|
|
|
369
543
|
|
|
370
|
-
// CONCATENATED MODULE: ./src/common/image/Image.vue?vue&type=template&id=
|
|
544
|
+
// CONCATENATED MODULE: ./src/common/image/Image.vue?vue&type=template&id=0acca77c&
|
|
371
545
|
|
|
372
546
|
|
|
373
547
|
/***/ }),
|
|
@@ -379,7 +553,7 @@ module.exports = require("@supermapgis/vue-iclient-leaflet/lib/init.js");
|
|
|
379
553
|
|
|
380
554
|
/***/ }),
|
|
381
555
|
|
|
382
|
-
/***/
|
|
556
|
+
/***/ 358:
|
|
383
557
|
/***/ (function(module, exports, __webpack_require__) {
|
|
384
558
|
|
|
385
559
|
"use strict";
|
|
@@ -392,7 +566,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
392
566
|
});
|
|
393
567
|
exports.default = void 0;
|
|
394
568
|
|
|
395
|
-
var _Image = _interopRequireDefault(__webpack_require__(
|
|
569
|
+
var _Image = _interopRequireDefault(__webpack_require__(359));
|
|
396
570
|
|
|
397
571
|
var _init = _interopRequireDefault(__webpack_require__(3));
|
|
398
572
|
|
|
@@ -405,13 +579,13 @@ var _default = exports.default = _Image.default;
|
|
|
405
579
|
|
|
406
580
|
/***/ }),
|
|
407
581
|
|
|
408
|
-
/***/
|
|
582
|
+
/***/ 359:
|
|
409
583
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
410
584
|
|
|
411
585
|
"use strict";
|
|
412
586
|
__webpack_require__.r(__webpack_exports__);
|
|
413
|
-
/* harmony import */ var
|
|
414
|
-
/* harmony import */ var _Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
587
|
+
/* harmony import */ var _Image_vue_vue_type_template_id_0acca77c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(259);
|
|
588
|
+
/* harmony import */ var _Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(116);
|
|
415
589
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
416
590
|
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
417
591
|
|
|
@@ -423,8 +597,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
423
597
|
|
|
424
598
|
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
|
|
425
599
|
_Image_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
426
|
-
|
|
427
|
-
|
|
600
|
+
_Image_vue_vue_type_template_id_0acca77c___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
|
|
601
|
+
_Image_vue_vue_type_template_id_0acca77c___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
|
|
428
602
|
false,
|
|
429
603
|
null,
|
|
430
604
|
null,
|
|
@@ -432,10 +606,20 @@ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_
|
|
|
432
606
|
|
|
433
607
|
)
|
|
434
608
|
|
|
609
|
+
/* hot reload */
|
|
610
|
+
if (false) { var api; }
|
|
611
|
+
component.options.__file = "src/common/image/Image.vue"
|
|
435
612
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
436
613
|
|
|
437
614
|
/***/ }),
|
|
438
615
|
|
|
616
|
+
/***/ 360:
|
|
617
|
+
/***/ (function(module, exports) {
|
|
618
|
+
|
|
619
|
+
module.exports = require("@supermapgis/vue-iclient-leaflet/lib/modal");
|
|
620
|
+
|
|
621
|
+
/***/ }),
|
|
622
|
+
|
|
439
623
|
/***/ 9:
|
|
440
624
|
/***/ (function(module, exports) {
|
|
441
625
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.sm-component-image{width:100%;height:100%;background:var(--component-background);color:var(--text-color)}.sm-component-image__link{display:block;width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sm-component-image__link:hover{cursor:pointer}.sm-component-image__noLink{pointer-events:none}.sm-component-image__content{width:100%;height:100%;opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}.sm-component-image__defaultImg{color:var(--text-color);font-size:60px}
|
|
1
|
+
.sm-component-image{width:100%;height:100%;background:var(--component-background);color:var(--text-color)}.sm-component-image__link{display:block;width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sm-component-image__link:hover{cursor:pointer}.sm-component-image__preview .sm-component-modal-content .sm-component-modal-close{margin-left:-64px}.sm-component-image__preview .sm-component-modal-content .sm-component-modal-close .sm-component-modal-close-x{font-size:40px}.sm-component-image__full{width:100%!important;padding:0!important}.sm-component-image__full .sm-component-modal-content{background-color:transparent!important;-webkit-box-shadow:none!important;box-shadow:none!important;width:100%;height:100%}.sm-component-image__full .sm-component-modal-content .sm-component-modal-close{display:none;margin-left:-64px}.sm-component-image__full .sm-component-modal-content .sm-component-modal-close .sm-component-modal-close-x{font-size:40px}.sm-component-image__noLink{pointer-events:none}.sm-component-image__content{width:100%;height:100%;opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}.sm-component-image__defaultImg{color:var(--text-color);font-size:60px}
|
package/lib/index.js
CHANGED
|
@@ -114,9 +114,9 @@ Object.keys(_components).forEach(function (key) {
|
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
function _getRequireWildcardCache(
|
|
117
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
118
118
|
|
|
119
|
-
function _interopRequireWildcard(
|
|
119
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
120
120
|
|
|
121
121
|
var _default = exports.default = _components.default;
|
|
122
122
|
|
|
@@ -592,9 +592,9 @@ var _index54 = _interopRequireDefault(__webpack_require__(59));
|
|
|
592
592
|
|
|
593
593
|
var _index55 = _interopRequireDefault(__webpack_require__(60));
|
|
594
594
|
|
|
595
|
-
function _getRequireWildcardCache(
|
|
595
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
596
596
|
|
|
597
|
-
function _interopRequireWildcard(
|
|
597
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
598
598
|
|
|
599
599
|
var components = {
|
|
600
600
|
Avatar: _index3.default,
|