eoss-ui 0.7.32 → 0.7.34

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.
@@ -60577,8 +60577,8 @@ login_src_main.install = function (Vue) {
60577
60577
  };
60578
60578
 
60579
60579
  /* harmony default export */ var login = (login_src_main);
60580
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=1f0f487d&
60581
- var mainvue_type_template_id_1f0f487d_render = function () {
60580
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=1439fd41&
60581
+ var mainvue_type_template_id_1439fd41_render = function () {
60582
60582
  var _vm = this
60583
60583
  var _h = _vm.$createElement
60584
60584
  var _c = _vm._self._c || _h
@@ -60640,7 +60640,7 @@ var mainvue_type_template_id_1f0f487d_render = function () {
60640
60640
  key: item.appCode || item.id || item.name || index,
60641
60641
  attrs: {
60642
60642
  visible: item.visible,
60643
- title: item.name,
60643
+ title: item.name || item.title,
60644
60644
  width: item.width,
60645
60645
  height: item.height,
60646
60646
  size: item.size,
@@ -60692,14 +60692,14 @@ var mainvue_type_template_id_1f0f487d_render = function () {
60692
60692
  )
60693
60693
  : _vm._e()
60694
60694
  }
60695
- var mainvue_type_template_id_1f0f487d_staticRenderFns = []
60696
- mainvue_type_template_id_1f0f487d_render._withStripped = true
60695
+ var mainvue_type_template_id_1439fd41_staticRenderFns = []
60696
+ mainvue_type_template_id_1439fd41_render._withStripped = true
60697
60697
 
60698
60698
 
60699
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=1f0f487d&
60699
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=1439fd41&
60700
60700
 
60701
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=772635c6&scoped=true&
60702
- var simplicityvue_type_template_id_772635c6_scoped_true_render = function () {
60701
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=2bc408e2&scoped=true&
60702
+ var simplicityvue_type_template_id_2bc408e2_scoped_true_render = function () {
60703
60703
  var _vm = this
60704
60704
  var _h = _vm.$createElement
60705
60705
  var _c = _vm._self._c || _h
@@ -61409,11 +61409,11 @@ var simplicityvue_type_template_id_772635c6_scoped_true_render = function () {
61409
61409
  ),
61410
61410
  ])
61411
61411
  }
61412
- var simplicityvue_type_template_id_772635c6_scoped_true_staticRenderFns = []
61413
- simplicityvue_type_template_id_772635c6_scoped_true_render._withStripped = true
61412
+ var simplicityvue_type_template_id_2bc408e2_scoped_true_staticRenderFns = []
61413
+ simplicityvue_type_template_id_2bc408e2_scoped_true_render._withStripped = true
61414
61414
 
61415
61415
 
61416
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=772635c6&scoped=true&
61416
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=2bc408e2&scoped=true&
61417
61417
 
61418
61418
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
61419
61419
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -68508,32 +68508,29 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
68508
68508
  handleRefresh: function handleRefresh(arg) {
68509
68509
  var i = arg && arg != true && arg !== 'pageData' ? utils_util["a" /* default */].indexOfObj(this.tabs, arg, 'appCode,code,id,url') : utils_util["a" /* default */].indexOfObj(this.tabs, this.activeName, 'id');
68510
68510
  var tab = this.tabs[i];
68511
- if (tab.method === 'iframe') {
68512
- tab.url = utils_util["a" /* default */].handlerUrl(tab.url);
68513
- } else {
68514
- var _tab6 = this.tabs[i];
68515
- if (_tab6.method === 'iframe') {
68516
- if (arg && arg === 'pageData') {
68517
- var iframe = document.getElementById(_tab6.id || _tab6.appCode);
68518
- iframe.contentWindow.postMessage({ method: 'refresh' }, _tab6.url);
68519
- } else {
68520
- this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab6.url));
68521
- }
68511
+ if (isIE || tab.method === 'iframe') {
68512
+ if (arg && arg === 'pageData') {
68513
+ var iframe = document.getElementById(tab.id || tab.appCode);
68514
+ iframe.contentWindow.postMessage({ method: 'refresh' }, tab.url);
68515
+ } else {
68516
+ this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(tab.url));
68522
68517
  }
68523
- if (_tab6.method === 'wujie' && _tab6.appCode) {
68524
- if (arg && arg === 'pageData') {
68525
- external_wujie_vue2_default.a.$emit('refresh', _tab6);
68526
- } else {
68527
- window.document.querySelector('iframe[name=' + _tab6.appCode + ']').contentWindow.location.reload(true);
68528
- }
68518
+ return;
68519
+ }
68520
+ if (tab.method === 'wujie' && tab.appCode) {
68521
+ if (arg && arg === 'pageData') {
68522
+ external_wujie_vue2_default.a.$emit('refresh', tab);
68523
+ } else {
68524
+ window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
68529
68525
  }
68530
- if (_tab6.method === 'router') {
68531
- if (arg && arg === 'pageData') {
68532
- var bus = this.bus || this.$root.Bus;
68533
- bus.$emit('refresh', _tab6);
68534
- } else {
68535
- this.$set(this.tabs[i], 'keys', utils_util["a" /* default */].uuid());
68536
- }
68526
+ return;
68527
+ }
68528
+ if (tab.method === 'router') {
68529
+ if (arg && arg === 'pageData') {
68530
+ var bus = this.bus || this.$root.Bus;
68531
+ bus.$emit('refresh', tab);
68532
+ } else {
68533
+ this.$set(this.tabs[i], 'keys', utils_util["a" /* default */].uuid());
68537
68534
  }
68538
68535
  }
68539
68536
  },
@@ -68874,16 +68871,16 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
68874
68871
  this.$set(tab, 'url', utils_util["a" /* default */].handlerUrl(tab.url, param));
68875
68872
  this.tabs.splice(n + 1, 0, tab);
68876
68873
  } else {
68877
- var _tab7 = this.tabs[i];
68878
- if (_tab7.method === 'iframe') {
68879
- this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab7.url, param));
68874
+ var _tab6 = this.tabs[i];
68875
+ if (_tab6.method === 'iframe') {
68876
+ this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab6.url, param));
68880
68877
  }
68881
- if (_tab7.method === 'wujie' && _tab7.appCode) {
68882
- var url = param ? utils_util["a" /* default */].handlerUrl(_tab7.url, param) : _tab7.url;
68878
+ if (_tab6.method === 'wujie' && _tab6.appCode) {
68879
+ var url = param ? utils_util["a" /* default */].handlerUrl(_tab6.url, param) : _tab6.url;
68883
68880
  if (reload || param) {
68884
- _tab7.url = '';
68881
+ _tab6.url = '';
68885
68882
  this.$nextTick(function () {
68886
- _tab7.url = url;
68883
+ _tab6.url = url;
68887
68884
  });
68888
68885
  }
68889
68886
  // if (param) {
@@ -68896,8 +68893,8 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
68896
68893
  // .contentWindow.location.reload(true);
68897
68894
  // }
68898
68895
  }
68899
- if (_tab7.method === 'router') {
68900
- this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab7.url, param));
68896
+ if (_tab6.method === 'router') {
68897
+ this.$set(this.tabs[i], 'url', utils_util["a" /* default */].handlerUrl(_tab6.url, param));
68901
68898
  this.$set(this.tabs[i], 'keys', utils_util["a" /* default */].uuid());
68902
68899
  }
68903
68900
  }
@@ -68961,11 +68958,11 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
68961
68958
 
68962
68959
  var simplicity_component = normalizeComponent(
68963
68960
  src_simplicityvue_type_script_lang_js_,
68964
- simplicityvue_type_template_id_772635c6_scoped_true_render,
68965
- simplicityvue_type_template_id_772635c6_scoped_true_staticRenderFns,
68961
+ simplicityvue_type_template_id_2bc408e2_scoped_true_render,
68962
+ simplicityvue_type_template_id_2bc408e2_scoped_true_staticRenderFns,
68966
68963
  false,
68967
68964
  null,
68968
- "772635c6",
68965
+ "2bc408e2",
68969
68966
  null
68970
68967
 
68971
68968
  )
@@ -72978,6 +72975,8 @@ var default_component = normalizeComponent(
72978
72975
 
72979
72976
  /* harmony default export */ var src_default = (default_component.exports);
72980
72977
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
72978
+ var main_src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
72979
+
72981
72980
  function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
72982
72981
 
72983
72982
  //
@@ -73318,7 +73317,8 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73318
73317
  height = _ref$height === undefined ? '100%' : _ref$height,
73319
73318
  appCode = _ref.appCode,
73320
73319
  id = _ref.id,
73321
- size = _ref.size;
73320
+ size = _ref.size,
73321
+ config = main_src_mainvue_type_script_lang_js_objectWithoutProperties(_ref, ['url', 'name', 'width', 'height', 'appCode', 'id', 'size']);
73322
73322
 
73323
73323
  id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
73324
73324
  var openModel = utils_util["a" /* default */].getStorage('openModel');
@@ -73333,7 +73333,7 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73333
73333
  src = pathname + url.replace('./', '/');
73334
73334
  }
73335
73335
  if (openModel && openModel == 'dialog') {
73336
- var _dialog = {
73336
+ var _dialog = main_src_mainvue_type_script_lang_js_extends({
73337
73337
  id: id,
73338
73338
  url: src,
73339
73339
  name: name,
@@ -73342,7 +73342,7 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73342
73342
  appCode: appCode,
73343
73343
  visible: false,
73344
73344
  size: size
73345
- };
73345
+ }, config);
73346
73346
  var n = this.dialogs.push(_dialog);
73347
73347
  this.$nextTick(function () {
73348
73348
  _this5.$set(_dialog, 'index', n - 1);
@@ -73464,7 +73464,7 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73464
73464
  handleIframeLoad: function handleIframeLoad(iframe, data) {
73465
73465
  iframe = iframe ? iframe : document.getElementById(data.appCode || data.id);
73466
73466
  var origin = new URL(iframe.src).origin;
73467
- iframe.contentWindow.postMessage(data, origin);
73467
+ iframe.contentWindow.postMessage(main_src_mainvue_type_script_lang_js_extends({}, data, { method: 'windowOpen' }), origin);
73468
73468
  },
73469
73469
 
73470
73470
 
@@ -73486,7 +73486,11 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73486
73486
  * @date 2024年9月7日
73487
73487
  **/
73488
73488
  handleClosed: function handleClosed(res, index) {
73489
- this.dialogs.splice(index, 1);
73489
+ var _this6 = this;
73490
+
73491
+ this.$nextTick(function () {
73492
+ _this6.dialogs.splice(index, 1);
73493
+ });
73490
73494
  },
73491
73495
 
73492
73496
  /**
@@ -73511,6 +73515,15 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73511
73515
  },
73512
73516
  beforeDestroy: function beforeDestroy() {
73513
73517
  window.removeEventListener('message', this.handleMessage);
73518
+ var bus = this.bus || this.$root.Bus;
73519
+ if (bus) {
73520
+ bus.$off('reLogin');
73521
+ bus.$off('refresh');
73522
+ bus.$off('windowOpen');
73523
+ bus.$off('windowClose');
73524
+ bus.$off('jumpMenu');
73525
+ bus.$off('emit');
73526
+ }
73514
73527
  external_wujie_vue2_default.a.bus.$off('reLogin');
73515
73528
  external_wujie_vue2_default.a.bus.$off('refresh');
73516
73529
  external_wujie_vue2_default.a.bus.$off('jumpMenu');
@@ -73529,8 +73542,8 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73529
73542
 
73530
73543
  var main_src_main_component = normalizeComponent(
73531
73544
  packages_main_src_mainvue_type_script_lang_js_,
73532
- mainvue_type_template_id_1f0f487d_render,
73533
- mainvue_type_template_id_1f0f487d_staticRenderFns,
73545
+ mainvue_type_template_id_1439fd41_render,
73546
+ mainvue_type_template_id_1439fd41_staticRenderFns,
73534
73547
  false,
73535
73548
  null,
73536
73549
  null,
@@ -94212,7 +94225,7 @@ if (typeof window !== 'undefined' && window.Vue) {
94212
94225
  }
94213
94226
 
94214
94227
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
94215
- version: '0.7.32',
94228
+ version: '0.7.34',
94216
94229
  install: install,
94217
94230
  Button: packages_button,
94218
94231
  ButtonGroup: button_group,