import React, { useState } from 'react'; import { FloatButton, Radio } from 'antd'; import type { RadioChangeEvent, FloatButtonProps } from 'antd'; import { CustomerServiceOutlined } from '@ant-design/icons'; const App: React.FC = () => { const [shape, setShape] = useState('circle'); const onChange = (e: RadioChangeEvent) => { setShape(e.target.value); }; return ( <> 圆形 方形 } type="primary" shape={shape} /> ); }; export default App;