eoss-ui 0.5.96 → 0.5.98

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 (88) hide show
  1. package/lib/button-group.js +6 -2
  2. package/lib/button.js +6 -2
  3. package/lib/checkbox-group.js +6 -2
  4. package/lib/data-table-form.js +6 -2
  5. package/lib/data-table.js +28 -16
  6. package/lib/date-picker.js +6 -2
  7. package/lib/dialog.js +6 -2
  8. package/lib/eoss-ui.common.js +342 -266
  9. package/lib/flow-group.js +6 -2
  10. package/lib/flow-list.js +6 -2
  11. package/lib/flow.js +6 -2
  12. package/lib/form.js +6 -2
  13. package/lib/handle-user.js +6 -2
  14. package/lib/handler.js +17 -9
  15. package/lib/icon.js +6 -2
  16. package/lib/icons.js +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +6 -2
  19. package/lib/input.js +6 -2
  20. package/lib/login.js +9 -5
  21. package/lib/main.js +284 -220
  22. package/lib/nav.js +6 -2
  23. package/lib/page.js +6 -2
  24. package/lib/pagination.js +6 -2
  25. package/lib/player.js +6 -2
  26. package/lib/qr-code.js +6 -2
  27. package/lib/radio-group.js +6 -2
  28. package/lib/retrial-auth.js +6 -2
  29. package/lib/select-ganged.js +6 -2
  30. package/lib/select.js +6 -2
  31. package/lib/selector-panel.js +6 -2
  32. package/lib/selector.js +6 -2
  33. package/lib/sizer.js +6 -2
  34. package/lib/steps.js +6 -2
  35. package/lib/switch.js +6 -2
  36. package/lib/table-form.js +6 -2
  37. package/lib/tabs.js +6 -2
  38. package/lib/theme-chalk/base.css +1 -1
  39. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  40. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  41. package/lib/theme-chalk/icon.css +1 -1
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/theme-chalk/main.css +1 -1
  44. package/lib/theme-chalk/menu.css +1 -1
  45. package/lib/theme-chalk/simplicity.css +1 -1
  46. package/lib/theme-chalk/sizer.css +1 -1
  47. package/lib/theme-chalk/upload.css +1 -1
  48. package/lib/tips.js +6 -2
  49. package/lib/tree-group.js +6 -2
  50. package/lib/tree.js +6 -2
  51. package/lib/upload.js +6 -2
  52. package/lib/utils/util.js +6 -2
  53. package/lib/wujie.js +6 -2
  54. package/lib/wxlogin.js +6 -2
  55. package/package.json +1 -1
  56. package/packages/.DS_Store +0 -0
  57. package/packages/data-table/src/main.vue +18 -12
  58. package/packages/handler/.DS_Store +0 -0
  59. package/packages/handler/src/main.vue +11 -6
  60. package/packages/icons/src/icon.json +1 -1
  61. package/packages/login/.DS_Store +0 -0
  62. package/packages/login/src/main.vue +1 -1
  63. package/packages/main/.DS_Store +0 -0
  64. package/packages/main/src/.DS_Store +0 -0
  65. package/packages/main/src/default/index.vue +19 -3
  66. package/packages/main/src/default/settings.vue +2 -2
  67. package/packages/main/src/main.vue +25 -4
  68. package/packages/main/src/simplicity/handler.vue +32 -28
  69. package/packages/main/src/simplicity/index.vue +46 -39
  70. package/packages/theme-chalk/lib/base.css +1 -1
  71. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  72. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  73. package/packages/theme-chalk/lib/icon.css +1 -1
  74. package/packages/theme-chalk/lib/index.css +1 -1
  75. package/packages/theme-chalk/lib/main.css +1 -1
  76. package/packages/theme-chalk/lib/menu.css +1 -1
  77. package/packages/theme-chalk/lib/simplicity.css +1 -1
  78. package/packages/theme-chalk/lib/sizer.css +1 -1
  79. package/packages/theme-chalk/lib/upload.css +1 -1
  80. package/packages/theme-chalk/src/.DS_Store +0 -0
  81. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  82. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  83. package/packages/theme-chalk/src/icon.scss +8 -0
  84. package/packages/theme-chalk/src/mixins/util.scss +0 -0
  85. package/packages/theme-chalk/src/simplicity.scss +160 -0
  86. package/src/.DS_Store +0 -0
  87. package/src/index.js +1 -1
  88. package/src/utils/util.js +6 -2
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
2175
2175
  next && next();
2176
2176
  } else {
2177
2177
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2178
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2178
2179
  ajax({
2179
2180
  method: 'post',
2180
2181
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
2273
2274
  }
2274
2275
  });
2275
2276
  }
2276
- }).catch(function (e) {});
2277
+ loadingInstance.close();
2278
+ }).catch(function (e) {
2279
+ loadingInstance.close();
2280
+ });
2277
2281
  } 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') {
2278
2282
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2279
2283
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
2676
2680
  } else {
2677
2681
  n = 1;
2678
2682
  }
2679
- if (zoom === 1) {
2683
+ if (zoom === 1 && window.innerWidth === width) {
2680
2684
  document.body.style.removeProperty('transform');
2681
2685
  document.body.style.removeProperty('width');
2682
2686
  document.body.style.removeProperty('height');
package/lib/button.js CHANGED
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
2175
2175
  next && next();
2176
2176
  } else {
2177
2177
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2178
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2178
2179
  ajax({
2179
2180
  method: 'post',
2180
2181
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
2273
2274
  }
2274
2275
  });
2275
2276
  }
2276
- }).catch(function (e) {});
2277
+ loadingInstance.close();
2278
+ }).catch(function (e) {
2279
+ loadingInstance.close();
2280
+ });
2277
2281
  } 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') {
2278
2282
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2279
2283
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
2676
2680
  } else {
2677
2681
  n = 1;
2678
2682
  }
2679
- if (zoom === 1) {
2683
+ if (zoom === 1 && window.innerWidth === width) {
2680
2684
  document.body.style.removeProperty('transform');
2681
2685
  document.body.style.removeProperty('width');
2682
2686
  document.body.style.removeProperty('height');
@@ -2174,6 +2174,7 @@ var isLogined = function isLogined(_ref8) {
2174
2174
  next && next();
2175
2175
  } else {
2176
2176
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2177
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2177
2178
  ajax({
2178
2179
  method: 'post',
2179
2180
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2272,7 +2273,10 @@ var isLogined = function isLogined(_ref8) {
2272
2273
  }
2273
2274
  });
2274
2275
  }
2275
- }).catch(function (e) {});
2276
+ loadingInstance.close();
2277
+ }).catch(function (e) {
2278
+ loadingInstance.close();
2279
+ });
2276
2280
  } 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') {
2277
2281
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2278
2282
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2675,7 +2679,7 @@ var setScale = function setScale() {
2675
2679
  } else {
2676
2680
  n = 1;
2677
2681
  }
2678
- if (zoom === 1) {
2682
+ if (zoom === 1 && window.innerWidth === width) {
2679
2683
  document.body.style.removeProperty('transform');
2680
2684
  document.body.style.removeProperty('width');
2681
2685
  document.body.style.removeProperty('height');
@@ -2174,6 +2174,7 @@ var isLogined = function isLogined(_ref8) {
2174
2174
  next && next();
2175
2175
  } else {
2176
2176
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2177
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2177
2178
  ajax({
2178
2179
  method: 'post',
2179
2180
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2272,7 +2273,10 @@ var isLogined = function isLogined(_ref8) {
2272
2273
  }
2273
2274
  });
2274
2275
  }
2275
- }).catch(function (e) {});
2276
+ loadingInstance.close();
2277
+ }).catch(function (e) {
2278
+ loadingInstance.close();
2279
+ });
2276
2280
  } 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') {
2277
2281
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2278
2282
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2675,7 +2679,7 @@ var setScale = function setScale() {
2675
2679
  } else {
2676
2680
  n = 1;
2677
2681
  }
2678
- if (zoom === 1) {
2682
+ if (zoom === 1 && window.innerWidth === width) {
2679
2683
  document.body.style.removeProperty('transform');
2680
2684
  document.body.style.removeProperty('width');
2681
2685
  document.body.style.removeProperty('height');
package/lib/data-table.js CHANGED
@@ -2174,6 +2174,7 @@ var isLogined = function isLogined(_ref8) {
2174
2174
  next && next();
2175
2175
  } else {
2176
2176
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2177
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2177
2178
  ajax({
2178
2179
  method: 'post',
2179
2180
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2272,7 +2273,10 @@ var isLogined = function isLogined(_ref8) {
2272
2273
  }
2273
2274
  });
2274
2275
  }
2275
- }).catch(function (e) {});
2276
+ loadingInstance.close();
2277
+ }).catch(function (e) {
2278
+ loadingInstance.close();
2279
+ });
2276
2280
  } 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') {
2277
2281
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2278
2282
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2675,7 +2679,7 @@ var setScale = function setScale() {
2675
2679
  } else {
2676
2680
  n = 1;
2677
2681
  }
2678
- if (zoom === 1) {
2682
+ if (zoom === 1 && window.innerWidth === width) {
2679
2683
  document.body.style.removeProperty('transform');
2680
2684
  document.body.style.removeProperty('width');
2681
2685
  document.body.style.removeProperty('height');
@@ -3962,8 +3966,8 @@ module.exports = require("vue");
3962
3966
  // ESM COMPAT FLAG
3963
3967
  __webpack_require__.r(__webpack_exports__);
3964
3968
 
3965
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=24d19c7c&
3966
- var mainvue_type_template_id_24d19c7c_render = function () {
3969
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=260d7f48&
3970
+ var mainvue_type_template_id_260d7f48_render = function () {
3967
3971
  var _vm = this
3968
3972
  var _h = _vm.$createElement
3969
3973
  var _c = _vm._self._c || _h
@@ -4362,10 +4366,10 @@ var mainvue_type_template_id_24d19c7c_render = function () {
4362
4366
  )
4363
4367
  }
4364
4368
  var staticRenderFns = []
4365
- mainvue_type_template_id_24d19c7c_render._withStripped = true
4369
+ mainvue_type_template_id_260d7f48_render._withStripped = true
4366
4370
 
4367
4371
 
4368
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=24d19c7c&
4372
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=260d7f48&
4369
4373
 
4370
4374
  // EXTERNAL MODULE: ./src/config/api.js
4371
4375
  var api = __webpack_require__(1);
@@ -6994,9 +6998,13 @@ var pageView = util["a" /* default */].getParams('pageView');
6994
6998
  default: true
6995
6999
  },
6996
7000
  index: {
6997
- type: [Boolean, Number],
7001
+ type: [Number, Function],
6998
7002
  default: 1
6999
7003
  },
7004
+ accumulated: {
7005
+ type: Boolean,
7006
+ default: true
7007
+ },
7000
7008
  immediate: {
7001
7009
  type: Boolean,
7002
7010
  default: true
@@ -7124,14 +7132,18 @@ var pageView = util["a" /* default */].getParams('pageView');
7124
7132
  }
7125
7133
  if (this.numbers && !types.includes('index')) {
7126
7134
  var index = 1;
7127
- if (this.orders == 'desc') {
7128
- index = function index(num) {
7129
- return _this.config.totalCount - num;
7130
- };
7131
- } else if (this.infiniteScroll) {
7132
- index = typeof this.index == 'boolean' ? 1 : this.index;
7133
- } else if (this.index || this.index === 0) {
7134
- index = this.index === true ? (this.config.pageNum - 1) * this.config.pageSize + 1 : this.index;
7135
+ if (typeof this.index === 'function') {
7136
+ index = this.index;
7137
+ } else {
7138
+ if (this.orders == 'desc') {
7139
+ index = function index(num) {
7140
+ return _this.config.totalCount - num;
7141
+ };
7142
+ } else if (this.accumulated) {
7143
+ index = (this.config.pageNum - 1) * this.config.pageSize + this.index;
7144
+ } else {
7145
+ index = this.index;
7146
+ }
7135
7147
  }
7136
7148
  thead.push({
7137
7149
  type: 'index',
@@ -8217,7 +8229,7 @@ var pageView = util["a" /* default */].getParams('pageView');
8217
8229
 
8218
8230
  var main_component = Object(componentNormalizer["a" /* default */])(
8219
8231
  src_mainvue_type_script_lang_js_,
8220
- mainvue_type_template_id_24d19c7c_render,
8232
+ mainvue_type_template_id_260d7f48_render,
8221
8233
  staticRenderFns,
8222
8234
  false,
8223
8235
  null,
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
2175
2175
  next && next();
2176
2176
  } else {
2177
2177
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2178
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2178
2179
  ajax({
2179
2180
  method: 'post',
2180
2181
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
2273
2274
  }
2274
2275
  });
2275
2276
  }
2276
- }).catch(function (e) {});
2277
+ loadingInstance.close();
2278
+ }).catch(function (e) {
2279
+ loadingInstance.close();
2280
+ });
2277
2281
  } 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') {
2278
2282
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2279
2283
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
2676
2680
  } else {
2677
2681
  n = 1;
2678
2682
  }
2679
- if (zoom === 1) {
2683
+ if (zoom === 1 && window.innerWidth === width) {
2680
2684
  document.body.style.removeProperty('transform');
2681
2685
  document.body.style.removeProperty('width');
2682
2686
  document.body.style.removeProperty('height');
package/lib/dialog.js CHANGED
@@ -2174,6 +2174,7 @@ var isLogined = function isLogined(_ref8) {
2174
2174
  next && next();
2175
2175
  } else {
2176
2176
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
2177
+ var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2177
2178
  ajax({
2178
2179
  method: 'post',
2179
2180
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -2272,7 +2273,10 @@ var isLogined = function isLogined(_ref8) {
2272
2273
  }
2273
2274
  });
2274
2275
  }
2275
- }).catch(function (e) {});
2276
+ loadingInstance.close();
2277
+ }).catch(function (e) {
2278
+ loadingInstance.close();
2279
+ });
2276
2280
  } 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') {
2277
2281
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2278
2282
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
@@ -2675,7 +2679,7 @@ var setScale = function setScale() {
2675
2679
  } else {
2676
2680
  n = 1;
2677
2681
  }
2678
- if (zoom === 1) {
2682
+ if (zoom === 1 && window.innerWidth === width) {
2679
2683
  document.body.style.removeProperty('transform');
2680
2684
  document.body.style.removeProperty('width');
2681
2685
  document.body.style.removeProperty('height');