--- order: 2 title: zh-CN: 前置/后置标签 en-US: Pre / Post tab --- ## zh-CN 用于配置一些固定组合。 ## en-US Using pre & post tabs example. ```jsx import { Input, Select } from 'antd'; import { SettingOutlined } from '@ant-design/icons'; const { Option } = Select; const selectBefore = ( ); const selectAfter = ( ); ReactDOM.render(
} defaultValue="mysite" />
, mountNode, ); ``` ```css .select-before { width: 90px; } .select-after { width: 80px; } [data-theme='compact'] .select-before { width: 71px; } [data-theme='compact'] .select-after { width: 65px; } ```