chore:事件动作文档补充demo&去掉事件参数中的nativeEvent(从context获取)

This commit is contained in:
lvxiaojiao 2023-05-29 10:56:27 +08:00
parent bbbc804943
commit 3281e849b9

View File

@ -37,7 +37,7 @@ export class ToastAction implements RendererAction {
if (!renderer.props.env?.notify) {
throw new Error('env.notify is required!');
}
debugger;
event.context.env.notify?.(
action.args?.msgType || 'info',
String(action.args?.msg),