多选代码bug

This commit is contained in:
wanghaoo 2018-11-20 10:58:34 +08:00
parent 70d62ddaae
commit 956d8c7945
3 changed files with 5 additions and 4 deletions

5
dist/demo.js vendored
View File

@ -10861,6 +10861,7 @@
this.domWidthDiff = this.contentDomWidth - this.computeWidth;
if (typeof setWidthParam == 'string' && setWidthParam.indexOf('%')) {
this.contentWidth = this.contentWidth * parseInt(setWidthParam) / 100;
this.domWidthDiff = this.contentDomWidth - this.contentWidth;
}
}
@ -52674,7 +52675,7 @@
NewMultiSelect.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
if (this.props.data != nextProps.data) {
var obj = this.getCheckedOrIndeter(props.data);
var obj = this.getCheckedOrIndeter(nextProps.data);
this.setState(_extends({}, obj, {
data: (0, _util.ObjectAssign)(nextProps.data)
}));
@ -61228,7 +61229,7 @@
NewMultiSelect.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
if (this.props.data != nextProps.data) {
var obj = this.getCheckedOrIndeter(props.data);
var obj = this.getCheckedOrIndeter(nextProps.data);
this.setState(_extends({}, obj, {
data: (0, _util.ObjectAssign)(nextProps.data)
}));

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@ export default function multiSelect(Table, Checkbox) {
componentWillReceiveProps(nextProps){
if(this.props.data != nextProps.data){
let obj = this.getCheckedOrIndeter(props.data);
let obj = this.getCheckedOrIndeter(nextProps.data);
this.setState({
...obj,
data:ObjectAssign(nextProps.data),