From 21c359326df5845745beb66f14f602e1991459aa Mon Sep 17 00:00:00 2001 From: Ying Date: Mon, 3 Jul 2023 20:40:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E8=A1=A8=E5=8D=95switch=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/system/Form.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extend/system/Form.php b/extend/system/Form.php index b6d0a61..d4f5fdc 100644 --- a/extend/system/Form.php +++ b/extend/system/Form.php @@ -396,9 +396,15 @@ class FormBuilder { $value = $this->formtype ? 'value="{$data.' . $data['name'] . '}"' : ''; $param = '$data.' . $data['name']; + if ($this->formtype) { + return << + checked lay-skin="switch" /> + Eof; + } return << - checked lay-skin="switch" /> + Eof; }