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); + } + }