-
Notifications
You must be signed in to change notification settings - Fork 222
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
preComponents有什么作用呢? #53
Comments
我看下代码等给你提pr |
preComponents 之前没有考虑清楚,所以也许用起来比较别扭或者有问题,最初的想法 preComponents = 已有普通组件 + 一些内置 props 配置,比如一个 Button,可以通过预设组件,裂解为三个:primary 样式的 Button,disabled 的 Button,虚线边框的 Button,这些配置如果不放出来让用户改,就等于是固化写死了的。 另外组合组件这个版本似乎没有做进去,可以考虑提 PR。 |
我理解了,其实type=primary,danger ,还有disabled这些是可以通过面板配置出来的。 比如button,这个,一般都是这么写 |
如上面所示,在preComponents配置了下,只是在左边菜单去掉了ant-layout, 多出来两个row和button,然后拖拽进去的还是layout,不知道这个配置有啥用?
另外我有个需求是,比如antd的layout,我想通过配置把header 和sider footer content 展示出来,能否在layout的动态添加上这些挂件之后,把她们在layout内部搞成一个container呢?
The text was updated successfully, but these errors were encountered: