eoss-ui 0.5.67 → 0.5.69

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 (70) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +172 -25
  3. package/lib/button.js +5 -1
  4. package/lib/calendar.js +8 -4
  5. package/lib/data-table.js +31 -22
  6. package/lib/eoss-ui.common.js +1070 -741
  7. package/lib/form.js +22 -7
  8. package/lib/icon.js +12 -3593
  9. package/lib/icons.js +1 -1
  10. package/lib/index.js +1 -1
  11. package/lib/login.js +123 -110
  12. package/lib/main.js +41 -9
  13. package/lib/menu.js +90 -55
  14. package/lib/nav.js +32 -5
  15. package/lib/player.js +2 -2
  16. package/lib/selector.js +469 -429
  17. package/lib/theme-chalk/base.css +1 -1
  18. package/lib/theme-chalk/button-group.css +1 -1
  19. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  20. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  21. package/lib/theme-chalk/icon.css +1 -1
  22. package/lib/theme-chalk/index.css +1 -1
  23. package/lib/theme-chalk/login.css +1 -1
  24. package/lib/theme-chalk/main.css +1 -1
  25. package/lib/theme-chalk/menu.css +1 -1
  26. package/lib/theme-chalk/sizer.css +1 -1
  27. package/lib/theme-chalk/tree.css +1 -1
  28. package/lib/theme-chalk/upload.css +1 -1
  29. package/lib/toolbar.js +6 -0
  30. package/lib/upload.js +6 -6
  31. package/package.json +2 -2
  32. package/packages/button/src/main.vue +5 -1
  33. package/packages/button-group/src/main.vue +62 -7
  34. package/packages/calendar/src/main.vue +6 -2
  35. package/packages/data-table/src/column.vue +1 -1
  36. package/packages/data-table/src/main.vue +10 -5
  37. package/packages/form/src/main.vue +19 -5
  38. package/packages/icon/src/main.vue +10 -3
  39. package/packages/icons/src/icon.json +1 -1
  40. package/packages/login/src/main.vue +67 -66
  41. package/packages/main/src/main.vue +28 -6
  42. package/packages/menu/src/main.vue +75 -65
  43. package/packages/nav/src/main.vue +23 -4
  44. package/packages/selector/src/main.vue +31 -5
  45. package/packages/theme-chalk/lib/base.css +1 -1
  46. package/packages/theme-chalk/lib/button-group.css +1 -1
  47. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  48. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  49. package/packages/theme-chalk/lib/icon.css +1 -1
  50. package/packages/theme-chalk/lib/index.css +1 -1
  51. package/packages/theme-chalk/lib/login.css +1 -1
  52. package/packages/theme-chalk/lib/main.css +1 -1
  53. package/packages/theme-chalk/lib/menu.css +1 -1
  54. package/packages/theme-chalk/lib/sizer.css +1 -1
  55. package/packages/theme-chalk/lib/tree.css +1 -1
  56. package/packages/theme-chalk/lib/upload.css +1 -1
  57. package/packages/theme-chalk/package.json +35 -0
  58. package/packages/theme-chalk/src/button-group.scss +39 -0
  59. package/packages/theme-chalk/src/common/var.scss +2 -0
  60. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  61. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  62. package/packages/theme-chalk/src/icon.scss +430 -426
  63. package/packages/theme-chalk/src/login.scss +2 -3
  64. package/packages/theme-chalk/src/main.scss +14 -5
  65. package/packages/theme-chalk/src/menu.scss +1 -1
  66. package/packages/theme-chalk/src/nav.scss +2 -2
  67. package/packages/theme-chalk/src/tree.scss +1 -0
  68. package/packages/toolbar/src/main.vue +6 -0
  69. package/packages/upload/src/main.vue +1 -1
  70. package/src/index.js +1 -1
package/lib/login.js CHANGED
@@ -3845,7 +3845,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
3845
3845
  // ESM COMPAT FLAG
3846
3846
  __webpack_require__.r(__webpack_exports__);
3847
3847
 
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=b795be2e&
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&
3849
3849
  var render = function () {
3850
3850
  var _vm = this
3851
3851
  var _h = _vm.$createElement
@@ -3855,15 +3855,13 @@ var render = function () {
3855
3855
  "div",
3856
3856
  {
3857
3857
  staticClass: "es-login-screen",
3858
- style: {
3859
- "background-image": _vm.getImgUrl(_vm.loginBackgroundUrl),
3860
- },
3858
+ style: _vm.getBackground(_vm.loginBackgroundImg),
3861
3859
  },
3862
3860
  [
3863
- _vm.loginLogoUrl
3861
+ _vm.loginLogoImg
3864
3862
  ? _c("img", {
3865
3863
  staticClass: "es-login-logo",
3866
- attrs: { src: _vm.loginLogoUrl },
3864
+ attrs: { src: _vm.loginLogoImg },
3867
3865
  })
3868
3866
  : _vm._e(),
3869
3867
  _vm._t("default"),
@@ -3889,26 +3887,24 @@ var render = function () {
3889
3887
  },
3890
3888
  },
3891
3889
  [
3892
- _vm.loginNameUrl
3890
+ _vm.loginNameImg
3893
3891
  ? _c("img", {
3894
3892
  staticClass: "es-login-name",
3895
- attrs: { src: _vm.loginNameUrl },
3893
+ attrs: { src: _vm.loginNameImg },
3896
3894
  })
3897
3895
  : _vm._e(),
3898
3896
  _c(
3899
3897
  "div",
3900
3898
  {
3901
3899
  staticClass: "es-login-main",
3902
- style: {
3903
- "background-image": _vm.getImgUrl(_vm.loginImageUrl),
3904
- },
3900
+ style: _vm.getBackground(_vm.loginMainImg),
3905
3901
  },
3906
3902
  [
3907
- _vm.loginTitleUrl
3903
+ _vm.loginTitleImg
3908
3904
  ? _c("div", { staticClass: "es-login-title-image" }, [
3909
3905
  _c("img", {
3910
3906
  staticClass: "es-login-title-img",
3911
- attrs: { src: _vm.loginTitleUrl },
3907
+ attrs: { src: _vm.loginTitleImg },
3912
3908
  }),
3913
3909
  ])
3914
3910
  : _vm._e(),
@@ -3965,21 +3961,29 @@ var render = function () {
3965
3961
  attrs: { model: _vm.formData },
3966
3962
  },
3967
3963
  [
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
- )
3964
+ !_vm.loginTitleImg
3965
+ ? [
3966
+ _vm._t(
3967
+ "login-title",
3968
+ [
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
+ ],
3984
+ { type: _vm.active }
3985
+ ),
3986
+ ]
3983
3987
  : _vm._e(),
3984
3988
  _c(
3985
3989
  "el-form-item",
@@ -4265,7 +4269,7 @@ var render = function () {
4265
4269
  [_vm._v("登录")]
4266
4270
  ),
4267
4271
  ],
4268
- 1
4272
+ 2
4269
4273
  ),
4270
4274
  ]
4271
4275
  : _vm._e(),
@@ -4276,29 +4280,29 @@ var render = function () {
4276
4280
  "div",
4277
4281
  { staticClass: "es-login-qrcode" },
4278
4282
  [
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
- )
4283
+ !_vm.loginTitleImg
4284
+ ? [
4285
+ _vm._t(
4286
+ "login-title",
4287
+ [
4288
+ _c(
4289
+ "div",
4290
+ { staticClass: "es-login-title" },
4291
+ [
4292
+ _c(
4293
+ "span",
4294
+ {
4295
+ staticClass:
4296
+ "es-login-title-content",
4297
+ },
4298
+ [_vm._v(_vm._s(_vm.title))]
4299
+ ),
4300
+ ]
4301
+ ),
4302
+ ],
4303
+ { type: _vm.active }
4304
+ ),
4305
+ ]
4302
4306
  : _vm._e(),
4303
4307
  _c(
4304
4308
  "div",
@@ -4388,7 +4392,7 @@ var render = function () {
4388
4392
  )
4389
4393
  : _vm._e(),
4390
4394
  ],
4391
- 1
4395
+ 2
4392
4396
  ),
4393
4397
  ]
4394
4398
  : _vm._e(),
@@ -4403,27 +4407,29 @@ var render = function () {
4403
4407
  attrs: { model: _vm.formData },
4404
4408
  },
4405
4409
  [
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
- )
4410
+ !_vm.loginTitleImg
4411
+ ? [
4412
+ _vm._t(
4413
+ "login-title",
4414
+ [
4415
+ _c(
4416
+ "div",
4417
+ { staticClass: "es-login-title" },
4418
+ [
4419
+ _c(
4420
+ "span",
4421
+ {
4422
+ staticClass:
4423
+ "es-login-title-content",
4424
+ },
4425
+ [_vm._v(_vm._s(_vm.title))]
4426
+ ),
4427
+ ]
4428
+ ),
4429
+ ],
4430
+ { type: _vm.active }
4431
+ ),
4432
+ ]
4427
4433
  : _vm._e(),
4428
4434
  _c(
4429
4435
  "el-form-item",
@@ -4622,7 +4628,7 @@ var render = function () {
4622
4628
  [_vm._v("登录")]
4623
4629
  ),
4624
4630
  ],
4625
- 1
4631
+ 2
4626
4632
  ),
4627
4633
  ]
4628
4634
  : _vm._e(),
@@ -4769,7 +4775,7 @@ var staticRenderFns = []
4769
4775
  render._withStripped = true
4770
4776
 
4771
4777
 
4772
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=b795be2e&
4778
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=6be50449&
4773
4779
 
4774
4780
  // 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&
4775
4781
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -5691,6 +5697,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5691
5697
  //
5692
5698
  //
5693
5699
  //
5700
+ //
5694
5701
 
5695
5702
 
5696
5703
 
@@ -5723,8 +5730,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5723
5730
  return {};
5724
5731
  }
5725
5732
  },
5726
- loginBackground: [String, Array],
5727
- loginImage: [String, Array],
5733
+ loginBackground: [String, Array, Object],
5734
+ loginImage: [String, Array, Object],
5728
5735
  loginLogo: String,
5729
5736
  loginTitle: String,
5730
5737
  loginName: String,
@@ -5927,21 +5934,6 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5927
5934
  return window.location.href || window.href;
5928
5935
  }
5929
5936
  },
5930
- loginBackgroundUrl: function loginBackgroundUrl() {
5931
- return this.loginBackground ? this.loginBackground : this.loginBackgroundImg;
5932
- },
5933
- loginImageUrl: function loginImageUrl() {
5934
- return this.loginImage ? this.loginImage : this.loginMainImg;
5935
- },
5936
- loginNameUrl: function loginNameUrl() {
5937
- return this.loginNameImg ? this.loginNameImg : this.loginName;
5938
- },
5939
- loginTitleUrl: function loginTitleUrl() {
5940
- return this.loginTitleImg ? this.loginTitleImg : this.loginTitle;
5941
- },
5942
- loginLogoUrl: function loginLogoUrl() {
5943
- return this.loginLogoImg ? this.loginLogoImg : this.loginLogo;
5944
- },
5945
5937
  warnInfo: function warnInfo() {
5946
5938
  return this.warning === false ? false : typeof this.warning === 'string' ? this.warning : '本系统为非涉密系统,禁止上传和处理任何涉密文件';
5947
5939
  },
@@ -6050,11 +6042,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6050
6042
  data: function data() {
6051
6043
  return {
6052
6044
  align: this.position,
6053
- loginBackgroundImg: null,
6054
- loginMainImg: null,
6055
- loginNameImg: null,
6056
- loginTitleImg: null,
6057
- loginLogoImg: null,
6045
+ loginBackgroundImg: this.loginBackground,
6046
+ loginMainImg: this.loginImage,
6047
+ loginNameImg: this.loginName,
6048
+ loginTitleImg: this.loginTitle,
6049
+ loginLogoImg: this.loginLogo,
6058
6050
  loginModel: this.type,
6059
6051
  passModifyModel: null,
6060
6052
  active: 0,
@@ -6148,19 +6140,36 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6148
6140
  }
6149
6141
  });
6150
6142
  },
6151
- getImgUrl: function getImgUrl(urls) {
6152
- var url = '';
6153
- if (!urls || !urls.length) {
6154
- return url;
6143
+ getBackground: function getBackground(res) {
6144
+ var style = {};
6145
+ if (!res || Array.isArray(res) && !res.length) {
6146
+ return style;
6155
6147
  }
6156
- if (Array.isArray(urls)) {
6157
- url = urls.map(function (item) {
6158
- return 'url(' + item + ')';
6159
- }).join(',');
6148
+ if (Array.isArray(res)) {
6149
+ var url = [];
6150
+ var image = [];
6151
+ res.forEach(function (item) {
6152
+ if (item.indexOf('url(') > -1) {
6153
+ url.push(item);
6154
+ } else {
6155
+ image.push('url(' + item + ')');
6156
+ }
6157
+ });
6158
+ if (url.length == res.length) {
6159
+ style = { background: url.join(',') };
6160
+ } else if (image.length == res.length) {
6161
+ style = { 'background-image': image.join(',') };
6162
+ } else {
6163
+ console.error('设置的样式不一致!');
6164
+ }
6165
+ } else if (util["a" /* default */].isObject(res)) {
6166
+ style = res;
6167
+ } else if (res.indexOf('url(') > -1) {
6168
+ style = { background: res };
6160
6169
  } else {
6161
- url = 'url(' + urls + ')';
6170
+ style = { 'background-image': 'url(' + res + ')' };
6162
6171
  }
6163
- return url;
6172
+ return style;
6164
6173
  },
6165
6174
  getRemember: function getRemember(user) {
6166
6175
  var values = localStorage.getItem('unpd');
@@ -6324,8 +6333,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6324
6333
  if (res.loginModel) {
6325
6334
  this.loginModel = res.loginModel;
6326
6335
  }
6327
- this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
6328
- this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
6336
+ if (res.loginBackgroundUrl) {
6337
+ this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
6338
+ }
6339
+ if (res.loginLogoUrl) {
6340
+ this.loginLogoImg = res.loginLogoUrl;
6341
+ }
6329
6342
  res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
6330
6343
  if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
6331
6344
  this.icpInfo = res.subsystemExtend;
package/lib/main.js CHANGED
@@ -3828,7 +3828,7 @@ module.exports = require("runtime-import");
3828
3828
  // ESM COMPAT FLAG
3829
3829
  __webpack_require__.r(__webpack_exports__);
3830
3830
 
3831
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=3910f883&
3831
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=098112dd&
3832
3832
  var render = function () {
3833
3833
  var _vm = this
3834
3834
  var _h = _vm.$createElement
@@ -3883,6 +3883,8 @@ var render = function () {
3883
3883
  attrs: {
3884
3884
  mode: "horizontal",
3885
3885
  icons: _vm.icons,
3886
+ "menu-icon": _vm.menuIcon,
3887
+ "sub-icon": _vm.subIcon,
3886
3888
  popperClass: "el-menu--popup-" + _vm.layout,
3887
3889
  data: _vm.navs,
3888
3890
  deep: _vm.layout === "topnav",
@@ -3975,7 +3977,10 @@ var render = function () {
3975
3977
  : _vm._e(),
3976
3978
  ]),
3977
3979
  _c("es-handle-user", {
3978
- attrs: { data: { type: "user" } },
3980
+ attrs: {
3981
+ data: { type: "user" },
3982
+ userModel: _vm.userModel,
3983
+ },
3979
3984
  on: { click: _vm.handleClick },
3980
3985
  }),
3981
3986
  ],
@@ -4021,13 +4026,17 @@ var render = function () {
4021
4026
  "is-top": _vm.layout == "topside",
4022
4027
  data: _vm.menu,
4023
4028
  "default-active": _vm.active,
4024
- width: _vm.navWidth,
4029
+ width: _vm.navsWidth,
4030
+ "nav-width": _vm.navWidth,
4025
4031
  icons: _vm.icons,
4032
+ "menu-icon": _vm.menuIcon,
4033
+ "sub-icon": _vm.subIcon,
4026
4034
  biserial: _vm.biserial,
4027
4035
  title: _vm.showNavTitle ? _vm.title : false,
4028
4036
  showCollapse: _vm.showNavTitle,
4029
4037
  "menu-tips": _vm.menuTips,
4030
4038
  "is-default": _vm.isDefault,
4039
+ paddingLeft: _vm.navPaddingLeft,
4031
4040
  },
4032
4041
  on: {
4033
4042
  open: function (res) {
@@ -4058,6 +4067,7 @@ var render = function () {
4058
4067
  data: _vm.tabs,
4059
4068
  titleIcons: false,
4060
4069
  "default-active": _vm.tabsId,
4070
+ "menu-icon": _vm.menuIcon,
4061
4071
  "menu-tips": _vm.menuTips,
4062
4072
  },
4063
4073
  on: {
@@ -4260,7 +4270,7 @@ var staticRenderFns = []
4260
4270
  render._withStripped = true
4261
4271
 
4262
4272
 
4263
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=3910f883&
4273
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=098112dd&
4264
4274
 
4265
4275
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=75d533de&
4266
4276
  var userinfovue_type_template_id_75d533de_render = function () {
@@ -6349,6 +6359,14 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6349
6359
  //
6350
6360
  //
6351
6361
  //
6362
+ //
6363
+ //
6364
+ //
6365
+ //
6366
+ //
6367
+ //
6368
+ //
6369
+ //
6352
6370
 
6353
6371
 
6354
6372
 
@@ -6381,8 +6399,15 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6381
6399
  maxHeight: String,
6382
6400
  //菜单导航地址
6383
6401
  menuUrl: String,
6384
- //菜单展开关闭
6402
+ //菜单展开关闭图标
6385
6403
  icons: Object,
6404
+ //菜单前置默认图标
6405
+ menuIcon: String,
6406
+ //子菜单是否显示前置图标
6407
+ subIcon: {
6408
+ type: Boolean,
6409
+ default: true
6410
+ },
6386
6411
  //logo
6387
6412
  logo: String,
6388
6413
  //菜单显示类型
@@ -6506,7 +6531,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6506
6531
  type: [Boolean, String],
6507
6532
  default: true
6508
6533
  },
6509
- appCode: String
6534
+ appCode: String,
6535
+ //菜单左边距
6536
+ navPaddingLeft: Number,
6537
+ navWidth: String
6510
6538
  },
6511
6539
  computed: {
6512
6540
  showHeader: function showHeader() {
@@ -6533,7 +6561,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6533
6561
  }
6534
6562
  return true;
6535
6563
  },
6536
- navWidth: function navWidth() {
6564
+ navsWidth: function navsWidth() {
6537
6565
  return this.layout === 'topside' ? '230px' : undefined;
6538
6566
  },
6539
6567
  showNavTitle: function showNavTitle() {
@@ -7853,8 +7881,12 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7853
7881
  }
7854
7882
  }
7855
7883
  } else {
7856
- console.error('缺少路由配置');
7857
- return;
7884
+ this.method = 'iframe';
7885
+ this.refresh = false;
7886
+ this.page = util["a" /* default */].handlerUrl(page, param);
7887
+ this.$nextTick(function () {
7888
+ _this10.refresh = true;
7889
+ });
7858
7890
  }
7859
7891
  }
7860
7892
  }