sone-ui-component-3.2.4 2.1.14 → 2.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sone-ui-component-3.2.4",
3
- "version": "2.1.14",
3
+ "version": "2.1.15",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -357,12 +357,13 @@ export default {
357
357
  console.log('this.menuHeight---',this.menuHeight );
358
358
  console.log('self.$el.offsetTop + this.menuHeight---',self.$el.offsetTop + this.menuHeight);
359
359
  if ( this.type != 'handle' ) return
360
+
360
361
  let soneTreeWrapHeight = this.$refs.soneTreeWrap.clientHeight
361
362
  console.log('soneTreeWrapHeight---',soneTreeWrapHeight);
362
363
 
363
364
  //self.offsetTop + menuHeight >父元素高度 用向上展开的样式
364
365
  if(this.menuHeight > 0 && self.$el.offsetTop + this.menuHeight > soneTreeWrapHeight){
365
- this.$refs.handleMenu.style.top = self.$el.offsetTop - 0 - this.menuHeight + 'px'
366
+ this.$refs.handleMenu.style.top = self.$el.offsetTop - 0 - this.menuHeight/2 + 'px'
366
367
  this.$refs.handleMenu.style.right = '5px'
367
368
  }else{
368
369
  this.$refs.handleMenu.style.top = self.$el.offsetTop - 0 + 25 + 'px'
package/src/index.js CHANGED
@@ -55,7 +55,7 @@ if (typeof window !== 'undefined' && window.Vue) {
55
55
  }
56
56
 
57
57
  export default {
58
- version: '2.1.14',
58
+ version: '2.1.15',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,