尝试修复滚动占位
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hoc-element/affix",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"main": "lib/hoc-el-affix.js",
|
||||
"description": "📌 Affix 将页面元素固定在可视范围内。",
|
||||
"author": "Wisdom <pdsu.wwz@foxmail.com>",
|
||||
|
||||
@@ -70,8 +70,8 @@ export default {
|
||||
|
||||
const instanceRect = this.getInstanceRect()
|
||||
this.stylePlaceHolder = {
|
||||
width: instanceRect.width,
|
||||
height: instanceRect.height,
|
||||
width: `${instanceRect.width}px`,
|
||||
height: `${instanceRect.height}px`
|
||||
}
|
||||
},
|
||||
beforeListener () {
|
||||
|
||||
@@ -9,7 +9,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
||||
}
|
||||
|
||||
export default {
|
||||
version: '0.0.3',
|
||||
version: '0.0.4',
|
||||
install,
|
||||
HocElAffix
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user