-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
自动API 总是提示 未找到 XXX 组件的属性定义 #1629
Labels
question
Further information is requested
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question
也不清楚是配置问题还是写法问题, 自动 API 总是出不来
dumi v2.1.22
Sample Code
组件
`import React, { FC } from "react";
import { createFromIconfontCN } from "@ant-design/icons";
export interface IconProps {
type?: string,
style?: React.CSSProperties,
[key: string]: any
}
const IconFont = createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/c/font_3302712_zruvxur74tl.js',
});
const MSIcon:FC = (props: IconProps) => {
const type = props.type || "";
const style = props.style || {};
return <IconFont type={type} style={style} {...props} />;
}
export default MSIcon;`
文档
<API></API>
或
<API id="MSIcon"></API>
都出不来
The text was updated successfully, but these errors were encountered: