Skip to content

Commit

Permalink
fix(EditableTable): 判断逻辑出错
Browse files Browse the repository at this point in the history
  • Loading branch information
olivewind committed Aug 16, 2018
1 parent 6037161 commit d601e39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/dao-editable-table/dao-editable-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
_forEach,
_some,
_isString,
_isObject,
} from '../../utils/assist';

export default {
Expand Down Expand Up @@ -164,7 +165,7 @@ export default {
this.updateModel();
},
getOptionProp(option, prop) {
if (_isString(option)) {
if (!_isObject(option)) {
return option;
}
return option[prop];
Expand Down
1 change: 1 addition & 0 deletions src/utils/assist.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { default as _find } from 'lodash/find';
export { default as _isBoolean } from 'lodash/isBoolean';
export { default as _isFunction } from 'lodash/isFunction';
export { default as _isEqual } from 'lodash/isEqual';
export { default as _isObject } from 'lodash/isObject';
export { default as _cloneDeep } from 'lodash/cloneDeep';
export { default as _some } from 'lodash/some';
export { default as _forEach } from 'lodash/forEach';
Expand Down

0 comments on commit d601e39

Please sign in to comment.