eoss-ui 0.5.62 → 0.5.63

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.
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
@@ -3843,7 +3843,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3843
3843
  // ESM COMPAT FLAG
3844
3844
  __webpack_require__.r(__webpack_exports__);
3845
3845
 
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&
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=e5e62fc8&
3847
3847
  var render = function () {
3848
3848
  var _vm = this
3849
3849
  var _h = _vm.$createElement
@@ -3902,6 +3902,14 @@ var render = function () {
3902
3902
  },
3903
3903
  },
3904
3904
  [
3905
+ _vm.loginTitleUrl
3906
+ ? _c("div", { staticClass: "es-login-title-image" }, [
3907
+ _c("img", {
3908
+ staticClass: "es-login-title-img",
3909
+ attrs: { src: _vm.loginTitleUrl },
3910
+ }),
3911
+ ])
3912
+ : _vm._e(),
3905
3913
  _vm.switchs > 1
3906
3914
  ? _c(
3907
3915
  "div",
@@ -3955,13 +3963,22 @@ var render = function () {
3955
3963
  attrs: { model: _vm.formData },
3956
3964
  },
3957
3965
  [
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
- ]),
3966
+ !_vm.loginTitleUrl
3967
+ ? _c(
3968
+ "div",
3969
+ { staticClass: "es-login-title" },
3970
+ [
3971
+ _c(
3972
+ "span",
3973
+ {
3974
+ staticClass:
3975
+ "es-login-title-content",
3976
+ },
3977
+ [_vm._v(_vm._s(_vm.title))]
3978
+ ),
3979
+ ]
3980
+ )
3981
+ : _vm._e(),
3965
3982
  _c(
3966
3983
  "el-form-item",
3967
3984
  {
@@ -4257,21 +4274,30 @@ var render = function () {
4257
4274
  "div",
4258
4275
  { staticClass: "es-login-qrcode" },
4259
4276
  [
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
- ]),
4277
+ !_vm.loginTitleUrl
4278
+ ? _c(
4279
+ "div",
4280
+ { staticClass: "es-login-title" },
4281
+ [
4282
+ _c(
4283
+ "div",
4284
+ {
4285
+ staticClass:
4286
+ "es-login-title-content",
4287
+ },
4288
+ [
4289
+ _vm._v(
4290
+ "\n " +
4291
+ _vm._s(
4292
+ _vm.iconfonts[_vm.active].name
4293
+ ) +
4294
+ "\n "
4295
+ ),
4296
+ ]
4297
+ ),
4298
+ ]
4299
+ )
4300
+ : _vm._e(),
4275
4301
  _c(
4276
4302
  "div",
4277
4303
  { staticClass: "es-login-down-app" },
@@ -4372,17 +4398,28 @@ var render = function () {
4372
4398
  attrs: { model: _vm.formData },
4373
4399
  },
4374
4400
  [
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
- ]),
4401
+ !_vm.loginTitleUrl
4402
+ ? _c(
4403
+ "div",
4404
+ { staticClass: "es-login-title" },
4405
+ [
4406
+ _c(
4407
+ "span",
4408
+ {
4409
+ staticClass:
4410
+ "es-login-title-content",
4411
+ },
4412
+ [
4413
+ _vm._v(
4414
+ _vm._s(
4415
+ _vm.iconfonts[_vm.active].name
4416
+ )
4417
+ ),
4418
+ ]
4419
+ ),
4420
+ ]
4421
+ )
4422
+ : _vm._e(),
4386
4423
  _c(
4387
4424
  "el-form-item",
4388
4425
  {
@@ -4624,7 +4661,7 @@ var render = function () {
4624
4661
  [_vm._v(_vm._s(_vm.icpInfo.copyright_unit))]
4625
4662
  ),
4626
4663
  _c(
4627
- "span",
4664
+ "a",
4628
4665
  {
4629
4666
  staticClass: "es-login-icp-item",
4630
4667
  style: _vm._copyrightStyle,
@@ -4727,7 +4764,7 @@ var staticRenderFns = []
4727
4764
  render._withStripped = true
4728
4765
 
4729
4766
 
4730
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=1fd3e269&
4767
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=e5e62fc8&
4731
4768
 
4732
4769
  // 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
4770
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -5645,6 +5682,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5645
5682
  //
5646
5683
  //
5647
5684
  //
5685
+ //
5686
+ //
5687
+ //
5648
5688
 
5649
5689
 
5650
5690
 
@@ -5680,8 +5720,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5680
5720
  loginBackground: [String, Array],
5681
5721
  loginImage: [String, Array],
5682
5722
  loginLogo: String,
5723
+ loginTitle: String,
5683
5724
  loginName: String,
5684
- type: String,
5725
+ type: {
5726
+ type: String,
5727
+ default: '0'
5728
+ },
5685
5729
  //是否加密传输
5686
5730
  isEncrypt: {
5687
5731
  type: Boolean,
@@ -5843,6 +5887,13 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5843
5887
  },
5844
5888
  computed: {
5845
5889
  transform: function transform() {
5890
+ if (this.align.indexOf('%') > -1) {
5891
+ return {
5892
+ left: this.align,
5893
+ top: '50%',
5894
+ transform: 'translateY(-51%)'
5895
+ };
5896
+ }
5846
5897
  if (this.align === 'left') {
5847
5898
  return {
5848
5899
  left: '30%',
@@ -5879,26 +5930,20 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5879
5930
  loginNameUrl: function loginNameUrl() {
5880
5931
  return this.loginNameImg ? this.loginNameImg : this.loginName;
5881
5932
  },
5933
+ loginTitleUrl: function loginTitleUrl() {
5934
+ return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
5935
+ },
5882
5936
  loginLogoUrl: function loginLogoUrl() {
5883
5937
  return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
5884
5938
  },
5885
5939
  warnInfo: function warnInfo() {
5886
5940
  return this.warning === false ? false : typeof this.warning === 'string' ? this.warning : '本系统为非涉密系统,禁止上传和处理任何涉密文件';
5887
5941
  },
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
5942
  switchs: function switchs() {
5898
- return Array.isArray(this.loginType) ? this.loginType.length : this.loginType.split(',').length;
5943
+ return Array.isArray(this.loginModel) ? this.loginModel.length : this.loginModel.split(',').length;
5899
5944
  },
5900
5945
  iconfonts: function iconfonts() {
5901
- var types = this.loginType.split(',');
5946
+ var types = this.loginModel.split(',');
5902
5947
  return types.length > 2 ? {
5903
5948
  0: { type: '0', icon: 'es-icon-shuru', name: '账号登录' },
5904
5949
  1: { type: '1', icon: 'es-icon-usb-key', name: '证书登录' },
@@ -5927,7 +5972,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5927
5972
  var _this = this;
5928
5973
 
5929
5974
  var icon = [];
5930
- var types = this.loginType.split(',');
5975
+ var types = this.loginModel.split(',');
5931
5976
  types.forEach(function (item) {
5932
5977
  icon.push(_this.iconfonts[item]);
5933
5978
  });
@@ -5944,7 +5989,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5944
5989
  }
5945
5990
  },
5946
5991
  watch: {
5947
- loginType: {
5992
+ loginModel: {
5948
5993
  immediate: true,
5949
5994
  handler: function handler(val) {
5950
5995
  this.active = val.split(',')[0];
@@ -5996,8 +6041,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5996
6041
  loginBackgroundImg: null,
5997
6042
  loginMainImg: null,
5998
6043
  loginNameImg: null,
6044
+ loginTitleImg: null,
5999
6045
  loginLogoImg: null,
6000
- loginModel: null,
6046
+ loginModel: this.type,
6001
6047
  passModifyModel: null,
6002
6048
  active: 0,
6003
6049
  submit: false,
@@ -6201,7 +6247,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6201
6247
  this.$emit('change-type', res, this.identifyingId);
6202
6248
  },
6203
6249
  isShow: function isShow(res) {
6204
- return this.loginType.indexOf(res) > -1;
6250
+ return this.loginModel.indexOf(res) > -1;
6205
6251
  },
6206
6252
  getLogin: function getLogin() {
6207
6253
  var _this3 = this;
@@ -6239,8 +6285,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6239
6285
  if (res.androidDownloadUrl) {
6240
6286
  downloads['android'] = res.androidDownloadUrl;
6241
6287
  }
6242
- if (res.iosDownloadUrl || res.iosDownloadUrl2) {
6243
- downloads['ios'] = res.iosDownloadUrl || res.iosDownloadUrl2;
6288
+ if (res.iosDownloadUrl) {
6289
+ downloads['ios'] = res.iosDownloadUrl;
6290
+ }
6291
+ if (res.iosDownloadUrl2) {
6292
+ downloads['pad'] = res.iosDownloadUrl2;
6244
6293
  }
6245
6294
  if (res.macDownloadUrl) {
6246
6295
  downloads['mac'] = res.macDownloadUrl;
@@ -6258,7 +6307,9 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6258
6307
  document.title = res.subsystemName;
6259
6308
  this.app = res.appName || res.subsystemName;
6260
6309
  this.qrimg = res.qrimg || res.qrImg;
6261
- this.loginModel = res.loginModel;
6310
+ if (res.loginModel) {
6311
+ this.loginModel = res.loginModel;
6312
+ }
6262
6313
  this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
6263
6314
  this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
6264
6315
  res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
@@ -6272,8 +6323,15 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6272
6323
  if (res.subsystemExtend.applicationName) {
6273
6324
  localStorage.setItem('appcode', res.subsystemExtend.applicationName);
6274
6325
  }
6275
- this.loginMainImg = res.subsystemExtend.loginBoxBackground ? res.subsystemExtend.loginBoxBackground.split(',') : null;
6276
- this.loginNameImg = res.subsystemExtend.loginBoxName ? res.subsystemExtend.loginBoxName.split(',') : null;
6326
+ if (res.subsystemExtend.loginBoxBackgroun) {
6327
+ this.loginMainImg = res.subsystemExtend.loginBoxBackground.split(',');
6328
+ }
6329
+ if (res.subsystemExtend.loginBoxTitle) {
6330
+ this.loginTitleImg = res.subsystemExtend.loginBoxTitle;
6331
+ }
6332
+ if (res.subsystemExtend.loginBoxName) {
6333
+ this.loginNameImg = res.subsystemExtend.loginBoxName;
6334
+ }
6277
6335
  if (res.subsystemExtend.loginBoxAlign && this.useResults) {
6278
6336
  this.align = res.subsystemExtend.loginBoxAlign;
6279
6337
  }