feat:图片上传成功事件参数优化

This commit is contained in:
lvxiaojiao 2022-12-26 10:47:30 +08:00
parent f2b267b15f
commit 3456e76a11
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,3 @@
import React = require('react');
import PageRenderer from '../../src/renderers/Page';
import * as renderer from 'react-test-renderer';
import {render, fireEvent, cleanup, waitFor} from '@testing-library/react';
import '../../src';

View File

@ -1120,7 +1120,10 @@ export default class ImageControl extends React.Component<
const dispatcher = await this.dispatchEvent('success', {
...file, // 保留历史结构
item: file,
item: {
...file,
...ret.data
},
value: obj.value
});
if (dispatcher?.prevented) {