* [ui] fix echart size on open testreport at first time.

This commit is contained in:
sunhao
2024-07-19 08:37:08 +08:00
committed by 刘刚
parent 1243117eba
commit 3d89dd75a3
2 changed files with 6 additions and 5 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
$('.nav.nav-tabs').on('show', function(event, info)
window.handleTabChange = function(event)
{
const tabID = info[1].replaceAll('#', '');
$('#' + tabID + ' canvas').each(function()
$(event.target).find('[z-use-echarts]').each(function()
{
$(this).parent().parent().data('zui.ECharts').chart.resize();
const echart = $(this).zui();
if(echart) echart.chart.resize();
});
});
};
+1
View File
@@ -350,6 +350,7 @@ detailBody
set::className('col gap-1 grow'),
tabs
(
on::show('.tab-pane')->call('handleTabChange', jsRaw('event')),
tabPane
(
set::key('basic'),