From d7464642a74597efeecaa6567d073a562e54e234 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Mon, 13 Feb 2023 13:47:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Chat/components/ListItem/index.vue | 52 +++++++++++++++++++ .../business/Chat/components/index.ts | 3 +- src/components/business/Chat/index.vue | 15 ++---- .../business/Chat/layout/Layout.vue | 37 ++++++++++--- .../index.vue} | 0 .../common/{SvgIcon.vue => SvgIcon/index.vue} | 0 src/components/common/index.ts | 4 +- 7 files changed, 91 insertions(+), 20 deletions(-) create mode 100644 src/components/business/Chat/components/ListItem/index.vue rename src/components/common/{NaiveProvider.vue => NaiveProvider/index.vue} (100%) rename src/components/common/{SvgIcon.vue => SvgIcon/index.vue} (100%) diff --git a/src/components/business/Chat/components/ListItem/index.vue b/src/components/business/Chat/components/ListItem/index.vue new file mode 100644 index 0000000..23a473d --- /dev/null +++ b/src/components/business/Chat/components/ListItem/index.vue @@ -0,0 +1,52 @@ + + + diff --git a/src/components/business/Chat/components/index.ts b/src/components/business/Chat/components/index.ts index e5b21df..e303b66 100644 --- a/src/components/business/Chat/components/index.ts +++ b/src/components/business/Chat/components/index.ts @@ -1,3 +1,4 @@ import Message from './Message/index.vue' +import ListItem from './ListItem/index.vue' -export { Message } +export { Message, ListItem } diff --git a/src/components/business/Chat/index.vue b/src/components/business/Chat/index.vue index 14f5e5a..a8ceaf3 100644 --- a/src/components/business/Chat/index.vue +++ b/src/components/business/Chat/index.vue @@ -78,17 +78,7 @@ function addMessage(message: string, reversal = false) {