组件库配置
#
配置示例cloudbaserc.json
{ "envId": "{{envId}}", "lowcodeCustomComponents": { "name": "demo", "configRoot": "./src/configs", "platformRoot": { "web": "./src/web", "mp": "./src/mp" } }}
#
配置参数说明低码用户只需要关心 lowcodeCustomComponents
下的参数。
name
#
必填,组件库的标识,用于本地组件库与云端组件库的关联。
configRoot
#
必填,配置文件的根目录。
组件配置文件与组件图标文件应放在 $configRoot/components 下。
动作配置文件应放在 $configRoot/actions 下。
platformRoot
#
源码的根目录
platformRoot.mp
#
小程序源码的根目录
组件源码应放在 ${platformRoot.mp}/components 下。
动作源码应放在 ${platformRoot.mp}/actions 下。
platformRoot.web
#
Web 源码的根目录
组件源码应放在 ${platformRoot.web}/components 下。
动作源码应放在 ${platformRoot.web}/actions 下。