eoss-ui 0.7.30 → 0.7.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.
@@ -60564,8 +60564,8 @@ login_src_main.install = function (Vue) {
60564
60564
  };
60565
60565
 
60566
60566
  /* harmony default export */ var login = (login_src_main);
60567
- // 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=0d6a4fb9&
60568
- var mainvue_type_template_id_0d6a4fb9_render = function () {
60567
+ // 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=a5fa23da&
60568
+ var mainvue_type_template_id_a5fa23da_render = function () {
60569
60569
  var _vm = this
60570
60570
  var _h = _vm.$createElement
60571
60571
  var _c = _vm._self._c || _h
@@ -60679,11 +60679,11 @@ var mainvue_type_template_id_0d6a4fb9_render = function () {
60679
60679
  )
60680
60680
  : _vm._e()
60681
60681
  }
60682
- var mainvue_type_template_id_0d6a4fb9_staticRenderFns = []
60683
- mainvue_type_template_id_0d6a4fb9_render._withStripped = true
60682
+ var mainvue_type_template_id_a5fa23da_staticRenderFns = []
60683
+ mainvue_type_template_id_a5fa23da_render._withStripped = true
60684
60684
 
60685
60685
 
60686
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=0d6a4fb9&
60686
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a5fa23da&
60687
60687
 
60688
60688
  // 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=7b83b98f&scoped=true&
60689
60689
  var simplicityvue_type_template_id_7b83b98f_scoped_true_render = function () {
@@ -73282,16 +73282,15 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73282
73282
 
73283
73283
  var url = _ref.url,
73284
73284
  name = _ref.name,
73285
- width = _ref.width,
73286
- height = _ref.height,
73285
+ _ref$width = _ref.width,
73286
+ width = _ref$width === undefined ? '100%' : _ref$width,
73287
+ _ref$height = _ref.height,
73288
+ height = _ref$height === undefined ? '100%' : _ref$height,
73287
73289
  appCode = _ref.appCode,
73288
73290
  id = _ref.id,
73289
73291
  size = _ref.size;
73290
73292
 
73291
- if (!appCode && !id) {
73292
- console.error('参数错误,缺少appCode或者id');
73293
- return;
73294
- }
73293
+ id = id ? id : appCode ? undefined : 'iframe' + this.dialogs.length;
73295
73294
  var openModel = utils_util["a" /* default */].getStorage('openModel');
73296
73295
  var src = url;
73297
73296
  if (!utils_util["a" /* default */].startWith(url, ['http', '/'], true)) {
@@ -73304,7 +73303,7 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73304
73303
  src = pathname + url.replace('./', '/');
73305
73304
  }
73306
73305
  if (openModel && openModel == 'dialog') {
73307
- var dialog = {
73306
+ var _dialog = {
73308
73307
  id: id,
73309
73308
  url: src,
73310
73309
  name: name,
@@ -73314,12 +73313,12 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73314
73313
  visible: false,
73315
73314
  size: size
73316
73315
  };
73317
- var n = this.dialogs.push(dialog);
73316
+ var n = this.dialogs.push(_dialog);
73318
73317
  this.$nextTick(function () {
73319
- _this5.$set(dialog, 'index', n - 1);
73320
- _this5.$set(dialog, 'visible', true);
73318
+ _this5.$set(_dialog, 'index', n - 1);
73319
+ _this5.$set(_dialog, 'visible', true);
73321
73320
  });
73322
- return dialog;
73321
+ return _dialog;
73323
73322
  }
73324
73323
 
73325
73324
  if (name) {
@@ -73345,21 +73344,34 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73345
73344
  * @date 2024年9月7日
73346
73345
  **/
73347
73346
  winClose: function winClose(_ref2) {
73347
+ var _$refs$main;
73348
+
73348
73349
  var url = _ref2.url,
73349
73350
  appCode = _ref2.appCode,
73350
- id = _ref2.id;
73351
+ id = _ref2.id,
73352
+ index = _ref2.index,
73353
+ refresh = _ref2.refresh,
73354
+ jumpMenu = _ref2.jumpMenu;
73351
73355
 
73352
73356
  if (!appCode && !id) {
73353
73357
  console.error('参数错误,缺少appCode或者id');
73354
73358
  return;
73355
73359
  }
73356
- var dialog = this.dialogs.find(function (item) {
73357
- return item.url == url || item.appCode == appCode || item.id == id;
73358
- });
73359
- if (dialog) {
73360
- this.$set(dialog, 'visible', false);
73360
+ if (index) {
73361
+ this.$set(this.dialogs, 'visible', false);
73361
73362
  this.dialogs.splice(dialog.index, 1);
73363
+ } else {
73364
+ var _dialog2 = this.dialogs.find(function (item) {
73365
+ return item.url == url || item.appCode == appCode || item.id == id;
73366
+ });
73367
+
73368
+ if (_dialog2) {
73369
+ this.$set(_dialog2, 'visible', false);
73370
+ this.dialogs.splice(_dialog2.index, 1);
73371
+ }
73362
73372
  }
73373
+ refresh && this.$refs.main.handleRefresh(refresh);
73374
+ jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main = this.$refs.main).jumpMenu.apply(_$refs$main, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
73363
73375
  },
73364
73376
 
73365
73377
 
@@ -73369,17 +73381,11 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73369
73381
  * @date 2024年9月7日
73370
73382
  **/
73371
73383
  handleMessage: function handleMessage(e) {
73372
- var _$refs$main,
73373
- _this6 = this,
73374
- _$refs$main2,
73375
- _$refs$main3;
73384
+ var _$refs$main2;
73376
73385
 
73377
73386
  var _e$data = e.data,
73378
73387
  method = _e$data.method,
73379
73388
  args = _e$data.args;
73380
- var index = args.index,
73381
- refresh = args.refresh,
73382
- jumpMenu = args.jumpMenu;
73383
73389
 
73384
73390
  switch (method) {
73385
73391
  case 'reLogin':
@@ -73389,7 +73395,7 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73389
73395
  this.$refs.main.handleRefresh(args);
73390
73396
  break;
73391
73397
  case 'jumpMenu':
73392
- Array.isArray(args) ? (_$refs$main = this.$refs.main).jumpMenu.apply(_$refs$main, args) : this.$refs.main.jumpMenu(args);
73398
+ Array.isArray(args) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, args) : this.$refs.main.jumpMenu(args);
73393
73399
  break;
73394
73400
  case 'emit':
73395
73401
  var origin = args.origin,
@@ -73402,43 +73408,19 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73402
73408
  break;
73403
73409
  case 'openDialog':
73404
73410
  //打开弹窗
73405
- if (!args.appCode && !args.id) {
73406
- console.error('参数错误,缺少appCode或者id');
73407
- return;
73408
- }
73409
- args.index = this.dialogs.length;
73410
- args.visible = false;
73411
- this.dialogs.push(args);
73412
- this.$nextTick(function () {
73413
- _this6.$set(args, 'visible', true);
73414
- });
73411
+ this.winOpen(args);
73415
73412
  break;
73416
73413
  case 'closeDialog':
73417
73414
  //关闭弹窗
73418
- this.$set(this.dialogs[index], 'visible', false);
73419
- this.dialogs.splice(index, 1);
73420
- refresh && this.$refs.main.handleRefresh(refresh);
73421
- jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main2 = this.$refs.main).jumpMenu.apply(_$refs$main2, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
73415
+ this.winClose(args);
73422
73416
  break;
73423
73417
  case 'windowOpen':
73424
73418
  //打开弹窗
73425
- if (!args.appCode && !args.id) {
73426
- console.error('参数错误,缺少appCode或者id');
73427
- return;
73428
- }
73429
- args.index = this.dialogs.length;
73430
- args.visible = false;
73431
- this.dialogs.push(args);
73432
- this.$nextTick(function () {
73433
- _this6.$set(args, 'visible', true);
73434
- });
73419
+ this.winOpen(args);
73435
73420
  break;
73436
73421
  case 'windowClose':
73437
73422
  //关闭弹窗
73438
- this.$set(this.dialogs[index], 'visible', false);
73439
- this.dialogs.splice(index, 1);
73440
- refresh && this.$refs.main.handleRefresh(refresh);
73441
- jumpMenu && (Array.isArray(jumpMenu) ? (_$refs$main3 = this.$refs.main).jumpMenu.apply(_$refs$main3, jumpMenu) : this.$refs.main.jumpMenu(jumpMenu));
73423
+ this.winClose(args);
73442
73424
  break;
73443
73425
  }
73444
73426
  },
@@ -73517,8 +73499,8 @@ function main_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys)
73517
73499
 
73518
73500
  var main_src_main_component = normalizeComponent(
73519
73501
  packages_main_src_mainvue_type_script_lang_js_,
73520
- mainvue_type_template_id_0d6a4fb9_render,
73521
- mainvue_type_template_id_0d6a4fb9_staticRenderFns,
73502
+ mainvue_type_template_id_a5fa23da_render,
73503
+ mainvue_type_template_id_a5fa23da_staticRenderFns,
73522
73504
  false,
73523
73505
  null,
73524
73506
  null,
@@ -94200,7 +94182,7 @@ if (typeof window !== 'undefined' && window.Vue) {
94200
94182
  }
94201
94183
 
94202
94184
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
94203
- version: '0.7.30',
94185
+ version: '0.7.31',
94204
94186
  install: install,
94205
94187
  Button: packages_button,
94206
94188
  ButtonGroup: button_group,