import React from 'react'; import { Button, Descriptions, DescriptionsProps, Divider, Switch } from 'antd'; import SemanticPreview from '../../../.dumi/components/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; const locales = { cn: { root: '根节点', header: '头部元素', title: '标题元素', extra: '额外内容', label: '标签元素', content: '内容元素', }, en: { root: 'root element', header: 'header element', title: 'title element', extra: 'extra element', label: 'label element', content: 'content element', }, }; const items: DescriptionsProps['items'] = [ { key: '1', label: 'Telephone', children: '1810000000', }, ]; const BlockList: React.FC = (props: any) => { const divRef = React.useRef(null); const [bordered, setBordered] = React.useState(false); const handleBorderChange = (checked: boolean) => { setBordered(checked); }; return (
Toggle Border Edit} bordered={bordered} {...props} />
); }; const App: React.FC = () => { const [locale] = useLocale(locales); return ( ); }; export default App;