feat(Uploader): support failed status (#5624)

This commit is contained in:
neverland
2020-02-05 15:09:43 +08:00
committed by GitHub
parent 51f62b86b8
commit 26cf84faf0
8 changed files with 132 additions and 5 deletions
+22
View File
@@ -45,6 +45,28 @@ export default {
};
```
### Failed
```html
<van-uploader v-model="fileList" :after-read="afterRead" />
```
```js
export default {
data() {
return {
fileList: []
}
},
methods: {
afterRead(file) {
file.status = 'failed';
file.message = 'Failed';
}
}
};
```
### Max Count
```html