eoss-ui 0.5.13 → 0.5.15

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 (69) hide show
  1. package/lib/button-group.js +5 -1
  2. package/lib/button.js +7 -3
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +44 -22
  5. package/lib/data-table-form.js +8 -3
  6. package/lib/data-table.js +1205 -1517
  7. package/lib/date-picker.js +7 -3
  8. package/lib/dialog.js +14 -10
  9. package/lib/eoss-ui.common.js +1211 -1752
  10. package/lib/flow-group.js +5 -1
  11. package/lib/flow-list.js +7 -3
  12. package/lib/flow.js +12 -7
  13. package/lib/form.js +9 -10
  14. package/lib/handle-user.js +5 -1
  15. package/lib/handler.js +5 -1
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +7 -3
  19. package/lib/input.js +7 -3
  20. package/lib/label.js +2 -2
  21. package/lib/layout.js +166 -152
  22. package/lib/login.js +5 -1
  23. package/lib/main.js +11 -6
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +14 -10
  26. package/lib/notify.js +2 -2
  27. package/lib/page.js +7 -3
  28. package/lib/pagination.js +2 -2
  29. package/lib/player.js +13 -9
  30. package/lib/qr-code.js +9 -5
  31. package/lib/radio-group.js +48 -22
  32. package/lib/retrial-auth.js +7 -3
  33. package/lib/select-ganged.js +30 -6
  34. package/lib/select.js +46 -19
  35. package/lib/selector-panel.js +11 -6
  36. package/lib/selector.js +9 -5
  37. package/lib/sizer.js +7 -3
  38. package/lib/steps.js +14 -10
  39. package/lib/switch.js +7 -3
  40. package/lib/table-form.js +7 -3
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +7 -3
  43. package/lib/theme-chalk/data-table.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/tips.js +7 -3
  46. package/lib/toolbar.js +2 -2
  47. package/lib/tree-group.js +7 -3
  48. package/lib/tree.js +7 -3
  49. package/lib/upload.js +8 -4
  50. package/lib/utils/util.js +5 -1
  51. package/lib/wujie.js +7 -3
  52. package/lib/wxlogin.js +7 -3
  53. package/package.json +2 -2
  54. package/packages/checkbox-group/src/main.vue +20 -30
  55. package/packages/data-table/src/children.vue +4 -8
  56. package/packages/data-table/src/column.vue +524 -575
  57. package/packages/data-table/src/main.vue +95 -119
  58. package/packages/form/src/main.vue +2 -7
  59. package/packages/radio-group/src/main.vue +20 -30
  60. package/packages/select/src/main.vue +20 -29
  61. package/packages/select-ganged/src/main.vue +1 -3
  62. package/packages/theme-chalk/lib/data-table.css +1 -1
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/src/data-table.scss +2 -1
  65. package/src/index.js +1 -1
  66. package/src/utils/util.js +5 -1
  67. package/packages/data-table/src/column copy.vue +0 -977
  68. package/packages/data-table/src/main copy.vue +0 -1325
  69. package/packages/data-table/src/mixins/table.js +0 -12
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
package/lib/button.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 68);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 69);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3453,7 +3457,7 @@ module.exports = require("json-bigint");
3453
3457
 
3454
3458
  /***/ }),
3455
3459
 
3456
- /***/ 68:
3460
+ /***/ 69:
3457
3461
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3458
3462
 
3459
3463
  "use strict";
package/lib/cascader.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 69);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 70);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 69:
195
+ /***/ 70:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -3617,9 +3621,24 @@ window.__store = store;
3617
3621
  /***/ }),
3618
3622
  /* 12 */,
3619
3623
  /* 13 */,
3620
- /* 14 */,
3624
+ /* 14 */
3625
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3626
+
3627
+ "use strict";
3628
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3629
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3630
+
3631
+
3632
+ /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
3633
+
3634
+ /***/ }),
3621
3635
  /* 15 */,
3622
- /* 16 */,
3636
+ /* 16 */
3637
+ /***/ (function(module, exports) {
3638
+
3639
+ module.exports = require("vue");
3640
+
3641
+ /***/ }),
3623
3642
  /* 17 */,
3624
3643
  /* 18 */,
3625
3644
  /* 19 */,
@@ -3647,7 +3666,7 @@ window.__store = store;
3647
3666
  // ESM COMPAT FLAG
3648
3667
  __webpack_require__.r(__webpack_exports__);
3649
3668
 
3650
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=667a17b1&
3669
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=103e1959&
3651
3670
  var render = function () {
3652
3671
  var _vm = this
3653
3672
  var _h = _vm.$createElement
@@ -3780,7 +3799,7 @@ var staticRenderFns = []
3780
3799
  render._withStripped = true
3781
3800
 
3782
3801
 
3783
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=667a17b1&
3802
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=103e1959&
3784
3803
 
3785
3804
  // EXTERNAL MODULE: ./src/config/api.js
3786
3805
  var api = __webpack_require__(1);
@@ -3791,6 +3810,9 @@ var store = __webpack_require__(11);
3791
3810
  // EXTERNAL MODULE: ./src/utils/util.js
3792
3811
  var util = __webpack_require__(0);
3793
3812
 
3813
+ // EXTERNAL MODULE: ./src/utils/bus.js
3814
+ var bus = __webpack_require__(14);
3815
+
3794
3816
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
3795
3817
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
3796
3818
 
@@ -3853,15 +3875,13 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3853
3875
 
3854
3876
 
3855
3877
 
3878
+
3856
3879
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3857
3880
  name: 'EsCheckboxGroup',
3858
3881
  inheritAttrs: false,
3859
3882
  inject: {
3860
3883
  esForm: {
3861
3884
  default: ''
3862
- },
3863
- sysCodes: {
3864
- default: ''
3865
3885
  }
3866
3886
  },
3867
3887
  props: {
@@ -4018,21 +4038,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4018
4038
  handler: function handler() {
4019
4039
  this.url && this.getData(this.url);
4020
4040
  }
4021
- },
4022
- sysCodes: {
4023
- deep: true,
4024
- handler: function handler(val) {
4025
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
4026
- if (this.parseData) {
4027
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
4028
- } else {
4029
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
4030
- }
4031
- }
4032
- }
4033
4041
  }
4034
4042
  },
4035
- created: function created() {},
4043
+ created: function created() {
4044
+ this.bindEventBus();
4045
+ },
4036
4046
  mounted: function mounted() {},
4037
4047
 
4038
4048
  methods: {
@@ -4060,7 +4070,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4060
4070
  if (res.rCode === 0) {
4061
4071
  _this2.options = JSON.parse(JSON.stringify(res.results));
4062
4072
  if (sysCode || _this2.dataKey) {
4063
- _this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4073
+ bus["a" /* default */].$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
4064
4074
  store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(res.results)));
4065
4075
  }
4066
4076
  } else {
@@ -4084,7 +4094,19 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4084
4094
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
4085
4095
  }
4086
4096
  return util["a" /* default */].isObject(res) ? _extends({}, attrs, res) : attrs;
4097
+ },
4098
+ setOptions: function setOptions(val) {
4099
+ this.options = val;
4100
+ },
4101
+ bindEventBus: function bindEventBus() {
4102
+ bus["a" /* default */].$on(this.sysCode || this.dataKey, this.setOptions);
4103
+ },
4104
+ unbindEventBus: function unbindEventBus() {
4105
+ bus["a" /* default */].$off(this.sysCode || this.dataKey, this.setOptions);
4087
4106
  }
4107
+ },
4108
+ beforeDestroy: function beforeDestroy() {
4109
+ this.unbindEventBus();
4088
4110
  }
4089
4111
  });
4090
4112
  // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=script&lang=js&
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 29);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 30);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -3632,7 +3636,8 @@ window.__store = store;
3632
3636
  /* 26 */,
3633
3637
  /* 27 */,
3634
3638
  /* 28 */,
3635
- /* 29 */
3639
+ /* 29 */,
3640
+ /* 30 */
3636
3641
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3637
3642
 
3638
3643
  "use strict";