* [ui] fix echart size on open testreport at first time.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
@@ -350,6 +350,7 @@ detailBody
|
||||
set::className('col gap-1 grow'),
|
||||
tabs
|
||||
(
|
||||
on::show('.tab-pane')->call('handleTabChange', jsRaw('event')),
|
||||
tabPane
|
||||
(
|
||||
set::key('basic'),
|
||||
|
||||
Reference in New Issue
Block a user