feat: 增加可视化模板页面编辑器

This commit is contained in:
que01 committed 2026-10-08 18:00:36 +08:00
1 parent 9d2038cc93
commit c5af790554
24 files changed
+773 -129

No files matched your search

@@ -23,7 +23,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
<Text className="slogan">“{text(brand.description)}”</Text>
</View>
</View>
<View className="notice">
<View className="notice" data-editor-target="food.home.location">
<Text className="notice-title">{p.stallTitle || "服务地点"}</Text>
<Text>{text(brand.address)}</Text>
{p.stallTime && <Text className="notice-time">{p.stallTime}</Text>}
@@ -37,7 +37,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
</Button>
</View>
</View>
<View className="scene-wrap">
<View className="scene-wrap" data-editor-target="food.home.hero">
<View className="section-head">
<Text className="eyebrow">{text(brand.name)}</Text>
</View>
@@ -50,7 +50,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
/>
)}
</View>
<View className="section-head">
<View className="section-head" data-editor-target="food.home.offerings-heading">
<View>
<Text className="eyebrow">{p.worksEyebrow || "餐品与服务"}</Text>
<Text className="heading">{p.worksTitle || "可选餐品"}</Text>
@@ -75,7 +75,9 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
</View>
))}
</View>
<Text className="heading manifesto-heading">{p.manifestoTitle}</Text>
<View data-editor-target="food.home.promise-heading">
<Text className="heading manifesto-heading">{p.manifestoTitle}</Text>
</View>
{workspace.trustItems
.filter((item) => ["promise", "case"].includes(item.type))
.map((item) => (