feat: update demo
This commit is contained in:
BIN
doric-demo/assets/The_Parthenon_in_Athens.jpeg
Normal file
BIN
doric-demo/assets/The_Parthenon_in_Athens.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 339 KiB |
BIN
doric-demo/bundle/assets/The_Parthenon_in_Athens.jpeg
Normal file
BIN
doric-demo/bundle/assets/The_Parthenon_in_Athens.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 339 KiB |
@@ -1,4 +1,4 @@
|
||||
import { Base64Resource, Group, Panel, coordinator, text, gravity, Color, LayoutSpec, log, vlayout, scroller, layoutConfig, image, ScaleType, Image, modal, RemoteResource, MainBundleResource } from "doric";
|
||||
import { Base64Resource, Group, Panel, coordinator, text, gravity, Color, LayoutSpec, log, vlayout, scroller, layoutConfig, image, ScaleType, Image, modal, RemoteResource, MainBundleResource, AssetResource } from "doric";
|
||||
import { colors, label } from "./utils";
|
||||
import { img_base64 } from "./image_base64";
|
||||
|
||||
@@ -28,8 +28,8 @@ class ImageDemo extends Panel {
|
||||
label('Button'),
|
||||
image({
|
||||
image: Environment.platform === 'Android'
|
||||
? new DrawableResource("doric_icon_back")
|
||||
: new MainBundleResource("Hanabi.ttf"),
|
||||
? new AssetResource("assets/The_Parthenon_in_Athens.jpeg")
|
||||
: new MainBundleResource("assets/The_Parthenon_in_Athens.jpeg"),
|
||||
}),
|
||||
image({
|
||||
image: new RemoteResource("https://p.upyun.com/demo/webp/webp/jpg-0.webp"),
|
||||
|
@@ -200,12 +200,12 @@ class TextDemo extends Panel {
|
||||
text({
|
||||
text: "Icon Font text from assets/fonts/ \ue631 ",
|
||||
textSize: 10,
|
||||
font: 'fonts/assets_iconfont'
|
||||
font: 'assets/fonts/assets_iconfont'
|
||||
}),
|
||||
text({
|
||||
text: "Icon Font text from assets/fonts/ \ue631 ",
|
||||
textSize: 30,
|
||||
font: 'fonts/assets_iconfont.ttf'
|
||||
font: 'assets/fonts/assets_iconfont.ttf'
|
||||
}),
|
||||
text({
|
||||
text: "This is line Spaceing 0,\nSecond line",
|
||||
|
Reference in New Issue
Block a user