eoss-ui 0.5.34 → 0.5.37

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 (53) hide show
  1. package/lib/button-group.js +17 -0
  2. package/lib/button.js +17 -0
  3. package/lib/checkbox-group.js +17 -0
  4. package/lib/data-table-form.js +17 -0
  5. package/lib/data-table.js +17 -0
  6. package/lib/date-picker.js +17 -0
  7. package/lib/dialog.js +17 -0
  8. package/lib/eoss-ui.common.js +493 -368
  9. package/lib/flow-group.js +17 -0
  10. package/lib/flow-list.js +17 -0
  11. package/lib/flow.js +425 -305
  12. package/lib/form.js +17 -0
  13. package/lib/handle-user.js +17 -0
  14. package/lib/handler.js +17 -0
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +17 -0
  17. package/lib/input.js +17 -0
  18. package/lib/login.js +41 -15
  19. package/lib/main.js +35 -24
  20. package/lib/nav.js +17 -0
  21. package/lib/page.js +17 -0
  22. package/lib/player.js +17 -0
  23. package/lib/qr-code.js +17 -0
  24. package/lib/radio-group.js +17 -0
  25. package/lib/retrial-auth.js +17 -0
  26. package/lib/select-ganged.js +17 -0
  27. package/lib/select.js +17 -0
  28. package/lib/selector-panel.js +17 -0
  29. package/lib/selector.js +17 -0
  30. package/lib/sizer.js +17 -0
  31. package/lib/steps.js +17 -0
  32. package/lib/switch.js +17 -0
  33. package/lib/table-form.js +25 -6
  34. package/lib/tabs.js +17 -0
  35. package/lib/tips.js +17 -0
  36. package/lib/tree-group.js +17 -0
  37. package/lib/tree.js +17 -0
  38. package/lib/upload.js +17 -0
  39. package/lib/utils/util.js +17 -0
  40. package/lib/wujie.js +17 -0
  41. package/lib/wxlogin.js +17 -0
  42. package/package.json +1 -1
  43. package/packages/flow/src/main.vue +117 -23
  44. package/packages/flow/src/processForm.vue +7 -1
  45. package/packages/flow/src/processReject.vue +4 -1
  46. package/packages/form/src/table.vue +2 -1
  47. package/packages/login/src/main.vue +9 -2
  48. package/packages/login/src/resetPassword.vue +7 -5
  49. package/packages/main/src/main.vue +11 -20
  50. package/packages/main/src/userinfo.vue +1 -1
  51. package/src/index.js +1 -1
  52. package/src/utils/util.js +22 -2
  53. package/CHANGELOG.md +0 -929
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/input.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/login.js CHANGED
@@ -1294,6 +1294,7 @@ var getLength = function getLength(text) {
1294
1294
  * @desc:转换明度
1295
1295
  * @author huangbo
1296
1296
  * @date 2022年5月7日
1297
+ * @return {string,array} 元素类名或者id
1297
1298
  **/
1298
1299
  var getLightness = function getLightness($v, $i, $isLight) {
1299
1300
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1301,6 +1302,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1301
1302
  return toFixed($value, 2);
1302
1303
  };
1303
1304
 
1305
+ /**
1306
+ * getMainConfig
1307
+ * @desc 获取系统配置
1308
+ * @author huangbo
1309
+ * @date 2022年5月7日
1310
+ * @param {function} callback - 回调函数
1311
+ **/
1312
+ var getMainConfig = function getMainConfig(callback) {
1313
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1314
+ if (res && res.rCode === 0) {
1315
+ callback(res.results);
1316
+ }
1317
+ }).catch(function () {});
1318
+ };
1319
+
1304
1320
  /**
1305
1321
  * getMinute
1306
1322
  * @desc 获取分钟
@@ -2931,6 +2947,7 @@ var watermark = function watermark(option) {
2931
2947
  getHour: getHour,
2932
2948
  getWeekNumber: getWeekNumber,
2933
2949
  getLength: getLength,
2950
+ getMainConfig: getMainConfig,
2934
2951
  getMinute: getMinute,
2935
2952
  getMonth: getMonth,
2936
2953
  getObjectType: getObjectType,
@@ -3690,7 +3707,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3690
3707
  // ESM COMPAT FLAG
3691
3708
  __webpack_require__.r(__webpack_exports__);
3692
3709
 
3693
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=e28c2dd0&
3710
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=413b11b3&
3694
3711
  var render = function () {
3695
3712
  var _vm = this
3696
3713
  var _h = _vm.$createElement
@@ -4471,7 +4488,7 @@ var render = function () {
4471
4488
  [_vm._v(_vm._s(_vm.icpInfo.copyright_unit))]
4472
4489
  ),
4473
4490
  _c(
4474
- "a",
4491
+ "span",
4475
4492
  {
4476
4493
  staticClass: "es-login-icp-item",
4477
4494
  style: _vm._copyrightStyle,
@@ -4574,10 +4591,10 @@ var staticRenderFns = []
4574
4591
  render._withStripped = true
4575
4592
 
4576
4593
 
4577
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=e28c2dd0&
4594
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=413b11b3&
4578
4595
 
4579
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=7e3a7461&
4580
- var resetPasswordvue_type_template_id_7e3a7461_render = function () {
4596
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
4597
+ var resetPasswordvue_type_template_id_28f463b9_render = function () {
4581
4598
  var _vm = this
4582
4599
  var _h = _vm.$createElement
4583
4600
  var _c = _vm._self._c || _h
@@ -4637,11 +4654,11 @@ var resetPasswordvue_type_template_id_7e3a7461_render = function () {
4637
4654
  1
4638
4655
  )
4639
4656
  }
4640
- var resetPasswordvue_type_template_id_7e3a7461_staticRenderFns = []
4641
- resetPasswordvue_type_template_id_7e3a7461_render._withStripped = true
4657
+ var resetPasswordvue_type_template_id_28f463b9_staticRenderFns = []
4658
+ resetPasswordvue_type_template_id_28f463b9_render._withStripped = true
4642
4659
 
4643
4660
 
4644
- // CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=7e3a7461&
4661
+ // CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
4645
4662
 
4646
4663
  // EXTERNAL MODULE: ./src/config/api.js
4647
4664
  var api = __webpack_require__(1);
@@ -4962,7 +4979,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
4962
4979
  _this.checkPassword = new RegExp(results.checkPassword);
4963
4980
  }
4964
4981
  if (results.checkPasswordMsg) {
4965
- _this.checkPasswordMsg = new RegExp(results.checkPasswordMsg);
4982
+ _this.checkPasswordMsg = results.checkPasswordMsg;
4966
4983
  }
4967
4984
  } else {
4968
4985
  var msg = res.msg || '系统错误,请联系管理员!';
@@ -5048,10 +5065,12 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5048
5065
  data: data.password,
5049
5066
  key: this.secret
5050
5067
  });
5051
- data.oldPassword = util["a" /* default */].esmEncrypt({
5052
- data: data.oldPassword,
5053
- key: this.secret
5054
- });
5068
+ if (data.oldPassword) {
5069
+ data.oldPassword = util["a" /* default */].esmEncrypt({
5070
+ data: data.oldPassword,
5071
+ key: this.secret
5072
+ });
5073
+ }
5055
5074
  }
5056
5075
  if (this.activeIndex == '0') {
5057
5076
  data.operationCheckCode = this.operationCheckCode;
@@ -5131,8 +5150,8 @@ var componentNormalizer = __webpack_require__(3);
5131
5150
 
5132
5151
  var component = Object(componentNormalizer["a" /* default */])(
5133
5152
  src_resetPasswordvue_type_script_lang_js_,
5134
- resetPasswordvue_type_template_id_7e3a7461_render,
5135
- resetPasswordvue_type_template_id_7e3a7461_staticRenderFns,
5153
+ resetPasswordvue_type_template_id_28f463b9_render,
5154
+ resetPasswordvue_type_template_id_28f463b9_staticRenderFns,
5136
5155
  false,
5137
5156
  null,
5138
5157
  null,
@@ -5887,6 +5906,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5887
5906
  } else {
5888
5907
  this.getLogin();
5889
5908
  document.addEventListener('keyup', this.doLogin);
5909
+ document.addEventListener('keydown', this.forbiddenTab);
5890
5910
  }
5891
5911
  },
5892
5912
  mounted: function mounted() {
@@ -6543,10 +6563,16 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6543
6563
  },
6544
6564
  handleSuccess: function handleSuccess() {
6545
6565
  this.showResetPassword = false;
6566
+ },
6567
+ forbiddenTab: function forbiddenTab(e) {
6568
+ if (e.keyCode == 9) {
6569
+ return false;
6570
+ }
6546
6571
  }
6547
6572
  },
6548
6573
  beforeDestroy: function beforeDestroy() {
6549
6574
  document.removeEventListener('keyup', this.doLogin);
6575
+ document.removeEventListener('keydown', this.forbiddenTab);
6550
6576
  }
6551
6577
  });
6552
6578
  // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=script&lang=js&
package/lib/main.js CHANGED
@@ -1294,6 +1294,7 @@ var getLength = function getLength(text) {
1294
1294
  * @desc:转换明度
1295
1295
  * @author huangbo
1296
1296
  * @date 2022年5月7日
1297
+ * @return {string,array} 元素类名或者id
1297
1298
  **/
1298
1299
  var getLightness = function getLightness($v, $i, $isLight) {
1299
1300
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1301,6 +1302,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1301
1302
  return toFixed($value, 2);
1302
1303
  };
1303
1304
 
1305
+ /**
1306
+ * getMainConfig
1307
+ * @desc 获取系统配置
1308
+ * @author huangbo
1309
+ * @date 2022年5月7日
1310
+ * @param {function} callback - 回调函数
1311
+ **/
1312
+ var getMainConfig = function getMainConfig(callback) {
1313
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1314
+ if (res && res.rCode === 0) {
1315
+ callback(res.results);
1316
+ }
1317
+ }).catch(function () {});
1318
+ };
1319
+
1304
1320
  /**
1305
1321
  * getMinute
1306
1322
  * @desc 获取分钟
@@ -2931,6 +2947,7 @@ var watermark = function watermark(option) {
2931
2947
  getHour: getHour,
2932
2948
  getWeekNumber: getWeekNumber,
2933
2949
  getLength: getLength,
2950
+ getMainConfig: getMainConfig,
2934
2951
  getMinute: getMinute,
2935
2952
  getMonth: getMonth,
2936
2953
  getObjectType: getObjectType,
@@ -3673,7 +3690,7 @@ module.exports = require("runtime-import");
3673
3690
  // ESM COMPAT FLAG
3674
3691
  __webpack_require__.r(__webpack_exports__);
3675
3692
 
3676
- // 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=79a0b910&
3693
+ // 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=31c26b8e&
3677
3694
  var render = function () {
3678
3695
  var _vm = this
3679
3696
  var _h = _vm.$createElement
@@ -4103,10 +4120,10 @@ var staticRenderFns = []
4103
4120
  render._withStripped = true
4104
4121
 
4105
4122
 
4106
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=79a0b910&
4123
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=31c26b8e&
4107
4124
 
4108
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=356fcf36&
4109
- var userinfovue_type_template_id_356fcf36_render = function () {
4125
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=137dd243&
4126
+ var userinfovue_type_template_id_137dd243_render = function () {
4110
4127
  var _vm = this
4111
4128
  var _h = _vm.$createElement
4112
4129
  var _c = _vm._self._c || _h
@@ -4122,11 +4139,11 @@ var userinfovue_type_template_id_356fcf36_render = function () {
4122
4139
  2
4123
4140
  )
4124
4141
  }
4125
- var userinfovue_type_template_id_356fcf36_staticRenderFns = []
4126
- userinfovue_type_template_id_356fcf36_render._withStripped = true
4142
+ var userinfovue_type_template_id_137dd243_staticRenderFns = []
4143
+ userinfovue_type_template_id_137dd243_render._withStripped = true
4127
4144
 
4128
4145
 
4129
- // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=356fcf36&
4146
+ // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=137dd243&
4130
4147
 
4131
4148
  // EXTERNAL MODULE: ./src/config/api.js
4132
4149
  var api = __webpack_require__(1);
@@ -4365,7 +4382,7 @@ var util = __webpack_require__(0);
4365
4382
  _this2.checkPassword = new RegExp(results.checkPassword);
4366
4383
  }
4367
4384
  if (results.checkPasswordMsg) {
4368
- _this2.checkPasswordMsg = new RegExp(results.checkPasswordMsg);
4385
+ _this2.checkPasswordMsg = results.checkPasswordMsg;
4369
4386
  }
4370
4387
  _this2.results = results.simpleUserInfo;
4371
4388
  _this2.values.orgName = results.simpleUserInfo.orgName;
@@ -4554,8 +4571,8 @@ var componentNormalizer = __webpack_require__(3);
4554
4571
 
4555
4572
  var component = Object(componentNormalizer["a" /* default */])(
4556
4573
  src_userinfovue_type_script_lang_js_,
4557
- userinfovue_type_template_id_356fcf36_render,
4558
- userinfovue_type_template_id_356fcf36_staticRenderFns,
4574
+ userinfovue_type_template_id_137dd243_render,
4575
+ userinfovue_type_template_id_137dd243_staticRenderFns,
4559
4576
  false,
4560
4577
  null,
4561
4578
  null,
@@ -6792,6 +6809,9 @@ var log = util["a" /* default */].getParams('console');
6792
6809
  sessionStorage.setItem('sysLogoIco', results[i]);
6793
6810
  util["a" /* default */].setFavicon(results[i]);
6794
6811
  }
6812
+ if (i === 'subsystemExtend' && results[i].themeColor) {
6813
+ this.color = unescape(results[i].themeColor).toLowerCase();
6814
+ }
6795
6815
  if (i === 'userStyle' && results[i].color) {
6796
6816
  this.color = unescape(results[i].color).toLowerCase();
6797
6817
  }
@@ -6834,21 +6854,12 @@ var log = util["a" /* default */].getParams('console');
6834
6854
  }
6835
6855
  return true;
6836
6856
  }
6837
- util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
6838
- if (res && res.rCode === 0) {
6839
- _this3.setConfig(res.results, 1);
6840
- if (_this3.remote) {
6841
- _this3.getMenu();
6842
- } else {
6843
- _this3.renderMenu();
6844
- }
6857
+ util["a" /* default */].getMainConfig(function (res) {
6858
+ _this3.setConfig(res, 1);
6859
+ if (_this3.remote) {
6860
+ _this3.getMenu();
6845
6861
  } else {
6846
- var msg = res.msg || '系统错误,请联系管理员!';
6847
- _this3.$message.error(msg);
6848
- }
6849
- }).catch(function (err) {
6850
- if (err.message && err.message !== 'canceled') {
6851
- _this3.$message.error(err.message);
6862
+ _this3.renderMenu();
6852
6863
  }
6853
6864
  });
6854
6865
  },
package/lib/nav.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/page.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/player.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/qr-code.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/select.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,