-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploader的complete事件触发时机问题 #29
Comments
我试了demo是没问题的,能贴更多代码吗 |
`
` 谢谢 |
这代码看不出来啥问题,希望提供完整demo或者线上链接,以及复现步骤、过程 |
复现步骤: |
我发现 autoStart改成false就正常了 |
你的 filesSubmitted 中不需要再次调用 upload 了 这个属于 upload check 部分逻辑问题,后续我会修复下 - 对于重复调用 upload 的情况 |
好的,thanks |
识别不出来文件还是图片 每个item前面 都是俩个竖线 没有文件夹那种图片 |
@lwpassvoice 你好可以问一下 你那个 怎么写的么 可以贴一下代码吗? |
这里有 fileCategory 可以使用,是文件分类 根据文件的 ext 区分的,默认规则如下: https://github.com/simple-uploader/vue-uploader/blob/master/src/components/file.vue#L90-L106 至于你说的显示不出来估计是不认识的问题吧,默认展示如下: 你可以选择通过对应的 class 去覆盖样式达到自己想要的效果 |
@xuchao321 我是根据上传文件列表自己写的css |
@lwpassvoice 如何写的可以给一个提示吗 calss名字加在哪里 |
|
@dolymood |
@xuchao321 你选择文件后,把参数打印出来看就知道了,file-added里也有 |
你好 打印出来了 也没有那么多属性啊 |
@xuchao321 自己遍历fileList,生成想要的html |
@lwpassvoice 哦 在这里取值 谢谢 那个样式怎么搞啊 0.0 class名字加在哪里 0.0 |
@xuchao321 css\html自己写,v-for遍历fileList |
把这个标签去掉么 大神 @lwpassvoice 真是太感谢了 |
|
@xuchao321 |
哦 好的!谢谢了 我研究下 |
@lwpassvoice 你好能否看看您那个是怎么设的样式吗 css 我这里就显示个名字! |
@lwpassvoice 要改这个样式的话 是不是逻辑什么都得从写啊 大神 进度条什么的还有吗 |
@dolymood 你好 那个 |
@dolymood 你好fileCategory这个方法我怎么可以取到啊 如何使用 还有class这个加在那个dom上 |
@xuchao321 解决了吗? 是不是进度条 各种判断都得重写? |
发现选择文件后complete事件会触发,上传成功后也会再次触发
请问这里是否有问题
`
<uploader
class="uploader-example"
ref="uploader"
:simultaneousUploads="5"
:options="options"
:autoStart="true"
:permanentErrors="[401, 404, 415, 500, 501]"
@file-added="fileAdded"
@files-submitted="filesSubmitted"
@file-error="fileError"
@file-success="fileSuccess"
@complete="complete">
不支持此功能,请升级微信或浏览器
选择文件
`
`
complete() {
console.log('complete');
this.isComplete = true;
this.isUploading = false;
},
`
The text was updated successfully, but these errors were encountered: