mirror of https://gitee.com/karson/fastadmin.git
启用slimScroll美化滚动条
parent
53be2a2e96
commit
302e92dee8
|
|
@ -303,12 +303,13 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'slimscroll'], functio
|
|||
//公共代码
|
||||
$(function ($) {
|
||||
if (self === top) {
|
||||
$('#main').slimScroll({height: $(window).height() + 'px'});
|
||||
$('div[role="main"]').slimScroll({height: $(window).height() + 'px'});
|
||||
} else {
|
||||
var ScrollHeight = $('iframe', parent.document).height();
|
||||
if (ScrollHeight) {
|
||||
$('#main').slimScroll({height: ScrollHeight + 'px'});
|
||||
if (!ScrollHeight || ScrollHeight === 100) {
|
||||
ScrollHeight = $('.content-wrapper', parent.document).height();
|
||||
}
|
||||
$('div[role="main"]').slimScroll({height: ScrollHeight + 'px'});
|
||||
}
|
||||
});
|
||||
//配置Toastr的参数
|
||||
|
|
|
|||
Loading…
Reference in New Issue