Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ww
2 years ago
Commit
e1bad672b356f7457de7828b48bab0f6c38ea2e6
1 parent
d46048f1
fix: 表格高度优化还原
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
hg-monitor-web-base/src/main/resources/static/start/layui/lay/modules/table.js
hg-monitor-web-base/src/main/resources/static/start/layui/lay/modules/table.js
View file @
e1bad67
...
...
@@ -327,16 +327,18 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util', 'sessions', 'common'
delete
options
.
page
.
elem
;
delete
options
.
page
.
jump
;
}
if
(
options
.
limit
==
10
){
options
.
limit
=
20
;
}
options
.
limits
=
[
20
,
50
,
100
,
200
];
if
(
!
options
.
elem
[
0
])
return
that
;
//高度铺满:full-差距值
// if (options.height && /^full-\d+$/.test(options.height)) {
// that.fullHeightGap = options.height.split('-')[1];
// options.height = _WIN.height() - that.fullHeightGap;
// }
that
.
fullHeightGap
=
100
;
if
(
options
.
height
&&
/^full-
\d
+$/
.
test
(
options
.
height
))
{
that
.
fullHeightGap
=
options
.
height
.
split
(
'-'
)[
1
];
options
.
height
=
_WIN
.
height
()
-
that
.
fullHeightGap
;
}
//初始化一些参数
that
.
setInit
();
...
...
Please
register
or
login
to post a comment