Skip to content

Commit bc81f51

Browse files
committed
feat: 🚀 新增组件的实例类型
1 parent aae12db commit bc81f51

File tree

29 files changed

+93
-3
lines changed

29 files changed

+93
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type ArchivesPage from "./index.vue";
2+
3+
export type ArchivesPageInstance = InstanceType<typeof ArchivesPage>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type ArticleAnalyze from "./index.vue";
2+
3+
export type ArticleAnalyzeInstance = InstanceType<typeof ArticleAnalyze>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type ArticleImagePreview from "./index.vue";
2+
3+
export type ArticleImagePreviewInstance = InstanceType<typeof ArticleImagePreview>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type ArticleInfo from "./index.vue";
2+
3+
export type ArticleInfoInstance = InstanceType<typeof ArticleInfo>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type BodyBgImage from "./index.vue";
2+
3+
export type BodyBgImageInstance = InstanceType<typeof BodyBgImage>;
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type ArticleBreadcrumb from "./index.vue";
12
import type Breadcrumb from "./Breadcrumb.vue";
23
import type BreadcrumbItem from "./BreadcrumbItem.vue";
3-
import type index from "./index.vue";
44

5-
export type BreadcrumbItemInstance = InstanceType<typeof BreadcrumbItem>;
5+
export type ArticleBreadcrumbInstance = InstanceType<typeof ArticleBreadcrumb>;
66
export type BreadcrumbInstance = InstanceType<typeof Breadcrumb>;
7-
export type ArticleBreadcrumbInstance = InstanceType<typeof index>;
7+
export type BreadcrumbItemInstance = InstanceType<typeof BreadcrumbItem>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type CataloguePage from "./index.vue";
2+
import type CatalogueItem from "./CatalogueItem.vue";
3+
4+
export type CataloguePageInstance = InstanceType<typeof CataloguePage>;
5+
export type CatalogueItemInstance = InstanceType<typeof CatalogueItem>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type CodeBlockToggle from "./index.vue";
2+
3+
export type CodeBlockToggleInstance = InstanceType<typeof CodeBlockToggle>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type CommentArtalk from "./index.vue";
2+
3+
export type CommentArtalkInstance = InstanceType<typeof CommentArtalk>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type CommentGiscus from "./index.vue";
2+
3+
export type CommentGiscusInstance = InstanceType<typeof CommentGiscus>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type CommentTwikoo from "./index.vue";
2+
3+
export type CommentTwikooInstance = InstanceType<typeof CommentTwikoo>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type CommentWaline from "./index.vue";
2+
3+
export type CommentWalineInstance = InstanceType<typeof CommentWaline>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type DocAnalysisCard from "./index.vue";
2+
3+
export type DocAnalysisCardInstance = InstanceType<typeof DocAnalysisCard>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type Footer from "./index.vue";
2+
3+
export type FooterInstance = InstanceType<typeof Footer>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type FriendLinkCard from "./index.vue";
2+
3+
export type FriendLinkCardInstance = InstanceType<typeof FriendLinkCard>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type HomeBanner from "./index.vue";
2+
import type HomeBannerWaves from "./HomeBannerWaves.vue";
3+
4+
export type HomeBannerInstance = InstanceType<typeof HomeBanner>;
5+
export type HomeBannerWavesInstance = InstanceType<typeof HomeBannerWaves>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type HomeCard from "./index.vue";
2+
3+
export type HomeCardInstance = InstanceType<typeof HomeCard>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type HomeCategoryCard from "./index.vue";
2+
3+
export type HomeCategoryCardInstance = InstanceType<typeof HomeCategoryCard>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type HomeFullscreenWallpaper from "./index.vue";
2+
3+
export type HomeFullscreenWallpaperInstance = InstanceType<typeof HomeFullscreenWallpaper>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type HomeInfo from "./index.vue";
2+
3+
export type HomeInfoInstance = InstanceType<typeof HomeInfo>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type HomeMyCard from "./index.vue";
2+
3+
export type HomeMyCardInstance = InstanceType<typeof HomeMyCard>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type HomePostList from "./index.vue";
2+
import type HomePostItem from "./HomePostItem.vue";
3+
4+
export type HomePostListInstance = InstanceType<typeof HomePostList>;
5+
export type HomePostItemInstance = InstanceType<typeof HomePostItem>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type HomeTagCard from "./index.vue";
2+
3+
export type HomeTagCardInstance = InstanceType<typeof HomeTagCard>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type Icon from "./index.vue";
2+
3+
export type IconInstance = InstanceType<typeof Icon>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type ImageViewer from "./index.vue";
2+
3+
export type ImageViewerInstance = InstanceType<typeof ImageViewer>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type Notice from "./index.vue";
2+
3+
export type NoticeInstance = InstanceType<typeof Notice>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type Pagination from "./index.vue";
2+
3+
export type PaginationInstance = InstanceType<typeof Pagination>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type RightBottomButton from "./index.vue";
2+
3+
export type RightBottomButtonInstance = InstanceType<typeof RightBottomButton>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import type TopArticleCard from "./index.vue";
2+
3+
export type TopArticleCardInstance = InstanceType<typeof TopArticleCard>;

0 commit comments

Comments
 (0)