$buttonName, 'title' => "提示", 'dialog_cancel' => "取消", 'dialog_ok' => "确认", 'is_batch' => true ); } $this->config=$config; $this->config['uniqid']=uniqid(); if ($widget instanceof Form) { $widget->attribute('id', 'dialog-form-'.$this->config['uniqid']); $widget->disableReset(); $widget->disableSubmit(); $this->config['is_form']=true; } else { $this->config['is_form']=false; } $this->config['form']=$widget->render(); } public function render() { return view('admin.tools.dialog', $this->config); } }