Skip to content

Commit

Permalink
fix: onPaste行列参数修改
Browse files Browse the repository at this point in the history
  • Loading branch information
lucian55 committed Jul 9, 2020
1 parent 799b2c6 commit 3b8c65d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 218,111 deletions.
237 changes: 0 additions & 237 deletions dist/demo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/demo.css.map

Large diffs are not rendered by default.

217,888 changes: 18 additions & 217,870 deletions dist/demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/demo.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/TableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ class TableCell extends Component{
})
}
onPaste=(e)=>{
let { index:row,onPaste,fixed } = this.props
let col = e.target.cellIndex;
let { index:row,onPaste,fixed,col } = this.props
let position = {
row,
col,
Expand Down
1 change: 1 addition & 0 deletions src/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ class TableRow extends Component{
lazyStartIndex={lazyStartIndex}
lazyEndIndex={lazyEndIndex}
onPaste={onPaste}
col={i}
/>
);
}
Expand Down

0 comments on commit 3b8c65d

Please sign in to comment.