Skip to content

Commit 02f0dc5

Browse files
committed
添加全局css设置方法
添加Grid Action Label 设置方法
1 parent a9cb9ab commit 02f0dc5

26 files changed

+434
-34
lines changed

docs/_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
- [模型表单](/form)
44
- [内置组件](/components)
55
- [自定义组件](/custom)
6+
- [CSS/Javascript](/frontend)
67
- [第三方扩展](/thirdparty)

docs/frontend.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CSS / JavaScript
2+
3+
4+
5+
## 引入CSS文件
6+
7+
如果你需要引入CSS文件,可以在`app/Admin/bootstrap.php`加入下面的代码:
8+
9+
>注意,如果老版本没有`bootstrap.php`,需要手动创建这个文件
10+
11+
```php
12+
Admin::css('/your/css/path/style.css');
13+
14+
Admin::css('https://unpkg.com/element-ui/lib/theme-chalk/index.css');
15+
```
16+

docs/grid.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,18 +637,34 @@ $grid->column('permissions.name')->component(Tag::make()->type('info'));
637637
})
638638
```
639639

640-
#### 操作栏宽度
640+
#### 操作栏
641+
642+
##### 最小宽度
641643

642644
```php
643645
$grid->actionWidth(180)
644646
```
645647

646-
#### 操作栏固定
648+
##### 操作栏固定
647649

648650
```php
649651
$grid->actionFixed('right');// left | right
650652
```
651653

654+
##### 操作栏对齐方式
655+
656+
```php
657+
$grid->actionAlign('right');//left right center
658+
```
659+
660+
##### 操作栏名称
661+
662+
> `v0.1.12 `以上版本
663+
664+
```php
665+
$grid->actionLabel('操作');
666+
```
667+
652668
#### 获取当前行的下标
653669

654670
v0.1.5 +

public/admin.css

Whitespace-only changes.

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/images/menu-dark.svg

Lines changed: 39 additions & 0 deletions
Loading

public/images/menu-light.svg

Lines changed: 39 additions & 0 deletions
Loading

public/images/nav-dark.svg

Lines changed: 40 additions & 0 deletions
Loading

public/images/nav-light.svg

Lines changed: 40 additions & 0 deletions
Loading

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/app.js": "/app.js?id=730f2c4eda8b072f7d21",
2+
"/app.js": "/app.js?id=4ed697702cd557bc2437",
33
"/manifest.js": "/manifest.js?id=8991394a854ee5cdffc3",
44
"/vendor.js": "/vendor.js?id=159feaa1cb9cfd111212"
55
}

resources/js/assets/menu-dark.svg

Lines changed: 39 additions & 0 deletions
Loading

resources/js/assets/menu-light.svg

Lines changed: 39 additions & 0 deletions
Loading

resources/js/assets/nav-dark.svg

Lines changed: 40 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)