* zin: fix batchForm not work.

This commit is contained in:
sunhao
2024-01-17 12:22:07 +08:00
parent 97e7197af2
commit 41018da251
+9 -1
View File
@@ -75,6 +75,14 @@ class formBatch extends formBase
return new formBatchItem(inherit($item));
}
public function children(): array
{
$children = array();
$children[] = $this->buildContent();
$children[] = $this->buildActions();
return $children;
}
/**
* Build batch form content.
*
@@ -83,7 +91,7 @@ class formBatch extends formBase
*/
protected function buildContent(): array|wg
{
$items = $this->prop('items', array());
$items = array_merge($this->block('children'), $this->prop('items', array()));
$templateItems = array();
$headItems = array();
$otherItems = array();