33 lines
684 B
PHP
33 lines
684 B
PHP
<?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');
|
|
}
|
|
}
|