<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{title}}</text>
<uni-easyinput :maxlength="15984" type="textarea" v-model="input" @input="ip" placeholder="请输入内容"></uni-easyinput>
<uni-file-picker @select="select" @fail="fail" file-mediatype="image"
@progress="progress" @success="imageFileSuccess" v-model="fileLists" :image-styles="imageStyle" @delete="deleteImage"
limit="1"><button size="mini">上传</button></uni-file-picker>
</view>
</view>
</template>
<script setup>
import {
onMounted,
getCurrentInstance,
ref,
reactive,
toRefs,
watch,
onBeforeMount
} from 'vue'
let fileLists = ref([])
let imageStyle = ref({
height: 50,
width: 100,
border: {
color: "#eee",
width: "1px",
style: "solid",
radiu: "50%"
}
})
let progress = (e) => {
console.log(e);
}
let select = (e) => {
}
let fail = (e) => {
//console.log(e);
}
let imageFileSuccess = (e) => {
console.log(e);
}
let deleteImage=(e)=>{
imageBase64.value=null;
}
let input=ref("")
let ip=(e)=>{
console.log(e,input.value);
}
</script>
- 发布:2024-05-14 14:01
- 更新:2024-06-28 16:07
- 阅读:198
产品分类: uniapp/小程序/字节跳动
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 专业版 22H2
HBuilderX类型: 正式
HBuilderX版本号: 4.17
第三方开发者工具版本号: 4.2.4
基础库版本号: 3.23.0.5
项目创建方式: HBuilderX
示例代码:
操作步骤:
uni-file-picker组件上次图片按钮报错
uni-file-picker组件上次图片按钮报错
预期结果:
微信端正常
微信端正常
实际结果:
抖音端报错
抖音端报错
bug描述:
微信端正常,抖音端点击上传图片按钮直接报错
不要bug了啊 (作者)
bug,uniapp一直没解决
2024-10-21 17:34