Browse Source

优化 Docs 内容,添加引入 `layui.js` 的位置注释

pull/1249/head
贤心 2 years ago
parent
commit
cb312d5132
  1. 4
      docs/.layui/examples/demo.md
  2. 2
      docs/anim/index.md
  3. 4
      docs/carousel/detail/demo.md
  4. 4
      docs/form/checkbox.md
  5. 2
      docs/form/examples/form.demo.md
  6. 2
      docs/form/examples/input.group.md
  7. 2
      docs/form/examples/input.pre.suf.md
  8. 4
      docs/form/input.md
  9. 4
      docs/form/radio.md
  10. 6
      docs/form/select.md
  11. 10
      docs/nav/index.md
  12. 6
      docs/panel/index.md
  13. 8
      docs/progress/index.md

4
docs/.layui/examples/demo.md

@ -2,7 +2,7 @@
<textarea>
AAA
<!-- @import layui -->
<!-- import layui -->
<script>
layui.use(function(){
var MOD_NAME = layui.MOD_NAME;
@ -19,7 +19,7 @@ layui.use(function(){
<textarea>
AAA
<!-- @import layui -->
<!-- import layui -->
<script>
layui.use(function(){
var MOD_NAME = layui.MOD_NAME;

2
docs/anim/index.md

@ -27,7 +27,7 @@ toc: true
<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>
</button>
<!-- @import layui -->
<!-- import layui -->
<script>
layui.use(function(){
var $ = layui.$;

4
docs/carousel/detail/demo.md

@ -127,7 +127,7 @@ layui.use(function(){
</div>
</div>
<!-- @import layui -->
<!-- import layui -->
<script>
layui.use(function(){
var carousel = layui.carousel;
@ -200,7 +200,7 @@ layui.use(function(){
</div>
</div>
<!-- @import layui -->
<!-- import layui -->
<script>
layui.use(function(){
var carousel = layui.carousel;

4
docs/form/checkbox.md

@ -43,6 +43,8 @@ toc: true
<input type="checkbox" name="BBB" title="选中" lay-skin="tag" checked>
<input type="checkbox" name="CCC" title="禁用" lay-skin="tag" disabled>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -59,6 +61,8 @@ toc: true
<input type="checkbox" name="CCC" title="开启|关闭" lay-skin="switch">
<input type="checkbox" name="DDD" lay-skin="switch" disabled>
</div>
<!-- import layui -->
</textarea>
</pre>

2
docs/form/examples/form.demo.md

@ -195,7 +195,7 @@
</div>
</form>
<!-- @import layui -->
<!-- import layui -->
<script>
layui.use(['form', 'laydate', 'util'], function(){
var form = layui.form;

2
docs/form/examples/input.group.md

@ -80,3 +80,5 @@
</div>
</div>
</div>
<!-- import layui -->

2
docs/form/examples/input.pre.suf.md

@ -92,3 +92,5 @@
</div>
</div>
</div>
<!-- import layui -->

4
docs/form/input.md

@ -134,6 +134,8 @@ input 放在前后缀容器中:
<input type="password" lay-affix="eye" placeholder="请输入" class="layui-input">
</div>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -160,6 +162,8 @@ input 放在前后缀容器中:
<input type="text" value="只读状态时" lay-affix="clear" readonly class="layui-input">
</div>
</div>
<!-- import layui -->
</textarea>
</pre>

4
docs/form/radio.md

@ -18,6 +18,8 @@ toc: true
<input type="radio" name="AAA" value="2" title="选中" checked>
<input type="radio" name="AAA" value="3" title="禁用" disabled>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -44,6 +46,8 @@ toc: true
<span style="color: pink;">自定义模板 ♀</span>
</div>
</div>
<!-- import layui -->
</textarea>
</pre>

6
docs/form/select.md

@ -48,6 +48,8 @@ toc: true
</select>
</div>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -79,6 +81,8 @@ toc: true
</optgroup>
</select>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -158,6 +162,8 @@ toc: true
</select>
</div>
</div>
<!-- import layui -->
</textarea>
</pre>

10
docs/nav/index.md

@ -48,6 +48,8 @@ toc: true
</li>
<li class="layui-nav-item"><a href="">演示</a></li>
</ul>
<!-- import layui -->
</textarea>
</pre>
@ -78,6 +80,8 @@ toc: true
</dl>
</li>
</ul>
<!-- import layui -->
</textarea>
</pre>
@ -154,6 +158,8 @@ toc: true
</li>
<li class="layui-nav-item"><a href="">菜单3</a></li>
</ul>
<!-- import layui -->
</textarea>
</pre>
@ -192,6 +198,8 @@ toc: true
<li class="layui-nav-item"><a href="javascript:;">菜单2</a></li>
<li class="layui-nav-item"><a href="javascript:;">菜单3</a></li>
</ul>
<!-- import layui -->
</textarea>
</pre>
@ -324,6 +332,8 @@ layui.use(function(){
<a href="">游戏</a>
<a href="">综艺</a>
</span>
<!-- import layui -->
</textarea>
</pre>

6
docs/panel/index.md

@ -83,6 +83,8 @@ toc: true
</div>
</div>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -122,6 +124,8 @@ toc: true
</div>
</div>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -201,6 +205,8 @@ toc: true
</div>
</div>
</div>
<!-- import layui -->
</textarea>
</pre>

8
docs/progress/index.md

@ -24,6 +24,8 @@ toc: true
<div class="layui-progress-bar" lay-percent="50%"></div>
</div>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -63,6 +65,8 @@ toc: true
<div class="layui-progress">
<div class="layui-progress-bar" lay-percent="70%"></div>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -90,6 +94,8 @@ toc: true
<div class="layui-progress layui-progress-big">
<div class="layui-progress-bar layui-bg-blue" lay-percent="75%"></div>
</div>
<!-- import layui -->
</textarea>
</pre>
@ -115,6 +121,8 @@ toc: true
<div class="layui-progress layui-progress-big" lay-showpercent="true">
<div class="layui-progress-bar" lay-percent="70%"></div>
</div>
<!-- import layui -->
</textarea>
</pre>

Loading…
Cancel
Save