Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xaboy committed May 28, 2020
1 parent 71583d0 commit 71e1942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/UI/Elm/Components/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function data(array $data)

protected function getPlaceHolder()
{
return '请上传' . $this->field;
return '请上传' . $this->title;
}

public function createValidate()
Expand Down
5 changes: 2 additions & 3 deletions src/UI/Iview/Components/Switches.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ public function closeStr($close)
*/
public function getRule()
{
$rule = parent::getRule();
if (isset($rule['props']['slot']) && !count($rule['props']['slot'])) unset($rule['props']['slot']);
return $rule;
if (isset($this->props['slot']) && !count($this->props['slot'])) unset($this->props['slot']);
return parent::getRule();
}

public function createValidate()
Expand Down

0 comments on commit 71e1942

Please sign in to comment.