ecinc-cloud-wappaio 9.7.115 → 9.7.117
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/lib/ecwappaio.common.js +62 -48
- package/lib/ecwappaio.umd.js +58 -44
- package/lib/ecwappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecwappaio.common.js
CHANGED
|
@@ -172095,7 +172095,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-d0667390]:export{stdMenuBgcolo
|
|
|
172095
172095
|
|
|
172096
172096
|
/***/ }),
|
|
172097
172097
|
|
|
172098
|
-
/***/
|
|
172098
|
+
/***/ 36682:
|
|
172099
172099
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
172100
172100
|
|
|
172101
172101
|
"use strict";
|
|
@@ -172109,7 +172109,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
172109
172109
|
|
|
172110
172110
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
172111
172111
|
// Module
|
|
172112
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
172112
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-59b2b120]:export{stdMenuBgcolor:var(--lmBgColor);stdMenuHover:var(--lmBgColorActive)!important;stdMenuText:var(--lmTextColor)!important;stdMenuAcitveText:var(--lmTextColorActive)!important;stdSubMenuBgcolor:var(--lmBgColor);stdSubMenuHover:hsla(193,8%,67%,.42);stdSubMenuActiveText:var(--lmTextColorActive)!important;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:var(--subjectColor)}.panel-left[data-v-59b2b120]{border:1px solid #d8dce5;float:left;width:240px;height:calc(100vh - 82px - var(--headerHeight, 60px))!important}.hasTagsView .panel-left[data-v-59b2b120]{height:calc(100vh - 132px - var(--headerHeight, 60px))!important}.hideTopMenus-app-main .panel-left[data-v-59b2b120]{height:calc(100vh - 50px - var(--headerHeight, 60px))!important}.panel-right[data-v-59b2b120]{float:left;width:calc(100% - 250px);margin-left:10px}.lrlayout[data-v-59b2b120]{overflow:hidden}", ""]);
|
|
172113
172113
|
// Exports
|
|
172114
172114
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
172115
172115
|
|
|
@@ -175886,7 +175886,7 @@ module.exports = function defineDataProperty(
|
|
|
175886
175886
|
|
|
175887
175887
|
|
|
175888
175888
|
exports.utils = __webpack_require__(87626);
|
|
175889
|
-
exports.Cipher = __webpack_require__(
|
|
175889
|
+
exports.Cipher = __webpack_require__(60427);
|
|
175890
175890
|
exports.DES = __webpack_require__(82211);
|
|
175891
175891
|
exports.CBC = __webpack_require__(3389);
|
|
175892
175892
|
exports.EDE = __webpack_require__(65279);
|
|
@@ -175967,7 +175967,7 @@ proto._update = function _update(inp, inOff, out, outOff) {
|
|
|
175967
175967
|
|
|
175968
175968
|
/***/ }),
|
|
175969
175969
|
|
|
175970
|
-
/***/
|
|
175970
|
+
/***/ 60427:
|
|
175971
175971
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
175972
175972
|
|
|
175973
175973
|
"use strict";
|
|
@@ -176127,7 +176127,7 @@ var assert = __webpack_require__(43349);
|
|
|
176127
176127
|
var inherits = __webpack_require__(56698);
|
|
176128
176128
|
|
|
176129
176129
|
var utils = __webpack_require__(87626);
|
|
176130
|
-
var Cipher = __webpack_require__(
|
|
176130
|
+
var Cipher = __webpack_require__(60427);
|
|
176131
176131
|
|
|
176132
176132
|
function DESState() {
|
|
176133
176133
|
this.tmp = new Array(2);
|
|
@@ -176284,7 +176284,7 @@ DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) {
|
|
|
176284
176284
|
var assert = __webpack_require__(43349);
|
|
176285
176285
|
var inherits = __webpack_require__(56698);
|
|
176286
176286
|
|
|
176287
|
-
var Cipher = __webpack_require__(
|
|
176287
|
+
var Cipher = __webpack_require__(60427);
|
|
176288
176288
|
var DES = __webpack_require__(82211);
|
|
176289
176289
|
|
|
176290
176290
|
function EDEState(type, key) {
|
|
@@ -258750,19 +258750,19 @@ var update = add("d609f322", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
258750
258750
|
|
|
258751
258751
|
/***/ }),
|
|
258752
258752
|
|
|
258753
|
-
/***/
|
|
258753
|
+
/***/ 82808:
|
|
258754
258754
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
258755
258755
|
|
|
258756
258756
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
258757
258757
|
|
|
258758
258758
|
// load the styles
|
|
258759
|
-
var content = __webpack_require__(
|
|
258759
|
+
var content = __webpack_require__(36682);
|
|
258760
258760
|
if(content.__esModule) content = content.default;
|
|
258761
258761
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
258762
258762
|
if(content.locals) module.exports = content.locals;
|
|
258763
258763
|
// add the styles to the DOM
|
|
258764
258764
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
258765
|
-
var update = add("
|
|
258765
|
+
var update = add("14aea0fa", content, true, {"sourceMap":false,"shadowMode":false});
|
|
258766
258766
|
|
|
258767
258767
|
/***/ }),
|
|
258768
258768
|
|
|
@@ -277465,15 +277465,15 @@ InnerTable_src.install = function (Vue) {
|
|
|
277465
277465
|
Vue.component(InnerTable_src.name, InnerTable_src);
|
|
277466
277466
|
};
|
|
277467
277467
|
/* harmony default export */ var InnerTable = (InnerTable_src);
|
|
277468
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=template&id=
|
|
277469
|
-
var
|
|
277468
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=template&id=59b2b120&scoped=true
|
|
277469
|
+
var srcvue_type_template_id_59b2b120_scoped_true_render = function render() {
|
|
277470
277470
|
var _vm = this,
|
|
277471
277471
|
_c = _vm._self._c;
|
|
277472
277472
|
return _c('div', {
|
|
277473
277473
|
staticClass: "app-container lrlayout"
|
|
277474
277474
|
}, [_vm._t("default")], 2);
|
|
277475
277475
|
};
|
|
277476
|
-
var
|
|
277476
|
+
var srcvue_type_template_id_59b2b120_scoped_true_staticRenderFns = [];
|
|
277477
277477
|
|
|
277478
277478
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=script&lang=js
|
|
277479
277479
|
/* harmony default export */ var LRLayout_srcvue_type_script_lang_js = ({
|
|
@@ -277481,52 +277481,66 @@ var srcvue_type_template_id_3f887c88_scoped_true_staticRenderFns = [];
|
|
|
277481
277481
|
props: {},
|
|
277482
277482
|
data: function data() {
|
|
277483
277483
|
return {
|
|
277484
|
-
// 标记是否在本组件挂载期间从父容器上移除了 app-container,供 beforeDestroy 还原
|
|
277485
|
-
removedParentAppContainer: false,
|
|
277486
277484
|
// 标记是否设置过 CSS 变量 --headerHeight,供 beforeDestroy 清理
|
|
277487
277485
|
headerHeightSet: false
|
|
277488
277486
|
};
|
|
277489
277487
|
},
|
|
277490
277488
|
mounted: function mounted() {
|
|
277491
|
-
|
|
277492
|
-
//
|
|
277493
|
-
|
|
277494
|
-
|
|
277495
|
-
|
|
277496
|
-
|
|
277497
|
-
|
|
277498
|
-
|
|
277499
|
-
|
|
277500
|
-
|
|
277501
|
-
|
|
277502
|
-
|
|
277503
|
-
if (headerEl) {
|
|
277504
|
-
var headerH = headerEl.getBoundingClientRect().height;
|
|
277505
|
-
if (headerH && Math.round(headerH) !== 60) {
|
|
277506
|
-
this.$el.style.setProperty('--headerHeight', headerH + 'px');
|
|
277507
|
-
this.headerHeightSet = true;
|
|
277508
|
-
}
|
|
277509
|
-
}
|
|
277489
|
+
var _this = this;
|
|
277490
|
+
// 使用 setTimeout 确保 Vue 的 DOM patch 完全完成后再检测
|
|
277491
|
+
this._mountTimer = setTimeout(function () {
|
|
277492
|
+
_this.setHeaderHeightVar();
|
|
277493
|
+
}, 100);
|
|
277494
|
+
},
|
|
277495
|
+
activated: function activated() {
|
|
277496
|
+
var _this2 = this;
|
|
277497
|
+
// keep-alive 激活时,重新执行设置逻辑
|
|
277498
|
+
this._mountTimer = setTimeout(function () {
|
|
277499
|
+
_this2.setHeaderHeightVar();
|
|
277500
|
+
}, 100);
|
|
277510
277501
|
},
|
|
277511
277502
|
beforeDestroy: function beforeDestroy() {
|
|
277512
|
-
if (this.
|
|
277513
|
-
this.
|
|
277503
|
+
if (this._mountTimer) {
|
|
277504
|
+
clearTimeout(this._mountTimer);
|
|
277505
|
+
this._mountTimer = null;
|
|
277514
277506
|
}
|
|
277515
|
-
this.
|
|
277516
|
-
|
|
277517
|
-
|
|
277518
|
-
//
|
|
277519
|
-
if (this.
|
|
277520
|
-
this
|
|
277507
|
+
this.clearHeaderHeightVar();
|
|
277508
|
+
},
|
|
277509
|
+
deactivated: function deactivated() {
|
|
277510
|
+
// keep-alive 停用时,清理状态
|
|
277511
|
+
if (this._mountTimer) {
|
|
277512
|
+
clearTimeout(this._mountTimer);
|
|
277513
|
+
this._mountTimer = null;
|
|
277514
|
+
}
|
|
277515
|
+
this.clearHeaderHeightVar();
|
|
277516
|
+
},
|
|
277517
|
+
methods: {
|
|
277518
|
+
setHeaderHeightVar: function setHeaderHeightVar() {
|
|
277519
|
+
// 检测 .header-container 高度,设置 CSS 变量 --headerHeight 到本组件根 div
|
|
277520
|
+
var headerEl = typeof document !== 'undefined' ? document.querySelector('.header-container') : null;
|
|
277521
|
+
if (headerEl) {
|
|
277522
|
+
var headerH = headerEl.getBoundingClientRect().height;
|
|
277523
|
+
// 总是设置变量,确保 DOM 中 --headerHeight 有定义
|
|
277524
|
+
if (headerH) {
|
|
277525
|
+
this.$el.style.setProperty('--headerHeight', headerH + 'px');
|
|
277526
|
+
this.headerHeightSet = true;
|
|
277527
|
+
}
|
|
277528
|
+
}
|
|
277529
|
+
},
|
|
277530
|
+
clearHeaderHeightVar: function clearHeaderHeightVar() {
|
|
277531
|
+
// 清理 CSS 变量 --headerHeight
|
|
277532
|
+
if (this.headerHeightSet && this.$el && this.$el.style) {
|
|
277533
|
+
this.$el.style.removeProperty('--headerHeight');
|
|
277534
|
+
}
|
|
277535
|
+
this.headerHeightSet = false;
|
|
277521
277536
|
}
|
|
277522
|
-
this.headerHeightSet = false;
|
|
277523
277537
|
}
|
|
277524
277538
|
});
|
|
277525
277539
|
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue?vue&type=script&lang=js
|
|
277526
277540
|
/* harmony default export */ var ecwapp_LRLayout_srcvue_type_script_lang_js = (LRLayout_srcvue_type_script_lang_js);
|
|
277527
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=
|
|
277528
|
-
var
|
|
277529
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=
|
|
277541
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=59b2b120&prod&lang=scss&scoped=true
|
|
277542
|
+
var srcvue_type_style_index_0_id_59b2b120_prod_lang_scss_scoped_true = __webpack_require__(82808);
|
|
277543
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=59b2b120&prod&lang=scss&scoped=true
|
|
277530
277544
|
|
|
277531
277545
|
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue
|
|
277532
277546
|
|
|
@@ -277539,11 +277553,11 @@ var srcvue_type_style_index_0_id_3f887c88_prod_lang_scss_scoped_true = __webpack
|
|
|
277539
277553
|
|
|
277540
277554
|
var LRLayout_src_component = (0,componentNormalizer/* default */.A)(
|
|
277541
277555
|
ecwapp_LRLayout_srcvue_type_script_lang_js,
|
|
277542
|
-
|
|
277543
|
-
|
|
277556
|
+
srcvue_type_template_id_59b2b120_scoped_true_render,
|
|
277557
|
+
srcvue_type_template_id_59b2b120_scoped_true_staticRenderFns,
|
|
277544
277558
|
false,
|
|
277545
277559
|
null,
|
|
277546
|
-
"
|
|
277560
|
+
"59b2b120",
|
|
277547
277561
|
null
|
|
277548
277562
|
|
|
277549
277563
|
)
|
package/lib/ecwappaio.umd.js
CHANGED
|
@@ -172105,7 +172105,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-d0667390]:export{stdMenuBgcolo
|
|
|
172105
172105
|
|
|
172106
172106
|
/***/ }),
|
|
172107
172107
|
|
|
172108
|
-
/***/
|
|
172108
|
+
/***/ 8124:
|
|
172109
172109
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
172110
172110
|
|
|
172111
172111
|
"use strict";
|
|
@@ -172119,7 +172119,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
172119
172119
|
|
|
172120
172120
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
172121
172121
|
// Module
|
|
172122
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
172122
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-59b2b120]:export{stdMenuBgcolor:var(--lmBgColor);stdMenuHover:var(--lmBgColorActive)!important;stdMenuText:var(--lmTextColor)!important;stdMenuAcitveText:var(--lmTextColorActive)!important;stdSubMenuBgcolor:var(--lmBgColor);stdSubMenuHover:hsla(193,8%,67%,.42);stdSubMenuActiveText:var(--lmTextColorActive)!important;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:var(--subjectColor)}.panel-left[data-v-59b2b120]{border:1px solid #d8dce5;float:left;width:240px;height:calc(100vh - 82px - var(--headerHeight, 60px))!important}.hasTagsView .panel-left[data-v-59b2b120]{height:calc(100vh - 132px - var(--headerHeight, 60px))!important}.hideTopMenus-app-main .panel-left[data-v-59b2b120]{height:calc(100vh - 50px - var(--headerHeight, 60px))!important}.panel-right[data-v-59b2b120]{float:left;width:calc(100% - 250px);margin-left:10px}.lrlayout[data-v-59b2b120]{overflow:hidden}", ""]);
|
|
172123
172123
|
// Exports
|
|
172124
172124
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
172125
172125
|
|
|
@@ -258760,19 +258760,19 @@ var update = add("b1016d66", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
258760
258760
|
|
|
258761
258761
|
/***/ }),
|
|
258762
258762
|
|
|
258763
|
-
/***/
|
|
258763
|
+
/***/ 83583:
|
|
258764
258764
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
258765
258765
|
|
|
258766
258766
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
258767
258767
|
|
|
258768
258768
|
// load the styles
|
|
258769
|
-
var content = __webpack_require__(
|
|
258769
|
+
var content = __webpack_require__(8124);
|
|
258770
258770
|
if(content.__esModule) content = content.default;
|
|
258771
258771
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
258772
258772
|
if(content.locals) module.exports = content.locals;
|
|
258773
258773
|
// add the styles to the DOM
|
|
258774
258774
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
258775
|
-
var update = add("
|
|
258775
|
+
var update = add("6afb4fe1", content, true, {"sourceMap":false,"shadowMode":false});
|
|
258776
258776
|
|
|
258777
258777
|
/***/ }),
|
|
258778
258778
|
|
|
@@ -277483,15 +277483,15 @@ InnerTable_src.install = function (Vue) {
|
|
|
277483
277483
|
Vue.component(InnerTable_src.name, InnerTable_src);
|
|
277484
277484
|
};
|
|
277485
277485
|
/* harmony default export */ var InnerTable = (InnerTable_src);
|
|
277486
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=template&id=
|
|
277487
|
-
var
|
|
277486
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=template&id=59b2b120&scoped=true
|
|
277487
|
+
var srcvue_type_template_id_59b2b120_scoped_true_render = function render() {
|
|
277488
277488
|
var _vm = this,
|
|
277489
277489
|
_c = _vm._self._c;
|
|
277490
277490
|
return _c('div', {
|
|
277491
277491
|
staticClass: "app-container lrlayout"
|
|
277492
277492
|
}, [_vm._t("default")], 2);
|
|
277493
277493
|
};
|
|
277494
|
-
var
|
|
277494
|
+
var srcvue_type_template_id_59b2b120_scoped_true_staticRenderFns = [];
|
|
277495
277495
|
|
|
277496
277496
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=script&lang=js
|
|
277497
277497
|
/* harmony default export */ var LRLayout_srcvue_type_script_lang_js = ({
|
|
@@ -277499,52 +277499,66 @@ var srcvue_type_template_id_3f887c88_scoped_true_staticRenderFns = [];
|
|
|
277499
277499
|
props: {},
|
|
277500
277500
|
data: function data() {
|
|
277501
277501
|
return {
|
|
277502
|
-
// 标记是否在本组件挂载期间从父容器上移除了 app-container,供 beforeDestroy 还原
|
|
277503
|
-
removedParentAppContainer: false,
|
|
277504
277502
|
// 标记是否设置过 CSS 变量 --headerHeight,供 beforeDestroy 清理
|
|
277505
277503
|
headerHeightSet: false
|
|
277506
277504
|
};
|
|
277507
277505
|
},
|
|
277508
277506
|
mounted: function mounted() {
|
|
277509
|
-
|
|
277510
|
-
//
|
|
277511
|
-
|
|
277512
|
-
|
|
277513
|
-
|
|
277514
|
-
|
|
277515
|
-
|
|
277516
|
-
|
|
277517
|
-
|
|
277518
|
-
|
|
277519
|
-
|
|
277520
|
-
|
|
277521
|
-
if (headerEl) {
|
|
277522
|
-
var headerH = headerEl.getBoundingClientRect().height;
|
|
277523
|
-
if (headerH && Math.round(headerH) !== 60) {
|
|
277524
|
-
this.$el.style.setProperty('--headerHeight', headerH + 'px');
|
|
277525
|
-
this.headerHeightSet = true;
|
|
277526
|
-
}
|
|
277527
|
-
}
|
|
277507
|
+
var _this = this;
|
|
277508
|
+
// 使用 setTimeout 确保 Vue 的 DOM patch 完全完成后再检测
|
|
277509
|
+
this._mountTimer = setTimeout(function () {
|
|
277510
|
+
_this.setHeaderHeightVar();
|
|
277511
|
+
}, 100);
|
|
277512
|
+
},
|
|
277513
|
+
activated: function activated() {
|
|
277514
|
+
var _this2 = this;
|
|
277515
|
+
// keep-alive 激活时,重新执行设置逻辑
|
|
277516
|
+
this._mountTimer = setTimeout(function () {
|
|
277517
|
+
_this2.setHeaderHeightVar();
|
|
277518
|
+
}, 100);
|
|
277528
277519
|
},
|
|
277529
277520
|
beforeDestroy: function beforeDestroy() {
|
|
277530
|
-
if (this.
|
|
277531
|
-
this.
|
|
277521
|
+
if (this._mountTimer) {
|
|
277522
|
+
clearTimeout(this._mountTimer);
|
|
277523
|
+
this._mountTimer = null;
|
|
277532
277524
|
}
|
|
277533
|
-
this.
|
|
277534
|
-
|
|
277535
|
-
|
|
277536
|
-
//
|
|
277537
|
-
if (this.
|
|
277538
|
-
this
|
|
277525
|
+
this.clearHeaderHeightVar();
|
|
277526
|
+
},
|
|
277527
|
+
deactivated: function deactivated() {
|
|
277528
|
+
// keep-alive 停用时,清理状态
|
|
277529
|
+
if (this._mountTimer) {
|
|
277530
|
+
clearTimeout(this._mountTimer);
|
|
277531
|
+
this._mountTimer = null;
|
|
277532
|
+
}
|
|
277533
|
+
this.clearHeaderHeightVar();
|
|
277534
|
+
},
|
|
277535
|
+
methods: {
|
|
277536
|
+
setHeaderHeightVar: function setHeaderHeightVar() {
|
|
277537
|
+
// 检测 .header-container 高度,设置 CSS 变量 --headerHeight 到本组件根 div
|
|
277538
|
+
var headerEl = typeof document !== 'undefined' ? document.querySelector('.header-container') : null;
|
|
277539
|
+
if (headerEl) {
|
|
277540
|
+
var headerH = headerEl.getBoundingClientRect().height;
|
|
277541
|
+
// 总是设置变量,确保 DOM 中 --headerHeight 有定义
|
|
277542
|
+
if (headerH) {
|
|
277543
|
+
this.$el.style.setProperty('--headerHeight', headerH + 'px');
|
|
277544
|
+
this.headerHeightSet = true;
|
|
277545
|
+
}
|
|
277546
|
+
}
|
|
277547
|
+
},
|
|
277548
|
+
clearHeaderHeightVar: function clearHeaderHeightVar() {
|
|
277549
|
+
// 清理 CSS 变量 --headerHeight
|
|
277550
|
+
if (this.headerHeightSet && this.$el && this.$el.style) {
|
|
277551
|
+
this.$el.style.removeProperty('--headerHeight');
|
|
277552
|
+
}
|
|
277553
|
+
this.headerHeightSet = false;
|
|
277539
277554
|
}
|
|
277540
|
-
this.headerHeightSet = false;
|
|
277541
277555
|
}
|
|
277542
277556
|
});
|
|
277543
277557
|
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue?vue&type=script&lang=js
|
|
277544
277558
|
/* harmony default export */ var ecwapp_LRLayout_srcvue_type_script_lang_js = (LRLayout_srcvue_type_script_lang_js);
|
|
277545
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=
|
|
277546
|
-
var
|
|
277547
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=
|
|
277559
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=59b2b120&prod&lang=scss&scoped=true
|
|
277560
|
+
var srcvue_type_style_index_0_id_59b2b120_prod_lang_scss_scoped_true = __webpack_require__(83583);
|
|
277561
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue?vue&type=style&index=0&id=59b2b120&prod&lang=scss&scoped=true
|
|
277548
277562
|
|
|
277549
277563
|
;// CONCATENATED MODULE: ./packages/ecwapp/LRLayout/src/index.vue
|
|
277550
277564
|
|
|
@@ -277557,11 +277571,11 @@ var srcvue_type_style_index_0_id_3f887c88_prod_lang_scss_scoped_true = __webpack
|
|
|
277557
277571
|
|
|
277558
277572
|
var LRLayout_src_component = (0,componentNormalizer/* default */.A)(
|
|
277559
277573
|
ecwapp_LRLayout_srcvue_type_script_lang_js,
|
|
277560
|
-
|
|
277561
|
-
|
|
277574
|
+
srcvue_type_template_id_59b2b120_scoped_true_render,
|
|
277575
|
+
srcvue_type_template_id_59b2b120_scoped_true_staticRenderFns,
|
|
277562
277576
|
false,
|
|
277563
277577
|
null,
|
|
277564
|
-
"
|
|
277578
|
+
"59b2b120",
|
|
277565
277579
|
null
|
|
277566
277580
|
|
|
277567
277581
|
)
|