问题描述
我仍在学习antdesign和样式化组件之间的交互,并且我有一个问题:
我知道我能够传递像popover这样的组件的样式(接受“ overlayClassName”道具),例如:
const styledPopover = ({ className,...props }) => (<ANTPopover {...props} overlayClassName={className} />);
styledPopover.propTypes = {
className: PropTypes.string,};
export const Popover = styled(styledPopover)`...`
但是对于通知,我有className属性,但没有要样式的组件,只有一个函数。
https://ant.design/components/notification/
有没有办法将其包装到样式化的组件中?
非常感谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)