weixin_52219567 il y a 1 jour
Parent
commit
ec314cd4ae

+ 2 - 2
src/components/heat-map/index.vue

@@ -24,10 +24,10 @@
             @mousedown="mouseDown($event, index)"
           >
             <span>{{ Number(index) + 1 }}</span>
-            <template v-if="item.link">
+            <!-- <template v-if="item.link">
               <span class="p-[4px]">|</span>
               <span>{{ item.link }}</span>
-            </template>
+            </template> -->
             <span class="box1" @mousedown.stop="resizeMouseDown($event, index)"></span>
             <span class="box2" @mousedown.stop="resizeMouseDown($event, index)"></span>
             <span class="box3" @mousedown.stop="resizeMouseDown($event, index)"></span>

+ 10 - 3
src/views/diy/pcEdit.vue

@@ -17,7 +17,8 @@
       <!-- :loading="loading" -->
     </el-header>
     <div class="full-container flex flex-row flex-1 bg-page">
-      <div class="component-list w-[192px]">
+      <!-- w-[192px] -->
+      <div class="component-list">
         <!-- 组件列表区域 -->
         <el-collapse v-model="activeNames" @change="handleChange">
           <el-collapse-item v-for="(item, key) in collapse" :key="key" :title="item.name" :name="key">
@@ -71,7 +72,8 @@
       </div>
 
       <!-- 编辑组件属性区域 -->
-      <div class="edit-attribute-wrap w-[400px]">
+      <!-- w-[400px] -->
+      <div class="edit-attribute-wrap">
         <!-- 编辑组件属性区域 -->
         <el-scrollbar>
           <el-card class="box-card" shadow="never">
@@ -339,7 +341,7 @@ const save = (type?: number) => {
 <style lang="scss" scoped>
 .pcEdit-pages {
   // min-height: calc(100vh - 84px);
-  // min-width: 1900px;
+  min-width: 2000px;
   height: calc(100vh);
 
   .full-container {
@@ -350,6 +352,8 @@ const save = (type?: number) => {
       height: 100%;
       background-color: #ffffff;
       padding: 0 10px;
+      min-width: 190px;
+      width: 190px;
     }
 
     .component-list ul li {
@@ -378,6 +382,7 @@ const save = (type?: number) => {
         // zoom: 0.7;
         // height: calc(100vh - 194px);
         height: 100%;
+        padding-top: 15px;
 
         /* 为了兼容某些情况,可能还需要配合 display */
         display: inline-block;
@@ -409,6 +414,8 @@ const save = (type?: number) => {
 
     //编辑组件属性区域
     .edit-attribute-wrap {
+      width: 400px;
+      min-width: 400px;
       background: var(--el-bg-color);
     }
 

+ 18 - 18
src/views/diy/pccomponents/index.ts

@@ -93,24 +93,24 @@ const borderEditRef = shallowRef(borderEdit);
 
 // 组件列表配置
 export const componentImportConfigs: any = [
-  {
-    name: '头部组件',
-    icon: 'iconfont iconfuwenbenpc',
-    id: 1,
-    enabled: true,
-    components: markRaw(headRef.value),
-    edit: markRaw(headEditRef.value),
-    fid: 1
-  },
-  {
-    name: '站点头部',
-    icon: 'iconfont iconfuwenbenpc',
-    id: 18,
-    enabled: true,
-    components: markRaw(headDataRef.value),
-    edit: markRaw(headDataEditRef.value),
-    fid: 1
-  },
+  // {
+  //   name: '头部组件',
+  //   icon: 'iconfont iconfuwenbenpc',
+  //   id: 1,
+  //   enabled: true,
+  //   components: markRaw(headRef.value),
+  //   edit: markRaw(headEditRef.value),
+  //   fid: 1
+  // },
+  // {
+  //   name: '站点头部',
+  //   icon: 'iconfont iconfuwenbenpc',
+  //   id: 18,
+  //   enabled: true,
+  //   components: markRaw(headDataRef.value),
+  //   edit: markRaw(headDataEditRef.value),
+  //   fid: 1
+  // },
   {
     name: '文本标题',
     icon: 'iconfont iconbiaotipc',