feat:add toast bridge

This commit is contained in:
pengfei.zhou
2019-11-20 17:24:50 +08:00
parent 38823700a2
commit d495043dc9
9 changed files with 96 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
import { BridgeContext } from "../runtime/global";
export function modal(context: BridgeContext) {
return {
toast: (msg: string) => {
context.modal.toast({ msg })
},
}
}