<lsj-upload
ref="upload"
height="80rpx"
:instantly="true"
:option="option"
:formats="formats"
@uploadEnd="uploadEnd"
>
<button style="float: right;" size="mini" class="bg-primary">上传文件</button>
</lsj-upload>
<uni-fab horizontal="right" @fabClick="fabClick"></uni-fab>
function fabClick() {
upload.value.onClick();
}
8***@qq.com
- 发布:2022-12-13 11:18
- 更新:2022-12-13 11:18
- 阅读:261
在外部例如uni-fab的点击事件中调用onClick,或者show,都不会弹出文件选择器无效,怎么解决呢
分类:uni-app
0 个回复