Willy Lee
Willy Lee
WS(weakSelf) itemView.itemViewAction = ^(MoreItemView *itemView){ if ([weakSelf.delegate respondsToSelector:@selector(morePannel:didSelectItemIndex:)]) { [weakSelf.delegate morePannel:weakSelf didSelectItemIndex:itemView.tag]; } }; //改成这样就不会泄漏了.
purched-antd-icons u need this.
用了一下这个purched-antd-icons, 还是有点问题。 部分图标没导入
原来你用了ts。 你应该去[ts-import-plugin](https://github.com/Brooooooklyn/ts-import-plugin)留issue的。
后来我在新工程用了这个脚手架[react-scripts-ts-antd](https://github.com/SZzzzz/react-scripts-ts-antd#readme), 新工程还不用剔除Icon 旧工程用这个剔除Antd里的Icon [purched-antd-icons](https://github.com/ant-design/ant-design/issues/12011#issuecomment-423796712), 部分没有的Icon用iconfont的图标替换, 完美解决
get. 匹配->拆分->map.