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

pull/1249/head
贤心 2 years ago
parent 038d395064
commit cb312d5132

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

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

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

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

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

@ -79,4 +79,6 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- import layui -->

@ -91,4 +91,6 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- import layui -->

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

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

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

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

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

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

Loading…
Cancel
Save