fix: 修复生成switch错误

This commit is contained in:
Ying
2023-07-18 10:12:31 +08:00
parent c0bc6c25e7
commit f5bac77f45

View File

@@ -394,7 +394,7 @@ class FormBuilder
*/ */
public function switch(array $data = []): string public function switch(array $data = []): string
{ {
$value = $this->formtype ? 'value="{$data.' . $data['name'] . '}"' : ''; $value = $this->formtype ? '{$data.' . $data['name'] . '}' : '';
$param = '$data.' . $data['name']; $param = '$data.' . $data['name'];
if ($this->formtype) { if ($this->formtype) {
return <<<Eof return <<<Eof