@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.31
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/adddata/index.js +519 -263
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +20228 -7467
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +19746 -6806
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +20228 -7467
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +20228 -7467
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +1004 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +2198 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
package/hawkeye/index.js
CHANGED
|
@@ -2,27 +2,83 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
16
|
-
/***/ (function(
|
|
15
|
+
/***/ 1162:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "Z": function() { return /* binding */ HawkeyeViewModel; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
19
22
|
|
|
20
|
-
/***/ }),
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
/*
|
|
25
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
26
|
+
* All rights reserved.
|
|
27
|
+
*/
|
|
28
|
+
//鹰眼逻辑类
|
|
29
|
+
class HawkeyeViewModel {
|
|
30
|
+
//鹰眼三维对象
|
|
31
|
+
constructor(scenceView, options) {
|
|
32
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_overviewMap", null);
|
|
33
|
+
|
|
34
|
+
options.viewer = scenceView._viewer;
|
|
35
|
+
options.centerRectColor = Cesium.Color.fromCssColorString(options.centerColor || "#0000ff").withAlpha(options.centerColorAlpha || 0.5);
|
|
36
|
+
this.init(options);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
init(options) {
|
|
40
|
+
// if(!options.layers) {
|
|
41
|
+
// let layers = [];
|
|
42
|
+
// options.viewer.imageryLayers._layers.forEach(function (layer) {
|
|
43
|
+
// layers.push(layer);
|
|
44
|
+
// });
|
|
45
|
+
// options.layers = layers;
|
|
46
|
+
// options.layers = new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
47
|
+
// url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
|
|
48
|
+
// });
|
|
49
|
+
// }
|
|
50
|
+
this._overviewMap = new Cesium.Kq3dOverviewMap(options);
|
|
51
|
+
} //显示
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
show() {
|
|
55
|
+
this._overviewMap.show = true;
|
|
56
|
+
} //隐藏
|
|
57
|
+
|
|
24
58
|
|
|
25
|
-
|
|
59
|
+
hide() {
|
|
60
|
+
this._overviewMap.show = false;
|
|
61
|
+
} // 设置图层
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
setLayers(layers) {
|
|
65
|
+
if (Array.isArray(layers)) {
|
|
66
|
+
this._overviewMap._viewer.imageryLayers.removeAll();
|
|
67
|
+
|
|
68
|
+
layers.forEach(layer => {
|
|
69
|
+
this._overviewMap._viewer.imageryLayers.add(layer);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
} //销毁
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
destroy() {
|
|
76
|
+
this._overviewMap.destroy();
|
|
77
|
+
|
|
78
|
+
this._overviewMap = null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
26
82
|
|
|
27
83
|
/***/ }),
|
|
28
84
|
|
|
@@ -47,59 +103,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
47
103
|
|
|
48
104
|
/***/ }),
|
|
49
105
|
|
|
50
|
-
/***/
|
|
106
|
+
/***/ 8270:
|
|
51
107
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
52
108
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
67
|
-
}, _typeof(o);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
71
|
-
|
|
72
|
-
function toPrimitive(t, r) {
|
|
73
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
74
|
-
var e = t[Symbol.toPrimitive];
|
|
75
|
-
if (void 0 !== e) {
|
|
76
|
-
var i = e.call(t, r || "default");
|
|
77
|
-
if ("object" != _typeof(i)) return i;
|
|
78
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
109
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
110
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
111
|
+
/* harmony export */ });
|
|
112
|
+
function _defineProperty(obj, key, value) {
|
|
113
|
+
if (key in obj) {
|
|
114
|
+
Object.defineProperty(obj, key, {
|
|
115
|
+
value: value,
|
|
116
|
+
enumerable: true,
|
|
117
|
+
configurable: true,
|
|
118
|
+
writable: true
|
|
119
|
+
});
|
|
120
|
+
} else {
|
|
121
|
+
obj[key] = value;
|
|
79
122
|
}
|
|
80
|
-
return ("string" === r ? String : Number)(t);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
84
|
-
|
|
85
123
|
|
|
86
|
-
|
|
87
|
-
var i = toPrimitive(t, "string");
|
|
88
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
124
|
+
return obj;
|
|
89
125
|
}
|
|
90
126
|
|
|
91
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
92
|
-
|
|
93
|
-
function _defineProperty(e, r, t) {
|
|
94
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
95
|
-
value: t,
|
|
96
|
-
enumerable: !0,
|
|
97
|
-
configurable: !0,
|
|
98
|
-
writable: !0
|
|
99
|
-
}) : e[r] = t, e;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
127
|
/***/ })
|
|
104
128
|
|
|
105
129
|
/******/ });
|
|
@@ -178,7 +202,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
178
202
|
|
|
179
203
|
// EXPORTS
|
|
180
204
|
__webpack_require__.d(__webpack_exports__, {
|
|
181
|
-
"HawkeyeViewModel": function() { return /* reexport */ HawkeyeViewModel; },
|
|
205
|
+
"HawkeyeViewModel": function() { return /* reexport */ HawkeyeViewModel/* default */.Z; },
|
|
182
206
|
"default": function() { return /* reexport */ Hawkeye; }
|
|
183
207
|
});
|
|
184
208
|
|
|
@@ -186,71 +210,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
186
210
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
187
211
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
188
212
|
var gis_utils_ = __webpack_require__(7135);
|
|
189
|
-
// EXTERNAL MODULE: ./
|
|
190
|
-
var
|
|
191
|
-
|
|
192
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
193
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
194
|
-
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
195
|
-
;// CONCATENATED MODULE: ./src/webgl/hawkeye/HawkeyeViewModel.js
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
/*
|
|
200
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
201
|
-
* All rights reserved.
|
|
202
|
-
*/
|
|
203
|
-
//鹰眼逻辑类
|
|
204
|
-
class HawkeyeViewModel {
|
|
205
|
-
//鹰眼三维对象
|
|
206
|
-
|
|
207
|
-
constructor(scenceView, options) {
|
|
208
|
-
(0,defineProperty/* default */.Z)(this, "_overviewMap", null);
|
|
209
|
-
options.viewer = scenceView._viewer;
|
|
210
|
-
options.centerRectColor = Cesium.Color.fromCssColorString(options.centerColor || "#0000ff").withAlpha(options.centerColorAlpha || 0.5);
|
|
211
|
-
this.init(options);
|
|
212
|
-
}
|
|
213
|
-
init(options) {
|
|
214
|
-
// if(!options.layers) {
|
|
215
|
-
// let layers = [];
|
|
216
|
-
// options.viewer.imageryLayers._layers.forEach(function (layer) {
|
|
217
|
-
// layers.push(layer);
|
|
218
|
-
// });
|
|
219
|
-
// options.layers = layers;
|
|
220
|
-
// options.layers = new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
221
|
-
// url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
|
|
222
|
-
// });
|
|
223
|
-
// }
|
|
224
|
-
this._overviewMap = new Cesium.Kq3dOverviewMap(options);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
//显示
|
|
228
|
-
show() {
|
|
229
|
-
this._overviewMap.show = true;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
//隐藏
|
|
233
|
-
hide() {
|
|
234
|
-
this._overviewMap.show = false;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// 设置图层
|
|
238
|
-
setLayers(layers) {
|
|
239
|
-
if (Array.isArray(layers)) {
|
|
240
|
-
this._overviewMap._viewer.imageryLayers.removeAll();
|
|
241
|
-
layers.forEach(layer => {
|
|
242
|
-
this._overviewMap._viewer.imageryLayers.add(layer);
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
//销毁
|
|
248
|
-
destroy() {
|
|
249
|
-
this._overviewMap.destroy();
|
|
250
|
-
this._overviewMap = null;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
|
|
213
|
+
// EXTERNAL MODULE: ./src/webgl/hawkeye/HawkeyeViewModel.js
|
|
214
|
+
var HawkeyeViewModel = __webpack_require__(1162);
|
|
215
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
|
|
254
216
|
|
|
255
217
|
|
|
256
218
|
|
|
@@ -293,13 +255,12 @@ const __default__ = {
|
|
|
293
255
|
},
|
|
294
256
|
layers: Array
|
|
295
257
|
},
|
|
258
|
+
|
|
296
259
|
setup(__props, {
|
|
297
260
|
expose: __expose
|
|
298
261
|
}) {
|
|
299
262
|
const props = __props;
|
|
300
|
-
let viewModel = null;
|
|
301
|
-
|
|
302
|
-
// 获取组件传参
|
|
263
|
+
let viewModel = null; // 获取组件传参
|
|
303
264
|
|
|
304
265
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
305
266
|
//父组件ScenceView初始化完成后执行
|
|
@@ -316,33 +277,39 @@ const __default__ = {
|
|
|
316
277
|
centerColorAlpha: props.centerColorAlpha,
|
|
317
278
|
layers: props.layers
|
|
318
279
|
};
|
|
319
|
-
viewModel = new HawkeyeViewModel(scenceView, options);
|
|
280
|
+
viewModel = new HawkeyeViewModel/* default */.Z(scenceView, options);
|
|
320
281
|
}
|
|
321
282
|
});
|
|
322
283
|
});
|
|
284
|
+
|
|
323
285
|
function show() {
|
|
324
286
|
viewModel && viewModel.show();
|
|
325
287
|
}
|
|
288
|
+
|
|
326
289
|
function hide() {
|
|
327
290
|
viewModel && viewModel.hide();
|
|
328
291
|
}
|
|
292
|
+
|
|
329
293
|
function setLayers(layers) {
|
|
330
294
|
viewModel && viewModel.setLayers(layers);
|
|
331
|
-
}
|
|
295
|
+
} // 销毁
|
|
296
|
+
|
|
332
297
|
|
|
333
|
-
// 销毁
|
|
334
298
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
335
299
|
viewModel && viewModel.destroy();
|
|
336
300
|
});
|
|
301
|
+
|
|
337
302
|
__expose({
|
|
338
303
|
show,
|
|
339
304
|
hide,
|
|
340
305
|
setLayers
|
|
341
306
|
});
|
|
307
|
+
|
|
342
308
|
return (_ctx, _cache) => {
|
|
343
309
|
return null;
|
|
344
310
|
};
|
|
345
311
|
}
|
|
312
|
+
|
|
346
313
|
}));
|
|
347
314
|
;// CONCATENATED MODULE: ./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
|
|
348
315
|
|
|
@@ -364,11 +331,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
364
331
|
|
|
365
332
|
|
|
366
333
|
|
|
334
|
+
|
|
367
335
|
Hawkeye.install = (Vue, opts) => {
|
|
368
336
|
init_js_default()(Vue, opts);
|
|
369
337
|
Vue.component(Hawkeye.name, Hawkeye);
|
|
370
338
|
};
|
|
371
339
|
|
|
340
|
+
|
|
372
341
|
}();
|
|
373
342
|
/******/ return __webpack_exports__;
|
|
374
343
|
/******/ })()
|
package/headertemp/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7997__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -116,7 +116,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
116
116
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
117
117
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
118
118
|
var util_ = __webpack_require__(3458);
|
|
119
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/headertemp/HeaderTemp.vue?vue&type=script&setup=true&lang=js
|
|
119
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/headertemp/HeaderTemp.vue?vue&type=script&setup=true&lang=js
|
|
120
120
|
|
|
121
121
|
const _hoisted_1 = {
|
|
122
122
|
class: "kq-control-header-temp"
|
|
@@ -156,23 +156,24 @@ const __default__ = {
|
|
|
156
156
|
default: true
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
+
|
|
159
160
|
setup(__props, {
|
|
160
161
|
expose: __expose
|
|
161
162
|
}) {
|
|
162
163
|
const props = __props;
|
|
163
|
-
const proxy = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
164
|
-
|
|
165
|
-
// 获取组件传参
|
|
166
|
-
|
|
164
|
+
const proxy = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); // 获取组件传参
|
|
167
165
|
// 图标组件
|
|
166
|
+
|
|
168
167
|
let iconBtn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
169
168
|
let isCollapse = props.isCollapse;
|
|
170
169
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
171
170
|
iconBtn.value = props.headerTempIcon;
|
|
172
171
|
let dom = proxy.parent.vnode.el;
|
|
172
|
+
|
|
173
173
|
if (!props.isRight) {
|
|
174
174
|
(0,util_.addClass)(dom, ["kq-is-show", "kq-is-left"]);
|
|
175
175
|
}
|
|
176
|
+
|
|
176
177
|
if (isCollapse) {
|
|
177
178
|
if (props.showShadow) {
|
|
178
179
|
(0,util_.addClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
@@ -190,12 +191,12 @@ const __default__ = {
|
|
|
190
191
|
(0,util_.addClass)(dom, "kq-is-show");
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
|
-
});
|
|
194
|
+
}); // 图标按钮点击事件
|
|
194
195
|
|
|
195
|
-
// 图标按钮点击事件
|
|
196
196
|
function btnClick() {
|
|
197
197
|
isCollapse = !isCollapse;
|
|
198
198
|
let dom = proxy.parent.vnode.el;
|
|
199
|
+
|
|
199
200
|
if (isCollapse) {
|
|
200
201
|
// 折叠
|
|
201
202
|
if (props.showShadow) {
|
|
@@ -216,22 +217,30 @@ const __default__ = {
|
|
|
216
217
|
}
|
|
217
218
|
}
|
|
218
219
|
}
|
|
220
|
+
|
|
219
221
|
__expose({
|
|
220
222
|
btnClick
|
|
221
223
|
});
|
|
224
|
+
|
|
222
225
|
return (_ctx, _cache) => {
|
|
223
226
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
224
|
-
|
|
227
|
+
|
|
228
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("h4", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(__props.headerTempTitle), 1
|
|
229
|
+
/* TEXT */
|
|
230
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
225
231
|
class: "_btn kq-control-header-temp_btn",
|
|
226
232
|
onClick: btnClick
|
|
227
233
|
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
|
|
228
234
|
size: 16
|
|
229
235
|
}, {
|
|
230
236
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(iconBtn))))]),
|
|
231
|
-
_: 1
|
|
237
|
+
_: 1
|
|
238
|
+
/* STABLE */
|
|
239
|
+
|
|
232
240
|
})])]);
|
|
233
241
|
};
|
|
234
242
|
}
|
|
243
|
+
|
|
235
244
|
}));
|
|
236
245
|
;// CONCATENATED MODULE: ./src/webgl/headertemp/HeaderTemp.vue?vue&type=script&setup=true&lang=js
|
|
237
246
|
|
|
@@ -252,11 +261,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
252
261
|
*/
|
|
253
262
|
|
|
254
263
|
|
|
264
|
+
|
|
255
265
|
HeaderTemp.install = (Vue, opts) => {
|
|
256
266
|
init_js_default()(Vue, opts);
|
|
257
267
|
Vue.component(HeaderTemp.name, HeaderTemp);
|
|
258
268
|
};
|
|
259
269
|
|
|
270
|
+
|
|
260
271
|
}();
|
|
261
272
|
/******/ return __webpack_exports__;
|
|
262
273
|
/******/ })()
|