update table 组件
This commit is contained in:
parent
2955e17a6a
commit
08a835ccb9
@ -168,7 +168,7 @@ class CatchQuery extends Query
|
||||
}
|
||||
$endPos = strpos($field, 'end_');
|
||||
if ($endPos === 0) {
|
||||
$this->where(str_replace('end_', '', $field), '>=', strtotime($value));
|
||||
$this->where(str_replace('end_', '', $field), '<=', strtotime($value));
|
||||
}
|
||||
// 模糊搜索
|
||||
if (Str::contains($field, 'like')) {
|
||||
|
@ -52,7 +52,7 @@ class Table
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $hiddenPaginate = false;
|
||||
protected $hidePagination = false;
|
||||
|
||||
/**
|
||||
* tree table
|
||||
@ -113,6 +113,20 @@ class Table
|
||||
protected $usedModel;
|
||||
|
||||
|
||||
/**
|
||||
* 树状展开
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $defaultExpandAll;
|
||||
|
||||
/**
|
||||
* 默认
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $border = true;
|
||||
|
||||
/**
|
||||
* Table constructor.
|
||||
* @param string $ref
|
||||
@ -237,7 +251,21 @@ class Table
|
||||
*/
|
||||
public function withHiddenPaginate(): Table
|
||||
{
|
||||
$this->hiddenPaginate = true;
|
||||
$this->hidePagination = true;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 展开
|
||||
*
|
||||
* @time 2021年04月26日
|
||||
* @param bool $expand
|
||||
* @return $this
|
||||
*/
|
||||
public function expandAll($expand = true): Table
|
||||
{
|
||||
$this->defaultExpandAll = $expand;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user