This commit is contained in:
JaguarJack 2022-01-04 14:46:18 +08:00
commit 6af3fa413c

View File

@ -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) {