From 9441f038be97879f427724d75fa4ec4ddcbec1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 1 Jul 2019 17:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/tpm/TPMsettings/TPMsettings.js | 15 ++++++++++----- .../src/modules/tpm/newshixuns/Newshixuns.js | 13 ++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js index 938f1b81a..193ac511f 100644 --- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js +++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js @@ -937,29 +937,33 @@ export default class TPMsettings extends Component { }) } - bigopen=()=>{ + bigopen=(e)=>{ this.setState({ opers:true }) + e.stopPropagation();//阻止冒泡 } - bigopens=()=>{ + bigopens=(e)=>{ this.setState({ opers:false, operss:false, opersss:false, opensmail:false }) + e.stopPropagation();//阻止冒泡 } - bigopensmal=()=>{ + bigopensmal=(e)=>{ this.setState({ opensmail:true }) + e.stopPropagation();//阻止冒泡 } - sbigopen=()=>{ + sbigopen=(e)=>{ this.setState({ operss:true }) + e.stopPropagation();//阻止冒泡 } sbigopens=()=>{ @@ -967,10 +971,11 @@ export default class TPMsettings extends Component { operss:false }) } - sbigopenss=()=>{ + sbigopenss=(e)=>{ this.setState({ opersss:true }) + e.stopPropagation();//阻止冒泡 } sbigopensss=()=>{ diff --git a/public/react/src/modules/tpm/newshixuns/Newshixuns.js b/public/react/src/modules/tpm/newshixuns/Newshixuns.js index bec8c703c..495287838 100644 --- a/public/react/src/modules/tpm/newshixuns/Newshixuns.js +++ b/public/react/src/modules/tpm/newshixuns/Newshixuns.js @@ -631,31 +631,34 @@ class Newshixuns extends Component { } - bigopen = () => { + bigopen = (e) => { this.setState({ opers: true }) + e.stopPropagation();//阻止冒泡 } - bigopens = () => { + bigopens = (e) => { this.setState({ opers: false, operss: false, opensmail: false }) - + e.stopPropagation();//阻止冒泡 } - bigopensmal = () => { + bigopensmal = (e) => { this.setState({ opensmail: true }) + e.stopPropagation();//阻止冒泡 } - sbigopen = () => { + sbigopen = (e) => { this.setState({ operss: true }) + e.stopPropagation();//阻止冒泡 } // sbigopens=()=>{