|
@@ -32,7 +32,8 @@ class HasInfoItem extends Component {
|
|
|
hasEnterImg: false
|
|
|
})
|
|
|
}
|
|
|
- setDrugInfo(item){
|
|
|
+ setDrugInfo(item,e){
|
|
|
+ e.stopPropagation();
|
|
|
const{ setDrugInfo } = this.props
|
|
|
setDrugInfo && setDrugInfo(item)
|
|
|
}
|
|
@@ -51,7 +52,10 @@ class HasInfoItem extends Component {
|
|
|
onMouseEnter={this.handleMouseEnterDrug.bind(this)}
|
|
|
onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
|
|
|
>
|
|
|
- {item.medicitionName}
|
|
|
+ <span className={style['drug-name-span']}>
|
|
|
+ {item.medicitionName}
|
|
|
+ <span className={style['underline']}></span>
|
|
|
+ </span>
|
|
|
{<img className={`${style['info-img']} ${hasEnterItem?style['show-content']:style['hide-content']}`}
|
|
|
title='点击i图标可查看详细说明'
|
|
|
src={hasEnterImg?infoMove:infoShow}
|