|
@@ -1,3 +1,5 @@
|
|
|
|
+
|
|
|
|
+<link rel="stylesheet" href="/static/plugs/layui/css/layui.css" media="all">
|
|
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
|
|
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
|
|
<legend>面板嵌套</legend>
|
|
<legend>面板嵌套</legend>
|
|
</fieldset>
|
|
</fieldset>
|
|
@@ -61,4 +63,15 @@
|
|
<p>浑身散发着艺术细胞</p>
|
|
<p>浑身散发着艺术细胞</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-</div>
|
|
|
|
|
|
+</div>
|
|
|
|
+<script src="/static/plugs/layui/layui.js" charset="utf-8"></script>
|
|
|
|
+<script>
|
|
|
|
+ layui.use(['dropdown', 'util', 'layer'], function(){
|
|
|
|
+ var element = layui.element;
|
|
|
|
+ var layer = layui.layer;
|
|
|
|
+ //监听折叠
|
|
|
|
+ element.on('collapse(test)', function(data){
|
|
|
|
+ layer.msg('展开状态:'+ data.show);
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+</script>
|