* [bug #53307, done, 0.5h] fix story report render error with morph update.

This commit is contained in:
sunhao
2024-07-30 16:45:32 +08:00
committed by 刘刚
parent f862ea935f
commit 52c810d8ea
2 changed files with 7 additions and 3 deletions
+6 -3
View File
@@ -66,7 +66,7 @@ class tableChart extends wg
if(!next($colorList)) reset($colorList);
}
$tableWdith = $this->prop('tableWidth', '50%');
$tableWidth = $this->prop('tableWidth', '50%');
$chartHeight = $this->prop('chartHeight', 300);
$overflow = $this->prop('overflow', true);
return div
@@ -75,6 +75,7 @@ class tableChart extends wg
cell
(
set::id($item),
setKey('chart'),
setClass('border-r chart flex-auto'),
div(set::className('center text-base font-bold py-2'), $title),
echarts
@@ -107,7 +108,8 @@ class tableChart extends wg
),
cell
(
set::width($tableWdith),
setKey('table'),
set::width($tableWidth),
div
(
setClass('overflow-y-auto'),
@@ -119,7 +121,8 @@ class tableChart extends wg
$tableTR
)
)
)
),
set($this->getRestProps())
);
}
}
+1
View File
@@ -39,6 +39,7 @@ function getEcharts($charts, $datas, $chartType)
$chartData = $datas[$type];
$echarts[] = tableChart
(
setKey($type),
set::item('chart-' . $type),
set::type($chartType),
set::title($lang->story->report->charts[$type]),