--- order: 99 version: 4.24.0 title: zh-CN: 调试 Input 前置/后置标签 en-US: Input addon debug debug: true --- ## zh-CN 调试 Input 前置/后置标签。 ## en-US Input addon debug. ```tsx import { SettingOutlined, CopyOutlined, DownloadOutlined } from '@ant-design/icons'; import { Cascader, Input, Select, Space, Button, Tooltip, Modal, Dropdown, Drawer, InputNumber, DatePicker, } from 'antd'; import React, { useState } from 'react'; const { Option } = Select; const selectBefore = ( ); const selectAfter = ( ); const App: React.FC = () => { const [showModal, setShowModal] = useState(false); const [showDrawer, setShowDrawer] = useState(false); return ( } /> } defaultValue="mysite" />
{showModal && ( setShowModal(false)}>



)}
menu button, }, { key: '2', label: 'normal menu item', }, ], }} > debug Dropdown.Button context {showDrawer && ( setShowDrawer(false)} open={showDrawer} >

)}
); }; export default App; ``` ```css .select-before { width: 90px; } .select-after { width: 80px; } [data-theme='compact'] .select-before { width: 71px; } [data-theme='compact'] .select-after { width: 65px; } ```