eoss-ui 0.5.30 → 0.5.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.
Files changed (56) hide show
  1. package/lib/button-group.js +12 -0
  2. package/lib/button.js +12 -0
  3. package/lib/cascader.js +18 -15
  4. package/lib/checkbox-group.js +31 -8
  5. package/lib/data-table-form.js +12 -0
  6. package/lib/data-table.js +26 -13
  7. package/lib/date-picker.js +12 -0
  8. package/lib/dialog.js +12 -0
  9. package/lib/eoss-ui.common.js +1793 -1797
  10. package/lib/flow-group.js +14 -2
  11. package/lib/flow-list.js +12 -0
  12. package/lib/flow.js +12 -0
  13. package/lib/form.js +42 -11
  14. package/lib/handle-user.js +12 -0
  15. package/lib/handler.js +12 -0
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +12 -0
  18. package/lib/input.js +28 -7
  19. package/lib/login.js +37 -123
  20. package/lib/main.js +12 -0
  21. package/lib/nav.js +12 -0
  22. package/lib/page.js +12 -0
  23. package/lib/player.js +12 -0
  24. package/lib/qr-code.js +12 -0
  25. package/lib/radio-group.js +15 -3
  26. package/lib/retrial-auth.js +12 -0
  27. package/lib/select-ganged.js +12 -0
  28. package/lib/select.js +12 -0
  29. package/lib/selector-panel.js +12 -0
  30. package/lib/selector.js +15 -3
  31. package/lib/sizer.js +12 -0
  32. package/lib/steps.js +12 -0
  33. package/lib/switch.js +12 -0
  34. package/lib/table-form.js +12 -0
  35. package/lib/tabs.js +1619 -1568
  36. package/lib/tips.js +12 -0
  37. package/lib/tree-group.js +12 -0
  38. package/lib/tree.js +12 -0
  39. package/lib/upload.js +12 -0
  40. package/lib/utils/util.js +12 -0
  41. package/lib/wujie.js +12 -0
  42. package/lib/wxlogin.js +12 -0
  43. package/package.json +2 -2
  44. package/packages/cascader/src/main.vue +24 -19
  45. package/packages/checkbox-group/src/main.vue +14 -9
  46. package/packages/data-table/src/column.vue +9 -7
  47. package/packages/flow-group/src/main.vue +1 -1
  48. package/packages/form/src/main.vue +8 -1
  49. package/packages/input/src/main.vue +20 -16
  50. package/packages/login/src/main.vue +8 -3
  51. package/packages/login/src/resetPassword.vue +11 -114
  52. package/packages/radio-group/src/main.vue +1 -1
  53. package/packages/selector/src/main.vue +1 -1
  54. package/packages/tabs/src/main.vue +563 -542
  55. package/src/index.js +1 -1
  56. package/src/utils/util.js +12 -0
package/lib/flow-group.js CHANGED
@@ -1915,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1915
1915
  return -1;
1916
1916
  };
1917
1917
 
1918
+ /**
1919
+ * isExist
1920
+ * @desc:判断是否存在
1921
+ * @author huangbo
1922
+ * @date 2022年5月7日
1923
+ * @param {Object} [obj] -
1924
+ **/
1925
+ var isExist = function isExist(obj) {
1926
+ return obj !== undefined && obj !== null && obj === '';
1927
+ };
1928
+
1918
1929
  /**
1919
1930
  * isFunction
1920
1931
  * @desc:判断是否是函数
@@ -2939,6 +2950,7 @@ var watermark = function watermark(option) {
2939
2950
  hsvTorgb: hsvTorgb,
2940
2951
  identical: identical,
2941
2952
  indexOfObj: indexOfObj,
2953
+ isExist: isExist,
2942
2954
  isFunction: isFunction,
2943
2955
  isLogged: isLogged,
2944
2956
  isLogined: isLogined,
@@ -3453,7 +3465,7 @@ module.exports = require("qs");
3453
3465
  // ESM COMPAT FLAG
3454
3466
  __webpack_require__.r(__webpack_exports__);
3455
3467
 
3456
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=template&id=ae5b4260&
3468
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow-group/src/main.vue?vue&type=template&id=4bb7ba64&
3457
3469
  var render = function () {
3458
3470
  var _vm = this
3459
3471
  var _h = _vm.$createElement
@@ -4677,7 +4689,7 @@ var staticRenderFns = []
4677
4689
  render._withStripped = true
4678
4690
 
4679
4691
 
4680
- // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=ae5b4260&
4692
+ // CONCATENATED MODULE: ./packages/flow-group/src/main.vue?vue&type=template&id=4bb7ba64&
4681
4693
 
4682
4694
  // EXTERNAL MODULE: ./src/utils/util.js
4683
4695
  var util = __webpack_require__(0);
package/lib/flow-list.js CHANGED
@@ -1915,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1915
1915
  return -1;
1916
1916
  };
1917
1917
 
1918
+ /**
1919
+ * isExist
1920
+ * @desc:判断是否存在
1921
+ * @author huangbo
1922
+ * @date 2022年5月7日
1923
+ * @param {Object} [obj] -
1924
+ **/
1925
+ var isExist = function isExist(obj) {
1926
+ return obj !== undefined && obj !== null && obj === '';
1927
+ };
1928
+
1918
1929
  /**
1919
1930
  * isFunction
1920
1931
  * @desc:判断是否是函数
@@ -2939,6 +2950,7 @@ var watermark = function watermark(option) {
2939
2950
  hsvTorgb: hsvTorgb,
2940
2951
  identical: identical,
2941
2952
  indexOfObj: indexOfObj,
2953
+ isExist: isExist,
2942
2954
  isFunction: isFunction,
2943
2955
  isLogged: isLogged,
2944
2956
  isLogined: isLogined,
package/lib/flow.js CHANGED
@@ -1914,6 +1914,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1914
1914
  return -1;
1915
1915
  };
1916
1916
 
1917
+ /**
1918
+ * isExist
1919
+ * @desc:判断是否存在
1920
+ * @author huangbo
1921
+ * @date 2022年5月7日
1922
+ * @param {Object} [obj] -
1923
+ **/
1924
+ var isExist = function isExist(obj) {
1925
+ return obj !== undefined && obj !== null && obj === '';
1926
+ };
1927
+
1917
1928
  /**
1918
1929
  * isFunction
1919
1930
  * @desc:判断是否是函数
@@ -2938,6 +2949,7 @@ var watermark = function watermark(option) {
2938
2949
  hsvTorgb: hsvTorgb,
2939
2950
  identical: identical,
2940
2951
  indexOfObj: indexOfObj,
2952
+ isExist: isExist,
2941
2953
  isFunction: isFunction,
2942
2954
  isLogged: isLogged,
2943
2955
  isLogined: isLogined,
package/lib/form.js CHANGED
@@ -1914,6 +1914,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1914
1914
  return -1;
1915
1915
  };
1916
1916
 
1917
+ /**
1918
+ * isExist
1919
+ * @desc:判断是否存在
1920
+ * @author huangbo
1921
+ * @date 2022年5月7日
1922
+ * @param {Object} [obj] -
1923
+ **/
1924
+ var isExist = function isExist(obj) {
1925
+ return obj !== undefined && obj !== null && obj === '';
1926
+ };
1927
+
1917
1928
  /**
1918
1929
  * isFunction
1919
1930
  * @desc:判断是否是函数
@@ -2938,6 +2949,7 @@ var watermark = function watermark(option) {
2938
2949
  hsvTorgb: hsvTorgb,
2939
2950
  identical: identical,
2940
2951
  indexOfObj: indexOfObj,
2952
+ isExist: isExist,
2941
2953
  isFunction: isFunction,
2942
2954
  isLogged: isLogged,
2943
2955
  isLogined: isLogined,
@@ -3663,7 +3675,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3663
3675
  // ESM COMPAT FLAG
3664
3676
  __webpack_require__.r(__webpack_exports__);
3665
3677
 
3666
- // 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=8e0d1656&
3678
+ // 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=93b578ee&
3667
3679
  var render = function () {
3668
3680
  var _vm = this
3669
3681
  var _h = _vm.$createElement
@@ -14584,7 +14596,7 @@ var staticRenderFns = []
14584
14596
  render._withStripped = true
14585
14597
 
14586
14598
 
14587
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=8e0d1656&
14599
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=93b578ee&
14588
14600
 
14589
14601
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
14590
14602
  var regenerator_ = __webpack_require__(12);
@@ -18650,7 +18662,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
18650
18662
  default: 3
18651
18663
  },
18652
18664
  zoom: false,
18653
- showMsg: true
18665
+ showMsg: true,
18666
+ validated: Function
18654
18667
  },
18655
18668
  data: function data() {
18656
18669
  return {
@@ -19398,11 +19411,20 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19398
19411
  switch (_context3.prev = _context3.next) {
19399
19412
  case 0:
19400
19413
  if (!valid) {
19401
- _context3.next = 10;
19414
+ _context3.next = 12;
19402
19415
  break;
19403
19416
  }
19404
19417
 
19405
19418
  models = _this11.getNewValue(util["a" /* default */].extend({}, _this11._value, _this11.models), handle, type);
19419
+
19420
+ if (!(_this11.validated && !_this11.validated(models, validate))) {
19421
+ _context3.next = 4;
19422
+ break;
19423
+ }
19424
+
19425
+ return _context3.abrupt('return', reject(err));
19426
+
19427
+ case 4:
19406
19428
  param = _this11.param;
19407
19429
 
19408
19430
  if (handle.param) {
@@ -19413,7 +19435,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19413
19435
  if (_this11.submitLoading) {
19414
19436
  loading = util["a" /* default */].loading(_this11.$loading, handle.loadingText ? handle.loadingText + '...' : '提交中...');
19415
19437
  }
19416
- _context3.next = 8;
19438
+ _context3.next = 10;
19417
19439
  return util["a" /* default */].ajax({
19418
19440
  url: _typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
19419
19441
  format: handle.format || _this11.format,
@@ -19449,16 +19471,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19449
19471
  reject(err);
19450
19472
  });
19451
19473
 
19452
- case 8:
19453
- _context3.next = 13;
19474
+ case 10:
19475
+ _context3.next = 15;
19454
19476
  break;
19455
19477
 
19456
- case 10:
19478
+ case 12:
19457
19479
  _this11.setScroll(valid, triggers, _this11.$refs.scrollbar);
19458
19480
  console.error(valid);
19459
19481
  return _context3.abrupt('return', false);
19460
19482
 
19461
- case 13:
19483
+ case 15:
19462
19484
  case 'end':
19463
19485
  return _context3.stop();
19464
19486
  }
@@ -19476,6 +19498,15 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19476
19498
  switch (_context4.prev = _context4.next) {
19477
19499
  case 0:
19478
19500
  models = _this11.getNewValue(util["a" /* default */].extend({}, _this11._value, _this11.models), handle, type);
19501
+
19502
+ if (!(_this11.validated && !_this11.validated(models, validate))) {
19503
+ _context4.next = 3;
19504
+ break;
19505
+ }
19506
+
19507
+ return _context4.abrupt('return', reject(err));
19508
+
19509
+ case 3:
19479
19510
  param = _this11.param;
19480
19511
 
19481
19512
  if (handle.param) {
@@ -19486,7 +19517,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19486
19517
  if (_this11.submitLoading) {
19487
19518
  loading = util["a" /* default */].loading(_this11.$loading, handle.loadingText ? handle.loadingText + '...' : '提交中...');
19488
19519
  }
19489
- _context4.next = 7;
19520
+ _context4.next = 9;
19490
19521
  return util["a" /* default */].ajax({
19491
19522
  url: _typeof(_this11.action) === 'object' ? _this11.action[_this11.actionType] : _this11.action,
19492
19523
  format: handle.format || _this11.format,
@@ -19522,7 +19553,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19522
19553
  reject(err);
19523
19554
  });
19524
19555
 
19525
- case 7:
19556
+ case 9:
19526
19557
  case 'end':
19527
19558
  return _context4.stop();
19528
19559
  }
@@ -1915,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1915
1915
  return -1;
1916
1916
  };
1917
1917
 
1918
+ /**
1919
+ * isExist
1920
+ * @desc:判断是否存在
1921
+ * @author huangbo
1922
+ * @date 2022年5月7日
1923
+ * @param {Object} [obj] -
1924
+ **/
1925
+ var isExist = function isExist(obj) {
1926
+ return obj !== undefined && obj !== null && obj === '';
1927
+ };
1928
+
1918
1929
  /**
1919
1930
  * isFunction
1920
1931
  * @desc:判断是否是函数
@@ -2939,6 +2950,7 @@ var watermark = function watermark(option) {
2939
2950
  hsvTorgb: hsvTorgb,
2940
2951
  identical: identical,
2941
2952
  indexOfObj: indexOfObj,
2953
+ isExist: isExist,
2942
2954
  isFunction: isFunction,
2943
2955
  isLogged: isLogged,
2944
2956
  isLogined: isLogined,
package/lib/handler.js CHANGED
@@ -1915,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1915
1915
  return -1;
1916
1916
  };
1917
1917
 
1918
+ /**
1919
+ * isExist
1920
+ * @desc:判断是否存在
1921
+ * @author huangbo
1922
+ * @date 2022年5月7日
1923
+ * @param {Object} [obj] -
1924
+ **/
1925
+ var isExist = function isExist(obj) {
1926
+ return obj !== undefined && obj !== null && obj === '';
1927
+ };
1928
+
1918
1929
  /**
1919
1930
  * isFunction
1920
1931
  * @desc:判断是否是函数
@@ -2939,6 +2950,7 @@ var watermark = function watermark(option) {
2939
2950
  hsvTorgb: hsvTorgb,
2940
2951
  identical: identical,
2941
2952
  indexOfObj: indexOfObj,
2953
+ isExist: isExist,
2942
2954
  isFunction: isFunction,
2943
2955
  isLogged: isLogged,
2944
2956
  isLogined: isLogined,