From b7293f5ff7bd617788e1a164729df19af97b95f6 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Wed, 13 Nov 2019 16:41:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=89=E5=8F=96=E5=90=88=E5=B9=B6master?= =?UTF-8?q?=E5=88=86=E6=94=AF=E4=B8=AD=E7=9A=84vendor/blobt=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/blobt/grid/GridView.php | 134 ++++++++++++++++++++++----------- 1 file changed, 92 insertions(+), 42 deletions(-) diff --git a/vendor/blobt/grid/GridView.php b/vendor/blobt/grid/GridView.php index bd3ebc4..b57b575 100644 --- a/vendor/blobt/grid/GridView.php +++ b/vendor/blobt/grid/GridView.php @@ -43,7 +43,8 @@ use blobt\web\GridViewAsset; * @email 380255922@qq.com * @created Aug 13, 2019 */ -class GridView extends BaseListView { +class GridView extends BaseListView +{ /** * @var string 渲染列数据的类,默认是'yii\grid\DataColumn' @@ -66,12 +67,12 @@ class GridView extends BaseListView { public $tableOptions = ['class' => 'table table-bordered table-hover dataTable']; /** - * @var array 表格头部html属性 + * @var array 表格头部html属性 */ public $headerRowOptions = []; /** - * @var array 表格脚部html属性 + * @var array 表格脚部html属性 */ public $footerRowOptions = []; @@ -153,7 +154,7 @@ class GridView extends BaseListView { * ] * ``` * - * 当然,也支持简写成这样:[[DataColumn::attribute|attribute]], [[DataColumn::format|format]], + * 当然,也支持简写成这样:[[DataColumn::attribute|attribute]], [[DataColumn::format|format]], * 或 [[DataColumn::label|label]] options: `"attribute:format:label"`. * 所以上面例子的 "name" 列能简写成这样 : `"name:text:Name"`. * 甚至"format"和"label"都是可以不制定的,因为它们都有默认值。 @@ -194,7 +195,7 @@ class GridView extends BaseListView { public $filterSelector = 'select[name="per-page"]'; /** - * @var type + * @var type */ public $filter; @@ -221,7 +222,15 @@ class GridView extends BaseListView {