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