eoss-ui 0.5.49 → 0.5.51

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 (55) hide show
  1. package/lib/button-group.js +59 -44
  2. package/lib/button.js +59 -44
  3. package/lib/checkbox-group.js +59 -44
  4. package/lib/data-table-form.js +59 -44
  5. package/lib/data-table.js +75 -53
  6. package/lib/date-picker.js +59 -44
  7. package/lib/dialog.js +59 -44
  8. package/lib/eoss-ui.common.js +154 -118
  9. package/lib/flow-group.js +59 -44
  10. package/lib/flow-list.js +59 -44
  11. package/lib/flow.js +69 -46
  12. package/lib/form.js +72 -51
  13. package/lib/handle-user.js +59 -44
  14. package/lib/handler.js +59 -44
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +59 -44
  17. package/lib/input.js +59 -44
  18. package/lib/login.js +59 -44
  19. package/lib/main.js +74 -59
  20. package/lib/nav.js +59 -44
  21. package/lib/page.js +59 -44
  22. package/lib/player.js +59 -44
  23. package/lib/qr-code.js +59 -44
  24. package/lib/radio-group.js +59 -44
  25. package/lib/retrial-auth.js +59 -44
  26. package/lib/select-ganged.js +59 -44
  27. package/lib/select.js +59 -44
  28. package/lib/selector-panel.js +59 -44
  29. package/lib/selector.js +59 -44
  30. package/lib/sizer.js +59 -44
  31. package/lib/steps.js +59 -44
  32. package/lib/switch.js +59 -44
  33. package/lib/table-form.js +59 -44
  34. package/lib/tabs.js +59 -44
  35. package/lib/theme-chalk/index.css +1 -1
  36. package/lib/theme-chalk/tree.css +1 -1
  37. package/lib/tips.js +59 -44
  38. package/lib/tree-group.js +59 -44
  39. package/lib/tree.js +77 -62
  40. package/lib/upload.js +59 -44
  41. package/lib/utils/util.js +59 -44
  42. package/lib/wujie.js +59 -44
  43. package/lib/wxlogin.js +59 -44
  44. package/package.json +1 -1
  45. package/packages/data-table/src/main.vue +9 -0
  46. package/packages/flow/src/main.vue +7 -0
  47. package/packages/form/src/main.vue +9 -1
  48. package/packages/main/src/main.vue +1 -1
  49. package/packages/main/src/userinfo.vue +5 -5
  50. package/packages/theme-chalk/lib/index.css +1 -1
  51. package/packages/theme-chalk/lib/tree.css +1 -1
  52. package/packages/theme-chalk/src/tree.scss +7 -1
  53. package/packages/tree/src/main.vue +6 -6
  54. package/src/index.js +1 -1
  55. package/src/utils/util.js +20 -6
package/lib/flow.js CHANGED
@@ -150,6 +150,7 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
150
150
  * @param {Object} [loading] - loading加载对象
151
151
  * @param {String} [publicKey] - sm2加密公钥
152
152
  * @param {Array} [secret] - 要加密的字段属性名称,默认所有
153
+ * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
153
154
  **/
154
155
  // 请求
155
156
  var pendingRequest = new Map();
@@ -185,7 +186,9 @@ var ajax = function ajax(_ref) {
185
186
  defaults = _ref$defaults === undefined ? false : _ref$defaults,
186
187
  loading = _ref.loading,
187
188
  publicKey = _ref.publicKey,
188
- secret = _ref.secret;
189
+ secret = _ref.secret,
190
+ _ref$encodes = _ref.encodes,
191
+ encodes = _ref$encodes === undefined ? ['cd'] : _ref$encodes;
189
192
 
190
193
  var header = headers || {};
191
194
  if (!method) {
@@ -415,6 +418,17 @@ var ajax = function ajax(_ref) {
415
418
  if (!mix) {
416
419
  if (method === 'get') {
417
420
  data = {};
421
+ // params = qs.stringify(params, {arrayFormat: 'brackets'});
422
+ if (encodes && encodes.length) {
423
+ var other = {};
424
+ for (var i in params) {
425
+ if (encodes.includes(i)) {
426
+ other[i] = encodeURIComponent(params[i]);
427
+ delete params[i];
428
+ }
429
+ }
430
+ url = urlJoinParams({ url: url, param: other });
431
+ }
418
432
  } else {
419
433
  params = {};
420
434
  }
@@ -431,10 +445,10 @@ var ajax = function ajax(_ref) {
431
445
  }
432
446
  });
433
447
  } else {
434
- for (var i in params) {
435
- if (params[i] !== '' && params[i] !== null) {
436
- params[i] = esmEncrypt({
437
- data: params[i],
448
+ for (var _i in params) {
449
+ if (params[_i] !== '' && params[_i] !== null) {
450
+ params[_i] = esmEncrypt({
451
+ data: params[_i],
438
452
  key: publicKey
439
453
  });
440
454
  }
@@ -452,10 +466,10 @@ var ajax = function ajax(_ref) {
452
466
  }
453
467
  });
454
468
  } else {
455
- for (var _i in data) {
456
- if (data[_i] !== '' && data[_i] !== null) {
457
- data[_i] = esmEncrypt({
458
- data: data[_i],
469
+ for (var _i2 in data) {
470
+ if (data[_i2] !== '' && data[_i2] !== null) {
471
+ data[_i2] = esmEncrypt({
472
+ data: data[_i2],
459
473
  key: publicKey
460
474
  });
461
475
  }
@@ -502,10 +516,10 @@ var arrUnique = function arrUnique(data, key) {
502
516
  }
503
517
  } else {
504
518
  var obj = {};
505
- for (var _i2 = 0; _i2 < data.length; _i2++) {
506
- if (!obj[data[_i2][key]]) {
507
- newArr.push(data[_i2]);
508
- obj[data[_i2][key]] = true;
519
+ for (var _i3 = 0; _i3 < data.length; _i3++) {
520
+ if (!obj[data[_i3][key]]) {
521
+ newArr.push(data[_i3]);
522
+ obj[data[_i3][key]] = true;
509
523
  }
510
524
  }
511
525
  }
@@ -984,12 +998,12 @@ var exportXls = function exportXls(_ref6) {
984
998
  }
985
999
  tbody += '</tr>';
986
1000
  }
987
- for (var _i3 in others) {
988
- fields.splice(_i3, 0, others[_i3][0]);
989
- aligns.splice(_i3, 0, others[_i3][1]);
1001
+ for (var _i4 in others) {
1002
+ fields.splice(_i4, 0, others[_i4][0]);
1003
+ aligns.splice(_i4, 0, others[_i4][1]);
990
1004
  }
991
1005
 
992
- var _loop2 = function _loop2(_i4) {
1006
+ var _loop2 = function _loop2(_i5) {
993
1007
  tbody += '<tr>';
994
1008
 
995
1009
  var _loop3 = function _loop3(_x2) {
@@ -997,9 +1011,9 @@ var exportXls = function exportXls(_ref6) {
997
1011
  var valueKey = keys[fields[_x2]] && keys[fields[_x2]].valueKey ? keys[fields[_x2]].valueKey : 'value';
998
1012
  var labelKey = keys[fields[_x2]] && keys[fields[_x2]].labelKey ? keys[fields[_x2]].labelKey : 'name';
999
1013
  if (option[fields[_x2]]) {
1000
- if (Array.isArray(data[_i4][fields[_x2]])) {
1014
+ if (Array.isArray(data[_i5][fields[_x2]])) {
1001
1015
  field = [];
1002
- data[_i4][fields[_x2]].forEach(function (ele) {
1016
+ data[_i5][fields[_x2]].forEach(function (ele) {
1003
1017
  option[fields[_x2]].forEach(function (item) {
1004
1018
  // eslint-disable-next-line eqeqeq
1005
1019
  if (item[valueKey] == ele) {
@@ -1009,9 +1023,9 @@ var exportXls = function exportXls(_ref6) {
1009
1023
  });
1010
1024
  });
1011
1025
  field = field.join(' ');
1012
- } else if (typeof data[_i4][fields[_x2]] === 'string' && keys[fields[_x2]] && keys[fields[_x2]].multiple) {
1026
+ } else if (typeof data[_i5][fields[_x2]] === 'string' && keys[fields[_x2]] && keys[fields[_x2]].multiple) {
1013
1027
  field = [];
1014
- data[_i4][fields[_x2]].split(',').forEach(function (ele) {
1028
+ data[_i5][fields[_x2]].split(',').forEach(function (ele) {
1015
1029
  option[fields[_x2]].forEach(function (item) {
1016
1030
  // eslint-disable-next-line eqeqeq
1017
1031
  if (item[valueKey] == ele) {
@@ -1024,24 +1038,24 @@ var exportXls = function exportXls(_ref6) {
1024
1038
  } else {
1025
1039
  option[fields[_x2]].forEach(function (item) {
1026
1040
  // eslint-disable-next-line eqeqeq
1027
- if (item[valueKey] == data[_i4][fields[_x2]]) {
1041
+ if (item[valueKey] == data[_i5][fields[_x2]]) {
1028
1042
  field = item[labelKey];
1029
1043
  return;
1030
1044
  }
1031
1045
  });
1032
1046
  }
1033
- } else if (_typeof(data[_i4][fields[_x2]]) === 'object' && keys[fields[_x2]]) {
1034
- if (Array.isArray(data[_i4][fields[_x2]])) {
1035
- data[_i4][fields[_x2]].forEach(function (item) {
1047
+ } else if (_typeof(data[_i5][fields[_x2]]) === 'object' && keys[fields[_x2]]) {
1048
+ if (Array.isArray(data[_i5][fields[_x2]])) {
1049
+ data[_i5][fields[_x2]].forEach(function (item) {
1036
1050
  field = [];
1037
1051
  field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
1038
1052
  });
1039
1053
  field = field.join(' ');
1040
1054
  } else {
1041
- field = data[_i4][fields[_x2]][labelKey];
1055
+ field = data[_i5][fields[_x2]][labelKey];
1042
1056
  }
1043
1057
  } else {
1044
- field = data[_i4][fields[_x2]];
1058
+ field = data[_i5][fields[_x2]];
1045
1059
  }
1046
1060
  tbody += '<td align="' + aligns[_x2] + '">' + field + '</td>';
1047
1061
  };
@@ -1052,8 +1066,8 @@ var exportXls = function exportXls(_ref6) {
1052
1066
  tbody += '</tr>';
1053
1067
  };
1054
1068
 
1055
- for (var _i4 = 0; _i4 < data.length; _i4++) {
1056
- _loop2(_i4);
1069
+ for (var _i5 = 0; _i5 < data.length; _i5++) {
1070
+ _loop2(_i5);
1057
1071
  }
1058
1072
  if (!name) {
1059
1073
  name = 'table_' + new Date().getTime();
@@ -1509,8 +1523,8 @@ var getRgb = function getRgb($color) {
1509
1523
  $color = colorNew;
1510
1524
  }
1511
1525
  // 处理六位的颜色值,转为RGB
1512
- for (var _i5 = 1; _i5 < 7; _i5 += 2) {
1513
- rgb.push(parseInt('0x' + $color.slice(_i5, _i5 + 2), 16));
1526
+ for (var _i6 = 1; _i6 < 7; _i6 += 2) {
1527
+ rgb.push(parseInt('0x' + $color.slice(_i6, _i6 + 2), 16));
1514
1528
  }
1515
1529
  } else {
1516
1530
  rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
@@ -2599,22 +2613,22 @@ var setStorage = function setStorage(_ref14) {
2599
2613
  localStorage.setItem(key[i], value);
2600
2614
  }
2601
2615
  } else {
2602
- for (var _i6 in key) {
2603
- var val = _typeof(key[_i6]) === 'object' ? JSON.stringify(key[_i6]) : key[_i6];
2604
- localStorage.setItem(_i6, val);
2616
+ for (var _i7 in key) {
2617
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2618
+ localStorage.setItem(_i7, val);
2605
2619
  }
2606
2620
  }
2607
2621
  } else {
2608
2622
  if (typeof key === 'string') {
2609
2623
  sessionStorage.setItem(key, value);
2610
2624
  } else if (Array.isArray(key)) {
2611
- for (var _i7 in key) {
2612
- sessionStorage.setItem(key[_i7], value);
2625
+ for (var _i8 in key) {
2626
+ sessionStorage.setItem(key[_i8], value);
2613
2627
  }
2614
2628
  } else {
2615
- for (var _i8 in key) {
2616
- var _val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2617
- sessionStorage.setItem(_i8, _val);
2629
+ for (var _i9 in key) {
2630
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
2631
+ sessionStorage.setItem(_i9, _val);
2618
2632
  }
2619
2633
  }
2620
2634
  }
@@ -2832,17 +2846,18 @@ var toFunction = function toFunction(str) {
2832
2846
  * @date 2022年5月7日
2833
2847
  * @param {string} [$color] - 颜色值
2834
2848
  **/
2835
- var updateTheme = function updateTheme($color, send) {
2836
- $color = $color ? $color : '#409eff';
2849
+ var updateTheme = function updateTheme(color, send) {
2850
+ color = color ? color : '#409eff';
2837
2851
  if (send === undefined) {
2838
2852
  send = true;
2839
2853
  }
2840
- document.documentElement.style.setProperty('--theme-primary', $color);
2854
+ localStorage.setItem('theme', color);
2855
+ document.documentElement.style.setProperty('--theme-primary', color);
2841
2856
  for (var i = 1; i < 11; i++) {
2842
2857
  if (i === 6) {
2843
- document.documentElement.style.setProperty('--theme-primary-light-' + i, $color);
2858
+ document.documentElement.style.setProperty('--theme-primary-light-' + i, color);
2844
2859
  } else {
2845
- var light = getColor($color, i);
2860
+ var light = getColor(color, i);
2846
2861
  document.documentElement.style.setProperty('--theme-primary-light-' + i, light);
2847
2862
  }
2848
2863
  }
@@ -3905,7 +3920,7 @@ var component = Object(componentNormalizer["a" /* default */])(
3905
3920
  // ESM COMPAT FLAG
3906
3921
  __webpack_require__.r(__webpack_exports__);
3907
3922
 
3908
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=5512ddf8&
3923
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=d05e22ca&
3909
3924
  var render = function () {
3910
3925
  var _vm = this
3911
3926
  var _h = _vm.$createElement
@@ -4105,6 +4120,7 @@ var render = function () {
4105
4120
  slot: "prepend",
4106
4121
  placeholder: "请选择流程",
4107
4122
  },
4123
+ on: { change: _vm.handleChange },
4108
4124
  slot: "prepend",
4109
4125
  model: {
4110
4126
  value: _vm.nodeInfo.nextNode,
@@ -5629,7 +5645,7 @@ var staticRenderFns = []
5629
5645
  render._withStripped = true
5630
5646
 
5631
5647
 
5632
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=5512ddf8&
5648
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=d05e22ca&
5633
5649
 
5634
5650
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5635
5651
  var regenerator_ = __webpack_require__(12);
@@ -13086,6 +13102,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13086
13102
  //
13087
13103
  //
13088
13104
  //
13105
+ //
13089
13106
 
13090
13107
 
13091
13108
 
@@ -13331,6 +13348,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13331
13348
  }
13332
13349
  },
13333
13350
  methods: {
13351
+ handleChange: function handleChange(val) {
13352
+ this.$parent.$emit('flowChange', val);
13353
+ },
13334
13354
  getsubProcessColumns: function getsubProcessColumns() {
13335
13355
  if (!this.isMainSubProcess || !this.isNodeShowProcess) return [];
13336
13356
  var data = [];
@@ -14628,6 +14648,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14628
14648
  _this24.nodeInfo.nextNode = '';
14629
14649
  }
14630
14650
  }
14651
+ if (_this24.nodeInfo.nextNode) {
14652
+ _this24.handleChange(_this24.nodeInfo.nextNode);
14653
+ }
14631
14654
  }
14632
14655
  } else {
14633
14656
  _this24.$message.error(message || '系统错误,请联系管理员!');
package/lib/form.js CHANGED
@@ -151,6 +151,7 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
151
151
  * @param {Object} [loading] - loading加载对象
152
152
  * @param {String} [publicKey] - sm2加密公钥
153
153
  * @param {Array} [secret] - 要加密的字段属性名称,默认所有
154
+ * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
154
155
  **/
155
156
  // 请求
156
157
  var pendingRequest = new Map();
@@ -186,7 +187,9 @@ var ajax = function ajax(_ref) {
186
187
  defaults = _ref$defaults === undefined ? false : _ref$defaults,
187
188
  loading = _ref.loading,
188
189
  publicKey = _ref.publicKey,
189
- secret = _ref.secret;
190
+ secret = _ref.secret,
191
+ _ref$encodes = _ref.encodes,
192
+ encodes = _ref$encodes === undefined ? ['cd'] : _ref$encodes;
190
193
 
191
194
  var header = headers || {};
192
195
  if (!method) {
@@ -416,6 +419,17 @@ var ajax = function ajax(_ref) {
416
419
  if (!mix) {
417
420
  if (method === 'get') {
418
421
  data = {};
422
+ // params = qs.stringify(params, {arrayFormat: 'brackets'});
423
+ if (encodes && encodes.length) {
424
+ var other = {};
425
+ for (var i in params) {
426
+ if (encodes.includes(i)) {
427
+ other[i] = encodeURIComponent(params[i]);
428
+ delete params[i];
429
+ }
430
+ }
431
+ url = urlJoinParams({ url: url, param: other });
432
+ }
419
433
  } else {
420
434
  params = {};
421
435
  }
@@ -432,10 +446,10 @@ var ajax = function ajax(_ref) {
432
446
  }
433
447
  });
434
448
  } else {
435
- for (var i in params) {
436
- if (params[i] !== '' && params[i] !== null) {
437
- params[i] = esmEncrypt({
438
- data: params[i],
449
+ for (var _i in params) {
450
+ if (params[_i] !== '' && params[_i] !== null) {
451
+ params[_i] = esmEncrypt({
452
+ data: params[_i],
439
453
  key: publicKey
440
454
  });
441
455
  }
@@ -453,10 +467,10 @@ var ajax = function ajax(_ref) {
453
467
  }
454
468
  });
455
469
  } else {
456
- for (var _i in data) {
457
- if (data[_i] !== '' && data[_i] !== null) {
458
- data[_i] = esmEncrypt({
459
- data: data[_i],
470
+ for (var _i2 in data) {
471
+ if (data[_i2] !== '' && data[_i2] !== null) {
472
+ data[_i2] = esmEncrypt({
473
+ data: data[_i2],
460
474
  key: publicKey
461
475
  });
462
476
  }
@@ -503,10 +517,10 @@ var arrUnique = function arrUnique(data, key) {
503
517
  }
504
518
  } else {
505
519
  var obj = {};
506
- for (var _i2 = 0; _i2 < data.length; _i2++) {
507
- if (!obj[data[_i2][key]]) {
508
- newArr.push(data[_i2]);
509
- obj[data[_i2][key]] = true;
520
+ for (var _i3 = 0; _i3 < data.length; _i3++) {
521
+ if (!obj[data[_i3][key]]) {
522
+ newArr.push(data[_i3]);
523
+ obj[data[_i3][key]] = true;
510
524
  }
511
525
  }
512
526
  }
@@ -985,12 +999,12 @@ var exportXls = function exportXls(_ref6) {
985
999
  }
986
1000
  tbody += '</tr>';
987
1001
  }
988
- for (var _i3 in others) {
989
- fields.splice(_i3, 0, others[_i3][0]);
990
- aligns.splice(_i3, 0, others[_i3][1]);
1002
+ for (var _i4 in others) {
1003
+ fields.splice(_i4, 0, others[_i4][0]);
1004
+ aligns.splice(_i4, 0, others[_i4][1]);
991
1005
  }
992
1006
 
993
- var _loop2 = function _loop2(_i4) {
1007
+ var _loop2 = function _loop2(_i5) {
994
1008
  tbody += '<tr>';
995
1009
 
996
1010
  var _loop3 = function _loop3(_x2) {
@@ -998,9 +1012,9 @@ var exportXls = function exportXls(_ref6) {
998
1012
  var valueKey = keys[fields[_x2]] && keys[fields[_x2]].valueKey ? keys[fields[_x2]].valueKey : 'value';
999
1013
  var labelKey = keys[fields[_x2]] && keys[fields[_x2]].labelKey ? keys[fields[_x2]].labelKey : 'name';
1000
1014
  if (option[fields[_x2]]) {
1001
- if (Array.isArray(data[_i4][fields[_x2]])) {
1015
+ if (Array.isArray(data[_i5][fields[_x2]])) {
1002
1016
  field = [];
1003
- data[_i4][fields[_x2]].forEach(function (ele) {
1017
+ data[_i5][fields[_x2]].forEach(function (ele) {
1004
1018
  option[fields[_x2]].forEach(function (item) {
1005
1019
  // eslint-disable-next-line eqeqeq
1006
1020
  if (item[valueKey] == ele) {
@@ -1010,9 +1024,9 @@ var exportXls = function exportXls(_ref6) {
1010
1024
  });
1011
1025
  });
1012
1026
  field = field.join(' ');
1013
- } else if (typeof data[_i4][fields[_x2]] === 'string' && keys[fields[_x2]] && keys[fields[_x2]].multiple) {
1027
+ } else if (typeof data[_i5][fields[_x2]] === 'string' && keys[fields[_x2]] && keys[fields[_x2]].multiple) {
1014
1028
  field = [];
1015
- data[_i4][fields[_x2]].split(',').forEach(function (ele) {
1029
+ data[_i5][fields[_x2]].split(',').forEach(function (ele) {
1016
1030
  option[fields[_x2]].forEach(function (item) {
1017
1031
  // eslint-disable-next-line eqeqeq
1018
1032
  if (item[valueKey] == ele) {
@@ -1025,24 +1039,24 @@ var exportXls = function exportXls(_ref6) {
1025
1039
  } else {
1026
1040
  option[fields[_x2]].forEach(function (item) {
1027
1041
  // eslint-disable-next-line eqeqeq
1028
- if (item[valueKey] == data[_i4][fields[_x2]]) {
1042
+ if (item[valueKey] == data[_i5][fields[_x2]]) {
1029
1043
  field = item[labelKey];
1030
1044
  return;
1031
1045
  }
1032
1046
  });
1033
1047
  }
1034
- } else if (_typeof(data[_i4][fields[_x2]]) === 'object' && keys[fields[_x2]]) {
1035
- if (Array.isArray(data[_i4][fields[_x2]])) {
1036
- data[_i4][fields[_x2]].forEach(function (item) {
1048
+ } else if (_typeof(data[_i5][fields[_x2]]) === 'object' && keys[fields[_x2]]) {
1049
+ if (Array.isArray(data[_i5][fields[_x2]])) {
1050
+ data[_i5][fields[_x2]].forEach(function (item) {
1037
1051
  field = [];
1038
1052
  field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
1039
1053
  });
1040
1054
  field = field.join(' ');
1041
1055
  } else {
1042
- field = data[_i4][fields[_x2]][labelKey];
1056
+ field = data[_i5][fields[_x2]][labelKey];
1043
1057
  }
1044
1058
  } else {
1045
- field = data[_i4][fields[_x2]];
1059
+ field = data[_i5][fields[_x2]];
1046
1060
  }
1047
1061
  tbody += '<td align="' + aligns[_x2] + '">' + field + '</td>';
1048
1062
  };
@@ -1053,8 +1067,8 @@ var exportXls = function exportXls(_ref6) {
1053
1067
  tbody += '</tr>';
1054
1068
  };
1055
1069
 
1056
- for (var _i4 = 0; _i4 < data.length; _i4++) {
1057
- _loop2(_i4);
1070
+ for (var _i5 = 0; _i5 < data.length; _i5++) {
1071
+ _loop2(_i5);
1058
1072
  }
1059
1073
  if (!name) {
1060
1074
  name = 'table_' + new Date().getTime();
@@ -1510,8 +1524,8 @@ var getRgb = function getRgb($color) {
1510
1524
  $color = colorNew;
1511
1525
  }
1512
1526
  // 处理六位的颜色值,转为RGB
1513
- for (var _i5 = 1; _i5 < 7; _i5 += 2) {
1514
- rgb.push(parseInt('0x' + $color.slice(_i5, _i5 + 2), 16));
1527
+ for (var _i6 = 1; _i6 < 7; _i6 += 2) {
1528
+ rgb.push(parseInt('0x' + $color.slice(_i6, _i6 + 2), 16));
1515
1529
  }
1516
1530
  } else {
1517
1531
  rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
@@ -2600,22 +2614,22 @@ var setStorage = function setStorage(_ref14) {
2600
2614
  localStorage.setItem(key[i], value);
2601
2615
  }
2602
2616
  } else {
2603
- for (var _i6 in key) {
2604
- var val = _typeof(key[_i6]) === 'object' ? JSON.stringify(key[_i6]) : key[_i6];
2605
- localStorage.setItem(_i6, val);
2617
+ for (var _i7 in key) {
2618
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2619
+ localStorage.setItem(_i7, val);
2606
2620
  }
2607
2621
  }
2608
2622
  } else {
2609
2623
  if (typeof key === 'string') {
2610
2624
  sessionStorage.setItem(key, value);
2611
2625
  } else if (Array.isArray(key)) {
2612
- for (var _i7 in key) {
2613
- sessionStorage.setItem(key[_i7], value);
2626
+ for (var _i8 in key) {
2627
+ sessionStorage.setItem(key[_i8], value);
2614
2628
  }
2615
2629
  } else {
2616
- for (var _i8 in key) {
2617
- var _val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2618
- sessionStorage.setItem(_i8, _val);
2630
+ for (var _i9 in key) {
2631
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
2632
+ sessionStorage.setItem(_i9, _val);
2619
2633
  }
2620
2634
  }
2621
2635
  }
@@ -2833,17 +2847,18 @@ var toFunction = function toFunction(str) {
2833
2847
  * @date 2022年5月7日
2834
2848
  * @param {string} [$color] - 颜色值
2835
2849
  **/
2836
- var updateTheme = function updateTheme($color, send) {
2837
- $color = $color ? $color : '#409eff';
2850
+ var updateTheme = function updateTheme(color, send) {
2851
+ color = color ? color : '#409eff';
2838
2852
  if (send === undefined) {
2839
2853
  send = true;
2840
2854
  }
2841
- document.documentElement.style.setProperty('--theme-primary', $color);
2855
+ localStorage.setItem('theme', color);
2856
+ document.documentElement.style.setProperty('--theme-primary', color);
2842
2857
  for (var i = 1; i < 11; i++) {
2843
2858
  if (i === 6) {
2844
- document.documentElement.style.setProperty('--theme-primary-light-' + i, $color);
2859
+ document.documentElement.style.setProperty('--theme-primary-light-' + i, color);
2845
2860
  } else {
2846
- var light = getColor($color, i);
2861
+ var light = getColor(color, i);
2847
2862
  document.documentElement.style.setProperty('--theme-primary-light-' + i, light);
2848
2863
  }
2849
2864
  }
@@ -3590,7 +3605,7 @@ module.exports = require("qs");
3590
3605
  // ESM COMPAT FLAG
3591
3606
  __webpack_require__.r(__webpack_exports__);
3592
3607
 
3593
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=6490929d&
3608
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=0ffe101a&
3594
3609
  var render = function () {
3595
3610
  var _vm = this
3596
3611
  var _h = _vm.$createElement
@@ -14519,7 +14534,7 @@ var staticRenderFns = []
14519
14534
  render._withStripped = true
14520
14535
 
14521
14536
 
14522
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=6490929d&
14537
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=0ffe101a&
14523
14538
 
14524
14539
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
14525
14540
  var regenerator_ = __webpack_require__(12);
@@ -18588,7 +18603,13 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
18588
18603
  zoom: false,
18589
18604
  showMsg: true,
18590
18605
  validated: Function,
18591
- enterSubmit: Boolean
18606
+ enterSubmit: Boolean,
18607
+ ajaxConfig: {
18608
+ type: Object,
18609
+ default: function _default() {
18610
+ return {};
18611
+ }
18612
+ }
18592
18613
  },
18593
18614
  data: function data() {
18594
18615
  return {
@@ -19369,13 +19390,13 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19369
19390
  loading = util["a" /* default */].loading(_this11.$loading, handle.loadingText ? handle.loadingText + '...' : '提交中...');
19370
19391
  }
19371
19392
  _context3.next = 10;
19372
- return util["a" /* default */].ajax({
19393
+ return util["a" /* default */].ajax(_extends({}, _this11.ajaxConfig, {
19373
19394
  url: _typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
19374
19395
  format: handle.format || _this11.format,
19375
19396
  data: _extends({}, models, param),
19376
19397
  method: _this11.method,
19377
19398
  loading: loading
19378
- }).then(function (res) {
19399
+ })).then(function (res) {
19379
19400
  loading && loading.close();
19380
19401
  if (res.rCode === 0) {
19381
19402
  _this11.showMsg && _this11.$message.success(res.msg || res.message || '成功!');
@@ -19451,13 +19472,13 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19451
19472
  loading = util["a" /* default */].loading(_this11.$loading, handle.loadingText ? handle.loadingText + '...' : '提交中...');
19452
19473
  }
19453
19474
  _context4.next = 9;
19454
- return util["a" /* default */].ajax({
19475
+ return util["a" /* default */].ajax(_extends({}, _this11.ajaxConfig, {
19455
19476
  url: _typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
19456
19477
  format: handle.format || _this11.format,
19457
19478
  data: _extends({}, models, param),
19458
19479
  method: _this11.method,
19459
19480
  loading: loading
19460
- }).then(function (res) {
19481
+ })).then(function (res) {
19461
19482
  loading && loading.close();
19462
19483
  if (res.rCode === 0) {
19463
19484
  _this11.showMsg && _this11.$message.success(res.msg || res.message || '成功!');