فهرست منبع

feat: 长页H5 调整

zhangyuhan 9 ماه پیش
والد
کامیت
a9fc440de5

+ 3 - 2
client/pages/editor/components/attr-configure/attr-props-components/base-attr.vue

@@ -2,7 +2,7 @@
   <div>
     <p class="page-title fontBold">基础样式</p>
     <el-collapse v-model="activeNames">
-      <el-collapse-item title="尺寸与位置:" name="1">
+      <el-collapse-item title="尺寸与位置:" name="1" v-show="activePageMode === 'h5'">
         <div class="attr-item-edit-wrapper marginB15">
           <p class="attr-item-title">快捷定位:</p>
           <div class="sizeAndPosition-wrapper">
@@ -357,7 +357,8 @@
 				'currentPageIndex',
 				'activeElementIndex',
 				'activeElement',
-				'activePage'
+				'activePage',
+        'activePageMode'
 			])
 		},
 		watch: {

+ 2 - 2
engine-template/engine-h5-long/src/index.vue

@@ -1,10 +1,10 @@
 <template>
-  <div class="engine-template-wrapper">
+  <div class="engine-template-wrapper is-long-page">
     <div class="relative" v-for="(page, i) in pageData.pages" :key="i"
          :style="getCommonStyle(page.commonStyle)">
       <!--页面内容区域-->
       <div class="quark-page-wrapper"
-           :style="getCommonStyle({...page.commonStyle, top: pageTop, height: pageData.height, width: pageData.width, position: 'relative'}, scalingRatio)">
+           :style="getCommonStyle({...page.commonStyle, position: 'relative'}, scalingRatio)">
         <componentsTemplate
                 v-for="(item, index) in page.elements"
                 :key="index"