Browse Source

padding 10px问题

chuwu 5 years ago
parent
commit
0fd619b041
2 changed files with 11 additions and 6 deletions
  1. 5 0
      src/assets/style/style.scss
  2. 6 6
      src/components/config_point/step3_point/3_temps.vue

+ 5 - 0
src/assets/style/style.scss

@@ -58,4 +58,9 @@ iframe {
 
 .el-table__empty-block {
     align-items: initial;
+}
+
+.p10 {
+    padding: 0 10px;
+    box-sizing: border-box;
 }

+ 6 - 6
src/components/config_point/step3_point/3_temps.vue

@@ -14,11 +14,11 @@
             <div class="flex-around">
                 <div class="point-despoint">
                     <p class="center">原始点位说明</p>
-                    <p>{{pointDes}}</p>
+                    <p class="p10">{{pointDes}}</p>
                 </div>
                 <div class="point-despoint">
                     <p class="center">数据字典值说明</p>
-                    <p class="content-view">{{delDataSource(unitObj.dataSource)}}</p>
+                    <p class="content-view p10">{{delDataSource(unitObj.dataSource)}}</p>
                 </div>
             </div>
             <div class="center">
@@ -28,12 +28,12 @@
         <div class="collapse-item" v-if="activeName == 1">
             <div class="flex-around">
                 <div class="point-despoint">
-                    <p>原始点位说明</p>
-                    <p>{{pointDes}}</p>
+                    <p class="center">原始点位说明</p>
+                    <p class="p10">{{pointDes}}</p>
                 </div>
                 <div class="point-despoint">
-                    <p>数据字典值说明</p>
-                    <p class="content-view">{{delDataSource(unitObj.dataSource)}}</p>
+                    <p class="center">数据字典值说明</p>
+                    <p class="content-view p10">{{delDataSource(unitObj.dataSource)}}</p>
                 </div>
             </div>
             <el-form class="form" :rules="rules" ref="form2" :model="form2" label-width="140px">