🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~ $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)