import React from 'react'; import SemanticPreview from '../../../.dumi/components/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; import { EditOutlined, EllipsisOutlined, SettingOutlined } from '@ant-design/icons'; import { Avatar, Card } from 'antd'; const { Meta } = Card; const locales = { cn: { header: '设置卡片头部区域', body: '设置卡片内容区域', extra: '设置卡片右上角的操作区域', title: '设置卡片标题', actions: '设置卡片底部操作组', cover: '设置标题封面', }, en: { header: 'set `header` of card', body: 'set `body` of card', extra: 'set `extra` of card', title: 'set `title` of card', actions: 'set `actions` of card', cover: 'set `cover` of card', }, }; const BlockCard: React.FC = (props) => { const divRef = React.useRef(null); return (
} actions={[ , , , ]} />
); }; const App: React.FC = () => { const [locale] = useLocale(locales); return ( } title="Card Meta title" description="This is the description" /> ); }; export default App;