Browse Source

急诊按钮交互修改

Luolei 6 năm trước cách đây
mục cha
commit
8bec1c6090
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/components/EmergencyProcedure/index.jsx

+ 2 - 0
src/components/EmergencyProcedure/index.jsx

@@ -11,6 +11,7 @@ class EmergencyProcedure extends React.Component {
       show:false,
       data:{}
     }
+    this.handleShow=this.handleShow.bind(this)
   }
   
   slideToggle(type){
@@ -32,6 +33,7 @@ class EmergencyProcedure extends React.Component {
     this.setState({
       show:type
     })
+    !type&&this.slideToggle(0)
   }
   render(){
     const {data,setDataIdx,idx} = this.props;