Skip to content

Commit e184ace

Browse files
committed
修复组件默认值
1 parent 8828667 commit e184ace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Components/CSwitch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CSwitch extends Component
2121
protected $name = "#C0CCDA";
2222
protected $validateEvent = true;
2323

24-
static public function make($value = null)
24+
static public function make($value = false)
2525
{
2626
return new CSwitch($value);
2727
}

src/Components/Input.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Input extends Component
3939

4040

4141

42-
static public function make($value = null)
42+
static public function make($value = "")
4343
{
4444
return new Input($value);
4545
}

0 commit comments

Comments
 (0)