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