king
2021-12-18 b223552a0c4bc787ad251add025a93d77527ffbe
src/mob/components/topbar/normal-navbar/index.jsx
@@ -34,7 +34,7 @@
        floor: card.floor,
        width: 24,
        subtype: card.subtype,
        wrap: { type: 'navbar', height: 50, title: 'NavBar', back: 'true', search: 'false', logout: 'false' },
        wrap: { type: 'navbar', height: 50, title: 'NavBar', back: 'true', logout: 'false' },
        style: {boxShadow: '0 0 3px #D9D9D9', shadowColor: '#D9D9D9', shadowBlur: '3px', paddingLeft: '10px', paddingRight: '10px', lineHeight: '2.8', fontSize: '18px' },
        searchStyle: {}
      }
@@ -51,8 +51,12 @@
      })
      this.props.updateConfig(_card)
    } else {
      let _card = fromJS(card).toJS()
      if (_card.wrap.type === 'navbar' && _card.wrap.search === 'true') {
        _card.wrap.type = 'searchIcon'
      }
      this.setState({
        card: fromJS(card).toJS()
        card: _card
      })
    }
  }
@@ -158,7 +162,7 @@
    if (!card.search) {
      card.search = {
        floor: 1,
        setting: { type: 'title', field: '', title: '', focus: 'true', btn: 'hidden' },
        setting: { type: 'title', field: '', title: '', focus: 'true', btn: 'hidden', backgroundColor: sessionStorage.getItem('sysBgColor') },
        groups: [],
        fields: []
      }
@@ -237,7 +241,7 @@
            </div>
          }
          <div className="am-navbar-right">
            {card.wrap.search === 'true' ? <Icon type="search" onDoubleClick={this.setSearch}/> : null}
            {card.wrap.type === 'searchIcon' ? <Icon type="search" onDoubleClick={this.setSearch}/> : null}
            {right}
          </div>
        </div>