فهرست منبع

病情提示标题样式修改,整条可点

zhouna 6 سال پیش
والد
کامیت
d5dc13c963
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 3 4
      src/components/ChronicInfo/index.jsx
  2. 2 0
      src/components/ChronicInfo/index.less

+ 3 - 4
src/components/ChronicInfo/index.jsx

@@ -521,13 +521,12 @@ class ChronicInfo extends React.Component{
     if(data&&data.length>0){
       return <div className={style["tips"]} style={{marginBottom:'15px'}}>
         <div className={`${style["tips-title"]} ${style["chronic"]}`}>
-          <div className={style["tips-name"]}>
+          <div className={style["tips-name"]} onClick={this.slideToggle}>
             <img src={chronicPic} />
-            <h2>{chronicMagItem&&chronicMagItem.name||chronicDesease&&chronicDesease.name||'病情提示'}</h2>
-            <span className={style["redTips"]}>(页面信息有更新可能影响评估结果)</span>
+            <h2>{chronicMagItem&&chronicMagItem.name||chronicDesease&&chronicDesease.name||'病情提示'}<span className={style["redTips"]}>(页面信息有更新可能影响评估结果)</span></h2>
           </div>
           <div className={style['toggle-btn']}>
-            <img src={slideUp?down:up} alt="展开/收起" onClick={this.slideToggle}/>
+            <img src={slideUp?down:up} alt="展开/收起"/>
           </div>
         </div>
         <div className={style["content"]} ref={this.$content}>

+ 2 - 0
src/components/ChronicInfo/index.less

@@ -8,6 +8,8 @@
     padding: 8px 15px;
     background: #EAF7FA;
     font-weight: bold;
+    white-space: nowrap;
+    cursor: pointer;
     background: rgba(242,150,91,0.1);
     .tips-name{
       width: 238px;