feat: add ArkTS shell code skeleton placeholders

This commit is contained in:
OpenClaw committed 2026-03-09 14:16:11 +08:00
1 parent 339756c1aa
commit f8f18f185e
32 files changed
+561

No files matched your search

@@ -0,0 +1,11 @@
@Component
export struct AppCard {
@Prop title: string = ''
build() {
Column() {
Text(this.title)
}
.padding(16)
}
}
@@ -0,0 +1,16 @@
import type { AppItemVM } from '../../models/AppItemVM'
@Component
export struct AppListView {
@Prop items: AppItemVM[] = []
build() {
List() {
ForEach(this.items, (item: AppItemVM) => {
ListItem() {
Text(item.name)
}
}, (item: AppItemVM) => item.id)
}
}
}
@@ -0,0 +1,6 @@
@Component
export struct ImportEntryButton {
build() {
Button('导入应用')
}
}
@@ -0,0 +1,13 @@
@Component
export struct ConfirmDialog {
@Prop title: string = '确认'
@Prop content: string = ''
build() {
Column() {
Text(this.title)
Text(this.content).margin({ top: 8 })
}
.padding(16)
}
}
@@ -0,0 +1,12 @@
@Component
export struct EmptyState {
@Prop text: string = '暂无数据'
build() {
Column() {
Text(this.text)
}
.width('100%')
.padding(24)
}
}
@@ -0,0 +1,13 @@
@Component
export struct LoadingBlock {
@Prop text: string = '加载中'
build() {
Column() {
LoadingProgress()
Text(this.text).margin({ top: 8 })
}
.width('100%')
.padding(16)
}
}
@@ -0,0 +1,12 @@
@Component
export struct PageHeader {
@Prop title: string = ''
build() {
Row() {
Text(this.title).fontSize(20).fontWeight(FontWeight.Medium)
}
.width('100%')
.padding(16)
}
}
@@ -0,0 +1,13 @@
@Component
export struct StatusBanner {
@Prop text: string = ''
build() {
if (this.text) {
Text(this.text)
.width('100%')
.padding(12)
.backgroundColor('#FFF3CD')
}
}
}
@@ -0,0 +1,12 @@
@Component
export struct ImportProgressPanel {
@Prop text: string = '导入中'
build() {
Column() {
LoadingProgress()
Text(this.text).margin({ top: 8 })
}
.padding(16)
}
}
@@ -0,0 +1,8 @@
@Component
export struct ImportResultPanel {
@Prop text: string = ''
build() {
Text(this.text).padding(16)
}
}
@@ -0,0 +1,6 @@
@Component
export struct ImportSourceSelector {
build() {
Button('选择本地文件')
}
}
@@ -0,0 +1,11 @@
@Component
export struct PackagePreviewCard {
@Prop name: string = ''
build() {
Column() {
Text(this.name || '未选择文件')
}
.padding(16)
}
}
@@ -0,0 +1,10 @@
@Component
export struct RuntimeContainer {
build() {
Column() {
Text('Runtime Surface Placeholder')
}
.width('100%')
.height('100%')
}
}
@@ -0,0 +1,10 @@
@Component
export struct RuntimeStatusOverlay {
@Prop text: string = ''
build() {
if (this.text) {
Text(this.text).padding(16)
}
}
}
@@ -0,0 +1,11 @@
@Component
export struct RuntimeToolbar {
build() {
Row({ space: 12 }) {
Button('返回')
Button('重启')
Button('退出')
}
.padding(16)
}
}