import React from 'react'; import { EditOutlined, UserOutlined } from '@ant-design/icons'; import { Input } from 'antd'; import SemanticPreview from '../../../.dumi/components/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; const locales = { cn: { input: '输入框元素', prefix: '前缀的包裹元素', suffix: '后缀的包裹元素', count: '文字计数元素', }, en: { input: 'input element', prefix: 'prefix element', suffix: 'suffix element', count: 'count element', }, }; const App: React.FC = () => { const [locale] = useLocale(locales); return ( } suffix={} defaultValue="Hello, Ant Design" /> ); }; export default App;