复制常驻时,勾选批量复制

This commit is contained in:
2023-01-27 15:35:27 +08:00
parent 074e5e48e7
commit 275eeebd1d
9 changed files with 142 additions and 84 deletions

View File

@ -0,0 +1,34 @@
<?php
namespace App\View\Components\Appends;
use App\Models\ProgramAppends;
use Illuminate\Support\Collection;
use Illuminate\View\Component;
class AppendList extends Component
{
/**
* @var ProgramAppends[]|Collection
*/
public $appends;
/**
* @var bool
*/
public $enableEdit;
/**
* @param $appends ProgramAppends|Collection
* @param bool $enableEdit
*/
public function __construct($appends, bool $enableEdit=true)
{
$this->appends = $appends;
$this->enableEdit = $enableEdit;
}
public function render()
{
return view('components.appends.list');
}
}

View File

@ -0,0 +1,32 @@
<?php
namespace App\View\Components\Appends;
use App\Models\ProgramAppends;
use Illuminate\View\Component;
class AppendListItem extends Component
{
/**
* @var ProgramAppends
*/
public $append;
/**
* @var bool
*/
public $enableEdit;
/**
* @param $append ProgramAppends
*/
public function __construct(ProgramAppends $append, bool $enableEdit=true)
{
$this->append = $append;
$this->enableEdit = $enableEdit;
}
public function render()
{
return view('components.appends.item');
}
}