JaniceLian
JaniceLian
Stop event propagation, for example: ``` Checkbox { event.stopPropagation(); // error }} /> ``` Click Switch do not change the Checkbox's state
Maybe it is a configuration item, the checkbox is used to control select/unselect it, and the Switch is one setting of it. The parent component does not have to be...
I use Transfer component as the parent, render its item with a Switch, like following  Click anything in the item will fire the select event. when...
@nikogu 嗯,这个有加的。目前是在ant-design-pro的脚手架项目上进行修改的,我在项目里install了ant-design-pro,页面上的使用路径不是从components下面引用,直接 ``` import { ChartCard, MiniBar, TimelineChart, } from 'ant-design-pro'; ``` 这样就编译不通过了
找到解决办法了,删掉es文件夹,或者重命名es文件夹,使它不被调用到,调用lib下面的版本,目前测试了几个可以通过。
@afc163 按照文档是每个组件一个个引用吗? ``` import Result from 'ant-design-pro/lib/Result'; ``` 这样?
@afc163 👍确实是你说的这种使用比较好!这样不会把整个包build进去,按需加载。
@nikogu 谢谢!
the same error, try the solution above, not work with [email protected]