# 从浮层内关闭 - order: 3 使用 `visible` 属性控制浮层显示。 --- ````jsx import { Popover, Button } from 'antd'; const App = React.createClass({ getInitialState() { return { visible: false }; }, hide() { this.setState({ visible: false }); }, handleVisibleChange(visible) { this.setState({ visible }); }, render() { const content =
关闭卡片
; return ; } }); ReactDOM.render(, document.getElementById('components-popover-demo-control')); ````