feat: wire ArkTS page actions to store placeholders
This commit is contained in:
1 parent
879e1526f1
commit
0b20b5dd43
7 files changed
+87
-6
No files matched your search
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user