eoss-ui 0.5.69 → 0.5.71

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 (66) hide show
  1. package/lib/button-group.js +34 -36
  2. package/lib/button.js +34 -36
  3. package/lib/checkbox-group.js +70 -56
  4. package/lib/data-table-form.js +37 -39
  5. package/lib/data-table.js +59 -59
  6. package/lib/date-picker.js +34 -36
  7. package/lib/dialog.js +49 -51
  8. package/lib/eoss-ui.common.js +665 -573
  9. package/lib/flow-group.js +34 -36
  10. package/lib/flow-list.js +36 -38
  11. package/lib/flow.js +40 -42
  12. package/lib/form.js +410 -376
  13. package/lib/handle-user.js +36 -38
  14. package/lib/handler.js +34 -36
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +34 -36
  17. package/lib/input.js +65 -48
  18. package/lib/layout.js +2 -2
  19. package/lib/login.js +54 -55
  20. package/lib/main.js +39 -41
  21. package/lib/menu.js +5 -4
  22. package/lib/nav.js +34 -36
  23. package/lib/page.js +34 -36
  24. package/lib/player.js +34 -36
  25. package/lib/qr-code.js +34 -36
  26. package/lib/radio-group.js +69 -53
  27. package/lib/retrial-auth.js +34 -36
  28. package/lib/select-ganged.js +122 -106
  29. package/lib/select.js +115 -105
  30. package/lib/selector-panel.js +90 -76
  31. package/lib/selector.js +34 -36
  32. package/lib/sizer.js +36 -38
  33. package/lib/steps.js +60 -44
  34. package/lib/switch.js +34 -36
  35. package/lib/table-form.js +36 -38
  36. package/lib/tabs.js +34 -36
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/theme-chalk/login.css +1 -1
  39. package/lib/tips.js +59 -42
  40. package/lib/tree-group.js +34 -36
  41. package/lib/tree.js +93 -77
  42. package/lib/upload.js +111 -94
  43. package/lib/utils/util.js +34 -36
  44. package/lib/wujie.js +34 -36
  45. package/lib/wxlogin.js +34 -36
  46. package/package.json +2 -2
  47. package/packages/checkbox-group/src/main.vue +7 -1
  48. package/packages/data-table/src/main.vue +4 -2
  49. package/packages/dialog/src/main.vue +2 -3
  50. package/packages/form/src/main.vue +11 -2
  51. package/packages/input/src/main.vue +8 -1
  52. package/packages/login/src/main.vue +15 -11
  53. package/packages/menu/src/main.vue +3 -2
  54. package/packages/radio-group/src/main.vue +7 -1
  55. package/packages/select/src/main.vue +10 -10
  56. package/packages/select-ganged/src/main.vue +7 -1
  57. package/packages/selector-panel/src/main.vue +7 -1
  58. package/packages/steps/src/main.vue +9 -3
  59. package/packages/theme-chalk/lib/index.css +1 -1
  60. package/packages/theme-chalk/lib/login.css +1 -1
  61. package/packages/theme-chalk/src/login.scss +1 -1
  62. package/packages/tips/src/main.vue +8 -1
  63. package/packages/tree/src/main.vue +8 -2
  64. package/packages/upload/src/main.vue +11 -2
  65. package/src/index.js +1 -1
  66. package/src/utils/util.js +34 -34
@@ -154,21 +154,17 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
154
154
  * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
155
155
  **/
156
156
  // 请求
157
- var pendingRequest = new Map();
158
- function getRequestKey(config) {
159
- var method = config.method,
160
- url = config.url,
161
- params = config.params,
162
- data = config.data;
163
-
164
- return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
165
- };
166
- function delPendingRequest(config) {
167
- var requestKey = getRequestKey(config);
168
- if (pendingRequest.has(requestKey)) {
169
- pendingRequest.delete(requestKey);
170
- }
171
- }
157
+ // const pendingRequest = new Map();
158
+ // function getRequestKey(config) {
159
+ // const { method, url, params, data } = config;
160
+ // return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
161
+ // };
162
+ // function delPendingRequest(config) {
163
+ // let requestKey = getRequestKey(config);
164
+ // if (pendingRequest.has(requestKey)) {
165
+ // pendingRequest.delete(requestKey);
166
+ // }
167
+ // }
172
168
  var ajax = function ajax(_ref) {
173
169
  var headers = _ref.headers,
174
170
  method = _ref.method,
@@ -217,30 +213,32 @@ var ajax = function ajax(_ref) {
217
213
  http.interceptors.request.use(function (config) {
218
214
  config.headers.common = getStorage();
219
215
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
220
- var requestKey = getRequestKey(config);
221
- // 判断请求是否重复
222
- if (pendingRequest.has(requestKey)) {
223
- // 取消上次请求
224
- var cancel = pendingRequest.get(requestKey);
225
- cancel();
226
- // 删除请求信息
227
- pendingRequest.delete(requestKey);
228
- }
229
- // 把请求信息,添加请求到map当中
230
- // 生成取消方法
231
- config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
232
- // 把取消方法添加到map
233
- if (!pendingRequest.has(requestKey)) {
234
- pendingRequest.set(requestKey, cancel);
235
- }
236
- });
216
+ // let requestKey = getRequestKey(config);
217
+ // // 判断请求是否重复
218
+ // if (pendingRequest.has(requestKey)) {
219
+ // // 取消上次请求
220
+ // let cancel = pendingRequest.get(requestKey);
221
+ // cancel();
222
+ // // 删除请求信息
223
+ // pendingRequest.delete(requestKey);
224
+ // }
225
+ // // 把请求信息,添加请求到map当中
226
+ // // 生成取消方法
227
+ // config.cancelToken =
228
+ // config.cancelToken ||
229
+ // new axios.CancelToken(cancel => {
230
+ // // 把取消方法添加到map
231
+ // if (!pendingRequest.has(requestKey)) {
232
+ // pendingRequest.set(requestKey, cancel);
233
+ // }
234
+ // });
237
235
  return config;
238
236
  }, function (err) {
239
237
  return err;
240
238
  });
241
239
  // 响应拦截
242
240
  http.interceptors.response.use(function (response) {
243
- delPendingRequest(response.config);
241
+ // delPendingRequest(response.config);
244
242
  loading && loading.close();
245
243
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
246
244
  if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
@@ -357,9 +355,9 @@ var ajax = function ajax(_ref) {
357
355
  }
358
356
  }, function (error) {
359
357
  loading && loading.close();
360
- if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
361
- delPendingRequest(error.config || {});
362
- }
358
+ // if (!axios.isCancel(error)) {
359
+ // delPendingRequest(error.config || {});
360
+ // }
363
361
  if (error && error.response) {
364
362
  if (error.response.status) {
365
363
  switch (error.response.status) {
package/lib/input.js CHANGED
@@ -154,21 +154,17 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
154
154
  * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
155
155
  **/
156
156
  // 请求
157
- var pendingRequest = new Map();
158
- function getRequestKey(config) {
159
- var method = config.method,
160
- url = config.url,
161
- params = config.params,
162
- data = config.data;
163
-
164
- return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
165
- };
166
- function delPendingRequest(config) {
167
- var requestKey = getRequestKey(config);
168
- if (pendingRequest.has(requestKey)) {
169
- pendingRequest.delete(requestKey);
170
- }
171
- }
157
+ // const pendingRequest = new Map();
158
+ // function getRequestKey(config) {
159
+ // const { method, url, params, data } = config;
160
+ // return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
161
+ // };
162
+ // function delPendingRequest(config) {
163
+ // let requestKey = getRequestKey(config);
164
+ // if (pendingRequest.has(requestKey)) {
165
+ // pendingRequest.delete(requestKey);
166
+ // }
167
+ // }
172
168
  var ajax = function ajax(_ref) {
173
169
  var headers = _ref.headers,
174
170
  method = _ref.method,
@@ -217,30 +213,32 @@ var ajax = function ajax(_ref) {
217
213
  http.interceptors.request.use(function (config) {
218
214
  config.headers.common = getStorage();
219
215
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
220
- var requestKey = getRequestKey(config);
221
- // 判断请求是否重复
222
- if (pendingRequest.has(requestKey)) {
223
- // 取消上次请求
224
- var cancel = pendingRequest.get(requestKey);
225
- cancel();
226
- // 删除请求信息
227
- pendingRequest.delete(requestKey);
228
- }
229
- // 把请求信息,添加请求到map当中
230
- // 生成取消方法
231
- config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
232
- // 把取消方法添加到map
233
- if (!pendingRequest.has(requestKey)) {
234
- pendingRequest.set(requestKey, cancel);
235
- }
236
- });
216
+ // let requestKey = getRequestKey(config);
217
+ // // 判断请求是否重复
218
+ // if (pendingRequest.has(requestKey)) {
219
+ // // 取消上次请求
220
+ // let cancel = pendingRequest.get(requestKey);
221
+ // cancel();
222
+ // // 删除请求信息
223
+ // pendingRequest.delete(requestKey);
224
+ // }
225
+ // // 把请求信息,添加请求到map当中
226
+ // // 生成取消方法
227
+ // config.cancelToken =
228
+ // config.cancelToken ||
229
+ // new axios.CancelToken(cancel => {
230
+ // // 把取消方法添加到map
231
+ // if (!pendingRequest.has(requestKey)) {
232
+ // pendingRequest.set(requestKey, cancel);
233
+ // }
234
+ // });
237
235
  return config;
238
236
  }, function (err) {
239
237
  return err;
240
238
  });
241
239
  // 响应拦截
242
240
  http.interceptors.response.use(function (response) {
243
- delPendingRequest(response.config);
241
+ // delPendingRequest(response.config);
244
242
  loading && loading.close();
245
243
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
246
244
  if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
@@ -357,9 +355,9 @@ var ajax = function ajax(_ref) {
357
355
  }
358
356
  }, function (error) {
359
357
  loading && loading.close();
360
- if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
361
- delPendingRequest(error.config || {});
362
- }
358
+ // if (!axios.isCancel(error)) {
359
+ // delPendingRequest(error.config || {});
360
+ // }
363
361
  if (error && error.response) {
364
362
  if (error.response.status) {
365
363
  switch (error.response.status) {
@@ -3497,7 +3495,14 @@ module.exports = require("sm-crypto");
3497
3495
 
3498
3496
  /***/ }),
3499
3497
 
3500
- /***/ 13:
3498
+ /***/ 11:
3499
+ /***/ (function(module, exports) {
3500
+
3501
+ module.exports = require("throttle-debounce");
3502
+
3503
+ /***/ }),
3504
+
3505
+ /***/ 14:
3501
3506
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3502
3507
 
3503
3508
  "use strict";
@@ -3795,11 +3800,14 @@ var WebSocket = function () {
3795
3800
  // ESM COMPAT FLAG
3796
3801
  __webpack_require__.r(__webpack_exports__);
3797
3802
 
3803
+ // EXTERNAL MODULE: external "throttle-debounce"
3804
+ var external_throttle_debounce_ = __webpack_require__(11);
3805
+
3798
3806
  // EXTERNAL MODULE: ./src/utils/util.js
3799
3807
  var util = __webpack_require__(0);
3800
3808
 
3801
3809
  // EXTERNAL MODULE: ./src/utils/rules.js
3802
- var rules = __webpack_require__(13);
3810
+ var rules = __webpack_require__(14);
3803
3811
 
3804
3812
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/main.vue?vue&type=script&lang=js&
3805
3813
  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; };
@@ -3808,6 +3816,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3808
3816
 
3809
3817
 
3810
3818
 
3819
+
3811
3820
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3812
3821
  name: 'EsInput',
3813
3822
  componentName: 'EsInput',
@@ -3926,11 +3935,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3926
3935
  return undefined;
3927
3936
  }
3928
3937
  },
3938
+ beforeCreate: function beforeCreate() {
3939
+ var _this2 = this;
3940
+
3941
+ this.getData = Object(external_throttle_debounce_["debounce"])(500, function (query, callback, isChange) {
3942
+ _this2.getDatas(query, callback, isChange);
3943
+ });
3944
+ },
3945
+ created: function created() {},
3929
3946
  mounted: function mounted() {},
3930
3947
 
3931
3948
  methods: {
3932
- getData: function getData(query, callback, isChange) {
3933
- var _this2 = this;
3949
+ getDatas: function getDatas(query, callback, isChange) {
3950
+ var _this3 = this;
3934
3951
 
3935
3952
  if (_typeof(this.url) && this.results.length === 0) {
3936
3953
  util["a" /* default */].ajax({
@@ -3940,13 +3957,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3940
3957
  params: this.param
3941
3958
  }).then(function (res) {
3942
3959
  if (res.rCode === 0) {
3943
- _this2.results = JSON.parse(JSON.stringify(res.results));
3944
- var results = query ? _this2.results.filter(_this2.searchFilter(query)) : _this2.results;
3960
+ _this3.results = JSON.parse(JSON.stringify(res.results));
3961
+ var results = query ? _this3.results.filter(_this3.searchFilter(query)) : _this3.results;
3945
3962
  callback(results);
3946
3963
  }
3947
3964
  }).catch(function (err) {
3948
3965
  if (err.message && err.message !== 'canceled') {
3949
- _this2.$message.error(err.message);
3966
+ _this3.$message.error(err.message);
3950
3967
  }
3951
3968
  });
3952
3969
  } else {
@@ -3955,13 +3972,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3955
3972
  }
3956
3973
  },
3957
3974
  searchFilter: function searchFilter(query, isChange) {
3958
- var _this3 = this;
3975
+ var _this4 = this;
3959
3976
 
3960
3977
  return function (state) {
3961
3978
  if (isChange) {
3962
3979
  return state.value.indexOf(query) > -1;
3963
3980
  } else {
3964
- if (_this3.exclude) {
3981
+ if (_this4.exclude) {
3965
3982
  return state.value !== query;
3966
3983
  } else {
3967
3984
  return state.value === query;
@@ -3970,7 +3987,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3970
3987
  };
3971
3988
  },
3972
3989
  renderd: function renderd(doms, h, type) {
3973
- var _this4 = this;
3990
+ var _this5 = this;
3974
3991
 
3975
3992
  if (typeof this.$attrs[type] === 'boolean') {
3976
3993
  if (this.$attrs.render) {
@@ -3996,8 +4013,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3996
4013
  domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
3997
4014
  on: {
3998
4015
  click: function click() {
3999
- _this4.$attrs[type].click && _this4.$attrs[type].click(_this4, _this4.model, _this4.scope);
4000
- _this4.$attrs[type].event && _this4.$attrs[type].event(_this4, _this4.model, _this4.scope);
4016
+ _this5.$attrs[type].click && _this5.$attrs[type].click(_this5, _this5.model, _this5.scope);
4017
+ _this5.$attrs[type].event && _this5.$attrs[type].event(_this5, _this5.model, _this5.scope);
4001
4018
  }
4002
4019
  }
4003
4020
  }, [this.$attrs[type].text]));
package/lib/layout.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 16:
90
+ /***/ 17:
91
91
  /***/ (function(module, exports) {
92
92
 
93
93
  module.exports = require("interactjs");
@@ -267,7 +267,7 @@ itemvue_type_template_id_124bb300_render._withStripped = true
267
267
  // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
268
268
 
269
269
  // EXTERNAL MODULE: external "interactjs"
270
- var external_interactjs_ = __webpack_require__(16);
270
+ var external_interactjs_ = __webpack_require__(17);
271
271
  var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
272
272
 
273
273
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
package/lib/login.js CHANGED
@@ -153,21 +153,17 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
153
153
  * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
154
154
  **/
155
155
  // 请求
156
- var pendingRequest = new Map();
157
- function getRequestKey(config) {
158
- var method = config.method,
159
- url = config.url,
160
- params = config.params,
161
- data = config.data;
162
-
163
- return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
164
- };
165
- function delPendingRequest(config) {
166
- var requestKey = getRequestKey(config);
167
- if (pendingRequest.has(requestKey)) {
168
- pendingRequest.delete(requestKey);
169
- }
170
- }
156
+ // const pendingRequest = new Map();
157
+ // function getRequestKey(config) {
158
+ // const { method, url, params, data } = config;
159
+ // return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
160
+ // };
161
+ // function delPendingRequest(config) {
162
+ // let requestKey = getRequestKey(config);
163
+ // if (pendingRequest.has(requestKey)) {
164
+ // pendingRequest.delete(requestKey);
165
+ // }
166
+ // }
171
167
  var ajax = function ajax(_ref) {
172
168
  var headers = _ref.headers,
173
169
  method = _ref.method,
@@ -216,30 +212,32 @@ var ajax = function ajax(_ref) {
216
212
  http.interceptors.request.use(function (config) {
217
213
  config.headers.common = getStorage();
218
214
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
219
- var requestKey = getRequestKey(config);
220
- // 判断请求是否重复
221
- if (pendingRequest.has(requestKey)) {
222
- // 取消上次请求
223
- var cancel = pendingRequest.get(requestKey);
224
- cancel();
225
- // 删除请求信息
226
- pendingRequest.delete(requestKey);
227
- }
228
- // 把请求信息,添加请求到map当中
229
- // 生成取消方法
230
- config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
231
- // 把取消方法添加到map
232
- if (!pendingRequest.has(requestKey)) {
233
- pendingRequest.set(requestKey, cancel);
234
- }
235
- });
215
+ // let requestKey = getRequestKey(config);
216
+ // // 判断请求是否重复
217
+ // if (pendingRequest.has(requestKey)) {
218
+ // // 取消上次请求
219
+ // let cancel = pendingRequest.get(requestKey);
220
+ // cancel();
221
+ // // 删除请求信息
222
+ // pendingRequest.delete(requestKey);
223
+ // }
224
+ // // 把请求信息,添加请求到map当中
225
+ // // 生成取消方法
226
+ // config.cancelToken =
227
+ // config.cancelToken ||
228
+ // new axios.CancelToken(cancel => {
229
+ // // 把取消方法添加到map
230
+ // if (!pendingRequest.has(requestKey)) {
231
+ // pendingRequest.set(requestKey, cancel);
232
+ // }
233
+ // });
236
234
  return config;
237
235
  }, function (err) {
238
236
  return err;
239
237
  });
240
238
  // 响应拦截
241
239
  http.interceptors.response.use(function (response) {
242
- delPendingRequest(response.config);
240
+ // delPendingRequest(response.config);
243
241
  loading && loading.close();
244
242
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
245
243
  if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
@@ -356,9 +354,9 @@ var ajax = function ajax(_ref) {
356
354
  }
357
355
  }, function (error) {
358
356
  loading && loading.close();
359
- if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
360
- delPendingRequest(error.config || {});
361
- }
357
+ // if (!axios.isCancel(error)) {
358
+ // delPendingRequest(error.config || {});
359
+ // }
362
360
  if (error && error.response) {
363
361
  if (error.response.status) {
364
362
  switch (error.response.status) {
@@ -3765,7 +3763,8 @@ module.exports = require("stompjs");
3765
3763
  module.exports = require("sm-crypto");
3766
3764
 
3767
3765
  /***/ }),
3768
- /* 11 */
3766
+ /* 11 */,
3767
+ /* 12 */
3769
3768
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3770
3769
 
3771
3770
  "use strict";
@@ -3792,8 +3791,8 @@ window.__store = store;
3792
3791
  /* harmony default export */ __webpack_exports__["a"] = (store);
3793
3792
 
3794
3793
  /***/ }),
3795
- /* 12 */,
3796
- /* 13 */
3794
+ /* 13 */,
3795
+ /* 14 */
3797
3796
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3798
3797
 
3799
3798
  "use strict";
@@ -3817,7 +3816,6 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3817
3816
  });
3818
3817
 
3819
3818
  /***/ }),
3820
- /* 14 */,
3821
3819
  /* 15 */,
3822
3820
  /* 16 */,
3823
3821
  /* 17 */,
@@ -3845,7 +3843,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3845
3843
  // ESM COMPAT FLAG
3846
3844
  __webpack_require__.r(__webpack_exports__);
3847
3845
 
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=6be50449&
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=5bc62799&
3849
3847
  var render = function () {
3850
3848
  var _vm = this
3851
3849
  var _h = _vm.$createElement
@@ -3938,7 +3936,7 @@ var render = function () {
3938
3936
  attrs: { title: _vm.switchs > 2 ? item.name : "" },
3939
3937
  on: {
3940
3938
  click: function ($event) {
3941
- _vm.switchLogin(item.type)
3939
+ _vm.switchLogin(item)
3942
3940
  },
3943
3941
  },
3944
3942
  })
@@ -4775,7 +4773,7 @@ var staticRenderFns = []
4775
4773
  render._withStripped = true
4776
4774
 
4777
4775
 
4778
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=6be50449&
4776
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=5bc62799&
4779
4777
 
4780
4778
  // 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&
4781
4779
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -4848,7 +4846,7 @@ resetPasswordvue_type_template_id_28f463b9_render._withStripped = true
4848
4846
  var api = __webpack_require__(1);
4849
4847
 
4850
4848
  // EXTERNAL MODULE: ./src/utils/rules.js
4851
- var rules = __webpack_require__(13);
4849
+ var rules = __webpack_require__(14);
4852
4850
 
4853
4851
  // EXTERNAL MODULE: ./src/utils/util.js
4854
4852
  var util = __webpack_require__(0);
@@ -5345,7 +5343,7 @@ var component = Object(componentNormalizer["a" /* default */])(
5345
5343
 
5346
5344
  /* harmony default export */ var resetPassword = (component.exports);
5347
5345
  // EXTERNAL MODULE: ./src/utils/store.js
5348
- var store = __webpack_require__(11);
5346
+ var store = __webpack_require__(12);
5349
5347
 
5350
5348
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=script&lang=js&
5351
5349
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
@@ -5720,10 +5718,6 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5720
5718
  type: String,
5721
5719
  default: 'default'
5722
5720
  },
5723
- title: {
5724
- type: String,
5725
- default: '账号登录'
5726
- },
5727
5721
  param: {
5728
5722
  type: Object,
5729
5723
  default: function _default() {
@@ -5958,11 +5952,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5958
5952
  6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
5959
5953
  7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
5960
5954
  9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
5961
- 11: {
5962
- type: '11',
5963
- icon: 'es-icon-wodeyouxiang',
5964
- name: '邮箱登录'
5965
- },
5955
+ 11: { type: '11', icon: 'es-icon-wodeyouxiang', name: '邮箱登录' },
5966
5956
  12: { type: '12', icon: 'es-icon-jianpan', name: '账号登录' //双因素
5967
5957
  } };
5968
5958
  },
@@ -5991,6 +5981,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5991
5981
  immediate: true,
5992
5982
  handler: function handler(val) {
5993
5983
  this.active = val.split(',')[0];
5984
+ this.title = this.iconfonts[this.active].name;
5994
5985
  }
5995
5986
  },
5996
5987
  active: {
@@ -6041,6 +6032,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6041
6032
  },
6042
6033
  data: function data() {
6043
6034
  return {
6035
+ title: '',
6044
6036
  align: this.position,
6045
6037
  loginBackgroundImg: this.loginBackground,
6046
6038
  loginMainImg: this.loginImage,
@@ -6102,6 +6094,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6102
6094
  document.addEventListener('keyup', this.doLogin);
6103
6095
  document.addEventListener('keydown', this.forbiddenTab);
6104
6096
  }
6097
+ this.init();
6105
6098
  },
6106
6099
  mounted: function mounted() {
6107
6100
  this.getRemember();
@@ -6109,6 +6102,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6109
6102
  },
6110
6103
 
6111
6104
  methods: {
6105
+ init: function init() {
6106
+ var loginBoxAlign = localStorage.getItem('loginBoxAlign');
6107
+ loginBoxAlign && (this.align = loginBoxAlign);
6108
+ },
6112
6109
  doWechatLogin: function doWechatLogin(code) {
6113
6110
  var _this2 = this;
6114
6111
 
@@ -6261,7 +6258,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6261
6258
  //this.$refs.login && this.$refs.login.resetFields();
6262
6259
  this.$refs.login && this.$refs.login.clearValidate();
6263
6260
  if (res != 1) {
6264
- this.active = res;
6261
+ this.active = res.type;
6262
+ this.title = res.name;
6265
6263
  Object.keys(this.defaultModel).length && (this.formData = JSON.parse(JSON.stringify(this.defaultModel)));
6266
6264
  }
6267
6265
  this.countdown = 0;
@@ -6360,6 +6358,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6360
6358
  this.loginNameImg = res.subsystemExtend.loginBoxName;
6361
6359
  }
6362
6360
  if (res.subsystemExtend.loginBoxAlign && this.useResults) {
6361
+ localStorage.setItem('loginBoxAlign', res.subsystemExtend.loginBoxAlign);
6363
6362
  this.align = res.subsystemExtend.loginBoxAlign;
6364
6363
  }
6365
6364
  if (res.subsystemExtend.copyrightColor) {