From 619566a0b59fd7d49c686df61f33cbb72927035b Mon Sep 17 00:00:00 2001 From: lipenghui Date: Thu, 18 Jan 2024 13:54:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:1.=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E8=BE=93=E5=85=A5=E6=A1=86=EF=BC=9B2.=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BC=9A=E8=AF=9D=E9=BB=98=E8=AE=A4=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppContentBox/index.vue | 1 + .../AppConversationDefault/index.d.ts | 3 ++ .../AppConversationDefault/index.vue | 14 +++++- src/components/AppModelSelect/index.d.ts | 4 ++ src/components/AppModelSelect/index.vue | 3 ++ src/components/AppTextarea/index.ts | 3 ++ src/components/AppTextarea/index.vue | 48 +++++++++++++++++++ src/design/public.scss | 6 +-- src/views/conversation/index.vue | 9 +++- 9 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 src/components/AppConversationDefault/index.d.ts create mode 100644 src/components/AppTextarea/index.ts create mode 100644 src/components/AppTextarea/index.vue diff --git a/src/components/AppContentBox/index.vue b/src/components/AppContentBox/index.vue index b48ddf0..a1e856d 100644 --- a/src/components/AppContentBox/index.vue +++ b/src/components/AppContentBox/index.vue @@ -14,5 +14,6 @@ padding: 30px; border-radius: 30px 0 0 30px; background-color: #ffffff; + position: relative; } diff --git a/src/components/AppConversationDefault/index.d.ts b/src/components/AppConversationDefault/index.d.ts new file mode 100644 index 0000000..7bacb74 --- /dev/null +++ b/src/components/AppConversationDefault/index.d.ts @@ -0,0 +1,3 @@ +export interface Props { + height?: string +} diff --git a/src/components/AppConversationDefault/index.vue b/src/components/AppConversationDefault/index.vue index a45464c..b445f03 100644 --- a/src/components/AppConversationDefault/index.vue +++ b/src/components/AppConversationDefault/index.vue @@ -1,6 +1,7 @@ diff --git a/src/design/public.scss b/src/design/public.scss index 3ebdf11..805c4f7 100644 --- a/src/design/public.scss +++ b/src/design/public.scss @@ -17,14 +17,14 @@ // } ::-webkit-scrollbar-track { - background-color: rgba($color: #000000, $alpha: 0.5); + background-color: rgba($color: #000000, $alpha: 0.1); } ::-webkit-scrollbar-thumb { - background: rgba($color: #000000, $alpha: 0.6); - background-color: rgba($color: #9093994d, $alpha: 0.3); + background-color: rgba($color: #bdc1c94d, $alpha: 0.2); border-radius: 2px; box-shadow: inset 0 0 6px rgba($color: #000000, $alpha: 0.2); + cursor: pointer; } ::-webkit-scrollbar-thumb:hover { diff --git a/src/views/conversation/index.vue b/src/views/conversation/index.vue index fd1fc0e..d624b84 100644 --- a/src/views/conversation/index.vue +++ b/src/views/conversation/index.vue @@ -6,6 +6,7 @@ import { AppSubMenuTitle } from '@/components/AppSubMenuTitle' import { AppSubMenuList } from '@/components/AppSubMenuList' import { AppConversationDefault } from '@/components/AppConversationDefault' import type { SubMenuItem } from '@/components/AppSubMenuList/index.d' +import { AppTextarea } from '@/components/AppTextarea' const subMenuActive = ref(0) const subMenuList = ref([ @@ -24,6 +25,10 @@ const subMenuList = ref([ function handleSubMenuChange(index: number) { subMenuActive.value = index } + +function pressEnter(value: string) { + console.log('pressEnter', value) +}