eoss-ui 0.5.71 → 0.5.73

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 (54) hide show
  1. package/lib/cascader.js +22 -3
  2. package/lib/data-table.js +26 -11
  3. package/lib/dialog.js +2 -3
  4. package/lib/eoss-ui.common.js +388 -109
  5. package/lib/icon.js +3 -2
  6. package/lib/icons.js +1 -1
  7. package/lib/index.js +1 -1
  8. package/lib/login.js +12 -2
  9. package/lib/main.js +101 -26
  10. package/lib/menu.js +3 -0
  11. package/lib/nav.js +172 -14
  12. package/lib/select.js +1 -2
  13. package/lib/selector.js +3 -3
  14. package/lib/theme-chalk/base.css +1 -1
  15. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  16. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  17. package/lib/theme-chalk/icon.css +1 -1
  18. package/lib/theme-chalk/index.css +1 -1
  19. package/lib/theme-chalk/main.css +1 -1
  20. package/lib/theme-chalk/menu.css +1 -1
  21. package/lib/theme-chalk/nav.css +1 -1
  22. package/lib/theme-chalk/sizer.css +1 -1
  23. package/lib/theme-chalk/upload.css +1 -1
  24. package/lib/tree.js +4 -4
  25. package/package.json +2 -2
  26. package/packages/cascader/src/main.vue +22 -3
  27. package/packages/data-table/src/main.vue +23 -13
  28. package/packages/dialog/src/main.vue +0 -1
  29. package/packages/icon/src/main.vue +1 -0
  30. package/packages/icons/src/icon.json +1 -1
  31. package/packages/login/src/main.vue +5 -0
  32. package/packages/main/src/main.vue +28 -14
  33. package/packages/main/src/settings.vue +13 -0
  34. package/packages/menu/src/main.vue +3 -0
  35. package/packages/nav/src/main.vue +113 -7
  36. package/packages/select/src/main.vue +1 -2
  37. package/packages/selector/src/main.vue +1 -1
  38. package/packages/theme-chalk/lib/base.css +1 -1
  39. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  40. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  41. package/packages/theme-chalk/lib/icon.css +1 -1
  42. package/packages/theme-chalk/lib/index.css +1 -1
  43. package/packages/theme-chalk/lib/main.css +1 -1
  44. package/packages/theme-chalk/lib/menu.css +1 -1
  45. package/packages/theme-chalk/lib/nav.css +1 -1
  46. package/packages/theme-chalk/lib/sizer.css +1 -1
  47. package/packages/theme-chalk/lib/upload.css +1 -1
  48. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  49. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  50. package/packages/theme-chalk/src/icon.scss +432 -437
  51. package/packages/theme-chalk/src/main.scss +19 -15
  52. package/packages/theme-chalk/src/nav.scss +31 -2
  53. package/packages/tree/src/main.vue +2 -2
  54. package/src/index.js +1 -1
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=5bc62799&
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=249fae96&
3847
3847
  var render = function () {
3848
3848
  var _vm = this
3849
3849
  var _h = _vm.$createElement
@@ -4000,6 +4000,7 @@ var render = function () {
4000
4000
  size: "large",
4001
4001
  type: "text",
4002
4002
  name: "username",
4003
+ tabindex: "1",
4003
4004
  exclude: "",
4004
4005
  placeholder: _vm.username.placeholder,
4005
4006
  focusShow: _vm.focusShow,
@@ -4048,6 +4049,7 @@ var render = function () {
4048
4049
  attrs: {
4049
4050
  size: "large",
4050
4051
  name: "password",
4052
+ tabindex: "2",
4051
4053
  type: "password",
4052
4054
  placeholder: _vm.password.placeholder,
4053
4055
  autocomplete: "off",
@@ -4102,6 +4104,7 @@ var render = function () {
4102
4104
  attrs: {
4103
4105
  size: "large",
4104
4106
  name: "identifyingCode",
4107
+ tabindex: "3",
4105
4108
  type: "text",
4106
4109
  placeholder: "请输入验证码",
4107
4110
  autocomplete: "off",
@@ -4449,6 +4452,7 @@ var render = function () {
4449
4452
  size: "large",
4450
4453
  type: "text",
4451
4454
  name: "target",
4455
+ tabindex: "4",
4452
4456
  placeholder:
4453
4457
  _vm.active == 6
4454
4458
  ? _vm.phone.placeholder
@@ -4505,6 +4509,7 @@ var render = function () {
4505
4509
  type: "text",
4506
4510
  placeholder: "请输入验证码",
4507
4511
  autocomplete: "off",
4512
+ tabindex: "5",
4508
4513
  },
4509
4514
  model: {
4510
4515
  value: _vm.formData.verificationCode,
@@ -4773,7 +4778,7 @@ var staticRenderFns = []
4773
4778
  render._withStripped = true
4774
4779
 
4775
4780
 
4776
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=5bc62799&
4781
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=249fae96&
4777
4782
 
4778
4783
  // 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&
4779
4784
  var resetPasswordvue_type_template_id_28f463b9_render = function () {
@@ -5696,6 +5701,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5696
5701
  //
5697
5702
  //
5698
5703
  //
5704
+ //
5705
+ //
5706
+ //
5707
+ //
5708
+ //
5699
5709
 
5700
5710
 
5701
5711
 
package/lib/main.js CHANGED
@@ -3826,7 +3826,7 @@ module.exports = require("runtime-import");
3826
3826
  // ESM COMPAT FLAG
3827
3827
  __webpack_require__.r(__webpack_exports__);
3828
3828
 
3829
- // 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&
3829
+ // 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=a08554be&
3830
3830
  var render = function () {
3831
3831
  var _vm = this
3832
3832
  var _h = _vm.$createElement
@@ -3961,19 +3961,30 @@ var render = function () {
3961
3961
  "div",
3962
3962
  { staticClass: "es-main-left" },
3963
3963
  [
3964
- _vm.layout === "topside"
3964
+ _vm.layout === "topside" || _vm.layout === "side"
3965
3965
  ? _c(
3966
3966
  "div",
3967
- { staticClass: "es-main-side" },
3967
+ {
3968
+ staticClass: "es-main-side",
3969
+ class: {
3970
+ "es-main-topside": _vm.layout === "topside",
3971
+ },
3972
+ },
3968
3973
  [
3969
- _c("div", { staticClass: "es-main-side-logo" }, [
3970
- _vm.logoUrl
3971
- ? _c("img", {
3972
- staticClass: "es-main-logo",
3973
- attrs: { src: _vm.logoUrl },
3974
- })
3975
- : _vm._e(),
3976
- ]),
3974
+ _vm.layout === "topside"
3975
+ ? _c(
3976
+ "div",
3977
+ { staticClass: "es-main-side-logo" },
3978
+ [
3979
+ _vm.logoUrl
3980
+ ? _c("img", {
3981
+ staticClass: "es-main-logo",
3982
+ attrs: { src: _vm.logoUrl },
3983
+ })
3984
+ : _vm._e(),
3985
+ ]
3986
+ )
3987
+ : _vm._e(),
3977
3988
  _c("es-handle-user", {
3978
3989
  attrs: {
3979
3990
  data: { type: "user" },
@@ -4022,16 +4033,19 @@ var render = function () {
4022
4033
  ? _c("es-nav", {
4023
4034
  attrs: {
4024
4035
  "is-top": _vm.layout == "topside",
4036
+ overlap: _vm.layout == "side",
4025
4037
  data: _vm.menu,
4026
4038
  "default-active": _vm.active,
4027
4039
  width: _vm.navsWidth,
4028
- "nav-width": _vm.navWidth,
4040
+ "nav-width": _vm._navWidth,
4029
4041
  icons: _vm.icons,
4030
4042
  "menu-icon": _vm.menuIcon,
4031
4043
  "sub-icon": _vm.subIcon,
4032
4044
  biserial: _vm.biserial,
4033
4045
  title: _vm.showNavTitle ? _vm.title : false,
4034
- showCollapse: _vm.showNavTitle,
4046
+ showCollapse: _vm.showNavTitle
4047
+ ? _vm.showCollapse
4048
+ : false,
4035
4049
  "menu-tips": _vm.menuTips,
4036
4050
  "is-default": _vm.isDefault,
4037
4051
  paddingLeft: _vm.navPaddingLeft,
@@ -4268,7 +4282,7 @@ var staticRenderFns = []
4268
4282
  render._withStripped = true
4269
4283
 
4270
4284
 
4271
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=098112dd&
4285
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=a08554be&
4272
4286
 
4273
4287
  // 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&
4274
4288
  var userinfovue_type_template_id_75d533de_render = function () {
@@ -4761,8 +4775,8 @@ var component = Object(componentNormalizer["a" /* default */])(
4761
4775
  )
4762
4776
 
4763
4777
  /* harmony default export */ var userinfo = (component.exports);
4764
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/settings.vue?vue&type=template&id=3c983b8c&
4765
- var settingsvue_type_template_id_3c983b8c_render = function () {
4778
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/settings.vue?vue&type=template&id=e1a47a4a&
4779
+ var settingsvue_type_template_id_e1a47a4a_render = function () {
4766
4780
  var _vm = this
4767
4781
  var _h = _vm.$createElement
4768
4782
  var _c = _vm._self._c || _h
@@ -4999,6 +5013,44 @@ var settingsvue_type_template_id_3c983b8c_render = function () {
4999
5013
  ),
5000
5014
  ]
5001
5015
  ),
5016
+ _c(
5017
+ "el-tooltip",
5018
+ {
5019
+ staticClass: "es-setting-navs-item",
5020
+ attrs: {
5021
+ effect: "dark",
5022
+ content: "侧边菜单布局",
5023
+ placement: "bottom",
5024
+ },
5025
+ },
5026
+ [
5027
+ _c(
5028
+ "div",
5029
+ {
5030
+ staticClass: "es-setting-navs es-setting-side-navs",
5031
+ on: {
5032
+ click: function ($event) {
5033
+ $event.stopPropagation()
5034
+ _vm.handleLayout("side")
5035
+ },
5036
+ },
5037
+ },
5038
+ [
5039
+ _c("i", {
5040
+ directives: [
5041
+ {
5042
+ name: "show",
5043
+ rawName: "v-show",
5044
+ value: _vm.activeName == "side",
5045
+ expression: "activeName == 'side'",
5046
+ },
5047
+ ],
5048
+ staticClass: "es-icon-gou",
5049
+ }),
5050
+ ]
5051
+ ),
5052
+ ]
5053
+ ),
5002
5054
  ],
5003
5055
  1
5004
5056
  ),
@@ -5006,11 +5058,11 @@ var settingsvue_type_template_id_3c983b8c_render = function () {
5006
5058
  ]
5007
5059
  )
5008
5060
  }
5009
- var settingsvue_type_template_id_3c983b8c_staticRenderFns = []
5010
- settingsvue_type_template_id_3c983b8c_render._withStripped = true
5061
+ var settingsvue_type_template_id_e1a47a4a_staticRenderFns = []
5062
+ settingsvue_type_template_id_e1a47a4a_render._withStripped = true
5011
5063
 
5012
5064
 
5013
- // CONCATENATED MODULE: ./packages/main/src/settings.vue?vue&type=template&id=3c983b8c&
5065
+ // CONCATENATED MODULE: ./packages/main/src/settings.vue?vue&type=template&id=e1a47a4a&
5014
5066
 
5015
5067
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/settings.vue?vue&type=script&lang=js&
5016
5068
  //
@@ -5108,6 +5160,19 @@ settingsvue_type_template_id_3c983b8c_render._withStripped = true
5108
5160
  //
5109
5161
  //
5110
5162
  //
5163
+ //
5164
+ //
5165
+ //
5166
+ //
5167
+ //
5168
+ //
5169
+ //
5170
+ //
5171
+ //
5172
+ //
5173
+ //
5174
+ //
5175
+ //
5111
5176
 
5112
5177
 
5113
5178
  /* harmony default export */ var settingsvue_type_script_lang_js_ = ({
@@ -5200,8 +5265,8 @@ settingsvue_type_template_id_3c983b8c_render._withStripped = true
5200
5265
 
5201
5266
  var settings_component = Object(componentNormalizer["a" /* default */])(
5202
5267
  src_settingsvue_type_script_lang_js_,
5203
- settingsvue_type_template_id_3c983b8c_render,
5204
- settingsvue_type_template_id_3c983b8c_staticRenderFns,
5268
+ settingsvue_type_template_id_e1a47a4a_render,
5269
+ settingsvue_type_template_id_e1a47a4a_staticRenderFns,
5205
5270
  false,
5206
5271
  null,
5207
5272
  null,
@@ -6363,8 +6428,6 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
6363
6428
  //
6364
6429
  //
6365
6430
  //
6366
- //
6367
- //
6368
6431
 
6369
6432
 
6370
6433
 
@@ -6532,7 +6595,15 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6532
6595
  appCode: String,
6533
6596
  //菜单左边距
6534
6597
  navPaddingLeft: Number,
6535
- navWidth: String
6598
+ navBoxWidth: {
6599
+ type: String,
6600
+ default: '230px'
6601
+ },
6602
+ navWidth: String,
6603
+ showCollapse: {
6604
+ type: Boolean,
6605
+ default: true
6606
+ }
6536
6607
  },
6537
6608
  computed: {
6538
6609
  showHeader: function showHeader() {
@@ -6560,7 +6631,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6560
6631
  return true;
6561
6632
  },
6562
6633
  navsWidth: function navsWidth() {
6563
- return this.layout === 'topside' ? '230px' : undefined;
6634
+ return this.layout === 'topside' ? this.navBoxWidth : undefined;
6635
+ },
6636
+ _navWidth: function _navWidth() {
6637
+ return this.layout === 'side' ? this.navBoxWidth : this.layout === 'subsystem' || this.layout === 'topside' ? '0' : this.navWidth;
6564
6638
  },
6565
6639
  showNavTitle: function showNavTitle() {
6566
6640
  return this.layout !== 'topside';
@@ -6606,7 +6680,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6606
6680
  } else {
6607
6681
  return { set: !this.set, system: false };
6608
6682
  }
6609
- } else if (this.layout === 'topside') {
6683
+ } else if (this.layout === 'topside' || this.layout === 'side') {
6610
6684
  if (this.hides && Object.keys(this.hides).length) {
6611
6685
  return mainvue_type_script_lang_js_extends({}, this.hides, {
6612
6686
  set: !this.set,
@@ -7407,6 +7481,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7407
7481
  }
7408
7482
  }
7409
7483
  } else {
7484
+ this.tabs = [];
7410
7485
  this.handleJump(obj.url, obj.urlopenmode, obj);
7411
7486
  }
7412
7487
  return obj;
package/lib/menu.js CHANGED
@@ -280,6 +280,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
280
280
  },
281
281
  width: function width() {
282
282
  this.getMaxWidth();
283
+ },
284
+ height: function height() {
285
+ this.$refs.esMenu.update();
283
286
  }
284
287
  },
285
288
  data: function data() {
package/lib/nav.js CHANGED
@@ -3628,7 +3628,7 @@ module.exports = require("axios");
3628
3628
  // ESM COMPAT FLAG
3629
3629
  __webpack_require__.r(__webpack_exports__);
3630
3630
 
3631
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=04099294&
3631
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=7b4319fb&
3632
3632
  var render = function () {
3633
3633
  var _vm = this
3634
3634
  var _h = _vm.$createElement
@@ -3645,12 +3645,24 @@ var render = function () {
3645
3645
  _vm.biserial
3646
3646
  ? _c(
3647
3647
  "div",
3648
- { staticClass: "es-nav-initial" },
3648
+ {
3649
+ staticClass: "es-nav-initial",
3650
+ style: {
3651
+ width: _vm._navWidth,
3652
+ left:
3653
+ this.overlap && !this.subMenu.length
3654
+ ? "15px"
3655
+ : _vm.show
3656
+ ? "-" + _vm.boxWidth
3657
+ : "",
3658
+ },
3659
+ },
3649
3660
  [
3650
3661
  _c(
3651
3662
  "es-menu",
3652
3663
  _vm._b(
3653
3664
  {
3665
+ class: { "es-nav-overlap": _vm.overlap },
3654
3666
  attrs: {
3655
3667
  "sub-nav": "",
3656
3668
  data: _vm.menu,
@@ -3685,14 +3697,18 @@ var render = function () {
3685
3697
  },
3686
3698
  ],
3687
3699
  staticClass: "es-nav-main",
3688
- style: { width: _vm.biserial ? _vm.width : _vm.boxWidth },
3700
+ class: { "es-nav-overlap": _vm.overlap },
3701
+ style: {
3702
+ width: _vm.biserial ? _vm.width : _vm.boxWidth,
3703
+ left: _vm.show ? "15px" : _vm.navWidth,
3704
+ },
3689
3705
  attrs: { biserial: _vm.biserial },
3690
3706
  },
3691
3707
  [
3692
3708
  _vm.showTitle
3693
3709
  ? _c(
3694
3710
  "div",
3695
- { staticClass: "es-nav-title" },
3711
+ { ref: "navTitle", staticClass: "es-nav-title" },
3696
3712
  [
3697
3713
  _c(
3698
3714
  "span",
@@ -3751,6 +3767,7 @@ var render = function () {
3751
3767
  collapse: _vm.isCollapse,
3752
3768
  "default-active": _vm.menuActive,
3753
3769
  width: _vm.isTop ? _vm.boxWidth : _vm.menuWidth,
3770
+ height: _vm.menuHeight,
3754
3771
  "is-default": _vm.isDefault,
3755
3772
  biserial: _vm.biserial,
3756
3773
  paddingLeft: _vm.paddingLeft,
@@ -3772,6 +3789,29 @@ var render = function () {
3772
3789
  ],
3773
3790
  1
3774
3791
  ),
3792
+ _c(
3793
+ "div",
3794
+ {
3795
+ directives: [
3796
+ {
3797
+ name: "show",
3798
+ rawName: "v-show",
3799
+ value: _vm.show,
3800
+ expression: "show",
3801
+ },
3802
+ ],
3803
+ ref: "box",
3804
+ staticClass: "es-sets-button",
3805
+ },
3806
+ [
3807
+ _c("el-button", {
3808
+ ref: "area",
3809
+ staticClass: "es-icon-yingyonglan",
3810
+ attrs: { round: "", type: "primary" },
3811
+ }),
3812
+ ],
3813
+ 1
3814
+ ),
3775
3815
  ]
3776
3816
  )
3777
3817
  }
@@ -3779,7 +3819,7 @@ var staticRenderFns = []
3779
3819
  render._withStripped = true
3780
3820
 
3781
3821
 
3782
- // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=04099294&
3822
+ // CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=7b4319fb&
3783
3823
 
3784
3824
  // EXTERNAL MODULE: ./src/utils/util.js
3785
3825
  var util = __webpack_require__(0);
@@ -3849,6 +3889,33 @@ var util = __webpack_require__(0);
3849
3889
  //
3850
3890
  //
3851
3891
  //
3892
+ //
3893
+ //
3894
+ //
3895
+ //
3896
+ //
3897
+ //
3898
+ //
3899
+ //
3900
+ //
3901
+ //
3902
+ //
3903
+ //
3904
+ //
3905
+ //
3906
+ //
3907
+ //
3908
+ //
3909
+ //
3910
+ //
3911
+ //
3912
+ //
3913
+ //
3914
+ //
3915
+ //
3916
+ //
3917
+ //
3918
+ //
3852
3919
 
3853
3920
 
3854
3921
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
@@ -3890,9 +3957,16 @@ var util = __webpack_require__(0);
3890
3957
  subIcon: {
3891
3958
  type: Boolean,
3892
3959
  default: true
3893
- }
3960
+ },
3961
+ overlap: Boolean
3894
3962
  },
3895
3963
  computed: {
3964
+ show: function show() {
3965
+ return this.overlap && this.subMenu.length;
3966
+ },
3967
+ showMenu: function showMenu() {
3968
+ return this.biserial ? this.subMenu.length : this.menu.length;
3969
+ },
3896
3970
  menu: function menu() {
3897
3971
  return this.data;
3898
3972
  },
@@ -3912,13 +3986,19 @@ var util = __webpack_require__(0);
3912
3986
  },
3913
3987
  boxWidth: function boxWidth() {
3914
3988
  if (!this.biserial) {
3989
+ if (this.overlap) {
3990
+ return this.navWidth;
3991
+ }
3915
3992
  if (this.isShow) {
3916
3993
  return this.width;
3917
3994
  } else {
3918
3995
  return this.navWidth;
3919
3996
  }
3920
3997
  }
3921
- return this.subMenu && this.subMenu.length && this.isShow ? parseInt(this.width, 10) + parseInt(this.navWidth, 10) + 'px' : this.navWidth;
3998
+ return this.subMenu && this.subMenu.length && this.isShow && !this.overlap ? parseInt(this.width, 10) + parseInt(this.navWidth, 10) + 'px' : this.navWidth;
3999
+ },
4000
+ _navWidth: function _navWidth() {
4001
+ return this.overlap ? parseInt(this.navWidth, 10) - 30 + 'px' : this.navWidth;
3922
4002
  }
3923
4003
  },
3924
4004
  watch: {
@@ -3984,6 +4064,9 @@ var util = __webpack_require__(0);
3984
4064
  } else {
3985
4065
  this.subMenu = [];
3986
4066
  }
4067
+ },
4068
+ showMenu: function showMenu() {
4069
+ this.resetHeight();
3987
4070
  }
3988
4071
  },
3989
4072
  data: function data() {
@@ -4000,9 +4083,76 @@ var util = __webpack_require__(0);
4000
4083
  },
4001
4084
  mounted: function mounted() {
4002
4085
  this.resetHeight();
4086
+ this.move();
4003
4087
  },
4004
4088
 
4005
4089
  methods: {
4090
+ //设置按钮拖动
4091
+ move: function move() {
4092
+ var _this3 = this;
4093
+
4094
+ var area = this.$refs.area.$el;
4095
+ var box = this.$refs.box;
4096
+ var sTime = 0,
4097
+ eTime = 0;
4098
+
4099
+ area.addEventListener('mousedown', function (e) {
4100
+ sTime = new Date().getTime();
4101
+ var downY = e.y,
4102
+ downX = e.x;
4103
+
4104
+ var _document$body$getBou = document.body.getBoundingClientRect(),
4105
+ winH = _document$body$getBou.height,
4106
+ winW = _document$body$getBou.width;
4107
+ //防止拖动期间选中和复制网页文本
4108
+
4109
+
4110
+ document.body.onselectstart = document.body.oncontextmenu = function () {
4111
+ return false;
4112
+ };
4113
+ document.onmousemove = function (eve) {
4114
+ var size = 40;
4115
+ var moveY = eve.y,
4116
+ moveX = eve.x;
4117
+
4118
+ var _box$getBoundingClien = box.getBoundingClientRect(),
4119
+ boxTop = _box$getBoundingClien.top,
4120
+ boxLeft = _box$getBoundingClien.left;
4121
+
4122
+ boxTop += moveY - downY;
4123
+ boxLeft += moveX - downX;
4124
+ boxTop >= winH - size && (boxTop = winH - size);
4125
+ boxTop <= -size && (boxTop = -size);
4126
+ boxLeft >= winW - size && (boxLeft = winW - size);
4127
+ boxLeft <= -size && (boxLeft = -size);
4128
+ if (boxTop < 0) {
4129
+ boxTop = 0;
4130
+ }
4131
+ if (boxLeft < 0) {
4132
+ boxLeft = 0;
4133
+ }
4134
+ box.style.top = boxTop + 'px';
4135
+ box.style.left = boxLeft + 'px';
4136
+ downY = moveY;
4137
+ downX = moveX;
4138
+ };
4139
+ document.onmouseup = function () {
4140
+ eTime = new Date().getTime();
4141
+ var isClick = eTime - sTime < 200;
4142
+ if (isClick) {
4143
+ var onArea = function onArea() {
4144
+ _this3.subMenu = [];
4145
+ area.removeEventListener('click', onArea);
4146
+ };
4147
+ area.addEventListener('click', onArea);
4148
+ }
4149
+ document.onmousemove = null;
4150
+ document.body.onselectstart = document.body.oncontextmenu = function () {
4151
+ return true;
4152
+ };
4153
+ };
4154
+ });
4155
+ },
4006
4156
  handleChange: function handleChange() {
4007
4157
  if (this.biserial) {
4008
4158
  this.isShow = !this.isShow;
@@ -4010,7 +4160,7 @@ var util = __webpack_require__(0);
4010
4160
  this.isCollapse = !this.isCollapse;
4011
4161
  if (this.isCollapse) {
4012
4162
  this.isShow = false;
4013
- this.menuWidth = '70px';
4163
+ this.menuWidth = this.navWidth;
4014
4164
  } else {
4015
4165
  this.isShow = true;
4016
4166
  this.menuWidth = this.width;
@@ -4037,12 +4187,12 @@ var util = __webpack_require__(0);
4037
4187
  this.$emit('close', res);
4038
4188
  },
4039
4189
  resetHeight: function resetHeight() {
4040
- var _this3 = this;
4190
+ var _this4 = this;
4041
4191
 
4042
4192
  this.$nextTick(function () {
4043
- var height = _this3.$refs.esNav.parentNode.offsetHeight;
4044
- Array.from(_this3.$refs.esNav.parentNode.children).forEach(function (item) {
4045
- if (item !== _this3.$refs.esNav) {
4193
+ var height = _this4.$refs.esNav.parentNode.offsetHeight;
4194
+ Array.from(_this4.$refs.esNav.parentNode.children).forEach(function (item) {
4195
+ if (item !== _this4.$refs.esNav) {
4046
4196
  var mt = util["a" /* default */].getStyle(item, 'margin-top');
4047
4197
  var mb = util["a" /* default */].getStyle(item, 'margin-bottom');
4048
4198
  mt = mt ? parseInt(mt, 10) : 0;
@@ -4050,8 +4200,16 @@ var util = __webpack_require__(0);
4050
4200
  height -= item.offsetHeight + mt + mb;
4051
4201
  }
4052
4202
  });
4053
- _this3.height = height + 'px';
4054
- _this3.menuHeight = _this3.showTitle ? height - 49 + 'px' : height + 'px';
4203
+ if (_this4.overlap) {
4204
+ height -= 15;
4205
+ }
4206
+ _this4.height = height + 'px';
4207
+ if (_this4.showTitle) {
4208
+ var theight = _this4.$refs.navTitle.offsetHeight;
4209
+ _this4.menuHeight = height - theight + 'px';
4210
+ } else {
4211
+ _this4.menuHeight = height + 'px';
4212
+ }
4055
4213
  });
4056
4214
  }
4057
4215
  }
package/lib/select.js CHANGED
@@ -4040,7 +4040,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4040
4040
  immediate: true,
4041
4041
  handler: function handler(val, old) {
4042
4042
  if (val && val !== old) {
4043
- console.log(1);
4044
4043
  this.label = this.service ? 'label' : 'shortName';
4045
4044
  this.valKey = this.service ? 'value' : 'cciValue';
4046
4045
  var options = store["a" /* default */].get(val);
@@ -4053,6 +4052,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4053
4052
  }
4054
4053
  },
4055
4054
  url: {
4055
+ immediate: true,
4056
4056
  handler: function handler(val, old) {
4057
4057
  if (val && old !== val && !this.sysCode) {
4058
4058
  this.getData();
@@ -4062,7 +4062,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4062
4062
  param: {
4063
4063
  deep: true,
4064
4064
  handler: function handler(val, old) {
4065
- console.log(3);
4066
4065
  if (this.url && JSON.stringify(val) !== JSON.stringify(old)) {
4067
4066
  this.options = [];
4068
4067
  this.getData(this.sysCode);
package/lib/selector.js CHANGED
@@ -3642,7 +3642,7 @@ module.exports = require("json-bigint");
3642
3642
  // ESM COMPAT FLAG
3643
3643
  __webpack_require__.r(__webpack_exports__);
3644
3644
 
3645
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=bcfee2b4&
3645
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=59002e4c&
3646
3646
  var render = function () {
3647
3647
  var _vm = this
3648
3648
  var _h = _vm.$createElement
@@ -3950,7 +3950,7 @@ var render = function () {
3950
3950
  attrs: {
3951
3951
  type: "text",
3952
3952
  autocomplete: "off",
3953
- clearable: "clearable",
3953
+ clearable: _vm.clearable,
3954
3954
  showClearIcon: "",
3955
3955
  name: _vm.name,
3956
3956
  readonly: _vm.filterable ? false : true,
@@ -4149,7 +4149,7 @@ var staticRenderFns = []
4149
4149
  render._withStripped = true
4150
4150
 
4151
4151
 
4152
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=bcfee2b4&
4152
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=59002e4c&
4153
4153
 
4154
4154
  // EXTERNAL MODULE: ./src/utils/util.js
4155
4155
  var util = __webpack_require__(0);