combo value 携带更多的值

This commit is contained in:
liaoxuezhi 2019-06-12 11:28:33 +08:00
parent fadea15ad5
commit 46ab113d20

View File

@ -362,8 +362,7 @@ export default class ComboControl extends React.Component<ComboProps> {
formatValue(value:any, index:number) {
const {
flat,
data,
canAccessSuperData
data
} = this.props;
if (flat) {
@ -373,9 +372,7 @@ export default class ComboControl extends React.Component<ComboProps> {
}
value = value || this.defaultValue;
return canAccessSuperData
? createObject(createObject(data, {index, __index: index}), value)
: createObject({index, __index: index}, value);
return createObject(createObject(data, {index, __index: index}), value);
}
renderMultipe() {