新增ul文件预览样式;

This commit is contained in:
2022-06-24 14:11:43 +08:00
parent d22a97151e
commit c89c269903
7 changed files with 194 additions and 8 deletions

View File

@@ -124,9 +124,6 @@
</div>
<script>
$('.main-content h2,.main-content>.demo-page>fieldset').each(function (index, elem) {
if ($(elem).find('.demo-js-src').length == 0) {
$(elem).children('.layui-field-box')
@@ -195,6 +192,10 @@
var contentCode = htmlListNew.join("\n");
if ($(this).siblings('pre.demo-js').length == 0) {
var title = $(this).data('title');
if (!title) {
title = $(this).closest('fieldset').find('legend').text();
}
$('<pre class="layui-code demo-js" lay-title="' + title + '"></pre>').insertAfter(this);
}
$(this).siblings('pre.demo-js').text(contentCode)