Skip to content

Commit

Permalink
Table: the props user defined won't be overrided when column's type i…
Browse files Browse the repository at this point in the history
…s set.
  • Loading branch information
elfman committed Sep 26, 2018
1 parent 143f0c6 commit 8b21d21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/table/src/table-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ export default {
for (let prop in source) {
if (source.hasOwnProperty(prop)) {
let value = source[prop];
if (value !== undefined) {
column[prop] = prop === 'className'
? `${column[prop]} ${value}`
: value;
if (prop === 'className') {
column[prop] = `${column[prop]} ${value}`;
} else if (column[prop] === undefined || column[prop] === null) {
column[prop] = value;
}
}
}
Expand Down

0 comments on commit 8b21d21

Please sign in to comment.