import Upload from '../index'; export default { render() { const uploaderProps = { props: { action: () => { return new Promise(resolve => { setTimeout(() => { resolve('//jsonplaceholder.typicode.com/posts/'); }, 2000); }); }, }, on: { start(file) { console.log('start', file, file.name); }, success(file) { console.log('success', file); }, error(err) { console.log('error', err); }, }, style: { margin: '100px' }, }; return ( 开始上传 ); }, };