修复使用table的fixed时,高度不一致的错误;

This commit is contained in:
2022-04-17 12:31:34 +08:00
parent de8b5202ff
commit 378ddf56ed
5 changed files with 21 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ define(["jquery", "easy-admin"], function ($, ea) {
width: 250,
title: '操作',
templet: ea.table.tool,
fixed: 'right',
operat: [
[{
text: '编辑',

View File

@@ -40,6 +40,7 @@ define(["jquery", "easy-admin"], function ($, ea) {
{
width: 250,
title: '操作',
fixed:'right',
templet: ea.table.tool,
operat: [
'edit',

View File

@@ -59,6 +59,7 @@ define(["jquery", "easy-admin", "treetable", "iconPickerFa", "autocomplete"], fu
{
width: 200,
title: '操作',
fixed: 'right',
templet: ea.table.tool,
operat: [
[{
@@ -82,6 +83,12 @@ define(["jquery", "easy-admin", "treetable", "iconPickerFa", "autocomplete"], fu
]], init),
done: function () {
layer.closeAll('loading');
$(".layui-table-main tr").each(function (index, val) {
$(".layui-table-fixed").each(function () {
$($(this).find(".layui-table-body tbody tr")[index]).height($(val).height());
});
});
}
});
};

View File

@@ -26,7 +26,7 @@ define(["jquery", "easy-admin"], function ($, ea) {
{field: 'mime_type', minWidth: 80, title: 'mime类型'},
{field: 'file_ext', minWidth: 80, title: '文件后缀'},
{field: 'create_time', minWidth: 80, title: '创建时间', search: 'range'},
{width: 250, title: '操作', templet: ea.table.tool, operat: ['delete']}
{width: 250, title: '操作', templet: ea.table.tool, operat: ['delete'],fixed:'right'}
]],
});