Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Aug 14, 2018
1 parent 08b7f15 commit a258fc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions demo/GridDemo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Demo extends React.Component {
{
dataKey: 'firstName',
title: 'FristName',
fixed: true,
// fixed: true,
width: '15%',
filters: [{
text: 'Joe',
Expand All @@ -71,7 +71,7 @@ class Demo extends React.Component {
{
dataKey: 'lastName',
title: 'LastName',
fixed: true,
// fixed: true,
width: '55%',
},
{
Expand All @@ -84,6 +84,7 @@ class Demo extends React.Component {
title: '操作1',
width: '200px',
type: 'action',
rightFixed: true,
actions: [{
title: 'click',
callback: () => {
Expand Down
3 changes: 2 additions & 1 deletion src/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ class Table extends React.Component {

// reverse recursion, check/uncheck parents by its children.
for (let i = treeMap.length - 1; i >= 0; i--) {
treeMap[i][currentLevel[i]][me.checkboxColumnKey] = treeMap[i][currentLevel[i]].data.every(item => item[me.checkboxColumnKey] === true);
treeMap[i][currentLevel[i]][me.checkboxColumnKey] = treeMap[i][currentLevel[i]]
.data.every(item => item[me.checkboxColumnKey] === true);
}

me.setState({
Expand Down

0 comments on commit a258fc9

Please sign in to comment.