From 87008b1053cdf92e3a9745c905b27939c90b15dc Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 12 Aug 2019 12:20:47 +0800 Subject: [PATCH] =?UTF-8?q?sdk=20css=20=E7=BC=96=E8=AF=91=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/embed-packager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/embed-packager.js b/build/embed-packager.js index ac7a1845..b9051e51 100644 --- a/build/embed-packager.js +++ b/build/embed-packager.js @@ -20,7 +20,9 @@ function prefixCss(code, prefix) { var m = sel.match(/(^| )(body|html)($|\W.*)/i); if (m) return m[1] + prefix + m[3]; - else if (sel.match(/^(?:\.fr-|\.fa|\.is\-modalOpened)/)) + else if (sel.match(/^\.is\-modalOpened/)) + return sel.replace(/^\.is\-modalOpened\s/, '.is-modalOpened ' + prefix + ' ') + else if (sel.match(/^(?:\.fr-|\.fa)/)) return sel; else return prefix + ' ' + sel;