Browse Source

测试图标

zengyicheng 2 years ago
parent
commit
66da16481c
1 changed files with 19 additions and 11 deletions
  1. 19 11
      src/views/test.vue

+ 19 - 11
src/views/test.vue

@@ -1,11 +1,19 @@
 <template>
-<!-- 测试上传组件 -->
+  <!-- 测试上传组件 -->
+  <div>
     <div>
-        <div>
-            <BeUpload @getFile="getFile" :navName="'测试按钮'" :accept="accept"></BeUpload>
-        </div>
+      <BeUpload
+        @getFile="getFile"
+        :navName="'测试按钮'"
+        :accept="accept"
+      ></BeUpload>
     </div>
-
+    <div style="background: blue">
+      <div style="width:300px;height:100%">
+        <img src="../assets/img/sclogo3.png" alt="" style="width:300px;height:100%"/>
+      </div>
+    </div>
+  </div>
 </template>
 
 <script>
@@ -14,15 +22,15 @@ export default {
   components: {
     BeUpload,
   },
-  data(){
-    return{
-        accept:"*",
-    }
+  data() {
+    return {
+      accept: "*",
+    };
   },
   methods: {
     getFile(val) {
-        console.log( val);
-    }
+      console.log(val);
+    },
   },
 };
 </script>