|
@@ -248,7 +248,23 @@ class Inspect extends React.Component {
|
|
|
}
|
|
|
getSearchList(list) {//搜索列表
|
|
|
const { handleSign } = this.props;
|
|
|
- return <ul className={styles.searchLiUl}>
|
|
|
+ const contStyle={
|
|
|
+ opacity:'0.4',
|
|
|
+ right:'0',
|
|
|
+ top:'1px',
|
|
|
+ zIndex:'15',
|
|
|
+ width:'14px',
|
|
|
+ background:'#f1f1f1'};
|
|
|
+ const barStyle={background:'#777',width:'100%'};
|
|
|
+ return <ScrollArea speed={0.8}
|
|
|
+ horizontal={false}
|
|
|
+ stopScrollPropagation={list.length>6?true:false}
|
|
|
+ style={{height:'225px'}}
|
|
|
+ className={styles["area"]}
|
|
|
+ verticalContainerStyle={contStyle}
|
|
|
+ verticalScrollbarStyle={barStyle}
|
|
|
+ contentClassName="content">
|
|
|
+ <ul className={styles.searchLiUl}>
|
|
|
{
|
|
|
list && list.map((item, idx) => {
|
|
|
return <li key={idx}
|
|
@@ -263,7 +279,7 @@ class Inspect extends React.Component {
|
|
|
</li>
|
|
|
})
|
|
|
}
|
|
|
- </ul>
|
|
|
+ </ul></ScrollArea>;
|
|
|
}
|
|
|
getCommonList() {//常用列表
|
|
|
const { handleSign, inspectList } = this.props;
|
|
@@ -323,7 +339,7 @@ class Inspect extends React.Component {
|
|
|
}
|
|
|
}
|
|
|
render() {
|
|
|
- const {setHighter,refreshScroller, getInfomation, handleChangeValue,inspectList, inspectVal, list, labelList, windowHeight, delPartItem, handleLabelSub, handleClear, handleConfirm, fillActive, getExcelDataList, handleCloseExcel, handlePush } = this.props;
|
|
|
+ const {setHighter,refreshScroller, getInfomation, handleChangeValue,inspectList, inspectVal, list, labelList, windowHeight, windowWidth,delPartItem, handleLabelSub, handleClear, handleConfirm, fillActive, getExcelDataList, handleCloseExcel, handlePush } = this.props;
|
|
|
const { tmpId, tmpIdx, id, pageTop, impId } = this.state;
|
|
|
|
|
|
const contStyle={
|
|
@@ -373,7 +389,7 @@ class Inspect extends React.Component {
|
|
|
item={item}
|
|
|
idx={idx}
|
|
|
listDom={this.$ul}
|
|
|
- windowHeight={windowHeight}
|
|
|
+ windowWidth={windowWidth}
|
|
|
refreshScroller={refreshScroller}
|
|
|
showToast={idx == id ? true : false}
|
|
|
showFill={this.state.showFill}
|