-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我应该如何在物料中的自定义setter中使用antd #1944
Comments
antd 应该被 extends 掉了,你可以在设计器的 html 上引入 antd 的 cdn 链接。 |
我应该在哪里引入? |
plugins: [
[
'@alifd/build-plugin-lowcode',
{
library,
engineScope: '@alilc',
staticResources: {
antdJsUrl: 'https://g.alicdn.com/code/lib/antd/4.20.0/antd.min.js',
antdCssUrl: 'https://g.alicdn.com/code/lib/antd/4.20.0/antd.min.css'
},
setterMap: {
CustomizeSetter: "../lowcode/general-image/setters/index",
}
},
]
], 附上相关 issue 对了, meta.ts 里面就不要直接引入 setter了, 上面已经注册了 setter, 直接使用即可 |
啊、我有在 |
|
请问如何使用呢?我添加到settermap中后,我用字符串不行,不加引号又直接报错 |
这是一个帮助请求
可复现项目:https://github.com/xiaochena/my-material-component
可见的这是一个物料库
在
lowcode\general-image
的meta.ts中我写了一个自定义的setters
-->CustomizeSetter
以下是其相关代码和
当我使用这个自定义setters时页面中提示了一个错误
当我将
import { Input } from 'antd';
改为import { Input } from '@alifd/next';
或使用
import { Input } from '../../../node_modules/antd';
时错误消失。很明显这两个都不是很好的解决方法
求助:我应该如何在物料的自定义setter中使用antd。
我将持续尝试、期待有人回复
The text was updated successfully, but these errors were encountered: