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/lib/sone-ui.common.js +15 -9
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +15 -9
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +2 -2
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/tree/src/main.vue +7 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -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'
|