mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
api 修改
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
default: false
|
||||
},
|
||||
beforeRead: Function,
|
||||
afterRead: Function,
|
||||
resultType: {
|
||||
type: String,
|
||||
default: 'dataUrl',
|
||||
@@ -37,7 +38,7 @@
|
||||
if (this.beforeRead && !this.beforeRead(file)) return;
|
||||
var reader = new FileReader();
|
||||
reader.onload = (e) => {
|
||||
this.$emit('file-readed',
|
||||
this.afterRead && this.afterRead(
|
||||
{
|
||||
name: file.name,
|
||||
type: file.type,
|
||||
|
Reference in New Issue
Block a user