You've already forked lubo_comment_query
复制常驻时,勾选批量复制
This commit is contained in:
32
app/View/Components/Appends/AppendListItem.php
Normal file
32
app/View/Components/Appends/AppendListItem.php
Normal 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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user