|
@@ -156,7 +156,7 @@ class SpreadDrop extends Component{
|
|
|
|
|
|
}
|
|
|
setStateInit(){
|
|
|
- const {nones,noneOn,noneIds,withOn,exists,nowOn,withs,exclusion,excluName} = deepClone(this.props.selecteds||[]);
|
|
|
+ const {nones,noneOn,noneIds,withOn,exists,nowOn,withs,exclusion,excluName,ban} = deepClone(this.props.selecteds||[]);
|
|
|
this.setState({
|
|
|
nones:nones||'',
|
|
|
exists:exists||[],
|
|
@@ -167,7 +167,7 @@ class SpreadDrop extends Component{
|
|
|
withOn:withOn||false,
|
|
|
nowOn:nowOn||'',
|
|
|
exclusion:exclusion||'',
|
|
|
- ban:{},
|
|
|
+ ban:ban||{},
|
|
|
});
|
|
|
}
|
|
|
clearState(){
|
|
@@ -437,7 +437,7 @@ class ListItem extends Component{
|
|
|
handleClick&&handleClick(item,isExclu,joint,index);
|
|
|
}
|
|
|
getClass(id){ //无之后显示黑色,之前显示蓝色
|
|
|
- const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;console.log(this.props)
|
|
|
+ const {exclusion,nones,noneIds,exists,withs,isExclu,ban} = this.props;
|
|
|
if(exclusion!=''){
|
|
|
if(+id===+exclusion){
|
|
|
return style['selected'];
|