update laravel/framework:^12.x
parent
6f33a957d7
commit
d8fbfa5a8e
|
|
@ -44,7 +44,7 @@ public function filteredResults()
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (key_exists($permissionKey, $this->amisSchema)) {
|
if (key_exists($permissionKey, $this->amisSchema) && Admin::config('admin.auth.permission')) {
|
||||||
$this->amisSchema['visible'] = admin_user()->can($this->amisSchema[$permissionKey]);
|
$this->amisSchema['visible'] = admin_user()->can($this->amisSchema[$permissionKey]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -78,4 +78,5 @@ public function update($primaryKey, $data)
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- 表单验证: 服务端返回 `errors` 不生效, 示例文件: `app\Services\UserService.php`, [组件文档](https://aisuda.bce.baidu.com/amis/zh-CN/components/form/formitem#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C)
|
- 表单验证: 服务端返回 `errors` 不生效, 示例文件: `app\Services\UserService.php`, [组件文档](https://aisuda.bce.baidu.com/amis/zh-CN/components/form/formitem#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C)
|
||||||
|
- CURD 组件: 如果存在 `bulkActions` 按钮时, 表格会出现滚动条
|
||||||
|
|
@ -25,7 +25,7 @@ class UserController extends AdminController
|
||||||
$this->exportAction(),
|
$this->exportAction(),
|
||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
$this->bulkDeleteButton()->permission('admin.users.delete')
|
// $this->bulkDeleteButton()->permission('admin.users.delete')
|
||||||
])
|
])
|
||||||
->filter($this->baseFilter()->body([
|
->filter($this->baseFilter()->body([
|
||||||
amis()->GroupControl()->mode('horizontal')->body([
|
amis()->GroupControl()->mode('horizontal')->body([
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2",
|
"php": "^8.2",
|
||||||
"laravel/framework": "^11.9",
|
"laravel/framework": "^12.0",
|
||||||
"laravel/sanctum": "^4.0",
|
"laravel/sanctum": "^4.0",
|
||||||
"laravel/tinker": "^2.9",
|
"laravel/tinker": "^2.9",
|
||||||
"rap2hpoutre/fast-excel": "^5.5",
|
"rap2hpoutre/fast-excel": "^5.5",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue