fix tslint

This commit is contained in:
afc163 2016-10-20 22:10:46 +08:00
parent f262f1ab99
commit 1e5264bad7
3 changed files with 5 additions and 5 deletions

View File

@ -517,7 +517,7 @@ export default class Table extends React.Component<TableProps, any> {
})));
}
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<TableProps, any> {
);
}
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<TableProps, any> {
// 当数据量少于等于每页数量时,直接设置数据
// 否则进行读取分页数据
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;
});
}

View File

@ -49,7 +49,7 @@ export default class Tag extends React.Component<TagProps, any> {
});
}
animationEnd = (_key, existed) => {
animationEnd = (_, existed) => {
if (!existed && !this.state.closed) {
this.setState({
closed: true,

View File

@ -120,7 +120,7 @@ export default class Upload extends React.Component<UploadProps, any> {
}
}
autoUpdateProgress(_percent, file) {
autoUpdateProgress(_, file) {
const getPercent = genPercentAdd();
let curPercent = 0;
this.progressTimer = setInterval(() => {