瀏覽代碼

食堂菜单界面调整行高

黄梓星 2 年之前
父節點
當前提交
18298fae37
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 4 1
      src/views/canteen/foodScreen.vue
  2. 4 1
      src/views/canteen/menuScreen.vue

+ 4 - 1
src/views/canteen/foodScreen.vue

@@ -10,7 +10,7 @@
     <div class="tables">
       <div class="gun">
         <el-table :cell-style="{ color: '#fff' }" :header-cell-style="{ color: '#fff' }" :data="tableData"
-          style="width: 100%;height:100%;font-size: 2.8vh;">
+          style="width: 100%;height:100%;font-size: 2.4vh;">
           <el-table-column prop="product" align="center" label="">
           </el-table-column>
           <el-table-column prop="address" label="" align="center">
@@ -150,4 +150,7 @@ export default {
 ::v-deep .el-table .el-table__header-wrapper {
   display: none;
 }
+::v-deep .el-table .cell {
+  line-height: normal;
+}
 </style>

+ 4 - 1
src/views/canteen/menuScreen.vue

@@ -11,7 +11,7 @@
       <!--  class="gun" -->
       <div class="gun">
         <el-table :cell-style="{ color: '#fff' }" :header-cell-style="{ color: '#fff' }" :data="tableData"
-          style="width: 100%;height:100%;font-size: 2.8vh;" ref="tableBox">
+          style="width: 100%;height:100%;font-size: 2.4vh;" ref="tableBox">
 
           <el-table-column prop="timeFrame" align="center" label="">
             <template slot-scope="scope">
@@ -170,4 +170,7 @@ export default {
 ::v-deep .el-table .el-table__header-wrapper {
   display: none;
 }
+::v-deep .el-table .cell {
+  line-height: normal;
+}
 </style>