Forráskód Böngészése

refactor(Upload): 替换按钮组件并调整图片容器样式

将 wd-button 替换为原生 button 元素,并调整图片容器的尺寸和边距
feige996 7 hónapja
szülő
commit
d437b484a4
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/pages-sub/about/components/Upload.vue

+ 3 - 3
src/pages-sub/about/components/Upload.vue

@@ -1,8 +1,8 @@
 <template>
   <view class="p-4 text-center">
-    <wd-button @click="run">
+    <button type="primary" size="mini" class="w-160px" @click="run">
       选择图片并上传
-    </wd-button>
+    </button>
     <view v-if="loading" class="h-10 text-blue">
       上传...
     </view>
@@ -13,7 +13,7 @@
       <view class="m-2">
         {{ data }}
       </view>
-      <view class="h-80 w-full">
+      <view class="m-auto h-40 max-w-40">
         <image v-if="data" :src="data.url" mode="scaleToFill" />
       </view>
     </template>