ConfigImgEditAction.php 453 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Module\System\Admin\Actions;
  3. /**
  4. * 图片 动作
  5. */
  6. class ConfigImgEditAction extends \UCore\DcatAdmin\RowAction
  7. {
  8. protected $title = '修改数值';
  9. use ConfigEditAction;
  10. public function configEditForm(): string
  11. {
  12. return ConfigImgEditForm::class;
  13. }
  14. public function allowed()
  15. {
  16. return $this->getRow()->type == \App\Module\System\Enums\CONFIG_TYPE::TYPE_IMG->value();
  17. }
  18. }