多选代码bug
This commit is contained in:
parent
70d62ddaae
commit
956d8c7945
|
@ -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)
|
||||
}));
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue