多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
表单值连接控件 --------- + 支持连接源控件有: + date + datetime + month + number + password + radio + range + select(single) + xselect(radio = true) + xselectCascader(radio = true) + xselectRemote(radio = true) + xselectTree(radio = true) + selectLink + switch + text + textarea + time + year + static_text + hidden + 其他, 控件值为PHP标量,并且支持Angular Scope双向绑定 + 支持连接目标控件有: + date + datetime + month + number + password + radio + range + select(single) + xselect(radio = true) + selectLink + switch + text + textarea + time + year + static_text + hidden + 其他, 控件值为PHP标量,并且支持Angular Scope双向绑定 + 控件特点 - 支持多个源控件串联 - Ajax返回值(data):必须符合目标控件传值要求 + 示例: ```php /** * @return string * @throws \Throwable */ public function actionVlink() { if ($this->isPost) { return $this->asOk('success'); } else { $form = FormBuilder::instance(); $form->setTitle('表单值关联') ->setRequiredStyle() ->setFormControl([ 'c' => $this->formControl->text()->label('普通控件'), 'valueLink1' => $this->formControl->valueLink()->sourceControl([ 'b' => $this->formControl->text()->label('值源1'), 'e' => $this->formControl->text()->label('值源2'), ])->targetRoute(['form/vcompute', 'eeeee' => 2000])->targetField('d'), 'd' => $this->formControl->staticText()->label('值连接1')->defaultValue('0'), 'valueLink2' => $this->formControl->valueLink()->sourceControl([ 'f' => $this->formControl->text()->label('值源3'), 'g' => $this->formControl->text()->label('值源4'), ])->targetRoute('form/vcompute')->targetField('h'), 'h' => $this->formControl->staticText()->label('值连接2')->defaultValue('0'), ]) ->setResetBtn() ->setSubmitBtn(); !empty($this->get['bbbb']) && $form->setPartial(); return $form->render(); } } public function actionVcompute() { $post = $this->filteredPost; unset($post['_ym2_csrf_backend']); if (empty($post)) { return $this->asOk('success', '0'); } return $this->asOk('success', microtime(true)); } ```