diff --git a/examples/Root.vue b/examples/Root.vue index ad9fc07..fc58ded 100644 --- a/examples/Root.vue +++ b/examples/Root.vue @@ -1,22 +1,14 @@ diff --git a/src/components/comment/index.vue b/src/components/comment/index.vue index 46bdeda..0e8659d 100644 --- a/src/components/comment/index.vue +++ b/src/components/comment/index.vue @@ -46,15 +46,7 @@ diff --git a/src/components/comment/list/reply/emits.ts b/src/components/comment/list/reply/emits.ts index cad25dc..3b31e4d 100644 --- a/src/components/comment/list/reply/emits.ts +++ b/src/components/comment/list/reply/emits.ts @@ -1,15 +1,15 @@ -import { CommentReplyView, CommentView } from "timi-web"; +import { Comment, CommentReply } from "timi-web"; /** * emits */ export interface Emits { - (event: "reply", comment: CommentView, replyTo?: CommentReplyView): Promise; + (event: "reply", comment: Comment, replyTo?: CommentReply): Promise; } export const useHandler = (emit: Emits) => { - const onReply = async (comment: CommentView, replyTo?: CommentReplyView) => await emit("reply", comment, replyTo); + const onReply = async (comment: Comment, replyTo?: CommentReply) => await emit("reply", comment, replyTo); return { onReply, diff --git a/src/components/comment/list/reply/index.vue b/src/components/comment/list/reply/index.vue index 3f62d3c..46fb0e7 100644 --- a/src/components/comment/list/reply/index.vue +++ b/src/components/comment/list/reply/index.vue @@ -70,7 +70,7 @@