--- order: 1.1 title: zh-CN: 额外操作 en-US: Extra Actions --- ## zh-CN 在 Ant Design 规范中,操作按钮建议放在抽屉的右上角,可以使用 `extra` 属性来实现。 ## en-US Extra actions should be placed at corner of drawer in Ant Design, you can use `extra` prop for that. ```tsx import { Button, Drawer, Radio, Space } from 'antd'; import type { DrawerProps } from 'antd/es/drawer'; import type { RadioChangeEvent } from 'antd/es/radio'; import React, { useState } from 'react'; const App: React.FC = () => { const [open, setOpen] = useState(false); const [placement, setPlacement] = useState('right'); const showDrawer = () => { setOpen(true); }; const onChange = (e: RadioChangeEvent) => { setPlacement(e.target.value); }; const onClose = () => { setOpen(false); }; return ( <> top right bottom left } >

Some contents...

Some contents...

Some contents...

); }; export default App; ```