mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 12:58:38 +08:00
Merge remote-tracking branch 'amis/master'
This commit is contained in:
commit
30433b7051
@ -583,7 +583,7 @@ export function HocStoreFactory(renderer:{
|
||||
} else {
|
||||
store.initData(createObject(nextProps.scope, nextProps.data));
|
||||
}
|
||||
} else if (nextProps.data && nextProps.data.__super) {
|
||||
} else if ((!nextProps.store || nextProps.data !== nextProps.store.data) && nextProps.data && nextProps.data.__super) {
|
||||
(!props.data || nextProps.data.__super !== props.data.__super)
|
||||
&& store.initData(createObject(nextProps.data.__super, store.data));
|
||||
} else if (nextProps.scope !== props.scope) {
|
||||
|
@ -373,7 +373,7 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
}
|
||||
|
||||
value = value || this.defaultValue;
|
||||
return canAccessSuperData
|
||||
return canAccessSuperData
|
||||
? createObject(createObject(data, {index, __index: index}), value)
|
||||
: createObject({index, __index: index}, value);
|
||||
}
|
||||
@ -464,7 +464,8 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
return (
|
||||
<div
|
||||
className={cx(`Combo-item`)}
|
||||
key={this.keys[index] || (this.keys[index] = guid())}>
|
||||
key={this.keys[index] || (this.keys[index] = guid())}
|
||||
>
|
||||
<div className={cx(`Combo-itemInner`)}>
|
||||
{render(`multiple/${index}`, {
|
||||
type: 'form',
|
||||
@ -503,9 +504,9 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
<span>{addButtonText || '新增'}</span>
|
||||
</button>
|
||||
) : null}
|
||||
{
|
||||
draggable ? (<span className={cx(`Combo-dragableTip`)} ref={this.dragTipRef} >{Array.isArray(value) && value.length > 1 ? draggableTip : ''}</span>) : null
|
||||
}
|
||||
{draggable ? (
|
||||
<span className={cx(`Combo-dragableTip`)} ref={this.dragTipRef} >{Array.isArray(value) && value.length > 1 ? draggableTip : ''}</span>
|
||||
) : null}
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user