Skip to content

Commit

Permalink
移除Form@switch对象defaultChecked方法
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Jan 8, 2019
1 parent 7ab9e52 commit d80bc7f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Form/Field/SwitchField.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,6 @@ class SwitchField extends Field
'@admin/switchery/switchery.min.js'
];

/**
* 默认选择
*
* @var bool
*/
protected $defaultChecked = false;

/**
* 设置默认选中
*
* @return $this
*/
public function defaultChecked()
{
$this->defaultChecked = true;

return $this;
}

public function primary()
{
return $this->attribute('data-color', '#0072C6');
Expand Down

0 comments on commit d80bc7f

Please sign in to comment.