2021-06-26 01:35:40 +00:00
|
|
|
import type { App, Plugin } from 'vue';
|
2021-06-07 09:35:03 +00:00
|
|
|
import Skeleton from './Skeleton';
|
|
|
|
import SkeletonButton from './Button';
|
|
|
|
import SkeletonInput from './Input';
|
|
|
|
import SkeletonImage from './Image';
|
|
|
|
import SkeletonAvatar from './Avatar';
|
2022-03-12 01:56:32 +00:00
|
|
|
import SkeletonTitle from './Title';
|
|
|
|
export type { SkeletonButtonProps } from './Button';
|
|
|
|
export type { SkeletonInputProps } from './Input';
|
|
|
|
export type { SkeletonImageProps } from './Image';
|
|
|
|
export type { SkeletonAvatarProps } from './Avatar';
|
|
|
|
export type { SkeletonTitleProps } from './Title';
|
2021-06-07 09:35:03 +00:00
|
|
|
|
2021-09-25 08:51:32 +00:00
|
|
|
export type { SkeletonProps } from './Skeleton';
|
|
|
|
export { skeletonProps } from './Skeleton';
|
2021-06-07 09:35:03 +00:00
|
|
|
|
|
|
|
Skeleton.Button = SkeletonButton;
|
|
|
|
Skeleton.Avatar = SkeletonAvatar;
|
|
|
|
Skeleton.Input = SkeletonInput;
|
|
|
|
Skeleton.Image = SkeletonImage;
|
2022-03-12 01:56:32 +00:00
|
|
|
Skeleton.Title = SkeletonTitle;
|
2021-06-07 09:35:03 +00:00
|
|
|
|
|
|
|
/* istanbul ignore next */
|
2021-06-23 15:08:16 +00:00
|
|
|
Skeleton.install = function (app: App) {
|
2021-06-07 09:35:03 +00:00
|
|
|
app.component(Skeleton.name, Skeleton);
|
|
|
|
app.component(Skeleton.Button.name, SkeletonButton);
|
|
|
|
app.component(Skeleton.Avatar.name, SkeletonAvatar);
|
|
|
|
app.component(Skeleton.Input.name, SkeletonInput);
|
|
|
|
app.component(Skeleton.Image.name, SkeletonImage);
|
2022-03-12 01:56:32 +00:00
|
|
|
app.component(Skeleton.Title.name, SkeletonTitle);
|
2021-06-07 09:35:03 +00:00
|
|
|
return app;
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2022-03-12 01:56:32 +00:00
|
|
|
export { SkeletonButton, SkeletonAvatar, SkeletonInput, SkeletonImage, SkeletonTitle };
|
2021-06-07 09:35:03 +00:00
|
|
|
export default Skeleton as typeof Skeleton &
|
|
|
|
Plugin & {
|
|
|
|
readonly Button: typeof SkeletonButton;
|
|
|
|
readonly Avatar: typeof SkeletonAvatar;
|
|
|
|
readonly Input: typeof SkeletonInput;
|
|
|
|
readonly Image: typeof SkeletonImage;
|
|
|
|
};
|