2021-06-26 01:35:40 +00:00
|
|
|
import type { App, Plugin } from 'vue';
|
2021-06-23 13:47:53 +00:00
|
|
|
import Base from './Base';
|
|
|
|
import Link from './Link';
|
|
|
|
import Paragraph from './Paragraph';
|
|
|
|
import Text from './Text';
|
|
|
|
import Title from './Title';
|
2021-03-16 04:54:22 +00:00
|
|
|
import Typography from './Typography';
|
|
|
|
|
2021-06-23 15:08:16 +00:00
|
|
|
export type { TypographyProps } from './Typography';
|
2021-06-23 13:47:53 +00:00
|
|
|
|
2021-06-23 15:08:16 +00:00
|
|
|
Typography.Text = Text;
|
|
|
|
Typography.Title = Title;
|
|
|
|
Typography.Paragraph = Paragraph;
|
|
|
|
Typography.Link = Link;
|
|
|
|
Typography.Base = Base;
|
2021-06-23 13:47:53 +00:00
|
|
|
|
2021-06-23 15:08:16 +00:00
|
|
|
Typography.install = function (app: App) {
|
2021-06-23 13:47:53 +00: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 15:08:16 +00:00
|
|
|
};
|
2021-06-23 13:47:53 +00: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;
|
|
|
|
};
|