feat: 完善模板区域预览与详情页编辑边界

This commit is contained in:
que01 committed 2026-10-10 09:51:12 +08:00
1 parent df2b1f6031
commit 849ae5df05
11 files changed
+236 -28

No files matched your search

@@ -15,7 +15,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
return (
<View className="food-home">
<View className="page">
<View className="brand-card">
<View className="brand-card" data-editor-target="food.home.brand-card">
<View className="identity" data-editor-target="food.home.identity">
{text(brand.avatarUrl) && <Image src={text(brand.avatarUrl)} mode="aspectFill" />}
<View>
@@ -244,6 +244,12 @@
"page": "home",
"target": "brand",
"previewTargets": [
{
"key": "food.home.brand-card",
"label": "品牌信息区",
"composite": true,
"children": ["food.home.identity", "food.home.location", "food.home.actions"]
},
{
"key": "food.home.identity",
"label": "主理人身份"