From 10f6907da4c047f909b258075574818c00620f2c Mon Sep 17 00:00:00 2001 From: thegatheringstorm Date: Mon, 25 Sep 2017 18:15:36 +0800 Subject: [PATCH 1/2] Fix: Upload Use object destructuring instead of creating temporary references for onRemove. (#7726) --- components/upload/UploadList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/UploadList.tsx b/components/upload/UploadList.tsx index 261f719ed3..07e66f74a5 100644 --- a/components/upload/UploadList.tsx +++ b/components/upload/UploadList.tsx @@ -26,7 +26,7 @@ export default class UploadList extends React.Component { }; handleClose = (file: UploadFile) => { - const onRemove = this.props.onRemove; + const { onRemove } = this.props; if (onRemove) { onRemove(file); } From 463a5db9baad36c6605a99b60c69fdab6d6a35bb Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 25 Sep 2017 20:02:33 +0800 Subject: [PATCH 2/2] Fix transfer checkbox padding --- components/checkbox/style/mixin.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 90019d74a2..f4425afc72 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -151,8 +151,8 @@ cursor: pointer; font-size: @font-size-base; display: inline-block; - &:not(:last-child) { - margin-right: 8px; + & + & { + margin-left: 8px; } }