mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
feat: page下拉刷新事件&动作扩充
This commit is contained in:
parent
cf1fb97f4d
commit
939434adfb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user