新增fixed布局

This commit is contained in:
maplemei
2021-01-19 16:28:25 +08:00
parent b47c8cfcb9
commit e928c6a038
19 changed files with 131 additions and 66 deletions

View File

@@ -38,6 +38,8 @@
this.fixedControl = bottom > document.documentElement.clientHeight &&
top + 44 <= document.documentElement.clientHeight;
this.$refs.control.style.left = this.fixedControl ? `${ left }px` : '0';
xmSelect.get().forEach(xs => xs.calcPosition());
},
removeScrollHandler() {
this.scrollParent && this.scrollParent.removeEventListener('scroll', this.scrollHandler);