初始化仓库
This commit is contained in:
32
admin/components/UI/Components/NoData.php
Normal file
32
admin/components/UI/Components/NoData.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace admin\components\UI\Components;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
/**
|
||||
* 数据不存在
|
||||
* Class NoData
|
||||
* @package backend\components\UI\Components
|
||||
*/
|
||||
class NoData extends Component
|
||||
{
|
||||
public $title;
|
||||
public $content;
|
||||
public $reload;
|
||||
|
||||
public function __construct($title = '未找到数据', $content = '暂时未找到数据,您可以尝试刷新页面', $reload = true)
|
||||
{
|
||||
$this->title = $title;
|
||||
$this->content = $content;
|
||||
$this->reload = $reload;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('vendor.duxphp.duxravel-app.src.core.UI.View.Components.nodata');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user