From 0708435d91ddfc27f401375cb9b09f744555f7cb Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:15:07 +0800 Subject: [PATCH] feat(switch): add 'is_show' to switch field optionsInclude 'is_show' as an option in the switchFields array to enable the use of a switch component for toggling the visibility of fields in the admin panel's build form. --- app/admin/service/curd/BuildCurd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/service/curd/BuildCurd.php b/app/admin/service/curd/BuildCurd.php index dcfea9d..d7f6537 100644 --- a/app/admin/service/curd/BuildCurd.php +++ b/app/admin/service/curd/BuildCurd.php @@ -194,7 +194,7 @@ class BuildCurd * 开关组件字段 * @var array */ - protected array $switchFields = ['status']; + protected array $switchFields = []; /** * 下拉选择字段