eoss-ui 0.5.62 → 0.5.64

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 (73) hide show
  1. package/lib/button-group.js +11 -5
  2. package/lib/button.js +4 -2
  3. package/lib/checkbox-group.js +4 -2
  4. package/lib/data-table-form.js +4 -2
  5. package/lib/data-table.js +4 -2
  6. package/lib/date-picker.js +4 -2
  7. package/lib/dialog.js +4 -2
  8. package/lib/eoss-ui.common.js +543 -412
  9. package/lib/flow-group.js +4 -2
  10. package/lib/flow-list.js +4 -2
  11. package/lib/flow.js +156 -126
  12. package/lib/form.js +9 -4
  13. package/lib/handle-user.js +4 -2
  14. package/lib/handler.js +7 -5
  15. package/lib/icon.js +4 -2
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +4 -2
  18. package/lib/input.js +4 -2
  19. package/lib/label.js +2 -2
  20. package/lib/login.js +127 -61
  21. package/lib/main.js +193 -159
  22. package/lib/menu.js +2 -2
  23. package/lib/nav.js +4 -2
  24. package/lib/page.js +4 -2
  25. package/lib/player.js +4 -2
  26. package/lib/qr-code.js +13 -13
  27. package/lib/radio-group.js +4 -2
  28. package/lib/retrial-auth.js +4 -2
  29. package/lib/select-ganged.js +4 -2
  30. package/lib/select.js +4 -2
  31. package/lib/selector-panel.js +4 -2
  32. package/lib/selector.js +4 -2
  33. package/lib/sizer.js +4 -2
  34. package/lib/steps.js +4 -2
  35. package/lib/switch.js +4 -2
  36. package/lib/table-form.js +4 -2
  37. package/lib/tabs.js +4 -2
  38. package/lib/theme-chalk/form.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/theme-chalk/login.css +1 -1
  41. package/lib/theme-chalk/menu.css +1 -1
  42. package/lib/theme-chalk/qr-code.css +1 -1
  43. package/lib/tips.js +4 -2
  44. package/lib/tree-group.js +4 -2
  45. package/lib/tree.js +4 -2
  46. package/lib/upload.js +4 -2
  47. package/lib/utils/util.js +4 -2
  48. package/lib/wujie.js +4 -2
  49. package/lib/wxlogin.js +4 -2
  50. package/package.json +1 -1
  51. package/packages/button-group/src/main.vue +7 -1
  52. package/packages/flow/src/main.vue +1 -1
  53. package/packages/flow/src/processForm.vue +32 -4
  54. package/packages/form/src/main.vue +3 -0
  55. package/packages/handler/src/main.vue +1 -1
  56. package/packages/label/src/main.vue +2 -2
  57. package/packages/login/src/main.vue +53 -33
  58. package/packages/main/src/main.vue +21 -15
  59. package/packages/main/src/userinfo.vue +165 -150
  60. package/packages/menu/src/main.vue +2 -2
  61. package/packages/qr-code/src/main.vue +10 -5
  62. package/packages/theme-chalk/lib/form.css +1 -1
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/lib/login.css +1 -1
  65. package/packages/theme-chalk/lib/menu.css +1 -1
  66. package/packages/theme-chalk/lib/qr-code.css +1 -1
  67. package/packages/theme-chalk/src/form.scss +5 -3
  68. package/packages/theme-chalk/src/login.scss +6 -0
  69. package/packages/theme-chalk/src/menu.scss +1 -1
  70. package/packages/theme-chalk/src/qr-code.scss +1 -1
  71. package/src/index.js +1 -1
  72. package/src/utils/util.js +4 -1
  73. package/CHANGELOG.md +0 -929
@@ -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;
@@ -3614,7 +3616,7 @@ function normalizeComponent(
3614
3616
  // ESM COMPAT FLAG
3615
3617
  __webpack_require__.r(__webpack_exports__);
3616
3618
 
3617
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=24005b83&
3619
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
3618
3620
  var render = function () {
3619
3621
  var _vm = this
3620
3622
  var _h = _vm.$createElement
@@ -3756,7 +3758,7 @@ var staticRenderFns = []
3756
3758
  render._withStripped = true
3757
3759
 
3758
3760
 
3759
- // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=24005b83&
3761
+ // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=a336a590&
3760
3762
 
3761
3763
  // EXTERNAL MODULE: ./src/utils/util.js
3762
3764
  var util = __webpack_require__(0);
@@ -3860,6 +3862,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3860
3862
  size: {
3861
3863
  type: String,
3862
3864
  default: 'mini'
3865
+ },
3866
+ placement: {
3867
+ type: String,
3868
+ default: 'bottom'
3863
3869
  }
3864
3870
  },
3865
3871
  computed: {
@@ -3867,7 +3873,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3867
3873
  return this.getBtns();
3868
3874
  },
3869
3875
  showBtns: function showBtns() {
3870
- return this.btns.slice(0, this.length - 1);
3876
+ return this.btns.length > this.length ? this.btns.slice(0, this.length - 1) : this.btns;
3871
3877
  },
3872
3878
  other: function other() {
3873
3879
  var btns = this.length > 0 && (this.btns.length > this.length || this.length == 1) ? this.btns.slice(this.length - 1, this.btns.length) : [];
package/lib/button.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;
@@ -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;
@@ -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;
package/lib/data-table.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;
@@ -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/dialog.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;