警告框

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

  1. <?php
  2. use Dcat\Admin\Widgets\Callout;
  3. $callout = Callout::make('内容', '标题');
  4. // 颜色
  5. $callout->light();
  6. $callout->primary();
  7. // 可移除按钮
  8. $callout->removable();

效果 警告框 - 图2