From 1e5264bad7fcac1efb0eadd25fbc59c455e11d32 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 20 Oct 2016 22:10:46 +0800 Subject: [PATCH] fix tslint --- components/table/Table.tsx | 6 +++--- components/tag/index.tsx | 2 +- components/upload/index.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/table/Table.tsx b/components/table/Table.tsx index 78d361e6cc..e616a630d0 100755 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -517,7 +517,7 @@ export default class Table extends React.Component { }))); } - renderSelectionRadio = (_value, record, index) => { + renderSelectionRadio = (_, record, index) => { let rowIndex = this.getRecordKey(record, index); // 从 1 开始 const props = this.getCheckboxPropsByItem(record); let checked; @@ -537,7 +537,7 @@ export default class Table extends React.Component { ); } - renderSelectionCheckBox = (_value, record, index) => { + renderSelectionCheckBox = (_, record, index) => { let rowIndex = this.getRecordKey(record, index); // 从 1 开始 let checked; if (this.state.selectionDirty) { @@ -803,7 +803,7 @@ export default class Table extends React.Component { // 当数据量少于等于每页数量时,直接设置数据 // 否则进行读取分页数据 if (data.length > pageSize || pageSize === Number.MAX_VALUE) { - data = data.filter((_item, i) => { + data = data.filter((_, i) => { return i >= (current - 1) * pageSize && i < current * pageSize; }); } diff --git a/components/tag/index.tsx b/components/tag/index.tsx index 9614ca9541..ad0960dd97 100644 --- a/components/tag/index.tsx +++ b/components/tag/index.tsx @@ -49,7 +49,7 @@ export default class Tag extends React.Component { }); } - animationEnd = (_key, existed) => { + animationEnd = (_, existed) => { if (!existed && !this.state.closed) { this.setState({ closed: true, diff --git a/components/upload/index.tsx b/components/upload/index.tsx index 1dc9937775..d0b2ed53ff 100644 --- a/components/upload/index.tsx +++ b/components/upload/index.tsx @@ -120,7 +120,7 @@ export default class Upload extends React.Component { } } - autoUpdateProgress(_percent, file) { + autoUpdateProgress(_, file) { const getPercent = genPercentAdd(); let curPercent = 0; this.progressTimer = setInterval(() => {