链街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.

39 lines
744 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\ShareCardEditForm;
  6. class ShareCardEdit extends RowAction
  7. {
  8. /**
  9. * @return string
  10. */
  11. protected $title = ' 编辑 ';
  12. public function render()
  13. {
  14. $modal = Modal::make()
  15. ->xl()
  16. ->title('编辑')
  17. ->body(ShareCardEditForm::make()->payload([
  18. 'id'=>$this->row->id,
  19. 'title'=>$this->row->title,
  20. 'image'=>$this->row->image
  21. ]))
  22. ->button($this->title);
  23. return $modal;
  24. }
  25. public function parameters()
  26. {
  27. return [
  28. ];
  29. }
  30. }