Skip to content

Commit

Permalink
添加全局css设置方法
Browse files Browse the repository at this point in the history
添加Grid Action Label 设置方法
  • Loading branch information
SmallRuralDog committed Apr 2, 2020
1 parent a9cb9ab commit 02f0dc5
Show file tree
Hide file tree
Showing 26 changed files with 434 additions and 34 deletions.
1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
- [模型表单](/form)
- [内置组件](/components)
- [自定义组件](/custom)
- [CSS/Javascript](/frontend)
- [第三方扩展](/thirdparty)
16 changes: 16 additions & 0 deletions docs/frontend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# CSS / JavaScript



## 引入CSS文件

如果你需要引入CSS文件,可以在`app/Admin/bootstrap.php`加入下面的代码:

>注意,如果老版本没有`bootstrap.php`,需要手动创建这个文件
```php
Admin::css('/your/css/path/style.css');

Admin::css('https://unpkg.com/element-ui/lib/theme-chalk/index.css');
```

20 changes: 18 additions & 2 deletions docs/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,18 +637,34 @@ $grid->column('permissions.name')->component(Tag::make()->type('info'));
})
```

#### 操作栏宽度
#### 操作栏

##### 最小宽度

```php
$grid->actionWidth(180)
```

#### 操作栏固定
##### 操作栏固定

```php
$grid->actionFixed('right');// left | right
```

##### 操作栏对齐方式

```php
$grid->actionAlign('right');//left right center
```

##### 操作栏名称

> `v0.1.12 `以上版本
```php
$grid->actionLabel('操作');
```

#### 获取当前行的下标

v0.1.5 +
Expand Down
Empty file removed public/admin.css
Empty file.
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions public/images/menu-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions public/images/menu-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions public/images/nav-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions public/images/nav-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/app.js": "/app.js?id=730f2c4eda8b072f7d21",
"/app.js": "/app.js?id=4ed697702cd557bc2437",
"/manifest.js": "/manifest.js?id=8991394a854ee5cdffc3",
"/vendor.js": "/vendor.js?id=159feaa1cb9cfd111212"
}
39 changes: 39 additions & 0 deletions resources/js/assets/menu-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions resources/js/assets/menu-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions resources/js/assets/nav-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 02f0dc5

Please sign in to comment.