chore: 代码格式化

This commit is contained in:
2026-01-15 15:49:24 +08:00
parent b1bccafeb6
commit 91f427b030
46 changed files with 45 additions and 55 deletions

View File

@@ -149,7 +149,7 @@
/* 选中弹窗广告组件 */
.pop-window-wrap.selected .edit-attribute{display: block;}
.edit-attribute .attr-wrap {width: 392px;overflow-x: hidden;overflow-y: auto;height: 600px;}
.edit-attribute .attr-wrap {width: 392px;overflow-x: hidden;overflow-y: auto;min-height: 200px;max-height: calc(100vh - 150px);}
.edit-attribute .attr-wrap .restore-wrap {width: 360px;}
.edit-attribute .attr-wrap .restore-wrap .layui-form-label {color: #666 !important;}
.edit-attribute .attr-wrap .restore-wrap .attr-title {padding: 10px 0 15px 10px;border-bottom: 2px solid #f2f4f6;margin-bottom: 10px;color: #303133;display: flex;justify-content: space-between;align-items: center;}

View File

@@ -476,8 +476,6 @@ var vue = new Vue({
// 如果当前编辑的组件不存在了,则选中最后一个
if (parseInt(self.currentIndex) >= self.data.length) self.currentIndex--;
$(".draggable-element[data-index=" + self.currentIndex + "] .edit-attribute .attr-wrap").css("height", ($(window).height() - 135) + "px");
}, 50);
},
@@ -630,6 +628,7 @@ function fullScreenSize(isFull) {
});
$('.loading-layer').css('height', (commonHeight - 70) + "px"); // 70px是头部高度
$(".component-list nav").css("height", (commonHeight + 20 - 55) + "px");// 20px是自定义模板区域上内边距55px是标准/第三方组件tab切换高度
// 设置属性编辑器的最大高度,与预览容器保持一致
$(".edit-attribute .attr-wrap").css("height", (commonHeight - 1) + "px");// 1px是上边框
$(".preview-block").css("min-height", (commonHeight - 104) + "px"); // 公式:高度 - 自定义模板区域上内边距20px - 自定义模板区域下外编辑20px- 自定义模板头部64px
}