diff --git a/components.d.ts b/components.d.ts index 9e46a16..fb241d1 100644 --- a/components.d.ts +++ b/components.d.ts @@ -80,6 +80,7 @@ declare module 'vue' { Xxxx: typeof import('./src/components/xxxx/index.vue')['default'] } export interface GlobalDirectives { + vInfiniteScroll: typeof import('element-plus/es')['ElInfiniteScroll'] vLoading: typeof import('element-plus/es')['ElLoadingDirective'] } } diff --git a/src/modules/Comment/index.scss b/src/modules/Comment/index.scss index 0fa968b..461a559 100644 --- a/src/modules/Comment/index.scss +++ b/src/modules/Comment/index.scss @@ -128,6 +128,12 @@ $color-white: #fff; } } } + .comment-loading-status{ + display: flex; + justify-content: center; + align-items: center; + padding: 5px 0; + } // 3. 子评论卡片样式 .sub-container { diff --git a/src/modules/Comment/index.vue b/src/modules/Comment/index.vue index 4d59740..c85ddcf 100644 --- a/src/modules/Comment/index.vue +++ b/src/modules/Comment/index.vue @@ -2,182 +2,191 @@