sone-ui-component-3.2.4 2.1.13 → 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.13",
3
+ "version": "2.1.15",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -353,11 +353,17 @@ export default {
353
353
  document.removeEventListener('click',() => {})
354
354
  },
355
355
  handleContextmenu(event, data, node, self) {
356
+ console.log('self.$el.offsetTop---',self.$el.offsetTop );
357
+ console.log('this.menuHeight---',this.menuHeight );
358
+ console.log('self.$el.offsetTop + this.menuHeight---',self.$el.offsetTop + this.menuHeight);
356
359
  if ( this.type != 'handle' ) return
360
+
357
361
  let soneTreeWrapHeight = this.$refs.soneTreeWrap.clientHeight
362
+ console.log('soneTreeWrapHeight---',soneTreeWrapHeight);
363
+
358
364
  //self.offsetTop + menuHeight >父元素高度 用向上展开的样式
359
365
  if(this.menuHeight > 0 && self.$el.offsetTop + this.menuHeight > soneTreeWrapHeight){
360
- 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'
361
367
  this.$refs.handleMenu.style.right = '5px'
362
368
  }else{
363
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.13',
58
+ version: '2.1.15',
59
59
  locale: locale.use,
60
60
  i18n: locale.i18n,
61
61
  install,