链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
657 B

  1. <?php
  2. namespace App\Admin\Actions\Grid\v3;
  3. use Dcat\Admin\Grid\RowAction;
  4. use Dcat\Admin\Widgets\Modal;
  5. use App\Admin\Forms\v3\ShareCardCreateForm;
  6. class ShareCardCreate extends RowAction
  7. {
  8. /**
  9. * @return string
  10. */
  11. protected $title = '<button class="btn btn-primary btn-outline">添加</button>';
  12. public function render()
  13. {
  14. $modal = Modal::make()
  15. ->xl()
  16. ->title('分享卡片添加')
  17. ->body(ShareCardCreateForm::make())
  18. ->button($this->title);
  19. return $modal;
  20. }
  21. public function parameters()
  22. {
  23. return [
  24. ];
  25. }
  26. }