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