早上好,我正在尝试使用 powergrid 中的响应类,但出现错误:
未找到“PowerComponents\LivewirePowerGrid\Responsive”类。
我已经为 laravel 安装了最新版本的 PowerGrid 并配置了所有内容,但出现此错误,我正在函数 setUp() 中调用响应类
public function setUp(): array
{
$this->showCheckBox();
return [
Exportable::make('export'))
->striped()
->type(Exportable::TYPE_XLS, Exportable::TYPE_CSV),
Header::make()->showSearchInput(),
Footer::make()
->showPerPage()
->showRecordCount(),
Responsive::make()
];
}
如文档中所示
Class "PowerComponents\LivewirePowerGrid\Responsive"
仅在您使用Powergrid的顺风主题时才可用。这些类不适用于引导主题。
希望这对你有帮助!