4
0
Fork 0

update template composer.json

master
panliang 2022-07-27 10:28:32 +08:00
parent c5f44ef92d
commit 21afc49a78
3 changed files with 39 additions and 40 deletions

View File

@ -15,6 +15,6 @@
{!! $settingAction !!} {!! $settingAction !!}
@endif @endif
@endif @endif
&nbsp;|&nbsp; <!-- &nbsp;|&nbsp; -->
<a href="javascript:void(0)">{{ trans('admin.view') }}</a> <!-- <a href="javascript:void(0)">{{ trans('admin.view') }}</a> -->

View File

@ -13,8 +13,7 @@
} }
], ],
"require": { "require": {
"php": ">=7.1.0", "php": ">=7.1.0"
"dcat/laravel-admin": "~2.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

View File

@ -62,25 +62,25 @@ class ExtensionController extends Controller
$grid->disableViewButton(); $grid->disableViewButton();
$grid->disableActions(); $grid->disableActions();
$grid->tools([ // $grid->tools([
new Marketplace(), // new Marketplace(),
new InstallFromLocal(), // new InstallFromLocal(),
]); // ]);
$grid->quickCreate(function (Grid\Tools\QuickCreate $create) { // $grid->quickCreate(function (Grid\Tools\QuickCreate $create) {
$create->text('name') // $create->text('name')
->attribute('style', 'width:240px') // ->attribute('style', 'width:240px')
->placeholder('Input Name. Eg: dcat-admin/demo') // ->placeholder('Input Name. Eg: dcat-admin/demo')
->required(); // ->required();
$create->text('namespace') // $create->text('namespace')
->attribute('style', 'width:240px') // ->attribute('style', 'width:240px')
->placeholder('Input Namespace. Eg: DcatAdmin\\Demo'); // ->placeholder('Input Namespace. Eg: DcatAdmin\\Demo');
$create->select('type') // $create->select('type')
->options([1 => trans('admin.application'), 2 => trans('admin.theme')]) // ->options([1 => trans('admin.application'), 2 => trans('admin.theme')])
->attribute('style', 'width:140px!important') // ->attribute('style', 'width:140px!important')
->default(1) // ->default(1)
->required(); // ->required();
}); // });
}); });
} }