alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.66k stars 2.55k forks source link

使用官方materials,按照规则使用,拖拽不生效了 #2951

Open Tobepeter opened 8 months ago

Tobepeter commented 8 months ago

https://github.com/alibaba/lowcode-materials

CleanShot 2024-02-29 at 17 25 44@2x

我直接使用 官方的 lowcode-demo 仓库中的 antd 模板尝试设置

https://github.com/alibaba/lowcode-demo/tree/main/demo-basic-antd CleanShot 2024-02-29 at 17 27 26@2x

观察编辑器虽然配置替换成功,但是拖拽进到画布没有任何效果 CleanShot 2024-02-29 at 17 28 00@2x

Tobepeter commented 8 months ago

经过测试,似乎是 material.setAssests 这个接口只能调用一次,第二次调用,后续验证后补充

Dangerou0114 commented 4 months ago

//在build.lowcode.js中配置官方物料即可 //添加配置 plugins: [ [ //...其他配置 { //...其他配置 extraAssets:[ "https://alifd.alicdn.com/npm/@alilc/antd-lowcode-materials@1.2.1/build/lowcode/assets-prod.json", "https://alifd.alicdn.com/npm/@alilc/lowcode-materials@1.1.0/dist/assets.json", ] }, ], ],