alibaba / alibaba/lowcode-engine
自定义物料的样式问题
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
## **Describe the bug (required)** / **详细描述 bug(必填)**

我们通过以上命令初始化组件项目,然后将组件引入进来之后,发现组件在物料平台上显示的样式与其本来的样式不一致,然后下载如下的出码项目压缩包

将出码生成的源代码跑起来之后,发现页面中组件的样式与上述所说的物料平台一样,并未展示出它原本的样式,经过多番研究,发现将出码工程中的package.json文件里的ice.js包的版本由^1.0.0改为^2.0.0即可正常显示组件样式,

但一直未能攻克物料工程中(包括通过npm run lowcode:build命令生成的静态文件)样式不正常的问题,请问出码的工程用到的ice.js包和物料工程中的哪个包是对应的,要怎样该才能和^2.0.0版本的ice.js包有相同的作用的影响呢
## **Expected behavior (required)** / **预期行为(必填,非常重要)**
开发自定义物料组件
## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- AliLowCodeEngine version: [e.g. 1.0.0] / 低代码引擎版本
- AliLowCodeEngineExt version: [e.g. 1.0.0] / 低代码引擎扩展包版本
- Browser [e.g. chrome, safari] / 浏览器版本
- materials / plugins / tools / 其他物料 / 插件 / 工具链版本
使用的是通过执行npm init @alilc/element your-material-name命令生成的组件库项目
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the project generated by `npm init @alilc/element your-material-name`, comparing its `package.json` and the generated output from `npm run lowcode:build`. Trace the difference between ice.js ^1.0.0 and ^2.0.0, and identify the corresponding material-project dependency; done means the material platform and generated static project preserve the component's original styles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100