--- order: 5 title: zh-CN: 悬停点击弹出窗口 en-US: Hover with click popover --- ## zh-CN 以下示例显示如何创建可悬停和单击的弹出窗口。 ## en-US The following example shows how to create a popover which can be hovered and clicked. ```jsx import { Popover, Button } from 'antd'; class App extends React.Component { state = { clicked: false, hovered: false, }; hide = () => { this.setState({ clicked: false, hovered: false, }); }; handleHoverChange = visible => { this.setState({ hovered: visible, clicked: false, }); }; handleClickChange = visible => { this.setState({ clicked: visible, hovered: false, }); }; render() { const hoverContent =