ant-design / codemod-v5

codemod cli for antd v5 upgrade
MIT License
17 stars 7 forks source link

div上的className 也被转换成rootClassName了 #57

Closed xuanxuan321 closed 2 months ago

xuanxuan321 commented 1 year ago

理论上,只有Drawer中的className才应该被转换成rootClassName,结果发现,Drawer里面有children时,children中多有元素的className 都被转换成rootClassName了 `<Drawer mask={false} destroyOnClose open={visible} onClose={() => { setVisible(false); }} closable={false} placement="bottom" getContainer={false} rootClassName={Style.Drawer} height={168}

{ setVisible(false); }} onKeyDown={() => {}} rootClassName={Style.Close}
+

{map(item => ( { if (prop('canEdit')(item)) { push( `/${getFeatureBy('link')(STAGING_CALCULATION)}/pay-approve/${prop('type')( item, )}/${currentPayApproveId}`, ); } else { message.warning(`请先完成${prop('preTableName')(item)}`); } }} /> ))(fileList)}

`

dengfuping commented 2 months ago

Fixed by #56. But v1.1.5 is not published to npm and it's not working for now.

vagusX commented 2 months ago

sorry but + @ant-design/codemod-v5@1.1.5