mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 17:48:13 +00:00
fix(editor-skeleton): fix dynamic setter support in mixed-setter
问题描述, 满足以下条件时:
1. prototype field 支持变量:`supportVariable = true `
2. setter是函数,且返回值是对象: `{ componentName: string; props: object }`
最终会实例化 MixedSetter,执行 setter 函数,但并未对返回内容做处理。
最终抛出错误:
```
Uncaught Invariant Violation: Objects are not valid as a React child (found: object with keys {componentName, props}). If you meant to render a collection of children, use an array instead.
```
See merge request !1001278
Ali Lowcode Engine(阿里低代码引擎)
开发
创建新包
./scripts/create.sh <package-name>
运行示例
npm run setupnpm start
开发提交
git add <your-files>git commit -a "feat: xxx"
发布
npm run pub
注意
packages工程里一些开发时公共依赖(比如:typescript、ava等)会放到工程顶层- 工程里的
.md、test/等文件修改不会产生新的发布 - 当工程里存在多个 ts 文件的目录时,最终产生的文件会按文件夹形式放到
lib下
包权限管理
npm owner ls @ali/<pkg> --registry http://registry.npm.alibaba-inc.comnpm owner add <user> @ali/<pkg> --registry http://registry.npm.alibaba-inc.comnpm owner rm <user> @ali/<pkg> --registry http://registry.npm.alibaba-inc.com
Languages
TypeScript
94.7%
Less
2.8%
JavaScript
1.9%
HTML
0.4%
Shell
0.1%