fix:when onDestroy call native plugin

This commit is contained in:
pengfei.zhou
2020-04-23 17:42:32 +08:00
committed by osborn
parent 82fdd5e46c
commit 496c4c1838
8 changed files with 34 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
import { Group, Panel, coordinator, text, gravity, Color, LayoutSpec, log, vlayout, scroller, layoutConfig, image, ScaleType, Image } from "doric";
import { Group, Panel, coordinator, text, gravity, Color, LayoutSpec, log, vlayout, scroller, layoutConfig, image, ScaleType, Image, modal } from "doric";
import { colors, label } from "./utils";
import { img_base64 } from "./image_base64";
@@ -221,4 +221,7 @@ class ImageDemo extends Panel {
})
}).in(rootView)
}
onDestroy() {
modal(context).toast('onDestroy')
}
}