revert * Fix bug #39389.
This commit is contained in:
宋辰轩
2023-10-11 15:45:38 +08:00
parent 32c2349639
commit f97553edc0
+7 -8
View File
@@ -37,17 +37,16 @@ zui.DTable.definePlugin(
name: 'zentao18',
options: function(options)
{
var height = options.height ? options.height : function(actualHeight)
{
const height = Math.min(actualHeight, Math.max(0, window.innerHeight - ($('#mainContent').offset().top || 0))) - 1;
$('#sidebar>.cell').css('maxHeight', height).children('.tree').addClass('scrollbar-hover');
return height - ($('#mainContent .table-footer').outerHeight() || 0);
}
return $.extend({fixedLeftWidth: '40%'}, options, {
cols: convertCols(options.cols),
responsive: 'window',
height: height,
height: function(actualHeight)
{
const height = Math.min(actualHeight, Math.max(0, window.innerHeight - ($('#mainContent').offset().top || 0))) - 1;
$('#sidebar>.cell').css('maxHeight', height).children('.tree').addClass('scrollbar-hover');
return height - ($('#mainContent .table-footer').outerHeight() || 0);
}
});
},
onMounted: function()