企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ $formBuilder = ViewBuilder::form(); $formBuilder->backBtn = false; $formBuilder->partial = true; $formBuilder->fields = [ 'username' => form_fields_helper(FieldsOptions::CONTROL_TEXT, [ 'label' => '用户名', 'placeholder' => '请输入用户名', ]), 'number' => form_fields_helper(FieldsOptions::CONTROL_NUMBER, [ 'label' => '编号', 'placeholder' => '请输入编号', 'attribute' => [ 'max' => 1000, 'min' => 1, ] ]), 'password' => form_fields_helper(FieldsOptions::CONTROL_PASSWORD, [ 'label' => '密码', 'placeholder' => '请输入密码', ]), 'mark' => form_fields_helper(FieldsOptions::CONTROL_TEXTAREA, [ 'label' => '备注', 'placeholder' => '请填写备注,字数范围5-250', ]), ]; return $formBuilder->render($this); ~~~ ![](https://img.kancloud.cn/e9/f6/e9f66ae18c9bb28b71c2f2fc2a3f938d_1701x949.png)