lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

【关于物料@alilc/element】

Open KipSong opened this issue 3 years ago • 1 comments

描述问题

通过脚手架生成的React组件库引入ProComponents组件导致的错误。

具体步骤

一、通过组件项目初始化

npm init @alilc/element pro-material

二、引入 ProComponents 组件

npm install @ant-design/pro-components --save

三、在项目中使用并导出

1、新增一个组件 Table,并使用 ProTable image 2、导出组件 image

四、执行脚本

npm run lowcode:dev

执行之后预览地址拖拽组件 ProTable 出现的问题: 初始化报错导致组件没有找到 image

KipSong avatar Aug 16 '22 02:08 KipSong

看一下 BaseMenu 下的报错代码是什么,和引入 ProComponents 应该没有关系,可能就是资产包引入顺序问题,或者是部分全局资源没有加载导致的。

liujuping avatar Aug 17 '22 08:08 liujuping