mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
combo value 携带更多的值
This commit is contained in:
parent
fadea15ad5
commit
46ab113d20
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user