Commit 4a87502d authored by jim chen's avatar jim chen

add Debounce fix #744

parent c06d16a1
import React, { PureComponent } from 'react';
import Debounce from 'lodash-decorators/debounce';
import Bind from 'lodash-decorators/bind';
import { Table, Button, Input, message, Popconfirm, Divider } from 'antd';
import styles from './style.less';
......@@ -33,6 +35,8 @@ export default class TableForm extends PureComponent {
}
});
}
@Bind()
@Debounce(400)
toggleEditable(e, key) {
e.preventDefault();
const newData = this.state.data.map(item => ({ ...item }));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment