mirror of
https://gitee.com/layui/layui.git
synced 2025-11-24 08:33:12 +08:00
* feat: 修改ignore的判断逻辑;增加ignore的开发案例; * Update src/modules/form.js Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com> * Update src/modules/form.js Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com> * Update src/modules/form.js Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com> * Update src/modules/form.js Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com> * test(form): 优化 lay-ignore 示例布局 * docs(form): 优化 lay-ignore 文档说明 * fix(form): 修复 tips 提示风格时对 lay-ignore 目标元素的判断问题 --------- Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com> Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com>
Docs
文档预览
目录规范
文档的目录与文件命名,需与组件的命名对应。子目录可自由发挥,但一般可参考以下规则:
index.md组件主文件detail/组件详情文件。一般在主文件内容过大时,可将内容碎片放置在该目录中,主文件只需引用即可。examples/组件示例文件。
当创建新的组件文档时,可复制 .layui/ 目录中放置好的文档模板,并填充对应的内容。
书写规范
文档采用 HTML+Markdown+laytpl 混合编写。 其中:
HTML标签与Markdown混用时,必须换两行隔开laytpl标签语法可直接遵循 Layui 中的 laytpl 组件规则- 若需开启文档的右侧目录,可在对应锚点元素上添加
lay-toc="{}"属性即可,具体可参考其他组件中的内容