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

+6 -1
View File
@@ -10,13 +10,18 @@ import { ImportResultPanel } from '../components/import/ImportResultPanel'
export struct ImportPage {
private store: ImportStore = new ImportStore()
private async onPickFile(): Promise<void> {
await this.store.pickFile()
await this.store.analyzeSelectedFile()
}
build() {
Column() {
PageHeader({ title: '导入应用' })
if (this.store.error) {
StatusBanner({ text: this.store.error.message })
}
ImportSourceSelector()
ImportSourceSelector({ onPick: () => this.onPickFile() })
if (this.store.previewInfo) {
PackagePreviewCard({ name: this.store.previewInfo.name })
}