Kaynağa Gözat

修改下划线,infomation透明度(2682,2689)

zhangxc 5 yıl önce
ebeveyn
işleme
b0a12bbd90

+ 2 - 3
src/common/components/HasInfoItem/index.jsx

@@ -46,15 +46,14 @@ class HasInfoItem extends Component {
         const { item } = this.props
         const { hasEnterItem, hasEnterImg} = this.state
         return (<span className={style['drug-name-wrapper']} >
-            <span className={`${style['drug-name']} ${item.forbidden === '2' ? style['disabled']: item.selected ?  style['selected'] : ''}`}  
+            <span className={`${style['drug-name']}`}  
                 // onDoubleClick={() =>{this.setDrugInfo(it);showDrugInfo();}}  //药品说明双击显示(现在为点击图标显示)
                 onClick={()=>{item.forbidden === '2' ? '' : this.handleSelect()}} 
                 onMouseEnter={this.handleMouseEnterDrug.bind(this)}
                 onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
                 >
-                <span className={style['drug-name-span']}>
+                <span className={`${style['drug-name-span']}  ${item.forbidden === '2' ? style['disabled']: item.selected ?  style['selected'] : ''}`}>
                     {item.medicitionName}
-                    <span className={`${style['underline']} ${item.selected ?  style['underline-select'] : ''}`}></span>
                 </span>
                 {<img className={`${style['info-img']} ${hasEnterItem?style['show-content']:style['hide-content']}`}  
                 title='点击i图标可查看详细说明'

+ 1 - 0
src/common/components/HasInfoItem/index.less

@@ -19,6 +19,7 @@
 }
 .drug-name-span {
    position: relative;
+   text-decoration: underline;
    
 }
 }