Merge remote-tracking branch 'amis/master'

This commit is contained in:
rickcole 2019-06-11 13:02:37 +08:00
commit 30433b7051
2 changed files with 7 additions and 6 deletions

View File

@ -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) {

View File

@ -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>