jssdk monaco-editor 类名不加 .amis-scope 前缀

This commit is contained in:
2betop 2020-06-01 15:22:06 +08:00
parent fa0b2c363b
commit ffe3f6a290
1 changed files with 6 additions and 1 deletions

View File

@ -31,7 +31,12 @@ function prefixCss(code, prefix) {
/^\.is\-modalOpened\s/,
'.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;
}