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

36 lines
623 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\GoodsCopyForm;
  6. class GoodsCopy extends RowAction
  7. {
  8. /**
  9. * @return string
  10. */
  11. protected $title = '复制';
  12. public function render()
  13. {
  14. $id = $this->getKey();
  15. $modal = Modal::make()
  16. ->xl()
  17. ->title($this->title)
  18. ->body(GoodsCopyForm::make()->setKey($id))
  19. ->button($this->title);
  20. return $modal;
  21. }
  22. public function parameters()
  23. {
  24. return [
  25. ];
  26. }
  27. }