mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix tslint
This commit is contained in:
parent
f262f1ab99
commit
1e5264bad7
@ -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;
|
||||
});
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user