Browse Source

修改页面最小宽度

yuanyiming 2 years ago
parent
commit
52ed27405a
3 changed files with 11 additions and 4 deletions
  1. 4 2
      src/App.vue
  2. 1 0
      src/components/tool/beUpload.vue
  3. 6 2
      src/views/echarts/echarts.vue

+ 4 - 2
src/App.vue

@@ -34,7 +34,8 @@
   }
   html,body{
     height: 100%;
-    width: 100%;
+    max-width: 100%;
+    min-width: 700px;
     overflow:hidden ;
   }
   .textArea{
@@ -59,13 +60,14 @@
           color: #fff;
           display: flex;
           justify-content:flex-end;
-          width: 300px;
+          width: 400px;
           .homeExit{
             background: #ffffff;
             color: #000;
             cursor: pointer;
             margin-left: 15px;
             width: 90px;
+            // height: 30px;
           }
         }
     }

+ 1 - 0
src/components/tool/beUpload.vue

@@ -39,6 +39,7 @@ export default {
       e.target.value = "";
     },
     beforeUpload(event) {
+      console.log(event);
       // const loading = this.openLoading();
       var file = event.target.files[0];
       var credentials = {

+ 6 - 2
src/views/echarts/echarts.vue

@@ -99,7 +99,8 @@
     
 <style lang="less">
   .midBlock{     //中部大饼
-    width: 100%;
+    max-width: 100%;
+    min-width: 90%;
     height: 400px;
     margin-top: 20px;
     // background: #ce7070;
@@ -112,6 +113,7 @@
       padding: 20px;
       box-sizing: border-box;
       background: #f3f6f7;
+      overflow: hidden;
     }
   }
 
@@ -119,8 +121,10 @@
     margin-top: 20px;
     box-sizing: border-box;
     padding: 20px;
-    width: 100%;
+    min-width: 90%;
+    max-width: 100%;
     height: 400px;
     background: #f3f6f7;
+    overflow: hidden;
   }
 </style>