This commit is contained in:
tianshujie
2024-03-06 14:42:09 +08:00
committed by caoyanyi
parent d0b0a217c4
commit 4a922a4a66
2 changed files with 15 additions and 6 deletions
+7 -3
View File
@@ -110,16 +110,20 @@ if(!empty($execution->projectInfo->hasProduct) || $features['plan'])
foreach($product->plans as $planIDList)
{
$planIDList = explode(',', $planIDList);
$planIDList = array_filter($planIDList);
foreach($planIDList as $planID)
{
if(!isset($planGroups[$productID][$planID])) continue;
$class = '';
$class = 'clip';
if(count($planIDList) <= 2) $class .= ' flex flex-1 w-0 items-center';
if(count($planIDList) > 2) $class .= ' flex-none w-1/3';
if(count($plans) > 2) $class .= ' mt-2';
if(count($plans) % 3 != 0) $class .= ' pl-4';
if(count($plans) % 3 != 0) $class .= ' pl-6';
$plans[] = div
(
setClass("flex-none w-1/3 clip {$class}"),
setClass($class),
icon('calendar mr-2'),
a
(