mirror of
https://gitcode.com/JianFeeeee/TrulyMEM-TrueHumanMEM.git
synced 2026-10-04 00:14:26 +00:00
refactor: move HarmonyOS project files from harmony/ to branch root
This commit is contained in:
22
entry/src/main/ets/pages/GraphPage.ets
Normal file
22
entry/src/main/ets/pages/GraphPage.ets
Normal file
@ -0,0 +1,22 @@
|
||||
import web_webview from '@ohos.web.webview';
|
||||
import { GraphDatabase } from '../model/GraphDatabase';
|
||||
|
||||
@Component
|
||||
export struct GraphPage {
|
||||
private controller: web_webview.WebviewController = new web_webview.WebviewController();
|
||||
@Prop db: GraphDatabase;
|
||||
|
||||
build() {
|
||||
Column() {
|
||||
Web({ src: $rawfile('graph.html'), controller: this.controller })
|
||||
.javaScriptAccess(true)
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
}
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
.onAppear(() => {
|
||||
this.controller.refresh();
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user