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