From f0a45933c7e49badf1e03f791875e90bed1b2c43 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Fri, 29 Oct 2021 00:31:02 +0800 Subject: [PATCH] fix: inline style --- src/assets/scripts/renderers/wx-renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/scripts/renderers/wx-renderer.js b/src/assets/scripts/renderers/wx-renderer.js index e3dadba..1282dc2 100644 --- a/src/assets/scripts/renderers/wx-renderer.js +++ b/src/assets/scripts/renderers/wx-renderer.js @@ -19,14 +19,14 @@ class WxRenderer { "font-family": this.opts.fonts, "font-size": this.opts.size, }); - let base_block = merge(base, {}); for (let ele in themeTpl.inline) { if (themeTpl.inline.hasOwnProperty(ele)) { let style = themeTpl.inline[ele]; - mapping[ele] = merge(base, style); + mapping[ele] = merge(themeTpl.BASE, style); } } + let base_block = merge(base, {}); for (let ele in themeTpl.block) { if (themeTpl.block.hasOwnProperty(ele)) { let style = themeTpl.block[ele];