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.
34 lines
657 B
34 lines
657 B
<?php
|
|
|
|
namespace App\Admin\Actions\Grid\v3;
|
|
|
|
use Dcat\Admin\Grid\RowAction;
|
|
use Dcat\Admin\Widgets\Modal;
|
|
use App\Admin\Forms\v3\ShareCardCreateForm;
|
|
|
|
class ShareCardCreate extends RowAction
|
|
{
|
|
/**
|
|
* @return string
|
|
*/
|
|
protected $title = '<button class="btn btn-primary btn-outline">添加</button>';
|
|
|
|
public function render()
|
|
{
|
|
$modal = Modal::make()
|
|
->xl()
|
|
->title('分享卡片添加')
|
|
->body(ShareCardCreateForm::make())
|
|
->button($this->title);
|
|
|
|
return $modal;
|
|
}
|
|
|
|
public function parameters()
|
|
{
|
|
|
|
return [
|
|
|
|
];
|
|
}
|
|
}
|