1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-09-28 07:13:21 +08:00

支持部分组件懒加载,但未完成支持

This commit is contained in:
shangbin
2021-10-22 20:19:12 +08:00
parent 178900c662
commit bc30b01c5e
8 changed files with 188 additions and 63 deletions

12
src/map/load.js Normal file
View File

@@ -0,0 +1,12 @@
/**
* 加载外部代码资源
*/
import styleData from "../map/style.index.js";
import methodData from "../map/method.index.js";
import dataData from "../map/data.index.js";
import templateData from "../map/template.index.js";
window.templateSourceMap = templateData;
window.dataSourceMap = dataData;
window.methodSourceMap = methodData;
window.styleSourceMap = styleData;