Skip to content

Commit 6107869

Browse files
author
hikki
committed
beta
1 parent 87cd3f6 commit 6107869

File tree

7 files changed

+36
-5
lines changed

7 files changed

+36
-5
lines changed

.idea/.gitignore

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/laravel-admin-component-js.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ComponentViewer.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ class ComponentViewer
1616
{
1717
/**
1818
* 创建弹窗新增表单-按钮
19-
* @param Grid\Tools $tools
19+
* @param Grid $grid
2020
*/
21-
public static function makeAddFormAction(Grid\Tools $tools){
21+
public static function makeAddFormAction(Grid $grid){
2222
$url = Request::capture()->getPathInfo();
2323
Admin::script(<<<EOF
2424
$('.CAForm').click(function(){
2525
componentForm('{$url}/create');
2626
});
2727
EOF
2828
);
29-
$tools->append(new
29+
$grid->disableCreateButton();
30+
$grid->tools->append(new
3031
class extends RowAction
3132
{
3233
public function render()
@@ -46,7 +47,7 @@ public function render()
4647
* 创建弹窗修改表单-按钮
4748
* @param Grid $grid
4849
*/
49-
public static function makeEditFormAction(Grid &$grid)
50+
public static function makeEditFormAction(Grid $grid)
5051
{
5152
$grid->actions(function ($actions) {
5253
$actions->disableEdit();

content.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<style>
22
.modal-body::-webkit-scrollbar { width: 0 !important }
33
</style>
4-
<div id="componentForm">
4+
<div id="component">
55
{!! $_content_ !!}
66
</div>
77
{!! Admin::script() !!}

0 commit comments

Comments
 (0)