eoss-ui 0.5.63 → 0.5.65

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 (82) hide show
  1. package/lib/button-group.js +43 -23
  2. package/lib/button.js +65 -39
  3. package/lib/calendar.js +13 -5
  4. package/lib/checkbox-group.js +4 -2
  5. package/lib/data-table-form.js +4 -2
  6. package/lib/data-table.js +112 -25
  7. package/lib/date-picker.js +4 -2
  8. package/lib/dialog.js +4 -2
  9. package/lib/eoss-ui.common.js +635 -393
  10. package/lib/flow-group.js +4 -2
  11. package/lib/flow-list.js +4 -2
  12. package/lib/flow.js +153 -123
  13. package/lib/form.js +9 -4
  14. package/lib/handle-user.js +4 -2
  15. package/lib/handler.js +4 -2
  16. package/lib/icon.js +4 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +4 -2
  19. package/lib/input.js +4 -2
  20. package/lib/login.js +23 -6
  21. package/lib/main.js +189 -128
  22. package/lib/nav.js +4 -2
  23. package/lib/page.js +4 -2
  24. package/lib/player.js +4 -2
  25. package/lib/qr-code.js +13 -13
  26. package/lib/radio-group.js +4 -2
  27. package/lib/retrial-auth.js +4 -2
  28. package/lib/select-ganged.js +4 -2
  29. package/lib/select.js +4 -2
  30. package/lib/selector-panel.js +4 -2
  31. package/lib/selector.js +4 -2
  32. package/lib/sizer.js +4 -2
  33. package/lib/steps.js +4 -2
  34. package/lib/switch.js +4 -2
  35. package/lib/table-form.js +4 -2
  36. package/lib/tabs.js +4 -2
  37. package/lib/theme-chalk/base.css +1 -1
  38. package/lib/theme-chalk/button-group.css +1 -1
  39. package/lib/theme-chalk/button.css +1 -1
  40. package/lib/theme-chalk/calendar.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/menu.css +1 -1
  44. package/lib/theme-chalk/qr-code.css +1 -1
  45. package/lib/theme-chalk/sizer.css +1 -1
  46. package/lib/theme-chalk/upload.css +1 -1
  47. package/lib/tips.js +4 -2
  48. package/lib/tree-group.js +4 -2
  49. package/lib/tree.js +4 -2
  50. package/lib/upload.js +12 -8
  51. package/lib/utils/util.js +4 -2
  52. package/lib/wujie.js +4 -2
  53. package/lib/wxlogin.js +4 -2
  54. package/package.json +2 -2
  55. package/packages/button/src/main.vue +92 -56
  56. package/packages/button-group/src/main.vue +10 -1
  57. package/packages/calendar/src/main.vue +11 -4
  58. package/packages/data-table/src/children.vue +3 -1
  59. package/packages/data-table/src/main.vue +55 -10
  60. package/packages/flow/src/processForm.vue +32 -4
  61. package/packages/form/src/main.vue +3 -0
  62. package/packages/login/src/main.vue +12 -1
  63. package/packages/main/src/main.vue +147 -101
  64. package/packages/qr-code/src/main.vue +10 -5
  65. package/packages/theme-chalk/lib/base.css +1 -1
  66. package/packages/theme-chalk/lib/button-group.css +1 -1
  67. package/packages/theme-chalk/lib/button.css +1 -1
  68. package/packages/theme-chalk/lib/calendar.css +1 -1
  69. package/packages/theme-chalk/lib/index.css +1 -1
  70. package/packages/theme-chalk/lib/main.css +1 -1
  71. package/packages/theme-chalk/lib/menu.css +1 -1
  72. package/packages/theme-chalk/lib/qr-code.css +1 -1
  73. package/packages/theme-chalk/lib/sizer.css +1 -1
  74. package/packages/theme-chalk/lib/upload.css +1 -1
  75. package/packages/theme-chalk/src/base.scss +3 -0
  76. package/packages/theme-chalk/src/button-group.scss +110 -0
  77. package/packages/theme-chalk/src/button.scss +6 -0
  78. package/packages/theme-chalk/src/calendar.scss +3 -0
  79. package/packages/theme-chalk/src/qr-code.scss +1 -1
  80. package/packages/upload/src/main.vue +3 -1
  81. package/src/index.js +1 -1
  82. package/src/utils/util.js +4 -1
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
2201
2201
  });
2202
2202
  }
2203
2203
  }).catch(function (e) {});
2204
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2205
2205
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2206
2206
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2207
2207
  } else {
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
2891
2891
  * @param {string} [$color] - 颜色值
2892
2892
  **/
2893
2893
  var updateTheme = function updateTheme(color, send) {
2894
- color = color && startWith(color, '#') ? color : '#409eff';
2894
+ if (!color) {
2895
+ return false;
2896
+ }
2895
2897
 
2896
2898
  if (send === undefined) {
2897
2899
  send = true;
package/lib/input.js CHANGED
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
2201
2201
  });
2202
2202
  }
2203
2203
  }).catch(function (e) {});
2204
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2205
2205
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2206
2206
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2207
2207
  } else {
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
2891
2891
  * @param {string} [$color] - 颜色值
2892
2892
  **/
2893
2893
  var updateTheme = function updateTheme(color, send) {
2894
- color = color && startWith(color, '#') ? color : '#409eff';
2894
+ if (!color) {
2895
+ return false;
2896
+ }
2895
2897
 
2896
2898
  if (send === undefined) {
2897
2899
  send = true;
package/lib/login.js CHANGED
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
2200
2200
  });
2201
2201
  }
2202
2202
  }).catch(function (e) {});
2203
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2203
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
2204
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2205
2205
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2206
2206
  } else {
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
2890
2890
  * @param {string} [$color] - 颜色值
2891
2891
  **/
2892
2892
  var updateTheme = function updateTheme(color, send) {
2893
- color = color && startWith(color, '#') ? color : '#409eff';
2893
+ if (!color) {
2894
+ return false;
2895
+ }
2894
2896
 
2895
2897
  if (send === undefined) {
2896
2898
  send = true;
@@ -3843,7 +3845,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3843
3845
  // ESM COMPAT FLAG
3844
3846
  __webpack_require__.r(__webpack_exports__);
3845
3847
 
3846
- // 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=e5e62fc8&
3848
+ // 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=b795be2e&
3847
3849
  var render = function () {
3848
3850
  var _vm = this
3849
3851
  var _h = _vm.$createElement
@@ -4361,7 +4363,10 @@ var render = function () {
4361
4363
  ),
4362
4364
  _vm.active == 3 && _vm.identifyingId
4363
4365
  ? _c("es-qr-code", {
4364
- attrs: { content: _vm.identifyingId },
4366
+ attrs: {
4367
+ content: _vm.identifyingId,
4368
+ logo: _vm.qrimg,
4369
+ },
4365
4370
  })
4366
4371
  : _vm._e(),
4367
4372
  _vm.active == 9
@@ -4764,7 +4769,7 @@ var staticRenderFns = []
4764
4769
  render._withStripped = true
4765
4770
 
4766
4771
 
4767
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=e5e62fc8&
4772
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=b795be2e&
4768
4773
 
4769
4774
  // 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&
4770
4775
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -5685,6 +5690,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5685
5690
  //
5686
5691
  //
5687
5692
  //
5693
+ //
5688
5694
 
5689
5695
 
5690
5696
 
@@ -6001,6 +6007,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6001
6007
  this.loginInfo(val == 3);
6002
6008
  }
6003
6009
  },
6010
+ identifyingId: function identifyingId(val) {
6011
+ if (val) {
6012
+ this.loginInfo(this.active == 3);
6013
+ }
6014
+ },
6015
+
6004
6016
  appName: {
6005
6017
  immediate: true,
6006
6018
  handler: function handler(val) {
@@ -6306,7 +6318,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6306
6318
  this.downloadSetup = res.downloadSetup;
6307
6319
  document.title = res.subsystemName;
6308
6320
  this.app = res.appName || res.subsystemName;
6309
- this.qrimg = res.qrimg || res.qrImg;
6321
+ if (res.qrimg || res.qrImg) {
6322
+ this.qrimg = res.qrimg || res.qrImg;
6323
+ }
6310
6324
  if (res.loginModel) {
6311
6325
  this.loginModel = res.loginModel;
6312
6326
  }
@@ -6602,6 +6616,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6602
6616
  initRequestLoginInfo: function initRequestLoginInfo() {
6603
6617
  var _this9 = this;
6604
6618
 
6619
+ if (this.identifyingId == '') {
6620
+ return false;
6621
+ }
6605
6622
  util["a" /* default */].ajax({
6606
6623
  method: 'post',
6607
6624
  url: this.scanAction,