Skip to content

Commit 88cd018

Browse files
committed
更新版本依赖,支持hyperf2.1
1 parent 5f6db10 commit 88cd018

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

composer.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,12 @@
1717
"require": {
1818
"php": ">=7.3",
1919
"ext-swoole": ">=4.5",
20-
"mzh/hyperf-helper": "^0.1.7",
21-
"hyperf-plus/ui": "^1.0.0",
22-
"hyperf-plus/route": "^1.0.0",
2320
"hyperf/model-cache": "^2.0.0",
24-
"96qbhy/hyperf-auth": "^2.2"
25-
},
26-
"require-dev": {
27-
"phpunit/phpunit": "^8.0"
28-
},
29-
"suggest": {
30-
"hyperf-plus/route": "^1.*"
21+
"hyperf/redis": "^2.0.0",
22+
"hyperf-plus/route": "~2.1.0",
23+
"96qbhy/hyperf-auth": "^2.3",
24+
"hyperf-plus/ui": "~1.0.0",
25+
"hyperf/paginator": "~2.1.0"
3126
},
3227
"autoload": {
3328
"psr-4": {

src/Controller/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected function form()
9696
$form->item('icon', '图标')->component(IconChoose::make())->ignoreEmpty();
9797
$form->item('uri', 'URI')->required()
9898
->help('可以输入搜索')
99-
->component(Select::make()->filterable()
99+
->component(Select::make()->filterable()->allowCreate("")
100100
->remote(route('menu/route')))->inputWidth(450);
101101
$form->item('order', '排序')->component(InputNumber::make(1)->min(0));
102102
$form->item('is_menu', '设为菜单')->component(CSwitch::make(0));

0 commit comments

Comments
 (0)