mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[new feature] Uploader: oversize event add detail param
This commit is contained in:
parent
a66297200c
commit
10f82b4a40
@ -1,5 +1,11 @@
|
||||
# 更新日志
|
||||
|
||||
### [v2.0.0-beta.1](https://github.com/youzan/vant/tree/v2.0.0-beta.0)
|
||||
|
||||
##### Uploader
|
||||
|
||||
- `oversize`事件增加`detail`参数
|
||||
|
||||
### [v2.0.0-beta.0](https://github.com/youzan/vant/tree/v2.0.0-beta.0)
|
||||
`2019-05-21`
|
||||
|
||||
|
@ -88,7 +88,7 @@ export default sfc({
|
||||
|
||||
onAfterRead(files, oversize) {
|
||||
if (oversize) {
|
||||
this.$emit('oversize', files);
|
||||
this.$emit('oversize', files, this.detail);
|
||||
} else {
|
||||
this.afterRead && this.afterRead(files, this.detail);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user