fix: 修复生成switch错误
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user