update:更新搜索组件

This commit is contained in:
JaguarJack
2021-04-05 12:26:31 +08:00
parent 5b6e34f3fe
commit f7c8d65ea9
2 changed files with 34 additions and 16 deletions

View File

@@ -6,6 +6,8 @@ use catcher\library\table\components\Button;
class Actions
{
protected static $noText = false;
/**
* 创建按钮
*
@@ -73,7 +75,7 @@ class Actions
$button = (new Button)
->size('mini')
->type($type)
->text($text);
->text(self::$noText ? '' : $text);
if ($event) {
return $button->click($event);