mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 15:38:32 +00:00
fix: 🐛 修复富文本高级内容弹层样式问题
顶层缺少容器class,导致下游组件样式失效。
This commit is contained in:
parent
6c6df45677
commit
edb480d74c
@ -26,6 +26,11 @@ import { designer, editor } from './editor';
|
|||||||
import './vision.less';
|
import './vision.less';
|
||||||
|
|
||||||
function init(container?: Element) {
|
function init(container?: Element) {
|
||||||
|
//TODO: dirty fix
|
||||||
|
// 之前的组件库依赖了这个样式,临时fix一下。
|
||||||
|
// 取决于预览模式是否保留。
|
||||||
|
document.documentElement.classList.add('engine-design-mode');
|
||||||
|
|
||||||
if (!container) {
|
if (!container) {
|
||||||
container = document.createElement('div');
|
container = document.createElement('div');
|
||||||
document.body.appendChild(container);
|
document.body.appendChild(container);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user