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;
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/label.js CHANGED
@@ -363,7 +363,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
363
363
  }));
364
364
  } else if (this.icon.indexOf('&#') > -1) {
365
365
  doms.push(h('i', {
366
- class: ['es-label-icon', 'es-icons', this.events && this.events['icon'] ? 'es-pointer' : ''],
366
+ class: ['es-label-icon', 'es-icon', this.events && this.events['icon'] ? 'es-pointer' : ''],
367
367
  on: {
368
368
  click: function click(e) {
369
369
  _this.handleClick(e, 'icon');
@@ -460,7 +460,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
460
460
  }));
461
461
  } else if (this.contents[_i].indexOf('&#') > -1) {
462
462
  doms.push(h('i', {
463
- class: ['es-label-icon', 'es-icons', this.events && this.events['icon'] ? 'es-pointer' : ''],
463
+ class: ['es-label-icon', 'es-icon', this.events && this.events['icon'] ? 'es-pointer' : ''],
464
464
  on: {
465
465
  click: function click(e) {
466
466
  _this.handleClick(e, 'icon');
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=1fd3e269&
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=44930eda&
3847
3849
  var render = function () {
3848
3850
  var _vm = this
3849
3851
  var _h = _vm.$createElement
@@ -3902,6 +3904,14 @@ var render = function () {
3902
3904
  },
3903
3905
  },
3904
3906
  [
3907
+ _vm.loginTitleUrl
3908
+ ? _c("div", { staticClass: "es-login-title-image" }, [
3909
+ _c("img", {
3910
+ staticClass: "es-login-title-img",
3911
+ attrs: { src: _vm.loginTitleUrl },
3912
+ }),
3913
+ ])
3914
+ : _vm._e(),
3905
3915
  _vm.switchs > 1
3906
3916
  ? _c(
3907
3917
  "div",
@@ -3955,13 +3965,22 @@ var render = function () {
3955
3965
  attrs: { model: _vm.formData },
3956
3966
  },
3957
3967
  [
3958
- _c("div", { staticClass: "es-login-title" }, [
3959
- _c(
3960
- "span",
3961
- { staticClass: "es-login-title-content" },
3962
- [_vm._v(_vm._s(_vm.title))]
3963
- ),
3964
- ]),
3968
+ !_vm.loginTitleUrl
3969
+ ? _c(
3970
+ "div",
3971
+ { staticClass: "es-login-title" },
3972
+ [
3973
+ _c(
3974
+ "span",
3975
+ {
3976
+ staticClass:
3977
+ "es-login-title-content",
3978
+ },
3979
+ [_vm._v(_vm._s(_vm.title))]
3980
+ ),
3981
+ ]
3982
+ )
3983
+ : _vm._e(),
3965
3984
  _c(
3966
3985
  "el-form-item",
3967
3986
  {
@@ -4257,21 +4276,30 @@ var render = function () {
4257
4276
  "div",
4258
4277
  { staticClass: "es-login-qrcode" },
4259
4278
  [
4260
- _c("div", { staticClass: "es-login-title" }, [
4261
- _c(
4262
- "div",
4263
- { staticClass: "es-login-title-content" },
4264
- [
4265
- _vm._v(
4266
- "\n " +
4267
- _vm._s(
4268
- _vm.iconfonts[_vm.active].name
4269
- ) +
4270
- "\n "
4271
- ),
4272
- ]
4273
- ),
4274
- ]),
4279
+ !_vm.loginTitleUrl
4280
+ ? _c(
4281
+ "div",
4282
+ { staticClass: "es-login-title" },
4283
+ [
4284
+ _c(
4285
+ "div",
4286
+ {
4287
+ staticClass:
4288
+ "es-login-title-content",
4289
+ },
4290
+ [
4291
+ _vm._v(
4292
+ "\n " +
4293
+ _vm._s(
4294
+ _vm.iconfonts[_vm.active].name
4295
+ ) +
4296
+ "\n "
4297
+ ),
4298
+ ]
4299
+ ),
4300
+ ]
4301
+ )
4302
+ : _vm._e(),
4275
4303
  _c(
4276
4304
  "div",
4277
4305
  { staticClass: "es-login-down-app" },
@@ -4335,7 +4363,10 @@ var render = function () {
4335
4363
  ),
4336
4364
  _vm.active == 3 && _vm.identifyingId
4337
4365
  ? _c("es-qr-code", {
4338
- attrs: { content: _vm.identifyingId },
4366
+ attrs: {
4367
+ content: _vm.identifyingId,
4368
+ logo: _vm.qrimg,
4369
+ },
4339
4370
  })
4340
4371
  : _vm._e(),
4341
4372
  _vm.active == 9
@@ -4372,17 +4403,28 @@ var render = function () {
4372
4403
  attrs: { model: _vm.formData },
4373
4404
  },
4374
4405
  [
4375
- _c("div", { staticClass: "es-login-title" }, [
4376
- _c(
4377
- "span",
4378
- { staticClass: "es-login-title-content" },
4379
- [
4380
- _vm._v(
4381
- _vm._s(_vm.iconfonts[_vm.active].name)
4382
- ),
4383
- ]
4384
- ),
4385
- ]),
4406
+ !_vm.loginTitleUrl
4407
+ ? _c(
4408
+ "div",
4409
+ { staticClass: "es-login-title" },
4410
+ [
4411
+ _c(
4412
+ "span",
4413
+ {
4414
+ staticClass:
4415
+ "es-login-title-content",
4416
+ },
4417
+ [
4418
+ _vm._v(
4419
+ _vm._s(
4420
+ _vm.iconfonts[_vm.active].name
4421
+ )
4422
+ ),
4423
+ ]
4424
+ ),
4425
+ ]
4426
+ )
4427
+ : _vm._e(),
4386
4428
  _c(
4387
4429
  "el-form-item",
4388
4430
  {
@@ -4624,7 +4666,7 @@ var render = function () {
4624
4666
  [_vm._v(_vm._s(_vm.icpInfo.copyright_unit))]
4625
4667
  ),
4626
4668
  _c(
4627
- "span",
4669
+ "a",
4628
4670
  {
4629
4671
  staticClass: "es-login-icp-item",
4630
4672
  style: _vm._copyrightStyle,
@@ -4727,7 +4769,7 @@ var staticRenderFns = []
4727
4769
  render._withStripped = true
4728
4770
 
4729
4771
 
4730
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=1fd3e269&
4772
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=44930eda&
4731
4773
 
4732
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&
4733
4775
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -5645,6 +5687,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5645
5687
  //
5646
5688
  //
5647
5689
  //
5690
+ //
5691
+ //
5692
+ //
5693
+ //
5648
5694
 
5649
5695
 
5650
5696
 
@@ -5680,8 +5726,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5680
5726
  loginBackground: [String, Array],
5681
5727
  loginImage: [String, Array],
5682
5728
  loginLogo: String,
5729
+ loginTitle: String,
5683
5730
  loginName: String,
5684
- type: String,
5731
+ type: {
5732
+ type: String,
5733
+ default: '0'
5734
+ },
5685
5735
  //是否加密传输
5686
5736
  isEncrypt: {
5687
5737
  type: Boolean,
@@ -5843,6 +5893,13 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5843
5893
  },
5844
5894
  computed: {
5845
5895
  transform: function transform() {
5896
+ if (this.align.indexOf('%') > -1) {
5897
+ return {
5898
+ left: this.align,
5899
+ top: '50%',
5900
+ transform: 'translateY(-51%)'
5901
+ };
5902
+ }
5846
5903
  if (this.align === 'left') {
5847
5904
  return {
5848
5905
  left: '30%',
@@ -5879,26 +5936,20 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5879
5936
  loginNameUrl: function loginNameUrl() {
5880
5937
  return this.loginNameImg ? this.loginNameImg : this.loginName;
5881
5938
  },
5939
+ loginTitleUrl: function loginTitleUrl() {
5940
+ return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
5941
+ },
5882
5942
  loginLogoUrl: function loginLogoUrl() {
5883
5943
  return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
5884
5944
  },
5885
5945
  warnInfo: function warnInfo() {
5886
5946
  return this.warning === false ? false : typeof this.warning === 'string' ? this.warning : '本系统为非涉密系统,禁止上传和处理任何涉密文件';
5887
5947
  },
5888
- loginType: function loginType() {
5889
- if (this.type) {
5890
- return this.type;
5891
- }
5892
- if (this.loginModel) {
5893
- return this.loginModel;
5894
- }
5895
- return '0';
5896
- },
5897
5948
  switchs: function switchs() {
5898
- return Array.isArray(this.loginType) ? this.loginType.length : this.loginType.split(',').length;
5949
+ return Array.isArray(this.loginModel) ? this.loginModel.length : this.loginModel.split(',').length;
5899
5950
  },
5900
5951
  iconfonts: function iconfonts() {
5901
- var types = this.loginType.split(',');
5952
+ var types = this.loginModel.split(',');
5902
5953
  return types.length > 2 ? {
5903
5954
  0: { type: '0', icon: 'es-icon-shuru', name: '账号登录' },
5904
5955
  1: { type: '1', icon: 'es-icon-usb-key', name: '证书登录' },
@@ -5927,7 +5978,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5927
5978
  var _this = this;
5928
5979
 
5929
5980
  var icon = [];
5930
- var types = this.loginType.split(',');
5981
+ var types = this.loginModel.split(',');
5931
5982
  types.forEach(function (item) {
5932
5983
  icon.push(_this.iconfonts[item]);
5933
5984
  });
@@ -5944,7 +5995,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5944
5995
  }
5945
5996
  },
5946
5997
  watch: {
5947
- loginType: {
5998
+ loginModel: {
5948
5999
  immediate: true,
5949
6000
  handler: function handler(val) {
5950
6001
  this.active = val.split(',')[0];
@@ -5996,8 +6047,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5996
6047
  loginBackgroundImg: null,
5997
6048
  loginMainImg: null,
5998
6049
  loginNameImg: null,
6050
+ loginTitleImg: null,
5999
6051
  loginLogoImg: null,
6000
- loginModel: null,
6052
+ loginModel: this.type,
6001
6053
  passModifyModel: null,
6002
6054
  active: 0,
6003
6055
  submit: false,
@@ -6201,7 +6253,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6201
6253
  this.$emit('change-type', res, this.identifyingId);
6202
6254
  },
6203
6255
  isShow: function isShow(res) {
6204
- return this.loginType.indexOf(res) > -1;
6256
+ return this.loginModel.indexOf(res) > -1;
6205
6257
  },
6206
6258
  getLogin: function getLogin() {
6207
6259
  var _this3 = this;
@@ -6239,8 +6291,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6239
6291
  if (res.androidDownloadUrl) {
6240
6292
  downloads['android'] = res.androidDownloadUrl;
6241
6293
  }
6242
- if (res.iosDownloadUrl || res.iosDownloadUrl2) {
6243
- downloads['ios'] = res.iosDownloadUrl || res.iosDownloadUrl2;
6294
+ if (res.iosDownloadUrl) {
6295
+ downloads['ios'] = res.iosDownloadUrl;
6296
+ }
6297
+ if (res.iosDownloadUrl2) {
6298
+ downloads['pad'] = res.iosDownloadUrl2;
6244
6299
  }
6245
6300
  if (res.macDownloadUrl) {
6246
6301
  downloads['mac'] = res.macDownloadUrl;
@@ -6257,8 +6312,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6257
6312
  this.downloadSetup = res.downloadSetup;
6258
6313
  document.title = res.subsystemName;
6259
6314
  this.app = res.appName || res.subsystemName;
6260
- this.qrimg = res.qrimg || res.qrImg;
6261
- this.loginModel = res.loginModel;
6315
+ if (res.qrimg || res.qrImg) {
6316
+ this.qrimg = res.qrimg || res.qrImg;
6317
+ }
6318
+ if (res.loginModel) {
6319
+ this.loginModel = res.loginModel;
6320
+ }
6262
6321
  this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
6263
6322
  this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
6264
6323
  res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
@@ -6272,8 +6331,15 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6272
6331
  if (res.subsystemExtend.applicationName) {
6273
6332
  localStorage.setItem('appcode', res.subsystemExtend.applicationName);
6274
6333
  }
6275
- this.loginMainImg = res.subsystemExtend.loginBoxBackground ? res.subsystemExtend.loginBoxBackground.split(',') : null;
6276
- this.loginNameImg = res.subsystemExtend.loginBoxName ? res.subsystemExtend.loginBoxName.split(',') : null;
6334
+ if (res.subsystemExtend.loginBoxBackgroun) {
6335
+ this.loginMainImg = res.subsystemExtend.loginBoxBackground.split(',');
6336
+ }
6337
+ if (res.subsystemExtend.loginBoxTitle) {
6338
+ this.loginTitleImg = res.subsystemExtend.loginBoxTitle;
6339
+ }
6340
+ if (res.subsystemExtend.loginBoxName) {
6341
+ this.loginNameImg = res.subsystemExtend.loginBoxName;
6342
+ }
6277
6343
  if (res.subsystemExtend.loginBoxAlign && this.useResults) {
6278
6344
  this.align = res.subsystemExtend.loginBoxAlign;
6279
6345
  }