feat: 补齐模板预览区域与编辑绑定
This commit is contained in:
1 parent
541304a763
commit
c5db30f817
9 files changed
+115
-4
No files matched your search
@@ -16,7 +16,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
<View className="food-home">
|
||||
<View className="page">
|
||||
<View className="brand-card">
|
||||
<View className="identity">
|
||||
<View className="identity" data-editor-target="food.home.identity">
|
||||
{text(brand.avatarUrl) && <Image src={text(brand.avatarUrl)} mode="aspectFill" />}
|
||||
<View>
|
||||
<Text className="name">{text(brand.founder)}</Text>
|
||||
|
||||
@@ -244,6 +244,10 @@
|
||||
"page": "home",
|
||||
"target": "brand",
|
||||
"previewTargets": [
|
||||
{
|
||||
"key": "food.home.identity",
|
||||
"label": "主理人身份"
|
||||
},
|
||||
{
|
||||
"key": "food.home.location",
|
||||
"label": "服务地点"
|
||||
@@ -262,6 +266,20 @@
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"key": "founder",
|
||||
"binding": "brand.config.founder",
|
||||
"label": "主理人姓名",
|
||||
"input": "text",
|
||||
"previewTarget": "food.home.identity"
|
||||
},
|
||||
{
|
||||
"key": "title",
|
||||
"binding": "brand.config.title",
|
||||
"label": "身份说明",
|
||||
"input": "text",
|
||||
"previewTarget": "food.home.identity"
|
||||
},
|
||||
{
|
||||
"key": "stallTitle",
|
||||
"previewTarget": "food.home.location",
|
||||
|
||||
Reference in new issue
Block a user