--- order: 2 title: zh-CN: 自定义尺寸 en-US: Custom size --- ## zh-CN 自定义尺寸,适应在各种容器中展示。 ## en-US Custom sizes to fit in a variety of containers. ```jsx import { Descriptions, Radio, Button } from 'antd'; class Demo extends React.Component { state = { size: 'default', }; onChange = e => { console.log('size checked', e.target.value); this.setState({ size: e.target.value, }); }; render() { return (
default middle small

Edit} > Cloud Database Prepaid 18:00:00 $80.00 $20.00 $60.00 Data disk type: MongoDB
Database version: 3.4
Package: dds.mongo.mid
Storage space: 10 GB
Replication factor: 3
Region: East China 1


Edit} > Cloud Database Prepaid 18:00:00 $80.00 $20.00 $60.00
); } } export default Demo; ```