|
@@ -48,6 +48,8 @@ class ListItem extends Component{
|
|
|
//无殊部分,非无殊项有选中,则无殊项灰显(仍可点,选中非无殊项取消选中,反之亦然)
|
|
|
selected = exclusion===it.id;
|
|
|
return <LiItem handleClick={this.handleClick.bind(this,it,i)}
|
|
|
+ key={it.id}
|
|
|
+ noHover={true}
|
|
|
selected={selected}
|
|
|
noDot={true}
|
|
|
disabled={(exclusion&&!selected)||arrs.length>0}
|
|
@@ -58,7 +60,9 @@ class ListItem extends Component{
|
|
|
type = noneIds.includes(it.id)?'noneCheck':'check';
|
|
|
selected = arrs.includes(it.id);
|
|
|
return <LiItem handleClick={this.handleClick.bind(this,it,i)}
|
|
|
+ key={it.id}
|
|
|
type={type}
|
|
|
+ noHover={true}
|
|
|
selected={selected}
|
|
|
disabled={exclusion}
|
|
|
title={it.name.length>8?it.name:''}>{it.name&&it.name.length>8?it.name.slice(0,8)+'...':it.name}</LiItem>
|
|
@@ -102,17 +106,18 @@ class ListItem extends Component{
|
|
|
const arrs = getIds([...exists,...withs,ban]); //非无殊选中项id集合
|
|
|
return datas&&datas.map((it,i)=>{
|
|
|
return <LiItem handleClick={this.handleClick.bind(this,it,i)}
|
|
|
+ key={it.id}
|
|
|
+ noHover={true}
|
|
|
selected={arrs.includes(it.id)}
|
|
|
- noDot={true}
|
|
|
title={it.name.length>4?it.name:''}
|
|
|
- style={{'width':'55px','display':'inline-block'}}>
|
|
|
+ style={{'width':'58px','display':'inline-block'}}>
|
|
|
{it.name&&it.name.length>4?it.name.slice(0,4)+'...':it.name}
|
|
|
</LiItem>
|
|
|
});
|
|
|
}
|
|
|
|
|
|
render(){
|
|
|
- const {datas,isSpecialPos,boxMark,tagType,listIndex,isSingle,pos} = this.props;
|
|
|
+ const {isSpecialPos,boxMark,tagType,listIndex,isSingle,pos} = this.props;
|
|
|
const posit = isSpecialPos?style['independent']:'';
|
|
|
const ifMainSear = boxMark==1 && tagType==11 && !pos?true:false;
|
|
|
// 单列直接设置宽度,多列则第二列设置(伴字ul不设置宽度)
|