v0.10.10 首页 H10 Smart Apartment Gateway 规划模块(html 自包含模块)1:1:html widget localSiteUrl/去内层 mb;全局补 Elementor figure margin 0 与 kit 标题排版(Roboto 600/h2 38px);sec h 674.8 与原站全等,H2/H9 回归零差异

This commit is contained in:
bigcode
2026-11-01 10:52:39 +08:00
parent f66f4775d6
commit b0b9c6d5a0
4 changed files with 16 additions and 3 deletions
+3 -1
View File
@@ -484,8 +484,10 @@ function WidgetNodeInner({ el }: { el: ElElement }) {
case "button":
return <ButtonWidget settings={settings} />;
case "html":
// 间距交由 kit-spacing 列规则(.el-col > div > [data-el]),内层不再加 mb;
// 媒体地址经 localSiteUrl 改写为本地 /uploads(原站绝对地址 → 本地)
return s(settings.html) ? (
<div className="mb-[18px]" dangerouslySetInnerHTML={{ __html: stripStructuralTags(s(settings.html)) }} />
<div dangerouslySetInnerHTML={{ __html: localSiteUrl(stripStructuralTags(s(settings.html))) }} />
) : null;
case "image-box":
return <ImageBoxWidget settings={settings} />;