21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
|
|
namespace App\Admin\Actions\Store;
|
|
|
|
use Dcat\Admin\Grid\Tools\AbstractTool;
|
|
use App\Admin\Actions\Form\ProductImportForm;
|
|
use Dcat\Admin\Widgets\Modal;
|
|
|
|
class ImportProduct extends AbstractTool
|
|
{
|
|
protected $title = '导入商品';
|
|
public function render()
|
|
{
|
|
$form = ProductImportForm::make(['is_store' => 1]);
|
|
return Modal::make()
|
|
->lg()
|
|
->title($this->title)
|
|
->body($form)
|
|
->button($this->html());
|
|
}
|
|
} |