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

+5 -1
View File
@@ -15,6 +15,10 @@ struct AppListPage {
this.store.loadApps()
}
private openImportPage(): void {
console.info('TODO: open ImportPage')
}
build() {
Column() {
PageHeader({ title: '应用列表' })
@@ -25,7 +29,7 @@ struct AppListPage {
LoadingBlock({ text: '正在加载应用列表' })
} else if (this.store.items.length === 0) {
EmptyState({ text: '暂无已导入应用' })
ImportEntryButton()
ImportEntryButton({ onTap: () => this.openImportPage() })
} else {
AppListView({ items: this.store.items })
}