| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Module\System\Admin\Actions;
- use App\Module\System\Enums\CONFIG_TYPE;
- /**
- * 字符串 动作
- */
- class ConfigStringEditAction extends \UCore\DcatAdmin\RowAction
- {
- protected $title = '修改数值';
- use ConfigEditAction;
- public function configEditForm(): string
- {
- return ConfigStringEditForm::class;
- }
- public function allowed()
- {
- // dump($this->getRow()->type);
- return $this->getRow()->type == CONFIG_TYPE::TYPE_STRING->value();
- }
- }
|