mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 08:58:15 +00:00
fix: 修复转换 schema 双向不对等的 bug
This commit is contained in:
parent
2ab953db61
commit
5f851740b3
@ -9,9 +9,12 @@ export function compatibleReducer(props: any, node: Node) {
|
||||
if (!node.componentMeta.prototype) {
|
||||
return props;
|
||||
}
|
||||
if (!props || !isPlainObject(props)) {
|
||||
if (!props || !(isPlainObject(props) || Array.isArray(props))) {
|
||||
return props;
|
||||
}
|
||||
if (Array.isArray(props)) {
|
||||
return props.map(k => compatibleReducer(k, node));
|
||||
}
|
||||
// 为了能降级到老版本,建议在后期版本去掉以下代码
|
||||
if (isJSSlot(props)) {
|
||||
return {
|
||||
|
||||
5
scripts/start-server.sh
Normal file
5
scripts/start-server.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# FIXME! do not run build
|
||||
lerna exec --scope @ali/lowcode-code-generator -- npm run build
|
||||
# lerna exec --scope @ali/lowcode-demo-server -- npm start
|
||||
Loading…
x
Reference in New Issue
Block a user