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

39 lines
744 B

<?php
namespace App\Admin\Actions\Grid\v3;
use Dcat\Admin\Grid\RowAction;
use Dcat\Admin\Widgets\Modal;
use App\Admin\Forms\v3\ShareCardEditForm;
class ShareCardEdit extends RowAction
{
/**
* @return string
*/
protected $title = ' 编辑 ';
public function render()
{
$modal = Modal::make()
->xl()
->title('编辑')
->body(ShareCardEditForm::make()->payload([
'id'=>$this->row->id,
'title'=>$this->row->title,
'image'=>$this->row->image
]))
->button($this->title);
return $modal;
}
public function parameters()
{
return [
];
}
}