diff --git a/extend/catcher/library/table/Actions.php b/extend/catcher/library/table/Actions.php index 3d449e083998f4005bcc9e1c00a7d7c3c986ca9b..036586e792ebf40382de96e640b505ea451d75d3 100644 --- a/extend/catcher/library/table/Actions.php +++ b/extend/catcher/library/table/Actions.php @@ -70,11 +70,12 @@ public static function view(string $text = '查看', $type = 'success', string $ * @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) {