mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:28:20 +08:00
sdk css 编译调整
This commit is contained in:
parent
f209971b9a
commit
dc7e7cf16c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user