flat: 暂存

This commit is contained in:
Apcallover
2024-04-18 14:30:35 +08:00
parent 6eb0768977
commit a044630563
6 changed files with 514 additions and 502 deletions

View File

@@ -1,8 +1,8 @@
<template>
<view class="content">
<u-upload :fileList="ImgUrl" @afterRead="afterRead" :deletable="true" @delete="deletePic" name="6" :maxCount="1"
width="280" height="150">
<image :src="backImg" mode="widthFix" style="width: 280px;height: 150px;"></image>
:width="width" :height="height">
<image :src="backImg" mode="widthFix" :style="`width: ${width}px;height: ${height}px;`"></image>
</u-upload>
</view>
</template>
@@ -21,7 +21,15 @@
value: {
type: String,
default: null
}
},
width: {
type: Number,
default: 250
},
height: {
type: Number,
default: 150
},
},
computed: {
ImgUrl(val) {