From 0b14c1335d5565270c71efd85f23d8e1df71f078 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Wed, 18 Dec 2019 13:51:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E9=87=8D=E6=9E=84gridview=E7=9A=84fil?= =?UTF-8?q?ter=E6=A8=A1=E5=9D=97=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/iron/grid/GridView.php | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/vendor/iron/grid/GridView.php b/vendor/iron/grid/GridView.php index e1812fa..c5e1fe2 100644 --- a/vendor/iron/grid/GridView.php +++ b/vendor/iron/grid/GridView.php @@ -216,6 +216,9 @@ class GridView extends BaseListView public $layout = <<< HTML
+
+ {filter} +
{batch} @@ -226,9 +229,9 @@ class GridView extends BaseListView {content}
-
- {filter} -
+ + +
@@ -316,6 +319,7 @@ HTML; $this->registerIcheckJs(); $this->registerConfirmJs(); $this->registerExportJs(); + $this->registerCss(); parent::run(); } @@ -745,4 +749,17 @@ SCRIPT; return Html::tag('div', $this->content, ['class' => 'btn-group']); } + /** + * 注册css + */ + protected function registerCss() + { + $css =<<getView()->registerCss($css); + } + }