Update template file
This commit is contained in:
parent
ca7a7bf207
commit
287015ae05
@ -8,6 +8,8 @@ import {
|
|||||||
Color,
|
Color,
|
||||||
navbar,
|
navbar,
|
||||||
modal,
|
modal,
|
||||||
|
AssetsResource,
|
||||||
|
image,
|
||||||
} from "doric";
|
} from "doric";
|
||||||
import { demoPlugin } from "__$__";
|
import { demoPlugin } from "__$__";
|
||||||
|
|
||||||
@ -18,6 +20,9 @@ class Example extends Panel {
|
|||||||
}
|
}
|
||||||
build(rootView: Group) {
|
build(rootView: Group) {
|
||||||
vlayout([
|
vlayout([
|
||||||
|
image({
|
||||||
|
image: new AssetsResource("logo_doric.png"),
|
||||||
|
}),
|
||||||
text({
|
text({
|
||||||
text: "Click to call native plugin",
|
text: "Click to call native plugin",
|
||||||
textSize: 20,
|
textSize: 20,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Panel, Group, vlayout, layoutConfig, Gravity, text, Text, Color, navbar } from "doric";
|
import { Panel, Group, vlayout, layoutConfig, Gravity, text, Text, Color, navbar, AssetsResource, image } from "doric";
|
||||||
|
|
||||||
@Entry
|
@Entry
|
||||||
class __$__ extends Panel {
|
class __$__ extends Panel {
|
||||||
@ -9,6 +9,9 @@ class __$__ extends Panel {
|
|||||||
let number: Text
|
let number: Text
|
||||||
let count = 0
|
let count = 0
|
||||||
vlayout([
|
vlayout([
|
||||||
|
image({
|
||||||
|
image: new AssetsResource("logo_doric.png"),
|
||||||
|
}),
|
||||||
number = text({
|
number = text({
|
||||||
textSize: 40,
|
textSize: 40,
|
||||||
text: '0',
|
text: '0',
|
||||||
|
Reference in New Issue
Block a user