mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
refactor(Uploader): refactor with composition api
This commit is contained in:
@@ -8,7 +8,7 @@ export function toArray<T>(item: T | T[]): T[] {
|
||||
return [item];
|
||||
}
|
||||
|
||||
export function readFile(file: File, resultType: ResultType) {
|
||||
export function readFileContent(file: File, resultType: ResultType) {
|
||||
return new Promise((resolve) => {
|
||||
if (resultType === 'file') {
|
||||
resolve();
|
||||
|
Reference in New Issue
Block a user