[new feature] Uploader: oversize event add detail param

This commit is contained in:
陈嘉涵 2019-05-22 15:50:39 +08:00
parent a66297200c
commit 10f82b4a40
2 changed files with 7 additions and 1 deletions

View File

@ -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`

View File

@ -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);
}