添加 Docs 参考模板

pull/1249/head
贤心 2 years ago
parent 727fb8305e
commit 9268ad980f

@ -0,0 +1,32 @@
<table class="layui-table">
<colgroup>
<col width="150">
<col>
<col width="100">
<col width="100">
</colgroup>
<thead>
<tr>
<th>属性名</th>
<th>描述</th>
<th>类型</th>
<th>默认值</th>
</tr>
</thead>
<tbody>
<tr>
<td>AAA</td>
<td>
</td>
<td>CCC</td>
<td>
</td>
</tr>
</tbody>
</table>

@ -0,0 +1,31 @@
<pre class="layui-code" lay-options="{preview: true, text: {preview: '综合用法'}, layout: ['preview', 'code'], tools: ['full']}">
<textarea>
AAA
<!-- @import layui -->
<script>
layui.use(function(){
var MOD_NAME = layui.MOD_NAME;
});
</script>
</textarea>
</pre>
<h3 id="demo-NAME" class="ws-anchor ws-bold">示例标题</h3>
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], tools: ['full']}">
<textarea>
AAA
<!-- @import layui -->
<script>
layui.use(function(){
var MOD_NAME = layui.MOD_NAME;
});
</script>
</textarea>
</pre>

@ -0,0 +1,34 @@
---
title: 某某组件 MOD_NAME
toc: true
---
# 某某组件
> 某某组件 `MOD_NAME`
<h2 id="examples" lay-toc="{hot: true}" style="margin-bottom: 0;">示例</h2>
<div>
{{- d.include("docs/MOD_NAME/detail/demo.md") }}
</div>
<h2 id="api" lay-toc="{}">API</h2>
| API | 描述 |
| --- | --- |
| var MOD_NAME = layui.MOD_NAME | 获得 `MOD_NAME` 模块。 |
| [MOD_NAME.render(options)](#render) | MOD_NAME 组件渲染,核心方法。 |
| …… | …… |
<h3 id="render" lay-toc="{level: 2}">渲染</h3>
`MOD_NAME.render(options);`
- 参数 `options` : 基础属性配置项。[#详见属性](#options)
<h2 id="options" lay-toc="{level: 2, hot: true}">属性</h2>
<div>
{{- d.include("docs/MOD_NAME/detail/options.md") }}
</div>
Loading…
Cancel
Save