From f14a00d630101ec9370cb8d316b15493b77c85d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8A=92?= <6475813@qq.com> Date: Thu, 23 Dec 2021 15:05:07 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20action=20=E5=8F=AF?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89icon=20=E6=96=B0=E5=A2=9E=20action?= =?UTF-8?q?=20=E5=8F=AF=E8=87=AA=E5=AE=9A=E4=B9=89icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/library/table/Actions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extend/catcher/library/table/Actions.php b/extend/catcher/library/table/Actions.php index 3d449e0..036586e 100644 --- a/extend/catcher/library/table/Actions.php +++ b/extend/catcher/library/table/Actions.php @@ -70,11 +70,12 @@ class Actions * @param string|null $event * @return Button */ - public static function normal(string $text, $type = '', string $event = null): Button + public static function normal(string $text, $type = '', string $event = null, string $icon = ''): Button { $button = (new Button) ->size('mini') ->type($type) + ->icon($icon) ->text(self::$noText ? '' : $text); if ($event) {