Closed xuanxuan321 closed 2 months 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)} `
`
Fixed by #56. But v1.1.5 is not published to npm and it's not working for now.
v1.1.5
sorry but + @ant-design/codemod-v5@1.1.5
理论上,只有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}