Ver código fonte

病例下面留白

zhouna 5 anos atrás
pai
commit
5230f77c82

+ 1 - 1
src/components/AddAssistCheck/index.jsx

@@ -37,7 +37,7 @@ class AddAssistCheck extends React.Component {
       let _closeTil = $('#delTit')[0];   // 弹窗标题
       if (_con && searchWrapAssist != event.target && !_con.is(event.target) && _con.has(event.target).length === 0) { // Mark 1
         if(this.state.show){
-          this.props.setHighter(0)
+          this.props.setHighter(48)
         }
         this.setState({ show: false });
       }

+ 5 - 2
src/components/AddInspect/SlideSelect/index.jsx

@@ -84,11 +84,14 @@ class SlideSelect extends Component {
     handleChangeDate&&handleChangeDate(date)
   }
   handleLabelSub(e,questionId,idx){
-    const {handleLabelSub,handleFillShow,windowHeight,listDom,setHighter} = this.props;
+    const {handleLabelSub,handleFillShow,setHighter,refreshScroller} = this.props;
     handleLabelSub(e,questionId,idx);
     handleFillShow(e,idx);
     //弹窗高度超出屏幕,增加页面高度
-    setPosition(e,"#inspectFill",setHighter)
+    setPosition(e,"#inspectFill",setHighter);
+    /*setTimeout(function(){
+      refreshScroller()&&refreshScroller().scrollBottom();
+    })*/
   }
   render() {
     const {getInfomation,handleConfirm,changeActivePart,handleDelClick,getItemList,date,item,idx,handleFillShow,showDetails,showFill,changeShowFill,handlePush,dateTime,currentIdx,currentData,fillActive,handleShowDate,handleChangeDate,showToast} = this.props;

+ 5 - 4
src/components/AddInspect/index.jsx

@@ -91,7 +91,7 @@ class Inspect extends React.Component {
       if (searchOption) {
         if (searchOption != event.target && searchWrap != event.target && searchWrap != event.target.parentNode && !$.contains(searchOption, event.target)) { // Mark 1
           if(this.state.show){
-            this.props.setHighter(0)
+            this.props.setHighter(48)
           }
           this.setState({ show: false });
         }
@@ -99,7 +99,7 @@ class Inspect extends React.Component {
       if (inspectFill) {
         if ($(event.target).attr('id') != "getSureTime"&&event.target.getAttribute('data-flg') != 'current' && inspectFill != event.target && !$.contains(inspectFill, event.target)) { // Mark 1
           if(this.state.showFill){
-            this.props.setHighter(0)
+            this.props.setHighter(48)
           }
           this.setState({ showFill: false, date: false });
         }
@@ -123,7 +123,7 @@ class Inspect extends React.Component {
   }
   changeShowFill() {
     this.setState({ showFill: false })
-    this.props.setHighter(0)
+    this.props.setHighter(48)
   }
   handleChangeDate(info) {
     // let date = info.year+'-'+info.month.toString().padStart(2,'0')+'-'+info.day.toString().padStart(2,'0')
@@ -134,7 +134,7 @@ class Inspect extends React.Component {
     let tmpShow = this.state.show;
     this.setState({ show: !tmpShow, pageTop: getPageCoordinate(e).boxTop })
     // e.stopPropagation();
-    setPosition(e,"#searchOption",this.props.setHighter)
+    setPosition(e,"#searchOption",this.props.setHighter);
   }
   handleFillShow(e, idx) {
     let tmpShow = this.state.showFill;
@@ -374,6 +374,7 @@ class Inspect extends React.Component {
                   idx={idx}
                   listDom={this.$ul}
                   windowHeight={windowHeight}
+                  refreshScroller={refreshScroller}
                   showToast={idx == id ? true : false}
                   showFill={this.state.showFill}
                   handlePush={handlePush}

+ 1 - 1
src/components/Inspect/index.jsx

@@ -200,7 +200,7 @@ class Inspect extends React.Component {
     })
   }
   refreshScroller(){
-    //更新滚动条状态,解决容器变大滚动条不更新bug
+    //滚动条对象
     return this.context.scrollArea;
     /*this.context.scrollArea.refresh();
     this.context.scrollArea.scrollBottom();*/