forked from p96170835/amis
jssdk monaco-editor 类名不加 .amis-scope 前缀
This commit is contained in:
parent
fa0b2c363b
commit
ffe3f6a290
|
@ -31,7 +31,12 @@ function prefixCss(code, prefix) {
|
||||||
/^\.is\-modalOpened\s/,
|
/^\.is\-modalOpened\s/,
|
||||||
'.is-modalOpened ' + prefix + ' '
|
'.is-modalOpened ' + prefix + ' '
|
||||||
);
|
);
|
||||||
else if (sel.match(/^(?:\.fr-|\.fa|\.tox|\.monaco)/)) return sel;
|
else if (
|
||||||
|
sel.match(
|
||||||
|
/^(?:\.fr-|\.fa|\.tox|\.monaco-|\.vs-dark|\.hc-black|\.vs\b|\.cursor-|::|\.context-view|\.menubar|\.fullscreen|\.colorpicker-)/
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return sel;
|
||||||
else return prefix + ' ' + sel;
|
else return prefix + ' ' + sel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue