2020-04-16 03:39:07 +08:00
..
2020-04-08 15:59:00 +08:00
2020-04-16 03:39:07 +08:00
2020-04-08 15:59:00 +08:00
2020-04-08 15:59:00 +08:00
2020-04-15 01:44:45 +08:00
2020-03-29 23:41:59 +08:00
2020-04-08 15:59:00 +08:00
2020-03-29 23:41:59 +08:00

子视图 prototype.view view.Preview view.Mobile

实时切

设备 device 创建多个 simulator

不同simulator 加载不同视图

这样有利于 环境隔离,比如 rax 和 react

适配规则

规则 1 mobile view.mobile.xxx rax view.rax.xxx miniapp view.miniapp.xxx view..xxx 通配 view.xxx

规则 2 urls: "view.js,view2 , view3 ", urls: [ "view.js", "view.js *", "view1.js mobile|pc", "view2.js " ]

环境通用资源

"react": { "urls": [ "//g.alicdn.com/platform/c/react/16.5.2/react.min.js" ], "library": "React", "package": "react", "version": "16.5.2", "devices-for": "*" | ["mobile", "web"] | "rax|mobile" }

load legao assets load all x-prototype-urls

load assets

build componentMeta if has x-prototype-urls , load x-prototype-urls call Bundle.createPrototype() or something register got prototypeView

load schema

open schema

load simulator resources

simulator 中加载资源,根据 componentsMap 构建组件查询字典,