lowcode-engine/packages/editor-preset-vision
mario.gk c754e4087e Merge branch 'daily/0.10.1' into feat/design-online
# Conflicts:
#	CHANGELOG.md
#	lerna.json
#	packages/code-generator/CHANGELOG.md
#	packages/code-generator/package.json
#	packages/demo-server/CHANGELOG.md
#	packages/demo-server/package.json
#	packages/demo/CHANGELOG.md
#	packages/demo/package.json
#	packages/designer/CHANGELOG.md
#	packages/designer/package.json
#	packages/editor-core/CHANGELOG.md
#	packages/editor-core/package.json
#	packages/editor-preset-general/CHANGELOG.md
#	packages/editor-preset-general/package.json
#	packages/editor-preset-vision/CHANGELOG.md
#	packages/editor-preset-vision/package.json
#	packages/editor-setters/CHANGELOG.md
#	packages/editor-setters/package.json
#	packages/editor-skeleton/CHANGELOG.md
#	packages/editor-skeleton/package.json
#	packages/material-parser/CHANGELOG.md
#	packages/material-parser/package.json
#	packages/plugin-components-pane/CHANGELOG.md
#	packages/plugin-components-pane/package.json
#	packages/plugin-designer/CHANGELOG.md
#	packages/plugin-designer/package.json
#	packages/plugin-event-bind-dialog/CHANGELOG.md
#	packages/plugin-event-bind-dialog/package.json
#	packages/plugin-outline-pane/CHANGELOG.md
#	packages/plugin-outline-pane/package.json
#	packages/plugin-sample-logo/CHANGELOG.md
#	packages/plugin-sample-logo/package.json
#	packages/plugin-sample-preview/CHANGELOG.md
#	packages/plugin-sample-preview/package.json
#	packages/plugin-source-editor/CHANGELOG.md
#	packages/plugin-source-editor/package.json
#	packages/plugin-undo-redo/CHANGELOG.md
#	packages/plugin-undo-redo/package.json
#	packages/plugin-variable-bind-dialog/CHANGELOG.md
#	packages/plugin-variable-bind-dialog/package.json
#	packages/plugin-zh-en/CHANGELOG.md
#	packages/plugin-zh-en/package.json
#	packages/rax-provider/CHANGELOG.md
#	packages/rax-provider/package.json
#	packages/rax-render/CHANGELOG.md
#	packages/rax-render/package.json
#	packages/rax-simulator-renderer/CHANGELOG.md
#	packages/rax-simulator-renderer/package.json
#	packages/react-provider/CHANGELOG.md
#	packages/react-provider/package.json
#	packages/react-renderer/CHANGELOG.md
#	packages/react-renderer/package.json
#	packages/react-simulator-renderer/CHANGELOG.md
#	packages/react-simulator-renderer/package.json
#	packages/runtime/CHANGELOG.md
#	packages/runtime/package.json
#	packages/types/CHANGELOG.md
#	packages/types/package.json
#	packages/utils/CHANGELOG.md
#	packages/utils/package.json
2020-10-27 14:30:36 +08:00
..
2020-09-11 16:20:25 +08:00
2020-10-13 10:33:39 +08:00
2020-09-07 17:48:39 +08:00
2020-10-26 15:55:03 +08:00
2020-05-16 04:02:52 +08:00
2020-05-16 04:02:52 +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

universal

规则 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 构建组件查询字典,

获取 view 相关的样式、脚本 获取 proto 相关的样式 在 simulator 中也加载一次

  1. meta 信息构造
  2. components 字典构造, proto.getView 或者 通过 npm 信息查询

componentMeta 段描述的信息,如果包含 x-prototype-urls ,那么这个 meta 信息都可以丢掉