mirror of
https://gitee.com/layui/layui.git
synced 2025-05-02 20:02:50 +08:00
调整 fixbar 的 showHeight
属性名称为 margin
This commit is contained in:
parent
880cc36195
commit
256b862848
@ -113,7 +113,7 @@ layui.define('jquery', function(exports){
|
||||
var lock;
|
||||
var setTopBar = (function setTopBar(){
|
||||
var top = $scroll.scrollTop();
|
||||
if(top >= options.showHeight){
|
||||
if(top >= options.margin){
|
||||
lock || (elemTopBar.show(), lock = 1);
|
||||
} else {
|
||||
lock && (elemTopBar.hide(), lock = 0);
|
||||
|
Loading…
Reference in New Issue
Block a user