📝 Update gallery document
Fix https://github.com/justice2001/halo-plugin-vditor/issues/15 Fix zhengyi/halo-plugin-vditor#44
This commit is contained in:
parent
6e1e38be52
commit
60915c82bf
|
@ -1,4 +1,6 @@
|
||||||
# 🧩 图集组件(开发中)
|
# 🧩 图集组件
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
该模块提供给用户上传图集的功能,可以让用户在一个模块中上传多张图片,组成一个图集,现在为用户提供两种排列方式:
|
该模块提供给用户上传图集的功能,可以让用户在一个模块中上传多张图片,组成一个图集,现在为用户提供两种排列方式:
|
||||||
|
|
||||||
|
@ -10,9 +12,9 @@
|
||||||
> 规划阶段语法,后续可能会变更
|
> 规划阶段语法,后续可能会变更
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
gallery:<type>
|
gallery:<type>[<title>]
|
||||||
[<image1 alt>](<image1 url>)
|
![<image1 alt>](<image1 url>)
|
||||||
[<image2 alt>](<image2 url>)
|
![<image2 alt>](<image2 url>)
|
||||||
```
|
```
|
||||||
|
|
||||||
### type
|
### type
|
||||||
|
@ -22,6 +24,10 @@ gallery:<type>
|
||||||
- `linear`:线性排列(默认)
|
- `linear`:线性排列(默认)
|
||||||
- `grid`:九宫格排列
|
- `grid`:九宫格排列
|
||||||
|
|
||||||
|
### image title
|
||||||
|
|
||||||
|
图集的介绍,如果没有填写字段则会显示为图集
|
||||||
|
|
||||||
### image alt
|
### image alt
|
||||||
|
|
||||||
图片的介绍,暂时计划放置在图片下方。
|
图片的介绍,暂时计划放置在图片下方。
|
||||||
|
|
Loading…
Reference in New Issue