<uni-forms-item name="bannerfile" label="图片文件" required>
<uni-file-picker file-mediatype="image" return-type="object" v-model="formData.bannerfile"></uni-file-picker>
</uni-forms-item>
- 发布:2022-07-03 10:28
- 更新:2022-07-05 19:32
- 阅读:862
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 19043.1586
HBuilderX类型: 正式
HBuilderX版本号: 3.4.15
浏览器平台: 微信内置浏览器
浏览器版本: 97.0.4692.71
项目创建方式: HBuilderX
操作步骤:
预期结果:
<uni-forms-item name="bannerfile" label="图片文件" required>
<uni-file-picker file-mediatype="image" return-type="object" v-model="formData.bannerfile"></uni-file-picker>
</uni-forms-item>
<uni-forms-item name="bannerfile" label="图片文件" required>
<uni-file-picker file-mediatype="image" return-type="object" v-model="formData.bannerfile"></uni-file-picker>
</uni-forms-item>
实际结果:
<uni-forms-item name="bannerfile" label="图片文件" required>
<uni-file-picker file-mediatype="image" return-type="object" v-model="formData.bannerfile"></uni-file-picker>
</uni-forms-item>
<uni-forms-item name="bannerfile" label="图片文件" required>
<uni-file-picker file-mediatype="image" return-type="object" v-model="formData.bannerfile"></uni-file-picker>
</uni-forms-item>
bug描述:
1、uni-file-picker不显示。
2、系统报错
只贴出上面一小部分代码即可,其它都一样,CSS没动过。
<template>
<view class="uni-container">
<uni-forms ref="form" :value="formData" validateTrigger="bind">
<uni-forms-item name="pname" label="商品名称" required>
<uni-easyinput placeholder="请输入商品名称" v-model="formData.pname"></uni-easyinput>
</uni-forms-item>
<uni-forms-item name="cid" label="分类名称" required>
<uni-data-picker v-model="formData.cid" collection="vf_categories" field="cname as text, _id as value"></uni-data-picker>
</uni-forms-item>
<uni-forms-item name="prdpic" label="商品图片" required>
<uni-file-picker file-mediatype="image" file-extname="jpg,png" return-type="object" v-model="formData.prdpic"></uni-file-picker>
</uni-forms-item>
<uni-forms-item name="price" label="商品价格" required>
<uni-easyinput placeholder="请输入商品价格" type="number" v-model="formData.price"></uni-easyinput>
</uni-forms-item>
-
回复 DCloud_UNI_HT: 这次更新之前的组件默认属性就是没被挤压的,不用专门设置,就能保证美观,但这次更新后你不设置,就被挤压到下一行,这应该可以算是样式bug而不是属性设置的问题吧?正常的label都不该被挤压到下一行。
2022-07-05 10:15
1***@qq.com (作者) - 如何通过银行账户转账实现赞助
谢谢!我也是,没报错了,uni-file-picker依然不显示看,uni-data-picker宽度变了没有充满整行而是随着字数变化