alibaba / alibaba/lowcode-engine
应该如何在自定义setter里面使用antd组件呢?
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
虽然有两个相关的issue比如:https://github.com/alibaba/lowcode-engine/issues/1944 和 https://github.com/alibaba/lowcode-engine/issues/826
但是这两个issue的答案最后都没有完全解答, 按照里面的方法来配以后还是会出现相同的错误。
请问可以回答一下吗?

按照issue1里面的方法来使用的时候,我在build.lowcode.js文件按照这样实现的
`const { library } = require('./build.json');
module.exports = {
alias: {
'@': './src',
},
plugins: [
[
'@alifd/build-plugin-lowcode',
{
library,
engineScope: '@alilc',
staticResources: {
antdJsUrl: 'https://g.alicdn.com/code/lib/antd/4.23.0/antd.min.js',
antdCssUrl: 'https://g.alicdn.com/code/lib/antd/4.23.0/antd.min.css',
},
setterMap: {
CustomizeSetter: './lowcode/_setter/tree-setter/TreeSetter',
},
},
],
[
'@alilc/build-plugin-alt',
{
type: 'component',
inject: true,
library,
openUrl: 'http://localhost:5556/?debug',
},
],
],
};
`
但是还是会出现相同的错误,请问应该如何解决呀?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing issues 1944 and 826, then inspect the supplied build.lowcode.js and build.json configuration, especially the @alifd/build-plugin-lowcode setterMap and antd static resources. Reproduce the reported error and compare it with the attached screenshot. Done means identifying the configuration problem or documenting a verified way to use antd in a custom setter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100