ConfigStringEditAction.php 523 B

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