mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +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) {
|
||||
|
@ -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