1
0
mirror of synced 2026-03-24 20:18:35 +08:00

feat: 新增蒙层组件

This commit is contained in:
roymondchen
2022-05-27 18:47:29 +08:00
committed by jia000
parent 0397c6887a
commit 44aa56bd52
62 changed files with 1045 additions and 41 deletions

View File

@@ -1,11 +1,16 @@
html,
body,
#app {
#root {
width: 100%;
height: 100%;
}
#app {
#root {
position: relative;
overflow: auto;
}
}
#root::-webkit-scrollbar {
width: 0 !important;
display: none;
}

View File

@@ -47,6 +47,8 @@ const getLocalConfig = (): MApp[] => {
}
};
window.magicDSL = []
const app = new Core({
config: ((getUrlParam('localPreview') ? getLocalConfig() : window.magicDSL) || [])[0] || {},
curPage: getUrlParam('page'),

View File

@@ -61,7 +61,10 @@ import(componentUrl).then(() => {
};
const operations = {
app,
getApp() {
return app;
},
updateRootConfig(root: MApp) {
console.log('update root config', root);
app?.setConfig(root);