Skip to content

Commit c8c1c6f

Browse files
Merge pull request #12 from osindex/develop
fixComponentsBug
2 parents a4a6e70 + ab684d7 commit c8c1c6f

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

src/Grid/Concerns/HasDialog.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<?php
22

3-
43
namespace SmallRuralDog\Admin\Grid\Concerns;
54

6-
7-
use SmallRuralDog\Admin\Components\Dialog;
5+
use SmallRuralDog\Admin\Components\Widgets\Dialog;
86

97
trait HasDialog
108
{

src/Grid/Filter/AbstractFilter.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
namespace SmallRuralDog\Admin\Grid\Filter;
44

5-
65
use Illuminate\Support\Arr;
76
use SmallRuralDog\Admin\Components\Component;
8-
use SmallRuralDog\Admin\Components\Input;
7+
use SmallRuralDog\Admin\Components\Form\Input;
98
use SmallRuralDog\Admin\Traits\AdminJsonBuilder;
109

1110
abstract class AbstractFilter extends AdminJsonBuilder
@@ -22,7 +21,6 @@ abstract class AbstractFilter extends AdminJsonBuilder
2221

2322
public $hideAttrs = ['value', 'query', 'ignore'];
2423

25-
2624
public function __construct($column, $label = '')
2725
{
2826
$this->column = $column;
@@ -50,7 +48,6 @@ public function defaultValue($defaultValue)
5048
return $this;
5149
}
5250

53-
5451
/**
5552
* @param Component $component
5653
* @return $this
@@ -82,7 +79,6 @@ public function getColumn()
8279
return $this->column;
8380
}
8481

85-
8682
public function condition($inputs)
8783
{
8884
if ($this->ignore) {
@@ -104,7 +100,6 @@ protected function buildCondition()
104100
{
105101
$column = explode('.', $this->column);
106102

107-
108103
if (count($column) == 1) {
109104
return [$this->query => func_get_args()];
110105
}

src/Grid/Filter/Where.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminate\Support\Arr;
66
use ReflectionFunction;
7-
use SmallRuralDog\Admin\Components\Input;
7+
use SmallRuralDog\Admin\Components\Form\Input;
88

99
class Where extends AbstractFilter
1010
{
@@ -22,7 +22,6 @@ class Where extends AbstractFilter
2222
*/
2323
public $input;
2424

25-
2625
public function __construct(\Closure $query, $label, $column = null)
2726
{
2827
$this->where = $query;
@@ -56,10 +55,8 @@ public static function getQueryHash(\Closure $closure, $label = '')
5655
public function condition($inputs)
5756
{
5857

59-
6058
$value = Arr::get($inputs, $this->column ?: static::getQueryHash($this->where, $this->label));
6159

62-
6360
if (is_null($value)) {
6461
return;
6562
}

0 commit comments

Comments
 (0)