多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 属性 ~~~ $stepItem array 分步内容项 ~~~ ## 方法 设置内容项: ~~~ // 示例1 $formStep->setStepItem(function (Item $item) { return $item->title('基本配置')->content(function (FormBuilder $formBuilder) { return $formBuilder->setRequiredStyle()->setFormControl([ 'a' => $this->formControl->text()->label('用户名')->required(), 'a1' => $this->formControl->text()->label('密码')->required(), 'a2' => $this->formControl->text()->label('SEO')->required(), 'a3' => $this->formControl->text()->label('分类')->required(), 'a4' => $this->formControl->text()->label('状态')->required(), ]); }); }); // 示例2 $formStep->setStepItem($this->stepItem->title('会员配置')->content(function (FormBuilder $formBuilder) { return $formBuilder->setRequiredStyle()->setFormControl([ 'b' => $this->formControl->text()->label('名称')->required(), 'b1' => $this->formControl->text()->label('性别')->required(), 'b2' => $this->formControl->text()->label('积分')->required(), 'b3' => $this->formControl->text()->label('代码')->required(), 'b4' => $this->formControl->text()->label('代理商')->required(), 'b5' => $this->formControl->text()->label('登录日期')->required(), ]); })); ~~~ 获取内容项 ~~~ $formStep->getStepItem(); //array ~~~