/** * 切换搜索框 */ import React, { Component } from 'react'; import { Row, Col, Popover } from "antd"; import { connect } from "dva"; @connect((state) => ({ mapStyle: state.command.mapStyle, switchOpenStatus: state.command.switchOpenStatus, })) export default class SwitchSearch extends Component { constructor(props) { super(props); this.state = { }; } changeSearch(){ this.props.dispatch({ type: "command/setSwitchOpenStatus", payload: { type: 'search', value: !this.props.switchOpenStatus.search }, }); } render() { const {mapStyle} = this.props return (
); } }