警告框

Alert

基本用法

  1. <?php
  2. use Dcat\Admin\Widgets\Alert;
  3. $alert = Alert::make('内容', '标题');
  4. // 类型
  5. $alert->success();
  6. $alert->danger();
  7. $alert->info();
  8. $alert->warning();
  9. // 图标
  10. $alert->icon('feather icon-x');
  11. // 可移除按钮
  12. $alert->removable();

效果
警告框 - 图1

Callout

<?php

use Dcat\Admin\Widgets\Callout;

$callout = Callout::make('内容', '标题');

// 颜色
$callout->light();
$callout->primary();

// 可移除按钮
$callout->removable();

效果
警告框 - 图2