RowAction2.php 575 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace UCore\DcatAdmin;
  3. use UCore\DcatAdmin\Traits\ReturnRes;
  4. use Illuminate\Http\Request;
  5. use Illuminate\Database\Eloquent\Model;
  6. use Dcat\Admin\Grid\RowAction as BaseRowAction;
  7. /**
  8. * 动作 , 详情页面
  9. *
  10. */
  11. class RowAction2 extends BaseRowAction
  12. {
  13. use ReturnRes;
  14. protected $model;
  15. public function __construct(string $model = null)
  16. {
  17. $this->model = $model;
  18. }
  19. /**
  20. * @return string
  21. */
  22. public function title(): string
  23. {
  24. return __($this->title);
  25. }
  26. public function confirm()
  27. {
  28. }
  29. }