Browse Source

知识搜索高度优化时间改小

zhouna 5 years ago
parent
commit
5addeb1a3d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/components/MedicalInfo/index.jsx
  2. 1 1
      src/components/ScaleSearch/index.jsx

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

@@ -26,7 +26,7 @@ class MedicalInfo extends Component {
         if(searchResult&&searchResult.length>0){
         if(searchResult&&searchResult.length>0){
           setTimeout(function(){
           setTimeout(function(){
             that.$ul.current.style.height = getWindowInnerHeight()-270+'px';
             that.$ul.current.style.height = getWindowInnerHeight()-270+'px';
-          },200);
+          },100);
         }
         }
         return searchResult && searchResult.map((item) => {
         return searchResult && searchResult.map((item) => {
           return <li key={item.conceptId}
           return <li key={item.conceptId}

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

@@ -42,7 +42,7 @@ class ScaleSearch extends Component {
     if(searchResult&&searchResult.length>0){
     if(searchResult&&searchResult.length>0){
       setTimeout(function(){
       setTimeout(function(){
         that.$ul.current.style.height = getWindowInnerHeight()-270+'px';
         that.$ul.current.style.height = getWindowInnerHeight()-270+'px';
-      },200);
+      },100);
     }
     }
     return searchResult && searchResult.map((item) => {
     return searchResult && searchResult.map((item) => {
       return <li key={item.conceptId}
       return <li key={item.conceptId}