From 6ba18dfad28cc2b011a6719eb337a69e3bfc7a2a Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Sat, 3 Apr 2021 12:49:55 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0action=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/library/table/Actions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extend/catcher/library/table/Actions.php b/extend/catcher/library/table/Actions.php index fb207df..7bda556 100644 --- a/extend/catcher/library/table/Actions.php +++ b/extend/catcher/library/table/Actions.php @@ -50,12 +50,13 @@ class Actions * * @time 2021年03月23日 * @param string $text + * @param string $type * @param string|null $event * @return mixed */ - public static function view(string $text = '查看', string $event = null) + public static function view(string $text = '查看', $type = 'success', string $event = 'handleView') { - return self::normal($text, '', $event)->icon('el-icon-eye'); + return self::normal($text, $type, $event)->icon('el-icon-view'); } /**