feat: wire ArkTS page actions to store placeholders

This commit is contained in:
OpenClaw committed 2026-03-09 14:42:32 +08:00
1 parent 879e1526f1
commit 0b20b5dd43
7 files changed
+87 -6

No files matched your search

@@ -1,10 +1,26 @@
@Component
export struct RuntimeToolbar {
onBack?: () => void
onRestart?: () => void
onExit?: () => void
build() {
Row({ space: 12 }) {
Button('返回')
Button('重启')
Button('退出')
Button('返回').onClick(() => {
if (this.onBack) {
this.onBack()
}
})
Button('重启').onClick(() => {
if (this.onRestart) {
this.onRestart()
}
})
Button('退出').onClick(() => {
if (this.onExit) {
this.onExit()
}
})
}
.padding(16)
}