From 309cdd2d05e87051d451ad069e12db05fbbdc20c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 15 十月 2021 17:11:41 +0800 Subject: [PATCH] 2021-10-15 --- src/mob/components/topbar/normal-navbar/index.jsx | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/mob/components/topbar/normal-navbar/index.jsx b/src/mob/components/topbar/normal-navbar/index.jsx index b495c89..fc6c79b 100644 --- a/src/mob/components/topbar/normal-navbar/index.jsx +++ b/src/mob/components/topbar/normal-navbar/index.jsx @@ -180,6 +180,19 @@ this.updateComponent({...this.state.card, wrap: res}) } + skip = () => { + const { wrap } = this.state.card + + if (!wrap.linkmenu) return + + MKEmitter.emit('changeEditMenu', { + MenuID: wrap.linkmenu, + copyMenuId: '', + MenuNo: '', + MenuName: '', + }) + } + render() { const { card } = this.state @@ -188,10 +201,10 @@ right = <Icon type="logout" /> } if (card.wrap.scan === 'true') { - right = !right ? <ExpandOutlined /> : <Icon type="ellipsis" /> + right = !right ? <ExpandOutlined onDoubleClick={this.skip}/> : <Icon type="ellipsis" /> } if (card.wrap.refresh === 'true') { - right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" /> + right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" onDoubleClick={this.skip}/> } return ( -- Gitblit v1.8.0