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
@@ -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,
package/lib/selector.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/sizer.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/steps.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/switch.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/table-form.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,
@@ -3507,8 +3524,8 @@ module.exports = require("json-bigint");
3507
3524
  // ESM COMPAT FLAG
3508
3525
  __webpack_require__.r(__webpack_exports__);
3509
3526
 
3510
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=b5a1829e&
3511
- var tablevue_type_template_id_b5a1829e_render = function () {
3527
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=0cd27751&
3528
+ var tablevue_type_template_id_0cd27751_render = function () {
3512
3529
  var _vm = this
3513
3530
  var _h = _vm.$createElement
3514
3531
  var _c = _vm._self._c || _h
@@ -3676,7 +3693,8 @@ var tablevue_type_template_id_b5a1829e_render = function () {
3676
3693
  class: {
3677
3694
  "es-align-middle": item.labelRow,
3678
3695
  "is-required":
3679
- _vm.required &&
3696
+ item.rules &&
3697
+ item.rules.required &&
3680
3698
  !_vm.hideRequiredAsterisk,
3681
3699
  "required-after": _vm.after,
3682
3700
  },
@@ -6163,10 +6181,10 @@ var tablevue_type_template_id_b5a1829e_render = function () {
6163
6181
  )
6164
6182
  }
6165
6183
  var staticRenderFns = []
6166
- tablevue_type_template_id_b5a1829e_render._withStripped = true
6184
+ tablevue_type_template_id_0cd27751_render._withStripped = true
6167
6185
 
6168
6186
 
6169
- // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=b5a1829e&
6187
+ // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=0cd27751&
6170
6188
 
6171
6189
  // EXTERNAL MODULE: ./src/utils/rules.js
6172
6190
  var rules = __webpack_require__(13);
@@ -7237,6 +7255,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
7237
7255
  //
7238
7256
  //
7239
7257
  //
7258
+ //
7240
7259
 
7241
7260
 
7242
7261
 
@@ -7556,7 +7575,7 @@ var componentNormalizer = __webpack_require__(3);
7556
7575
 
7557
7576
  var component = Object(componentNormalizer["a" /* default */])(
7558
7577
  src_tablevue_type_script_lang_js_,
7559
- tablevue_type_template_id_b5a1829e_render,
7578
+ tablevue_type_template_id_0cd27751_render,
7560
7579
  staticRenderFns,
7561
7580
  false,
7562
7581
  null,
package/lib/tabs.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/tips.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/tree-group.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/tree.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/upload.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,
package/lib/utils/util.js CHANGED
@@ -1212,6 +1212,7 @@ var getLength = function getLength(text) {
1212
1212
  * @desc:转换明度
1213
1213
  * @author huangbo
1214
1214
  * @date 2022年5月7日
1215
+ * @return {string,array} 元素类名或者id
1215
1216
  **/
1216
1217
  var getLightness = function getLightness($v, $i, $isLight) {
1217
1218
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1219,6 +1220,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1219
1220
  return toFixed($value, 2);
1220
1221
  };
1221
1222
 
1223
+ /**
1224
+ * getMainConfig
1225
+ * @desc 获取系统配置
1226
+ * @author huangbo
1227
+ * @date 2022年5月7日
1228
+ * @param {function} callback - 回调函数
1229
+ **/
1230
+ var getMainConfig = function getMainConfig(callback) {
1231
+ ajax({ url: _api.mainConfig }).then(function (res) {
1232
+ if (res && res.rCode === 0) {
1233
+ callback(res.results);
1234
+ }
1235
+ }).catch(function () {});
1236
+ };
1237
+
1222
1238
  /**
1223
1239
  * getMinute
1224
1240
  * @desc 获取分钟
@@ -2849,6 +2865,7 @@ exports.default = {
2849
2865
  getHour: getHour,
2850
2866
  getWeekNumber: getWeekNumber,
2851
2867
  getLength: getLength,
2868
+ getMainConfig: getMainConfig,
2852
2869
  getMinute: getMinute,
2853
2870
  getMonth: getMonth,
2854
2871
  getObjectType: getObjectType,
package/lib/wujie.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/wxlogin.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.34",
3
+ "version": "0.5.37",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [