mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
Merge branch 'master' into feat/mutiDevice
This commit is contained in:
commit
3437b1b2c2
@ -8,6 +8,7 @@ dist
|
||||
demo
|
||||
es
|
||||
lib
|
||||
tests
|
||||
.*
|
||||
~*
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
module.exports = {
|
||||
extends: 'eslint-config-ali/typescript/react',
|
||||
ignorePatterns: [ 'tests/** '],
|
||||
rules: {
|
||||
'react/no-multi-comp': 0,
|
||||
'no-unused-expressions': 0,
|
||||
@ -27,5 +26,7 @@ module.exports = {
|
||||
'no-proto': 0,
|
||||
'prefer-const': 0,
|
||||
'eol-last': 0,
|
||||
'react/no-find-dom-node': 0,
|
||||
'no-case-declarations': 0,
|
||||
}
|
||||
};
|
||||
|
||||
258
CHANGELOG.md
258
CHANGELOG.md
@ -3,6 +3,264 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 解决 radio 组件无法删除, 且影响其他组件也无法删除的问题 ([f2ce27c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f2ce27c811667d7bd41cbdb41cfbc9d7c7330f8f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 调整 components 触发视图刷新的机制, designer _componentMetasMap 引用更新才触发 renderer components 更新 ([a9cead0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a9cead0339e253752c7bbd33c069286335a4a671))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* componentsMap 中加入低代码组件信息 ([b7c1183](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b7c11834602d8e4ea84d2dea035a3abf97b33d5c))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复在没有选中任何画布节点时, 添加模态框异常的 bug ([34e8105](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/34e8105c104e7fe98d9446d96d44206c069d8d4b))
|
||||
* 移除 renderer 内 components 的响应式逻辑 ([c02f0ec](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c02f0ec8374406e2d916fcc2a23c7f88b52ab80d))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 升级和降级 schema 的操作都跳过数组, 因为 dataSource 和 ListSetter 都依赖了乐高的 schema 结构 ([1c430a2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1c430a2e66343a8e433075fe7b472d8a06b02d98))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([f6fd095](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f6fd095db2ff01454257a1322ad695d89c139f1a))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复转换 schema 双向不对等的 bug ([5f85174](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/5f851740b30c306bdb686afa422df8630ba00b8a))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add deviceStyle props ([1a09282](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1a09282bfae8bbbd3a2af32a68cd28276b03129f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 对齐 getConfig 的实现 ([7b551fb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7b551fb5b8392640f55cd79f41ee06a2afdac202))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 增加 getConfig / getItems / selected 等兼容 vision 的 API ([9a3352b](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/9a3352b05411b23a831bcbea056642413c19c36e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复无法获取 libraryMap ([393d9ce](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/393d9cebf82026f1501fc653377e949c2b703584))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* renderer-core 在非设计渲染态时, 不应处理 hidden 属性 ([7857096](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7857096c0f56308195cc9e27de4f549eee72a10e))
|
||||
* 以字符串注册 editor 实例 ([b9c5b3a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b9c5b3a0fdbc11ee287befae1eb3864ed761831b))
|
||||
* 修复array-setter 初始化重复多次执行onChange ([e8f83fc](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e8f83fc4b39d8591eb662e53f95619743b6da5eb))
|
||||
* 修复arraysetter 初始化重复执行onChange问题 ([0486dbb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0486dbb320f63c6ebf9448c97c20cc37feb1d9dd))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 异步加载asset ([a5ca12a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a5ca12ab691f611dd706ac295ee3cc4965701ca3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package ali-lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复 overridePropsConfigure 失效的 bug ([7168a90](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7168a903ce8b4d5346b751dc812828199ae1b3b6))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复 overridePropsConfigure 失效的 bug ([7168a90](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7168a903ce8b4d5346b751dc812828199ae1b3b6))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"lerna": "2.11.0",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"npmClient": "tnpm",
|
||||
"registry": "http://registry.npm.alibaba-inc.com",
|
||||
"useWorkspaces": true,
|
||||
|
||||
14
package.json
14
package.json
@ -14,19 +14,18 @@
|
||||
"clean": "rm -rf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build",
|
||||
"lint": "eslint --ext .ts,.tsx,.js,.jsx ./ --quiet",
|
||||
"lint:fix": "eslint --ext .ts,.tsx,.js,.jsx ./ --quiet --fix",
|
||||
"pub": "tnpm run watchdog:build && lerna publish --force-publish --cd-version patch",
|
||||
"pub:prepatch": "tnpm run watchdog:build && lerna publish prepatch --force-publish --dist-tag beta --preid beta",
|
||||
"pub:prerelease": "tnpm run watchdog:build && lerna publish prerelease --force-publish --dist-tag beta --preid beta",
|
||||
"pub": "tnpm run watchdog:build && lerna publish patch --force-publish --exact",
|
||||
"pub:prepatch": "tnpm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta",
|
||||
"pub:prerelease": "tnpm run watchdog:build && lerna publish prerelease --force-publish --exact --dist-tag beta --preid beta",
|
||||
"setup": "./scripts/setup.sh",
|
||||
"setup:skip-build": "./scripts/setup-skip-build.sh",
|
||||
"start": "./scripts/start.sh",
|
||||
"start:demo": "./scripts/start.sh @ali/lowcode-demo",
|
||||
"start:server": "./scripts/start-server.sh",
|
||||
"test": "lerna run test --stream",
|
||||
"test:snapshot": "lerna run test:snapshot",
|
||||
"watchdog:build": "node ./scripts/watchdog.js",
|
||||
"xima:fix": "xima fix",
|
||||
"xima:scan": "xima scan"
|
||||
"xima:scan": "xima scan --quiet"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
@ -39,12 +38,9 @@
|
||||
"**/*.{js,jsx,ts,tsx}": "xima exec eslint"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^1.0.1",
|
||||
"@ali/lerna": "^1",
|
||||
"ts-node": "^7.0.1",
|
||||
"tslib": "^1.9.3",
|
||||
"typescript": "^3.2.2",
|
||||
"xima": "^0.2.15"
|
||||
"xima": "^0.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
|
||||
@ -3,6 +3,229 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 解决 radio 组件无法删除, 且影响其他组件也无法删除的问题 ([f2ce27c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f2ce27c811667d7bd41cbdb41cfbc9d7c7330f8f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 调整 components 触发视图刷新的机制, designer _componentMetasMap 引用更新才触发 renderer components 更新 ([a9cead0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a9cead0339e253752c7bbd33c069286335a4a671))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* componentsMap 中加入低代码组件信息 ([b7c1183](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b7c11834602d8e4ea84d2dea035a3abf97b33d5c))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复在没有选中任何画布节点时, 添加模态框异常的 bug ([34e8105](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/34e8105c104e7fe98d9446d96d44206c069d8d4b))
|
||||
* 移除 renderer 内 components 的响应式逻辑 ([c02f0ec](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c02f0ec8374406e2d916fcc2a23c7f88b52ab80d))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add deviceStyle props ([1a09282](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1a09282bfae8bbbd3a2af32a68cd28276b03129f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 对齐 getConfig 的实现 ([7b551fb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7b551fb5b8392640f55cd79f41ee06a2afdac202))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 增加 getConfig / getItems / selected 等兼容 vision 的 API ([9a3352b](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/9a3352b05411b23a831bcbea056642413c19c36e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复无法获取 libraryMap ([393d9ce](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/393d9cebf82026f1501fc653377e949c2b703584))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 异步加载asset ([a5ca12a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a5ca12ab691f611dd706ac295ee3cc4965701ca3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-designer
|
||||
|
||||
@ -7,7 +7,7 @@ module.exports = {
|
||||
// // '^.+\\.(js|jsx)$': 'babel-jest',
|
||||
// },
|
||||
// testMatch: ['**/project.test.ts'],
|
||||
testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
|
||||
// testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
|
||||
transformIgnorePatterns: [
|
||||
`/node_modules/(?!${esModules})/`,
|
||||
],
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-designer",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Designer for Ali LowCode Engine",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -14,9 +14,9 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"classnames": "^2.2.6",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-adapter-react-16": "^1.15.5",
|
||||
@ -41,10 +41,11 @@
|
||||
"build-scripts-config": "^0.1.8",
|
||||
"jest": "^26.6.3",
|
||||
"lodash": "^4.17.20",
|
||||
"moment": "^2.29.1",
|
||||
"typescript": "^4.0.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
align-items: stretch;
|
||||
justify-content: flex-end;
|
||||
pointer-events: all;
|
||||
background-color: white;
|
||||
> * {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@ -264,6 +264,26 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
|
||||
private _iframe?: HTMLIFrameElement;
|
||||
|
||||
|
||||
buildLibrary(library) {
|
||||
library = library || this.get('library') as LibraryItem[];
|
||||
const libraryAsset: AssetList = [];
|
||||
if (library) {
|
||||
library.forEach((item) => {
|
||||
this.libraryMap[item.package] = item.library;
|
||||
if (item.async) {
|
||||
this.asyncLibraryMap[item.package] = item;
|
||||
}
|
||||
if (item.urls) {
|
||||
|
||||
libraryAsset.push(item.urls);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return libraryAsset;
|
||||
}
|
||||
|
||||
async mountContentFrame(iframe: HTMLIFrameElement | null) {
|
||||
if (!iframe || this._iframe === iframe) {
|
||||
return;
|
||||
@ -273,18 +293,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
this._contentWindow = iframe.contentWindow!;
|
||||
|
||||
const library = this.get('library') as LibraryItem[];
|
||||
const libraryAsset: AssetList = [];
|
||||
if (library) {
|
||||
library.forEach((item) => {
|
||||
this.libraryMap[item.package] = item.library;
|
||||
if (item.async) {
|
||||
this.asyncLibraryMap[item.package] = item;
|
||||
}
|
||||
if (item.urls) {
|
||||
libraryAsset.push(item.urls);
|
||||
}
|
||||
});
|
||||
}
|
||||
const libraryAsset: AssetList = this.buildLibrary();
|
||||
|
||||
const vendors = [
|
||||
// required & use once
|
||||
@ -341,6 +350,11 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
// TODO: dispose the bindings
|
||||
}
|
||||
|
||||
async setupComponents(library) {
|
||||
const libraryAsset: AssetList = this.buildLibrary(library);
|
||||
await this.renderer.load(libraryAsset);
|
||||
}
|
||||
|
||||
setupEvents() {
|
||||
// TODO: Thinkof move events control to simulator renderer
|
||||
// just listen special callback
|
||||
@ -470,10 +484,11 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
this._iframe?.dispatchEvent(x);
|
||||
const target = e.target as HTMLElement;
|
||||
|
||||
// TODO: need more elegant solution to ignore click events of compoents in designer
|
||||
// TODO: need more elegant solution to ignore click events of components in designer
|
||||
const ignoreSelectors: any = [
|
||||
'.next-input-group',
|
||||
'.next-checkbox-group',
|
||||
'.next-checkbox-wrapper',
|
||||
'.next-date-picker',
|
||||
'.next-input',
|
||||
'.next-month-picker',
|
||||
@ -1038,7 +1053,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
const locationData = {
|
||||
target: container as ParentalNode,
|
||||
detail,
|
||||
source: `simulator${ document.id}`,
|
||||
source: `simulator${document.id}`,
|
||||
event: e,
|
||||
};
|
||||
|
||||
@ -1051,7 +1066,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
return this.designer.createLocation({
|
||||
target: document.rootNode,
|
||||
detail,
|
||||
source: `simulator${ document.id}`,
|
||||
source: `simulator${document.id}`,
|
||||
event: e,
|
||||
});
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ export class ComponentMeta {
|
||||
return this._npm;
|
||||
}
|
||||
|
||||
set npm(_npm) {
|
||||
set npm(_npm: any) {
|
||||
this.setNpm(_npm);
|
||||
}
|
||||
|
||||
@ -167,7 +167,7 @@ export class ComponentMeta {
|
||||
|
||||
private parseMetadata(metadata: ComponentMetadata) {
|
||||
const { componentName, npm } = metadata;
|
||||
this._npm = npm;
|
||||
this._npm = npm || this._npm;
|
||||
this._componentName = componentName;
|
||||
|
||||
// 额外转换逻辑
|
||||
|
||||
@ -172,7 +172,10 @@ hotkey.bind(['command+z', 'ctrl+z'], (e) => {
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
const selection = focusing.focusDesigner?.currentSelection;
|
||||
const curSelected = Array.from(selection?.selected!);
|
||||
his.back();
|
||||
selection?.selectAll(curSelected);
|
||||
});
|
||||
|
||||
// command + shift + z redo
|
||||
@ -183,8 +186,10 @@ hotkey.bind(['command+y', 'ctrl+y', 'command+shift+z'], (e) => {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
|
||||
const selection = focusing.focusDesigner?.currentSelection;
|
||||
const curSelected = Array.from(selection?.selected!);
|
||||
his.forward();
|
||||
selection?.selectAll(curSelected);
|
||||
});
|
||||
|
||||
// sibling selection
|
||||
|
||||
@ -11,6 +11,7 @@ import {
|
||||
isNodeSchema,
|
||||
NodeSchema,
|
||||
} from '@ali/lowcode-types';
|
||||
import { megreAssets, AssetsJson } from '@ali/lowcode-utils';
|
||||
import { Project } from '../project';
|
||||
import { Node, DocumentModel, insertChildren, isRootNode, ParentalNode, TransformStage } from '../document';
|
||||
import { ComponentMeta } from '../component-meta';
|
||||
@ -373,6 +374,27 @@ export class Designer {
|
||||
this.props = props;
|
||||
}
|
||||
|
||||
async loadIncrementalAssets(incrementalAssets: AssetsJson): Promise<void> {
|
||||
const { components, packages } = incrementalAssets;
|
||||
components && this.buildComponentMetasMap(components);
|
||||
if (packages) {
|
||||
await this.project.simulator!.setupComponents(packages);
|
||||
}
|
||||
|
||||
if (components) {
|
||||
// 合并assets
|
||||
let assets = this.editor.get('assets');
|
||||
let newAssets = megreAssets(assets, incrementalAssets);
|
||||
this.editor.set('assets', newAssets);
|
||||
}
|
||||
// TODO: 因为涉及修改 prototype.view,之后在 renderer 里修改了 vc 的 view 获取逻辑后,可删除
|
||||
this._componentMetasMap = new Map(this._componentMetasMap);
|
||||
// 完成加载增量资源后发送事件,方便插件监听并处理相关逻辑
|
||||
this.editor.emit('designer.incrementalAssetsReady');
|
||||
|
||||
}
|
||||
|
||||
|
||||
get(key: string): any {
|
||||
return this.props ? this.props[key] : null;
|
||||
}
|
||||
@ -411,7 +433,7 @@ export class Designer {
|
||||
this.project.load(schema);
|
||||
}
|
||||
|
||||
@obx.val private _componentMetasMap = new Map<string, ComponentMeta>();
|
||||
@obx.ref private _componentMetasMap = new Map<string, ComponentMeta>();
|
||||
|
||||
private _lostComponentMetasMap = new Map<string, ComponentMeta>();
|
||||
|
||||
|
||||
@ -117,9 +117,26 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
||||
this.disposeItems();
|
||||
}
|
||||
|
||||
// ======= compatibles for vision ======
|
||||
|
||||
getConfig<K extends keyof FieldConfig>(configName?: K): FieldConfig[K] | FieldConfig {
|
||||
if (configName) {
|
||||
return this.config[configName];
|
||||
}
|
||||
return this._config;
|
||||
}
|
||||
|
||||
getItems(filter?: (item: SettingField | CustomView) => boolean): Array<SettingField | CustomView> {
|
||||
return this._items.filter(item => {
|
||||
if (filter) {
|
||||
return filter(item);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
private hotValue: any;
|
||||
|
||||
// ======= compatibles for vision ======
|
||||
setValue(val: any, isHotValue?: boolean, force?: boolean, extraOptions?: any) {
|
||||
if (isHotValue) {
|
||||
this.setHotValue(val, extraOptions);
|
||||
|
||||
@ -21,11 +21,12 @@ export type GetDataType<T, NodeType> = T extends undefined
|
||||
|
||||
export interface ComponentMap {
|
||||
componentName: string;
|
||||
package: string;
|
||||
package?: string;
|
||||
version?: string;
|
||||
destructuring?: boolean;
|
||||
exportName?: string;
|
||||
subName?: string;
|
||||
devMode?: 'lowcode' | 'procode';
|
||||
}
|
||||
|
||||
export class DocumentModel {
|
||||
@ -637,26 +638,33 @@ export class DocumentModel {
|
||||
getComponentsMap(extraComps?: string[]) {
|
||||
const componentsMap: ComponentMap[] = [];
|
||||
// 组件去重
|
||||
const map: any = {};
|
||||
const exsitingMap: { [componentName: string]: boolean } = {};
|
||||
for (const node of this._nodesMap.values()) {
|
||||
const { componentName } = node || {};
|
||||
if (!map[componentName] && node.componentMeta?.npm?.package) {
|
||||
map[componentName] = true;
|
||||
componentsMap.push({
|
||||
...node.componentMeta.npm,
|
||||
componentName,
|
||||
});
|
||||
if (!exsitingMap[componentName]) {
|
||||
exsitingMap[componentName] = true;
|
||||
if (node.componentMeta?.npm?.package) {
|
||||
componentsMap.push({
|
||||
...node.componentMeta.npm,
|
||||
componentName,
|
||||
});
|
||||
} else {
|
||||
componentsMap.push({
|
||||
devMode: 'lowcode',
|
||||
componentName,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
// 合并外界传入的自定义渲染的组件
|
||||
if (Array.isArray(extraComps)) {
|
||||
extraComps.forEach(c => {
|
||||
if (c && !map[c]) {
|
||||
if (c && !exsitingMap[c]) {
|
||||
const m = this.getComponentMeta(c);
|
||||
if (m && m.npm?.package) {
|
||||
componentsMap.push({
|
||||
...m?.npm,
|
||||
componentName: c,
|
||||
package: m.npm?.package,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -802,20 +802,13 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
||||
}
|
||||
|
||||
insertBefore(node: Node, ref?: Node, useMutator = true) {
|
||||
this.children?.insert(node, ref ? ref.index : null, useMutator);
|
||||
const nodeInstance = ensureNode(node, this.document);
|
||||
this.children?.insert(nodeInstance, ref ? ref.index : null, useMutator);
|
||||
}
|
||||
|
||||
insertAfter(node: any, ref?: Node, useMutator = true) {
|
||||
if (!isNode(node)) {
|
||||
if (node.getComponentName) {
|
||||
node = this.document.createNode({
|
||||
componentName: node.getComponentName(),
|
||||
});
|
||||
} else {
|
||||
node = this.document.createNode(node);
|
||||
}
|
||||
}
|
||||
this.children?.insert(node, ref ? ref.index + 1 : null, useMutator);
|
||||
const nodeInstance = ensureNode(node, this.document);
|
||||
this.children?.insert(nodeInstance, ref ? ref.index + 1 : null, useMutator);
|
||||
}
|
||||
|
||||
getParent() {
|
||||
@ -903,6 +896,11 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
||||
* @deprecated
|
||||
*/
|
||||
getSuitablePlace(node: Node, ref: any): any {
|
||||
// 如果节点是模态框,插入到根节点下
|
||||
if (node?.componentMeta?.isModal) {
|
||||
return { container: this.document.rootNode, ref };
|
||||
}
|
||||
|
||||
if (this.isRoot() && this.children) {
|
||||
const dropElement = this.children.filter((c: Node) => {
|
||||
if (!c.isContainer()) {
|
||||
@ -929,10 +927,6 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (node.componentMeta?.getMetadata().configure.component?.isModal) {
|
||||
return { container: this.document.rootNode, ref };
|
||||
}
|
||||
|
||||
const canDropIn = this.componentMeta?.prototype?.options?.canDropIn;
|
||||
if (this.isContainer()) {
|
||||
if (canDropIn === undefined ||
|
||||
@ -1001,6 +995,20 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
||||
}
|
||||
}
|
||||
|
||||
function ensureNode(node: any, document: DocumentModel): Node {
|
||||
let nodeInstance = node;
|
||||
if (!isNode(node)) {
|
||||
if (node.getComponentName) {
|
||||
nodeInstance = document.createNode({
|
||||
componentName: node.getComponentName(),
|
||||
});
|
||||
} else {
|
||||
nodeInstance = document.createNode(node);
|
||||
}
|
||||
}
|
||||
return nodeInstance;
|
||||
}
|
||||
|
||||
export interface ParentalNode<T extends NodeSchema = NodeSchema> extends Node<T> {
|
||||
readonly children: NodeChildren;
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ export class Prop implements IPropParent {
|
||||
}
|
||||
|
||||
if (type === 'slot') {
|
||||
const schema = this._slotNode?.export(stage) || {};
|
||||
const schema = this._slotNode?.export(stage) || {} as any;
|
||||
if (stage === TransformStage.Render) {
|
||||
return {
|
||||
type: 'JSSlot',
|
||||
|
||||
@ -4,9 +4,20 @@ export function isElementNode(domNode: Element) {
|
||||
return domNode.nodeType === Node.ELEMENT_NODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断节点是否在 viewport 内,判断依据:只要节点有一部分在 viewport 内,都算 true,其余情况 false
|
||||
* @param domNode 待检测的节点
|
||||
* @param viewport 画布 viewport
|
||||
* @returns 是否在 viewport 内
|
||||
*/
|
||||
export function isDOMNodeVisible(domNode: Element, viewport: Viewport) {
|
||||
const domNodeRect = domNode.getBoundingClientRect();
|
||||
const { width, height } = viewport.contentBounds;
|
||||
const { left, right, top, bottom } = domNodeRect;
|
||||
return left >= 0 && top >= 0 && bottom <= height && right <= width;
|
||||
}
|
||||
const { left, right, top, bottom, width: nodeWidth, height: nodeHeight } = domNodeRect;
|
||||
return (
|
||||
left >= -nodeWidth &&
|
||||
top >= -nodeHeight &&
|
||||
bottom <= height + nodeHeight &&
|
||||
right <= width + nodeWidth
|
||||
);
|
||||
}
|
||||
|
||||
@ -2,7 +2,64 @@
|
||||
|
||||
exports[`document-model 测试 各种方法测试 1`] = `
|
||||
Object {
|
||||
"componentsMap": Array [],
|
||||
"componentsMap": Array [
|
||||
Object {
|
||||
"componentName": "PageHeader",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "RootHeader",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "TextField",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "Column",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "SelectField",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "ColumnsLayout",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "CardContent",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "Card",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "Button",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "Div",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "Form",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "RootContent",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "RootFooter",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
Object {
|
||||
"componentName": "Page",
|
||||
"devMode": "lowcode",
|
||||
},
|
||||
],
|
||||
"componentsTree": Array [
|
||||
Object {
|
||||
"children": Array [
|
||||
|
||||
@ -161,10 +161,16 @@ describe('document-model 测试', () => {
|
||||
designer.createComponentMeta(divMeta);
|
||||
designer.createComponentMeta(otherMeta);
|
||||
const doc = new DocumentModel(project, formSchema);
|
||||
expect(doc.getComponentsMap(['Other'])).toEqual([
|
||||
{ componentName: 'Div', package: '@ali/vc-div' },
|
||||
{ componentName: 'Other', package: '@ali/vc-other' },
|
||||
]);
|
||||
const comps = doc.getComponentsMap(['Other']);
|
||||
expect(comps.find(comp => comp.componentName === 'Div')).toEqual(
|
||||
{ componentName: 'Div', package: '@ali/vc-div' }
|
||||
);
|
||||
expect(comps.find(comp => comp.componentName === 'Other')).toEqual(
|
||||
{ componentName: 'Other', package: '@ali/vc-other' }
|
||||
);
|
||||
expect(comps.find(comp => comp.componentName === 'Page')).toEqual(
|
||||
{ componentName: 'Page', devMode: 'lowcode' }
|
||||
);
|
||||
});
|
||||
|
||||
it('acceptRootNodeVisitor / getRootNodeVisitor', () => {
|
||||
|
||||
@ -20,7 +20,7 @@ exports[`valueToSource 5`] = `
|
||||
|
||||
exports[`valueToSource 6`] = `"null"`;
|
||||
|
||||
exports[`valueToSource 7`] = `"function haha() {}"`;
|
||||
exports[`valueToSource 7`] = `"() => {}"`;
|
||||
|
||||
exports[`valueToSource 8`] = `"new Map()"`;
|
||||
|
||||
|
||||
2
packages/designer/tests/fixtures/window.ts
vendored
2
packages/designer/tests/fixtures/window.ts
vendored
@ -18,3 +18,5 @@ Object.defineProperty(window, 'React', {
|
||||
});
|
||||
|
||||
window.scrollTo = () => {};
|
||||
|
||||
window.console.warn = () => {};
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-core
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-editor-core",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Core Api for Ali lowCode engine",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
@ -14,8 +14,8 @@
|
||||
"cloud-build": "build-scripts build --skip-demo"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@alifd/next": "^1.19.16",
|
||||
"@recore/obx": "^1.0.9",
|
||||
"@recore/obx-react": "^1.0.8",
|
||||
@ -41,5 +41,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-editor-preset-general",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Ali General Editor Preset",
|
||||
"main": "lib/index.js",
|
||||
"private": true,
|
||||
@ -15,12 +15,12 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-skeleton": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-plugin-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-plugin-outline-pane": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"@ali/lowcode-editor-skeleton": "1.0.44",
|
||||
"@ali/lowcode-plugin-designer": "1.0.44",
|
||||
"@ali/lowcode-plugin-outline-pane": "1.0.44",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@alifd/next": "^1.19.12",
|
||||
"@alife/theme-lowcode-dark": "^0.1.0",
|
||||
"@alife/theme-lowcode-light": "^0.1.0",
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-preset-vision
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-editor-preset-vision",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Preset Vision for AliLowCode engine",
|
||||
"main": "lib/index.js",
|
||||
"private": true,
|
||||
@ -18,13 +18,13 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ali/lowcode-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-designer": "1.0.44",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"@ali/lowcode-editor-setters": "1.0.30",
|
||||
"@ali/lowcode-editor-skeleton": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-plugin-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-plugin-outline-pane": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-skeleton": "1.0.44",
|
||||
"@ali/lowcode-plugin-designer": "1.0.44",
|
||||
"@ali/lowcode-plugin-outline-pane": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@ali/ve-i18n-util": "^2.0.0",
|
||||
"@ali/ve-icons": "^4.1.9",
|
||||
"@ali/ve-less-variables": "2.0.3",
|
||||
|
||||
@ -3,6 +3,208 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 增加 getConfig / getItems / selected 等兼容 vision 的 API ([9a3352b](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/9a3352b05411b23a831bcbea056642413c19c36e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复array-setter 初始化重复多次执行onChange ([e8f83fc](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e8f83fc4b39d8591eb662e53f95619743b6da5eb))
|
||||
* 修复arraysetter 初始化重复执行onChange问题 ([0486dbb](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/0486dbb320f63c6ebf9448c97c20cc37feb1d9dd))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-editor-skeleton
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-editor-skeleton",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "alibaba lowcode editor skeleton",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -19,10 +19,10 @@
|
||||
"editor"
|
||||
],
|
||||
"dependencies": {
|
||||
"@ali/lowcode-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-designer": "1.0.44",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@ali/ve-icons": "latest",
|
||||
"@ali/ve-less-variables": "^2.0.0",
|
||||
"@alifd/next": "^1.20.12",
|
||||
@ -42,5 +42,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -48,7 +48,8 @@ export class ListSetter extends Component<ArraySetterProps, ArraySetterState> {
|
||||
setter: props.itemSetter,
|
||||
// FIXME:
|
||||
forceInline: 1,
|
||||
setValue: () => setTimeout(() => ListSetter.onItemChange(onChange, items)),
|
||||
// setValue: () => setTimeout(() => ListSetter.onItemChange(onChange, items)),
|
||||
setValue: props.prop?.extraProps?.setValue,
|
||||
});
|
||||
item.setValue(value[i]);
|
||||
items[i] = item;
|
||||
|
||||
@ -124,6 +124,7 @@ class SettingFieldView extends Component<{ field: SettingField }> {
|
||||
key: field.id,
|
||||
// === injection
|
||||
prop: field, // for compatible vision
|
||||
selected: field.top?.getNode(),
|
||||
field,
|
||||
// === IO
|
||||
value, // reaction point
|
||||
|
||||
@ -3,6 +3,204 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 以字符串注册 editor 实例 ([b9c5b3a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b9c5b3a0fdbc11ee287befae1eb3864ed761831b))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-engine
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-engine",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Universal API for AliLowCode engine",
|
||||
"main": "lib/engine.js",
|
||||
"module": "es/engine.js",
|
||||
@ -18,14 +18,14 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ali/lowcode-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-designer": "1.0.44",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"@ali/lowcode-editor-setters": "1.0.30",
|
||||
"@ali/lowcode-editor-skeleton": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-skeleton": "1.0.44",
|
||||
"@ali/lowcode-engine-ext": "^1.0.0",
|
||||
"@ali/lowcode-plugin-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-plugin-outline-pane": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-plugin-designer": "1.0.44",
|
||||
"@ali/lowcode-plugin-outline-pane": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@ali/ve-i18n-util": "^2.0.0",
|
||||
"@ali/ve-icons": "^4.1.9",
|
||||
"@ali/ve-less-variables": "2.0.3",
|
||||
@ -59,5 +59,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ registerDefaults();
|
||||
|
||||
const editor = new Editor();
|
||||
globalContext.register(editor, Editor);
|
||||
globalContext.register(editor, 'editor');
|
||||
|
||||
const skeleton = new Skeleton(editor);
|
||||
editor.set(Skeleton, skeleton);
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-ignitor
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
},
|
||||
"vendor": false,
|
||||
"devServer": {
|
||||
"useLocalIp": true,
|
||||
"liveReload": false,
|
||||
"hot": false
|
||||
},
|
||||
"publicPath": "/",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-ignitor",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "点火器,bootstrap lce project",
|
||||
"main": "lib/index.js",
|
||||
"private": true,
|
||||
@ -10,8 +10,7 @@
|
||||
"lib"
|
||||
],
|
||||
"scripts": {
|
||||
"start": "build-scripts start --disable-open",
|
||||
"build": "build-scripts build"
|
||||
"start": "build-scripts start --disable-open"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-plugin-designer",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "alibaba lowcode editor designer plugin",
|
||||
"files": [
|
||||
"es",
|
||||
@ -20,7 +20,7 @@
|
||||
],
|
||||
"author": "xiayang.xy",
|
||||
"dependencies": {
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"react": "^16.8.1",
|
||||
"react-dom": "^16.8.1"
|
||||
},
|
||||
@ -33,5 +33,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-plugin-outline-pane",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Outline pane for Ali lowCode engine",
|
||||
"files": [
|
||||
"es",
|
||||
@ -14,10 +14,10 @@
|
||||
"test:snapshot": "ava --update-snapshots"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-designer": "1.0.44",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@alifd/next": "^1.19.16",
|
||||
"classnames": "^2.2.6",
|
||||
"react": "^16",
|
||||
@ -47,5 +47,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-renderer
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-rax-renderer",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Rax renderer for Ali lowCode engine",
|
||||
"main": "lib/index.js",
|
||||
"module": "lib/index.js",
|
||||
@ -30,8 +30,8 @@
|
||||
"build": "build-scripts build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-renderer-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-renderer-core": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"rax-find-dom-node": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -44,5 +44,5 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-renderer@0.1.2/build/index.html",
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -3,6 +3,216 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 解决 radio 组件无法删除, 且影响其他组件也无法删除的问题 ([f2ce27c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f2ce27c811667d7bd41cbdb41cfbc9d7c7330f8f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([f6fd095](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f6fd095db2ff01454257a1322ad695d89c139f1a))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add deviceStyle props ([1a09282](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1a09282bfae8bbbd3a2af32a68cd28276b03129f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-rax-simulator-renderer
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-rax-simulator-renderer",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "rax simulator renderer for alibaba lowcode designer",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -13,10 +13,10 @@
|
||||
"test:snapshot": "ava --update-snapshots"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-rax-renderer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-designer": "1.0.44",
|
||||
"@ali/lowcode-rax-renderer": "1.0.44",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@ali/recore-rax": "^1.2.4",
|
||||
"@ali/vu-css-style": "^1.0.2",
|
||||
"@recore/obx": "^1.0.8",
|
||||
@ -57,6 +57,6 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.37/build/index.html",
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.44-beta.1/build/index.html",
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { BuiltinSimulatorRenderer, Component, DocumentModel, Node, NodeInstance } from '@ali/lowcode-designer';
|
||||
import { ComponentSchema, NodeSchema, NpmInfo, RootSchema, TransformStage } from '@ali/lowcode-types';
|
||||
import { Asset, cursor, isElement, isESModule, isReactComponent, setNativeSelection } from '@ali/lowcode-utils';
|
||||
import { Asset, compatibleLegaoSchema, cursor, isElement, isESModule, isPlainObject, isReactComponent, setNativeSelection } from '@ali/lowcode-utils';
|
||||
import LowCodeRenderer from '@ali/lowcode-rax-renderer';
|
||||
import { computed, obx } from '@recore/obx';
|
||||
import DriverUniversal from 'driver-universal';
|
||||
@ -493,7 +493,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
|
||||
createComponent(schema: NodeSchema): Component | null {
|
||||
const _schema: any = {
|
||||
...schema,
|
||||
...compatibleLegaoSchema(schema),
|
||||
};
|
||||
_schema.methods = {};
|
||||
_schema.lifeCycles = {};
|
||||
@ -513,8 +513,10 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
|
||||
class LowCodeComp extends Rax.Component {
|
||||
render() {
|
||||
const extraProps = getLowCodeComponentProps(this.props);
|
||||
// @ts-ignore
|
||||
return createElement(LowCodeRenderer, {
|
||||
...extraProps,
|
||||
schema: _schema,
|
||||
components,
|
||||
designMode: renderer.designMode,
|
||||
@ -620,4 +622,18 @@ function findComponent(libraryMap: LibraryMap, componentName: string, npm?: NpmI
|
||||
return getSubComponent(library, paths);
|
||||
}
|
||||
|
||||
function getLowCodeComponentProps(props: any) {
|
||||
if (!props || !isPlainObject(props)) {
|
||||
return props;
|
||||
}
|
||||
const newProps: any = {};
|
||||
Object.keys(props).forEach(k => {
|
||||
if (['children', 'componentId', '__designMode', '_componentName', '_leaf'].includes(k)) {
|
||||
return;
|
||||
}
|
||||
newProps[k] = props[k];
|
||||
});
|
||||
return newProps;
|
||||
}
|
||||
|
||||
export default new SimulatorRendererContainer();
|
||||
|
||||
@ -3,6 +3,201 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-renderer
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-react-renderer",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "react renderer for ali lowcode engine",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -23,7 +23,7 @@
|
||||
"react"
|
||||
],
|
||||
"dependencies": {
|
||||
"@ali/lowcode-renderer-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-renderer-core": "1.0.44",
|
||||
"@alifd/next": "^1.21.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -41,5 +41,5 @@
|
||||
"registry": "http://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@1.0.21/build/index.html",
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -3,6 +3,219 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 调整 components 触发视图刷新的机制, designer _componentMetasMap 引用更新才触发 renderer components 更新 ([a9cead0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a9cead0339e253752c7bbd33c069286335a4a671))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 移除 renderer 内 components 的响应式逻辑 ([c02f0ec](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c02f0ec8374406e2d916fcc2a23c7f88b52ab80d))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复无法获取 libraryMap ([393d9ce](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/393d9cebf82026f1501fc653377e949c2b703584))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 异步加载asset ([a5ca12a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a5ca12ab691f611dd706ac295ee3cc4965701ca3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-react-simulator-renderer
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-react-simulator-renderer",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "react simulator renderer for alibaba lowcode designer",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
@ -16,10 +16,10 @@
|
||||
"build": "build-scripts build --skip-demo"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-react-renderer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-designer": "1.0.44",
|
||||
"@ali/lowcode-react-renderer": "1.0.44",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@ali/vu-css-style": "^1.0.2",
|
||||
"@recore/obx": "^1.0.8",
|
||||
"@recore/obx-react": "^1.0.7",
|
||||
@ -48,5 +48,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -142,6 +142,7 @@ class Renderer extends Component<{
|
||||
const messages = container.context?.utils?.i18n?.messages || {};
|
||||
|
||||
return (
|
||||
// @ts-ignore
|
||||
<LowCodeRenderer
|
||||
locale={locale}
|
||||
messages={messages}
|
||||
|
||||
@ -12,7 +12,12 @@ import {
|
||||
setNativeSelection,
|
||||
buildComponents,
|
||||
getSubComponent,
|
||||
compatibleLegaoSchema,
|
||||
isPlainObject,
|
||||
AssetLoader,
|
||||
|
||||
} from '@ali/lowcode-utils';
|
||||
|
||||
import { RootSchema, ComponentSchema, TransformStage, NodeSchema } from '@ali/lowcode-types';
|
||||
// import { isESModule, isElement, acceptsRef, wrapReactClass, cursor, setNativeSelection } from '@ali/lowcode-utils';
|
||||
// import { RootSchema, NpmInfo, ComponentSchema, TransformStage, NodeSchema } from '@ali/lowcode-types';
|
||||
@ -23,7 +28,7 @@ import { createMemoryHistory, MemoryHistory } from 'history';
|
||||
import Slot from './builtin-components/slot';
|
||||
import Leaf from './builtin-components/leaf';
|
||||
import { withQueryParams, parseQuery } from './utils/url';
|
||||
|
||||
const loader = new AssetLoader();
|
||||
export class DocumentInstance {
|
||||
private instancesMap = new Map<string, ReactInstance[]>();
|
||||
|
||||
@ -41,13 +46,6 @@ export class DocumentInstance {
|
||||
});
|
||||
}
|
||||
|
||||
// private _libraryMap: { [key: string]: string } = {};
|
||||
// private buildComponents() {
|
||||
// this._components = {
|
||||
// ...builtinComponents,
|
||||
// ...buildComponents(this._libraryMap, this._componentsMap),
|
||||
// };
|
||||
// }
|
||||
@obx.ref private _components: any = {};
|
||||
|
||||
@computed get components(): object {
|
||||
@ -96,7 +94,7 @@ export class DocumentInstance {
|
||||
}
|
||||
|
||||
get path(): string {
|
||||
return `/${ this.document.fileName}`;
|
||||
return `/${this.document.fileName}`;
|
||||
}
|
||||
|
||||
get id() {
|
||||
@ -305,16 +303,15 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
private _libraryMap: { [key: string]: string } = {};
|
||||
|
||||
private buildComponents() {
|
||||
// TODO: remove this.createComponent
|
||||
this._components = buildComponents(this._libraryMap, this._componentsMap, this.createComponent.bind(this));
|
||||
this._components = {
|
||||
...builtinComponents,
|
||||
...this._components,
|
||||
};
|
||||
}
|
||||
@obx.ref private _components: any = {};
|
||||
private _components: any = {};
|
||||
|
||||
@computed get components(): object {
|
||||
get components(): object {
|
||||
// 根据 device 选择不同组件,进行响应式
|
||||
// 更好的做法是,根据 device 选择加载不同的组件资源,甚至是 simulatorUrl
|
||||
return this._components;
|
||||
@ -343,9 +340,14 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
/**
|
||||
* 加载资源
|
||||
*/
|
||||
// load(asset: Asset): Promise<any> {
|
||||
// return loader.load(asset);
|
||||
// }
|
||||
load(asset: Asset): Promise<any> {
|
||||
return loader.load(asset);
|
||||
}
|
||||
|
||||
async loadAsyncLibrary(asyncLibraryMap) {
|
||||
await loader.loadAsyncLibrary(asyncLibraryMap);
|
||||
this.buildComponents();
|
||||
}
|
||||
|
||||
getComponent(componentName: string) {
|
||||
const paths = componentName.split('.');
|
||||
@ -396,7 +398,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
|
||||
createComponent(schema: NodeSchema): Component | null {
|
||||
const _schema: any = {
|
||||
...schema,
|
||||
...compatibleLegaoSchema(schema),
|
||||
};
|
||||
_schema.methods = {};
|
||||
_schema.lifeCycles = {};
|
||||
@ -415,8 +417,10 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
|
||||
class LowCodeComp extends React.Component {
|
||||
render() {
|
||||
const extraProps = getLowCodeComponentProps(this.props);
|
||||
// @ts-ignore
|
||||
return createElement(LowCodeRenderer, {
|
||||
...extraProps, // 防止覆盖下面内置属性
|
||||
schema: _schema,
|
||||
components,
|
||||
designMode: renderer.designMode,
|
||||
@ -543,4 +547,18 @@ function checkInstanceMounted(instance: any): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
function getLowCodeComponentProps(props: any) {
|
||||
if (!props || !isPlainObject(props)) {
|
||||
return props;
|
||||
}
|
||||
const newProps: any = {};
|
||||
Object.keys(props).forEach(k => {
|
||||
if (['children', 'componentId', '__designMode', '_componentName', '_leaf'].includes(k)) {
|
||||
return;
|
||||
}
|
||||
newProps[k] = props[k];
|
||||
});
|
||||
return newProps;
|
||||
}
|
||||
|
||||
export default new SimulatorRendererContainer();
|
||||
|
||||
@ -3,6 +3,210 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* renderer-core 在非设计渲染态时, 不应处理 hidden 属性 ([7857096](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7857096c0f56308195cc9e27de4f549eee72a10e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-renderer-core
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-renderer-core",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "renderer core",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
@ -45,5 +45,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -365,7 +365,7 @@ export default function baseRenererFactory() {
|
||||
if (!isSchema(schema)) return null;
|
||||
let Comp = components[schema.componentName] || engine.getNotFoundComponent();
|
||||
|
||||
if (schema.hidden) {
|
||||
if (schema.hidden && engine?.props?.designMode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@ -412,7 +412,7 @@ export function parseData(schema: any, self: any): any {
|
||||
return schema;
|
||||
}
|
||||
|
||||
/* 全匹配{{开头,}}结尾的变量表达式,或者对象类型JSExpression,且均不支持省略this */
|
||||
/* 全匹配{{开头,}}结尾的变量表达式,或者对象类型JSExpression,支持省略this */
|
||||
export function parseExpression(str: any, self: any) {
|
||||
try {
|
||||
const contextArr = ['"use strict";', 'var __self = arguments[0];'];
|
||||
@ -431,7 +431,8 @@ export function parseExpression(str: any, self: any) {
|
||||
if (inSameDomain() && (window.parent as any).__newFunc) {
|
||||
return (window.parent as any).__newFunc(tarStr)(self);
|
||||
}
|
||||
return new Function(tarStr)(self);
|
||||
const code = `with($scope || {}) { ${tarStr} }`;
|
||||
return new Function('$scope', code)(self);
|
||||
} catch (err) {
|
||||
debug('parseExpression.error', err, str, self);
|
||||
return undefined;
|
||||
|
||||
@ -3,6 +3,207 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* componentsMap 中加入低代码组件信息 ([b7c1183](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/b7c11834602d8e4ea84d2dea035a3abf97b33d5c))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* renderer-core 在非设计渲染态时, 不应处理 hidden 属性 ([7857096](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7857096c0f56308195cc9e27de4f549eee72a10e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-types
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-types",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Types for Ali lowCode engine",
|
||||
"files": [
|
||||
"es",
|
||||
@ -37,5 +37,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@ import { ReactNode, ComponentType } from 'react';
|
||||
import { NpmInfo } from './npm';
|
||||
import { RegisterOptions } from 'power-di';
|
||||
|
||||
export type KeyType = new (...args: any[]) => any | symbol | string;
|
||||
export type KeyType = (new (...args: any[]) => any) | symbol | string;
|
||||
export type ClassType = new (...args: any[]) => any;
|
||||
export interface GetOptions {
|
||||
forceNew?: boolean;
|
||||
|
||||
@ -215,4 +215,4 @@ export interface Callbacks {
|
||||
},
|
||||
currentNode: any,
|
||||
) => void;
|
||||
}
|
||||
}
|
||||
@ -63,6 +63,7 @@ export interface JSSlot {
|
||||
// 函数的入参
|
||||
params?: string[];
|
||||
value?: NodeData[] | NodeData;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface JSBlock {
|
||||
|
||||
@ -3,6 +3,213 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([f6fd095](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f6fd095db2ff01454257a1322ad695d89c139f1a))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 异步加载asset ([a5ca12a](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/a5ca12ab691f611dd706ac295ee3cc4965701ca3))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-utils
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-utils",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Utils for Ali lowCode engine",
|
||||
"files": [
|
||||
"es",
|
||||
@ -14,7 +14,7 @@
|
||||
"test:snapshot": "ava --update-snapshots"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-types": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-types": "1.0.44",
|
||||
"@alifd/next": "^1.19.16",
|
||||
"lodash.get": "^4.4.2",
|
||||
"react": "^16"
|
||||
@ -38,5 +38,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -54,6 +54,13 @@ export type Asset = AssetList | AssetBundle | AssetItem | URL;
|
||||
|
||||
export type AssetList = Array<Asset | undefined | null>;
|
||||
|
||||
export interface AssetsJson {
|
||||
packages: Array;
|
||||
components: Array;
|
||||
componentList?: Array;
|
||||
bizComponentList?: Array
|
||||
}
|
||||
|
||||
export function isAssetItem(obj: any): obj is AssetItem {
|
||||
return obj && obj.type;
|
||||
}
|
||||
@ -93,6 +100,46 @@ export function assetItem(type: AssetType, content?: string | null, level?: Asse
|
||||
};
|
||||
}
|
||||
|
||||
export function megreAssets(assets: AssetsJson, increaseAssets: AssetsJson): AssetsJson {
|
||||
if (!increaseAssets.packages) {
|
||||
console.error('assets must have packages');
|
||||
}
|
||||
|
||||
if (!increaseAssets.components) {
|
||||
console.error('assets must have components');
|
||||
}
|
||||
|
||||
assets.packages = [...assets.packages, ...increaseAssets.packages];
|
||||
assets.components = [...assets.components, ...increaseAssets.components];
|
||||
|
||||
megreAssetsComponentList(assets, increaseAssets, 'componentList');
|
||||
megreAssetsComponentList(assets, increaseAssets, 'bizComponentList');
|
||||
|
||||
return assets;
|
||||
}
|
||||
|
||||
function megreAssetsComponentList(assets: AssetsJson, increaseAssets: AssetsJson, listName: String): void {
|
||||
if (increaseAssets[listName]) {
|
||||
if (assets[listName]) {
|
||||
// 根据title进行合并
|
||||
increaseAssets[listName].map((item) => {
|
||||
let matchFlag = false;
|
||||
assets[listName].map((assetItem) => {
|
||||
if (assetItem.title === item.title) {
|
||||
assetItem.children = assetItem.children.concat(item.children);
|
||||
matchFlag = true;
|
||||
}
|
||||
|
||||
return assetItem;
|
||||
});
|
||||
|
||||
!matchFlag && assets[listName].push(item);
|
||||
return item;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class StylePoint {
|
||||
private lastContent: string | undefined;
|
||||
|
||||
|
||||
@ -21,3 +21,4 @@ export * from './unique-id';
|
||||
export * from './build-components';
|
||||
export * from './appHelper';
|
||||
export * from './misc';
|
||||
export * from './schema';
|
||||
|
||||
@ -2,6 +2,15 @@
|
||||
import { isI18NObject } from './is-object';
|
||||
import get from 'lodash.get';
|
||||
import { ComponentMeta } from '@ali/lowcode-designer';
|
||||
interface Variable {
|
||||
type: 'variable';
|
||||
variable: string;
|
||||
value: any;
|
||||
}
|
||||
|
||||
export function isVariable(obj: any): obj is Variable {
|
||||
return obj && obj.type === 'variable';
|
||||
}
|
||||
|
||||
export function isUseI18NSetter(prototype: any, propName: string) {
|
||||
const configure = prototype?.options?.configure;
|
||||
|
||||
50
packages/utils/src/schema.ts
Normal file
50
packages/utils/src/schema.ts
Normal file
@ -0,0 +1,50 @@
|
||||
import { isJSBlock } from '@ali/lowcode-types';
|
||||
import { isVariable } from './misc';
|
||||
import { isPlainObject } from './is-plain-object';
|
||||
|
||||
export function compatibleLegaoSchema(props: any): any {
|
||||
if (!props) {
|
||||
return props;
|
||||
}
|
||||
|
||||
if (Array.isArray(props)) {
|
||||
return props.map(k => compatibleLegaoSchema(k));
|
||||
}
|
||||
|
||||
if (!isPlainObject(props)) {
|
||||
return props;
|
||||
}
|
||||
|
||||
if (isJSBlock(props)) {
|
||||
if (props.value.componentName === 'Slot') {
|
||||
return {
|
||||
type: 'JSSlot',
|
||||
title: (props.value.props as any)?.slotTitle,
|
||||
name: (props.value.props as any)?.slotName,
|
||||
value: props.value.children,
|
||||
};
|
||||
} else {
|
||||
return props.value;
|
||||
}
|
||||
}
|
||||
if (isVariable(props)) {
|
||||
return {
|
||||
type: 'JSExpression',
|
||||
value: props.variable,
|
||||
mock: props.value,
|
||||
};
|
||||
}
|
||||
const newProps: any = {};
|
||||
Object.keys(props).forEach((key) => {
|
||||
if (/^__slot__/.test(key) && props[key] === true) {
|
||||
return;
|
||||
}
|
||||
// TODO: 目前 dataSource 面板里既用到了 JSExpression,又用到了 variable,这里先都不处理,后面再重构
|
||||
if (key === 'dataSource') {
|
||||
newProps[key] = props[key];
|
||||
return;
|
||||
}
|
||||
newProps[key] = compatibleLegaoSchema(props[key]);
|
||||
});
|
||||
return newProps;
|
||||
}
|
||||
@ -3,6 +3,223 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.0.44](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.2...v1.0.44) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.1...v1.0.44-beta.2) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.44-beta.0...v1.0.44-beta.1) (2021-04-14)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.44-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43...v1.0.44-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.43-beta.0...v1.0.43) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.43-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42...v1.0.43-beta.0) (2021-04-13)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.1...v1.0.42) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.42-beta.0...v1.0.42-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.42-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41...v1.0.42-beta.0) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 升级和降级 schema 的操作都跳过数组, 因为 dataSource 和 ListSetter 都依赖了乐高的 schema 结构 ([1c430a2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/1c430a2e66343a8e433075fe7b472d8a06b02d98))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41) (2021-04-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* bypass dataSource ([3cb331d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3cb331dcbeee62959ef0b1614c6c3cb2bd3c1a3e))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.1...v1.0.41-beta.2) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.41-beta.0...v1.0.41-beta.1) (2021-04-06)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.41-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40...v1.0.41-beta.0) (2021-04-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复转换 schema 双向不对等的 bug ([5f85174](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/5f851740b30c306bdb686afa422df8630ba00b8a))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.1...v1.0.40) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.40-beta.0...v1.0.40-beta.1) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.40-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.5...v1.0.40-beta.0) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.4...v1.0.39-beta.5) (2021-03-31)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.3...v1.0.39-beta.4) (2021-03-30)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.2...v1.0.39-beta.3) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.39-beta.1...v1.0.39-beta.2) (2021-03-22)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.1) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.39-beta.0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.3...v1.0.39-beta.0) (2021-03-12)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.3) (2021-03-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复 overridePropsConfigure 失效的 bug ([7168a90](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7168a903ce8b4d5346b751dc812828199ae1b3b6))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.1...v1.0.38-beta.2) (2021-03-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 修复 overridePropsConfigure 失效的 bug ([7168a90](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/7168a903ce8b4d5346b751dc812828199ae1b3b6))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 低代码组件支持实时修改属性 ([e7b4e2c](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/e7b4e2cc9cf80bcc073c142d7b06a8e2be5895a5))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.0.38-beta.1](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/v1.0.38-beta.0...v1.0.38-beta.1) (2021-03-09)
|
||||
|
||||
**Note:** Version bump only for package @ali/lowcode-vision-polyfill
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ali/lowcode-vision-polyfill",
|
||||
"version": "1.0.38-beta.1",
|
||||
"version": "1.0.44",
|
||||
"description": "Vision Polyfill for Ali lowCode engine",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
@ -17,10 +17,10 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@ali/lowcode-designer": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-core": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-editor-skeleton": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-utils": "^1.0.38-beta.1",
|
||||
"@ali/lowcode-designer": "1.0.44",
|
||||
"@ali/lowcode-editor-core": "1.0.44",
|
||||
"@ali/lowcode-editor-skeleton": "1.0.44",
|
||||
"@ali/lowcode-utils": "1.0.44",
|
||||
"@ali/ve-i18n-util": "^2.0.0",
|
||||
"@ali/ve-icons": "^4.1.9",
|
||||
"@ali/ve-less-variables": "2.0.3",
|
||||
@ -54,5 +54,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"gitHead": "d4611b664b52603fab377608a60dc6d8c8aa9cac"
|
||||
"gitHead": "3bfd7df92985ec6c9d2ccb8ba95d7b0829fa2b1d"
|
||||
}
|
||||
|
||||
@ -74,10 +74,7 @@ const pages = Object.assign(project, {
|
||||
true,
|
||||
);
|
||||
|
||||
// FIXME: 根本原因应该是 propStash 导致的,这样可以避免页面加载之后就被标记为 isModified
|
||||
setTimeout(() => {
|
||||
project.currentDocument?.history.savePoint();
|
||||
}, 0);
|
||||
project.currentDocument?.history.savePoint();
|
||||
},
|
||||
addPage(data: OldPageData | RootSchema) {
|
||||
if (isPageDataV1(data)) {
|
||||
|
||||
@ -4,7 +4,7 @@ import {
|
||||
import { isJSExpression, isJSSlot } from '@ali/lowcode-types';
|
||||
import { Node } from '@ali/lowcode-designer';
|
||||
|
||||
export function compatibleReducer(props: any, node: Node) {
|
||||
export function compatibleReducer(props: any, node: Node): any {
|
||||
// 如果不是 vc 体系,不做这个兼容处理
|
||||
if (!node.componentMeta.prototype) {
|
||||
return props;
|
||||
@ -35,6 +35,11 @@ export function compatibleReducer(props: any, node: Node) {
|
||||
}
|
||||
const newProps: any = {};
|
||||
Object.entries<any>(props).forEach(([key, val]) => {
|
||||
// TODO: 目前 dataSource 面板里既用到了 JSExpression,又用到了 variable,这里先都不处理,后面再重构
|
||||
if (key === 'dataSource') {
|
||||
newProps[key] = props[key];
|
||||
return;
|
||||
}
|
||||
newProps[key] = compatibleReducer(val, node);
|
||||
});
|
||||
return newProps;
|
||||
|
||||
@ -1,17 +1,15 @@
|
||||
import {
|
||||
isPlainObject,
|
||||
} from '@ali/lowcode-utils';
|
||||
import { Node } from '@ali/lowcode-designer';
|
||||
import { isPlainObject, isVariable } from '@ali/lowcode-utils';
|
||||
import { isJSBlock } from '@ali/lowcode-types';
|
||||
import { isVariable } from '../utils';
|
||||
import { designerCabin } from '@ali/lowcode-engine';
|
||||
|
||||
const { getConvertedExtraKey } = designerCabin;
|
||||
|
||||
export function upgradePropsReducer(props: any) {
|
||||
export function upgradePropsReducer(props: any): any {
|
||||
if (!props || !isPlainObject(props)) {
|
||||
return props;
|
||||
}
|
||||
|
||||
if (isJSBlock(props)) {
|
||||
if (props.value.componentName === 'Slot') {
|
||||
return {
|
||||
|
||||
@ -1,14 +1,5 @@
|
||||
import { designer } from '@ali/lowcode-engine';
|
||||
|
||||
interface Variable {
|
||||
type: 'variable';
|
||||
variable: string;
|
||||
value: any;
|
||||
}
|
||||
|
||||
export function isVariable(obj: any): obj is Variable {
|
||||
return obj && obj.type === 'variable';
|
||||
}
|
||||
export { isVariable } from '@ali/lowcode-utils';
|
||||
|
||||
export function getCurrentFieldIds() {
|
||||
const fieldIds: any = [];
|
||||
|
||||
0
scripts/start-server.sh
Executable file → Normal file
0
scripts/start-server.sh
Executable file → Normal file
@ -1,3 +1,4 @@
|
||||
module.exports = {
|
||||
eslintType: 'typescript/react',
|
||||
enableStylelint: false,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user