eoss-ui 0.6.48 → 0.6.50

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.
Files changed (63) hide show
  1. package/lib/button-group.js +27 -26
  2. package/lib/button.js +27 -26
  3. package/lib/checkbox-group.js +27 -26
  4. package/lib/data-table-form.js +27 -26
  5. package/lib/data-table.js +27 -26
  6. package/lib/date-picker.js +27 -26
  7. package/lib/dialog.js +27 -26
  8. package/lib/enable-drag.js +3 -15
  9. package/lib/eoss-ui.common.js +210 -169
  10. package/lib/flow-group.js +30 -29
  11. package/lib/flow-list.js +27 -26
  12. package/lib/flow.js +44 -30
  13. package/lib/form.js +27 -26
  14. package/lib/handle-user.js +27 -26
  15. package/lib/handler.js +30 -31
  16. package/lib/icon.js +27 -26
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +27 -26
  19. package/lib/input.js +27 -26
  20. package/lib/login.js +27 -26
  21. package/lib/main.js +124 -87
  22. package/lib/nav.js +27 -26
  23. package/lib/page.js +27 -26
  24. package/lib/pagination.js +27 -26
  25. package/lib/player.js +27 -26
  26. package/lib/qr-code.js +27 -26
  27. package/lib/radio-group.js +27 -26
  28. package/lib/retrial-auth.js +31 -30
  29. package/lib/select-ganged.js +27 -26
  30. package/lib/select.js +27 -26
  31. package/lib/selector-panel.js +27 -26
  32. package/lib/selector.js +45 -49
  33. package/lib/sizer.js +27 -26
  34. package/lib/steps.js +27 -26
  35. package/lib/switch.js +27 -26
  36. package/lib/table-form.js +27 -26
  37. package/lib/tabs.js +27 -26
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/theme-chalk/main.css +1 -1
  40. package/lib/tips.js +27 -26
  41. package/lib/tree-group.js +27 -26
  42. package/lib/tree.js +27 -26
  43. package/lib/upload.js +27 -26
  44. package/lib/utils/util.js +27 -26
  45. package/lib/wujie.js +27 -26
  46. package/lib/wxlogin.js +27 -26
  47. package/package.json +2 -2
  48. package/packages/enable-drag/src/main.vue +0 -2
  49. package/packages/flow/src/main.vue +3 -2
  50. package/packages/flow-group/src/main.vue +1 -1
  51. package/packages/handler/src/main.vue +7 -5
  52. package/packages/main/src/default/index.vue +24 -10
  53. package/packages/main/src/default/userinfo.vue +1 -3
  54. package/packages/main/src/main.vue +30 -8
  55. package/packages/main/src/simplicity/index.vue +28 -13
  56. package/packages/main/src/simplicity/userinfo.vue +1 -1
  57. package/packages/retrial-auth/src/main.vue +2 -2
  58. package/packages/selector/src/main.vue +19 -21
  59. package/packages/theme-chalk/lib/index.css +1 -1
  60. package/packages/theme-chalk/lib/main.css +1 -1
  61. package/packages/theme-chalk/src/main.scss +7 -0
  62. package/src/index.js +1 -1
  63. package/src/utils/util.js +7 -4
package/lib/dialog.js CHANGED
@@ -764,15 +764,16 @@ var browser = function browser() {
764
764
  * @author huangbo
765
765
  * @date 2022年5月7日
766
766
  **/
767
- var busEmit = function busEmit() {
768
- var vm = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this;
769
- var _ref3 = arguments[1];
767
+ var busEmit = function busEmit(that, _ref3) {
770
768
  var method = _ref3.method,
771
769
  args = _ref3.args;
772
770
 
773
- var bus = win.$wujie ? win.$wujie.bus : vm.bus || vm.$root.Bus;
774
- bus && bus.$emit(method, args);
775
- window.postMessage({ method: method, query: args }, '*');
771
+ var bus = win.$wujie ? win.$wujie.bus : that ? that.bus || that.$root.Bus : null;
772
+ if (bus) {
773
+ bus.$emit(method, args);
774
+ } else {
775
+ win.parent.postMessage({ method: method, query: args }, '*');
776
+ }
776
777
  };
777
778
 
778
779
  /**
@@ -1251,15 +1252,15 @@ var exportXls = function exportXls(_ref8) {
1251
1252
  var _loop2 = function _loop2(_i5) {
1252
1253
  tbody += '<tr>';
1253
1254
 
1254
- var _loop3 = function _loop3(_x3) {
1255
+ var _loop3 = function _loop3(_x2) {
1255
1256
  var field = '';
1256
- var valueKey = keys[fields[_x3]] && keys[fields[_x3]].valueKey ? keys[fields[_x3]].valueKey : 'value';
1257
- var labelKey = keys[fields[_x3]] && keys[fields[_x3]].labelKey ? keys[fields[_x3]].labelKey : 'name';
1258
- if (option[fields[_x3]]) {
1259
- if (Array.isArray(data[_i5][fields[_x3]])) {
1257
+ var valueKey = keys[fields[_x2]] && keys[fields[_x2]].valueKey ? keys[fields[_x2]].valueKey : 'value';
1258
+ var labelKey = keys[fields[_x2]] && keys[fields[_x2]].labelKey ? keys[fields[_x2]].labelKey : 'name';
1259
+ if (option[fields[_x2]]) {
1260
+ if (Array.isArray(data[_i5][fields[_x2]])) {
1260
1261
  field = [];
1261
- data[_i5][fields[_x3]].forEach(function (ele) {
1262
- option[fields[_x3]].forEach(function (item) {
1262
+ data[_i5][fields[_x2]].forEach(function (ele) {
1263
+ option[fields[_x2]].forEach(function (item) {
1263
1264
  // eslint-disable-next-line eqeqeq
1264
1265
  if (item[valueKey] == ele) {
1265
1266
  field.push(item[labelKey]);
@@ -1268,10 +1269,10 @@ var exportXls = function exportXls(_ref8) {
1268
1269
  });
1269
1270
  });
1270
1271
  field = field.join(' ');
1271
- } else if (typeof data[_i5][fields[_x3]] === 'string' && keys[fields[_x3]] && keys[fields[_x3]].multiple) {
1272
+ } else if (typeof data[_i5][fields[_x2]] === 'string' && keys[fields[_x2]] && keys[fields[_x2]].multiple) {
1272
1273
  field = [];
1273
- data[_i5][fields[_x3]].split(',').forEach(function (ele) {
1274
- option[fields[_x3]].forEach(function (item) {
1274
+ data[_i5][fields[_x2]].split(',').forEach(function (ele) {
1275
+ option[fields[_x2]].forEach(function (item) {
1275
1276
  // eslint-disable-next-line eqeqeq
1276
1277
  if (item[valueKey] == ele) {
1277
1278
  field.push(item[labelKey]);
@@ -1281,32 +1282,32 @@ var exportXls = function exportXls(_ref8) {
1281
1282
  });
1282
1283
  field = field.join(' ');
1283
1284
  } else {
1284
- option[fields[_x3]].forEach(function (item) {
1285
+ option[fields[_x2]].forEach(function (item) {
1285
1286
  // eslint-disable-next-line eqeqeq
1286
- if (item[valueKey] == data[_i5][fields[_x3]]) {
1287
+ if (item[valueKey] == data[_i5][fields[_x2]]) {
1287
1288
  field = item[labelKey];
1288
1289
  return;
1289
1290
  }
1290
1291
  });
1291
1292
  }
1292
- } else if (_typeof(data[_i5][fields[_x3]]) === 'object' && keys[fields[_x3]]) {
1293
- if (Array.isArray(data[_i5][fields[_x3]])) {
1294
- data[_i5][fields[_x3]].forEach(function (item) {
1293
+ } else if (_typeof(data[_i5][fields[_x2]]) === 'object' && keys[fields[_x2]]) {
1294
+ if (Array.isArray(data[_i5][fields[_x2]])) {
1295
+ data[_i5][fields[_x2]].forEach(function (item) {
1295
1296
  field = [];
1296
1297
  field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
1297
1298
  });
1298
1299
  field = field.join(' ');
1299
1300
  } else {
1300
- field = data[_i5][fields[_x3]][labelKey];
1301
+ field = data[_i5][fields[_x2]][labelKey];
1301
1302
  }
1302
1303
  } else {
1303
- field = data[_i5][fields[_x3]];
1304
+ field = data[_i5][fields[_x2]];
1304
1305
  }
1305
- tbody += '<td align="' + aligns[_x3] + '">' + field + '</td>';
1306
+ tbody += '<td align="' + aligns[_x2] + '">' + field + '</td>';
1306
1307
  };
1307
1308
 
1308
- for (var _x3 in fields) {
1309
- _loop3(_x3);
1309
+ for (var _x2 in fields) {
1310
+ _loop3(_x2);
1310
1311
  }
1311
1312
  tbody += '</tr>';
1312
1313
  };
@@ -87,13 +87,6 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 12:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("throttle-debounce");
94
-
95
- /***/ }),
96
-
97
90
  /***/ 14:
98
91
  /***/ (function(module, exports) {
99
92
 
@@ -213,7 +206,7 @@ function normalizeComponent(
213
206
  // ESM COMPAT FLAG
214
207
  __webpack_require__.r(__webpack_exports__);
215
208
 
216
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/enable-drag/src/main.vue?vue&type=template&id=40ac2863&scoped=true&
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/enable-drag/src/main.vue?vue&type=template&id=740c305c&scoped=true&
217
210
  var render = function () {
218
211
  var _vm = this
219
212
  var _h = _vm.$createElement
@@ -405,15 +398,12 @@ var staticRenderFns = []
405
398
  render._withStripped = true
406
399
 
407
400
 
408
- // CONCATENATED MODULE: ./packages/enable-drag/src/main.vue?vue&type=template&id=40ac2863&scoped=true&
401
+ // CONCATENATED MODULE: ./packages/enable-drag/src/main.vue?vue&type=template&id=740c305c&scoped=true&
409
402
 
410
403
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
411
404
  var regenerator_ = __webpack_require__(14);
412
405
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
413
406
 
414
- // EXTERNAL MODULE: external "throttle-debounce"
415
- var external_throttle_debounce_ = __webpack_require__(12);
416
-
417
407
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/enable-drag/src/main.vue?vue&type=script&lang=js&
418
408
 
419
409
 
@@ -511,7 +501,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
511
501
  //
512
502
  //
513
503
 
514
-
515
504
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
516
505
  name: 'EsEnableDrag',
517
506
  props: {
@@ -598,7 +587,6 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
598
587
  var rect = this.$el.getBoundingClientRect();
599
588
  this.width = rect.width;
600
589
  this.height = rect.height;
601
- console.log(this.width, this.height);
602
590
  if (this.topDistance) {
603
591
  this.styleObject.top = this.topDistance;
604
592
  } else {
@@ -810,7 +798,7 @@ var component = Object(componentNormalizer["a" /* default */])(
810
798
  staticRenderFns,
811
799
  false,
812
800
  null,
813
- "40ac2863",
801
+ "740c305c",
814
802
  null
815
803
 
816
804
  )