v0.10.7 首页 H4 五卡组 1:1:eael-info-box 完整结构/WidgetNode 双层容器/列 margin 折叠/heading link/kit-spacing 20/image inline-block,sec.h 与原站一致(529.6)
This commit is contained in:
@@ -92,6 +92,24 @@ const SETTING_KEYS = new Set([
|
||||
"eael_infobox_title",
|
||||
"eael_infobox_text",
|
||||
"eael_infobox_title_tag",
|
||||
"eael_infobox_image",
|
||||
"eael_infobox_img_type",
|
||||
"eael_infobox_img_margin",
|
||||
"eael_infobox_title_margin",
|
||||
"eael_infobox_title_margin_mobile",
|
||||
"eael_infobox_title_typography_typography",
|
||||
"eael_infobox_title_typography_font_size",
|
||||
"hover_animation",
|
||||
// widget 高级盒模型(如 eael-info-box 边框卡:_border_* + _padding/_margin)
|
||||
"_margin",
|
||||
// widget 容器背景(如 H4 标题下的橙线图)
|
||||
"_background_image",
|
||||
"_background_position",
|
||||
"_background_repeat",
|
||||
"_border_border",
|
||||
"_border_color",
|
||||
"_border_width",
|
||||
"_border_radius",
|
||||
"title_text_a",
|
||||
"description_text_a",
|
||||
"button_text",
|
||||
@@ -111,7 +129,7 @@ const SETTING_KEYS = new Set([
|
||||
function slimSettingValue(key: string, val: unknown): unknown {
|
||||
if (!val || typeof val !== "object" || Array.isArray(val)) return val;
|
||||
const v = val as Record<string, unknown>;
|
||||
if (key === "image" || key === "background_image" || key === "background_a_image") {
|
||||
if (key === "image" || key === "background_image" || key === "background_a_image" || key === "eael_infobox_image") {
|
||||
// 渲染器只读 url / alt
|
||||
return { url: v.url, alt: v.alt };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user