index.tsx
448 Bytes
import { Typography } from 'antd';
/** 项目统一排版组件,透传 antd Typography 全部能力与子组件。 */
export const UTypography = Object.assign(Typography, {
Title: Typography.Title,
Text: Typography.Text,
Paragraph: Typography.Paragraph,
Link: Typography.Link,
});
export const UTitle = Typography.Title;
export const UText = Typography.Text;
export const UParagraph = Typography.Paragraph;
export default UTypography;