ant-design-vue/components/typography/index.tsx

41 lines
1.1 KiB
Vue
Raw Normal View History

2021-06-23 21:47:53 +08:00
import { App, Plugin } from 'vue';
import Base from './Base';
import Link from './Link';
import Paragraph from './Paragraph';
import Text from './Text';
import Title from './Title';
import Typography from './Typography';
2021-06-23 23:08:16 +08:00
export type { TypographyProps } from './Typography';
2021-06-23 21:47:53 +08:00
2021-06-23 23:08:16 +08:00
Typography.Text = Text;
Typography.Title = Title;
Typography.Paragraph = Paragraph;
Typography.Link = Link;
Typography.Base = Base;
2021-06-23 21:47:53 +08:00
2021-06-23 23:08:16 +08:00
Typography.install = function (app: App) {
2021-06-23 21:47:53 +08:00
app.component(Typography.name, Typography);
app.component(Typography.Text.displayName, Text);
app.component(Typography.Title.displayName, Title);
app.component(Typography.Paragraph.displayName, Paragraph);
app.component(Typography.Link.displayName, Link);
return app;
};
export {
Text as TypographyText,
Title as TypographyTitle,
Paragraph as TypographyParagraph,
Link as TypographyLink,
2021-06-23 23:08:16 +08:00
};
2021-06-23 21:47:53 +08:00
export default Typography as typeof Typography &
Plugin & {
readonly Text: typeof Text;
readonly Title: typeof Title;
readonly Paragraph: typeof Paragraph;
readonly Link: typeof Link;
readonly Base: typeof Base;
};