|
@@ -45,8 +45,6 @@ class DialogForm
|
|
|
$this->title($title);
|
|
$this->title($title);
|
|
|
|
|
|
|
|
$this->url($url);
|
|
$this->url($url);
|
|
|
-
|
|
|
|
|
- $this->autoRender();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -254,20 +252,6 @@ JS
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 自动渲染.
|
|
|
|
|
- *
|
|
|
|
|
- * @return void
|
|
|
|
|
- */
|
|
|
|
|
- protected function autoRender()
|
|
|
|
|
- {
|
|
|
|
|
- Content::composed(function () {
|
|
|
|
|
- if ($results = Helper::render($this->render())) {
|
|
|
|
|
- Admin::html($results);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 配置选项初始化.
|
|
* 配置选项初始化.
|
|
|
*
|
|
*
|
|
@@ -335,4 +319,11 @@ Dcat.FormConfirm = {$confirm};
|
|
|
JS
|
|
JS
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public function __destruct()
|
|
|
|
|
+ {
|
|
|
|
|
+ if ($results = Helper::render($this->render())) {
|
|
|
|
|
+ Admin::html($results);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|