mirror of https://github.com/layui/layui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
morning-star
6a23ada7d3
|
4 months ago | |
---|---|---|
.. | ||
.layui | 2 years ago | |
anim | 2 years ago | |
auxiliar | 2 years ago | |
badge | 2 years ago | |
button | 1 year ago | |
carousel | 1 year ago | |
class | 12 months ago | |
code | 1 year ago | |
color | 2 years ago | |
colorpicker | 1 year ago | |
dropdown | 8 months ago | |
fixbar | 12 months ago | |
flow | 6 months ago | |
form | 4 months ago | |
icon | 1 year ago | |
laydate | 5 months ago | |
layer | 5 months ago | |
layout | 6 months ago | |
laypage | 12 months ago | |
laytpl | 1 year ago | |
menu | 12 months ago | |
nav | 12 months ago | |
panel | 2 years ago | |
progress | 2 years ago | |
rate | 2 years ago | |
slider | 11 months ago | |
tab | 4 months ago | |
table | 4 months ago | |
timeline | 2 years ago | |
transfer | 11 months ago | |
tree | 1 year ago | |
treeTable | 6 months ago | |
upload | 5 months ago | |
util | 12 months ago | |
README.md | 1 year ago | |
base.md | 1 year ago | |
favicon.ico | 2 years ago | |
index.md | 12 months ago | |
modules.md | 1 year ago | |
versions.md | 4 months ago |
README.md
Docs
文档预览
目录规范
文档的目录与文件命名,需与组件的命名对应。子目录可自由发挥,但一般可参考以下规则:
index.md
组件主文件detail/
组件详情文件。一般在主文件内容过大时,可将内容碎片放置在该目录中,主文件只需引用即可。examples/
组件示例文件。
当创建新的组件文档时,可复制 .layui/
目录中放置好的文档模板,并填充对应的内容。
书写规范
文档采用 HTML+Markdown+laytpl
混合编写。 其中:
HTML
标签与Markdown
混用时,必须换两行隔开laytpl
标签语法可直接遵循 Layui 中的 laytpl 组件规则- 若需开启文档的右侧目录,可在对应锚点元素上添加
lay-toc="{}"
属性即可,具体可参考其他组件中的内容