From 3f85ff9067b806df7848ce7b852ff357a7bac7f5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 29 六月 2021 17:25:43 +0800 Subject: [PATCH] 2021-06-29 --- src/mob/components/topbar/normal-navbar/index.jsx | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/mob/components/topbar/normal-navbar/index.jsx b/src/mob/components/topbar/normal-navbar/index.jsx index 9e82f76..6f0a585 100644 --- a/src/mob/components/topbar/normal-navbar/index.jsx +++ b/src/mob/components/topbar/normal-navbar/index.jsx @@ -35,7 +35,7 @@ floor: card.floor, width: card.width || 24, subtype: card.subtype, - wrap: { height: 50, title: 'NavBar', back: 'true', logout: 'false' }, + wrap: { type: 'navbar', height: 50, title: 'NavBar', back: 'true', search: 'false', logout: 'false' }, style: {borderBottomColor: '#bcbcbc', borderBottomWidth: '1px', paddingLeft: '10px', paddingRight: '10px', lineHeight: '2.8', fontSize: '18px' }, } @@ -130,6 +130,10 @@ } } + setSearch = () => { + + } + render() { const { card } = this.state @@ -154,9 +158,13 @@ <div className="am-navbar-left"> {card.wrap.back !== 'false' ? <Icon type="left" /> : null} </div> - <div className="am-navbar-title">{card.wrap.title || ''}</div> + {card.wrap.type !== 'search' ? + <div className="am-navbar-title">{card.wrap.title || ''}</div> : + <div className="am-navbar-search" onDoubleClick={this.setSearch}><div className="search-bar"><Icon type="search" /></div></div> + } <div className="am-navbar-right"> - {card.wrap.logout === 'true' ? <span>閫�鍑�</span> : null} + {card.wrap.search === 'true' ? <Icon type="search" onDoubleClick={this.setSearch}/> : null} + {card.wrap.logout === 'true' ? <Icon type="ellipsis" /> : null} </div> </div> </div> -- Gitblit v1.8.0