Skip to content

Commit

Permalink
修复Filter ignore无效问题;增加暗黑模式颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Oct 21, 2020
1 parent 4953682 commit f29205f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Admin
use HasAssets;
use HasHtml;

const VERSION = '2.0.0-beta';
const VERSION = '2.0.2-beta';

const SECTION = [
// 往 <head> 标签内输入内容
Expand Down
12 changes: 12 additions & 0 deletions src/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
* @method string border(int $amt = 0)
* @method string inputBorder(int $amt = 0)
* @method string background(int $amt = 0)
* @method string darkModeBg(int $amt = 0)
* @method string darkModeFont(int $amt = 0)
* @method string darkModeColor(int $amt = 0)
* @method string darkModeColor2(int $amt = 0)
*/
class Color
{
Expand Down Expand Up @@ -173,6 +177,14 @@ class Color

// 背景色
'background' => '#eff3f8',

// 深色模式
// 背景色
'dark-mode-bg' => '#2c2c43',
// 深色
'dark-mode-color' => '#222233',
'dark-mode-color2' => '#1e1e2d',
'dark-mode-font' => '##a8a9bb',
];

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Grid/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,6 @@ public function next($step = 1)
*/
public function condition($inputs)
{
if ($this->ignore) {
return;
}

$value = Arr::get($inputs, $this->column);

if ($value === null) {
Expand Down Expand Up @@ -554,6 +550,10 @@ public function setValue($value)
*/
protected function buildCondition(...$params)
{
if ($this->ignore) {
return;
}

$column = explode('.', $this->column);

if (count($column) == 1) {
Expand Down

0 comments on commit f29205f

Please sign in to comment.