feat: page下拉刷新事件&动作扩充

This commit is contained in:
hongyang03 2022-03-22 16:17:16 +08:00
parent cf1fb97f4d
commit 939434adfb

View File

@ -619,17 +619,13 @@ export default class Page extends React.Component<PageProps> {
@autobind
async handleRefresh() {
const {dispatchEvent, data} = this.props;
const rendererEvent = await dispatchEvent('pullRefresh', createObject(data));
const rendererEvent = await dispatchEvent('pullRefresh', data);
if (rendererEvent?.prevented) {
return;
}
this.reload();
}
doAction(action: Action, data: object, throwErrors: boolean = false) {
return this.handleAction(undefined, action, data);
}
handleChange(
value: any,
name: string,