Skip to content

Commit 16f0f6b

Browse files
authored
Jydev (#60)
v1.1.4版本
2 parents da1fb16 + ce00077 commit 16f0f6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4567
-91
lines changed

apps/playground/components.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,26 @@ declare module 'vue' {
1010
export interface GlobalComponents {
1111
BubbleDemo: typeof import('./src/components/BubbleDemo.vue')['default']
1212
BubbleListDemo: typeof import('./src/components/BubbleListDemo.vue')['default']
13+
EditorInputDemo: typeof import('./src/components/EditorInputDemo.vue')['default']
14+
EditorSenderDemo: typeof import('./src/components/EditorSenderDemo.vue')['default']
1315
ElAlert: typeof import('element-plus/es')['ElAlert']
1416
ElAvatar: typeof import('element-plus/es')['ElAvatar']
1517
ElButton: typeof import('element-plus/es')['ElButton']
18+
ElEditable: typeof import('element-plus/es')['ElEditable']
1619
ElIcon: typeof import('element-plus/es')['ElIcon']
1720
ElImage: typeof import('element-plus/es')['ElImage']
21+
ElInput: typeof import('element-plus/es')['ElInput']
1822
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
23+
ElMention: typeof import('element-plus/es')['ElMention']
24+
ElPopover: typeof import('element-plus/es')['ElPopover']
1925
ElTabPane: typeof import('element-plus/es')['ElTabPane']
2026
ElTabs: typeof import('element-plus/es')['ElTabs']
27+
MentionSenderDemo: typeof import('./src/components/MentionSenderDemo.vue')['default']
2128
SenderDemo: typeof import('./src/components/SenderDemo.vue')['default']
29+
TestEditorInputDemo: typeof import('./src/components/Test-EditorInputDemo.vue')['default']
30+
TestEditorSenderDemo: typeof import('./src/components/Test-EditorSenderDemo.vue')['default']
31+
TestInputDemo: typeof import('./src/components/TestInputDemo.vue')['default']
32+
TextInputDemo: typeof import('./src/components/TextInputDemo.vue')['default']
2233
ThinkingDemo: typeof import('./src/components/ThinkingDemo.vue')['default']
2334
ThoughtChainDemo: typeof import('./src/components/ThoughtChainDemo.vue')['default']
2435
UseRecordDemo: typeof import('./src/components/useRecordDemo.vue')['default']

apps/playground/src/App-test.vue

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<script setup lang="ts">
2+
import EditorInputDemo from './components/Test-EditorInputDemo.vue'
3+
import EditorSenderDemo from './components/Test-EditorSenderDemo.vue'
4+
import SenderDemo from './components/SenderDemo.vue'
5+
</script>
6+
7+
<template>
8+
<div id="app">
9+
<el-alert
10+
title="💖 欢迎使用 Element-Plus-X"
11+
type="success"
12+
closable
13+
>
14+
<p class="self-description">
15+
详情可移步使用文档:👉 <a href="https://element-plus-x.com">element-plus-x.com</a>
16+
</p>
17+
</el-alert>
18+
19+
<el-tabs type="border-card" class="demo-tabs">
20+
<el-tab-pane label="EditorInputDemo">
21+
<EditorInputDemo />
22+
</el-tab-pane>
23+
<el-tab-pane label="SenderDemo">
24+
<SenderDemo />
25+
</el-tab-pane>
26+
<el-tab-pane label="EditorSenderDemo">
27+
<EditorSenderDemo />
28+
</el-tab-pane>
29+
</el-tabs>
30+
</div>
31+
</template>
32+
33+
<style scoped>
34+
#app {
35+
display: flex;
36+
flex-direction: column;
37+
gap: 12px;
38+
}
39+
40+
.demo-tabs {
41+
min-height: calc(100vh - 64px - 64px);
42+
background-color: beige;
43+
}
44+
45+
.self-description {
46+
font-size: 14px;
47+
48+
a {
49+
text-emphasis: none;
50+
color: coral;
51+
font-weight: 700;
52+
}
53+
}
54+
</style>

apps/playground/src/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import UseSend from './components/useSendDemo.vue'
99
import useXStreamSIP from './components/useXStreamSIPDemo.vue'
1010
import useXStreamSSE from './components/useXStreamSSEDemo.vue'
1111
import UseWelcome from './components/WelcomeDemo.vue'
12+
import UseMentionSender from './components/MentionSenderDemo.vue'
1213
</script>
1314

1415
<template>
@@ -36,6 +37,10 @@ import UseWelcome from './components/WelcomeDemo.vue'
3637
<UseSender />
3738
</el-tab-pane>
3839

40+
<el-tab-pane label="MentionSender">
41+
<UseMentionSender />
42+
</el-tab-pane>
43+
3944
<el-tab-pane label="Welcome">
4045
<UseWelcome />
4146
</el-tab-pane>

apps/playground/src/components/BubbleDemo.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ console.log('Hello, world!');
2929

3030
<template>
3131
<div class="component-container">
32+
<p>新版本支持 打字器 雾化效果</p>
3233
<div class="component-1">
3334
<Bubble
3435
placement="start"
@@ -41,6 +42,7 @@ console.log('Hello, world!');
4142
suffix: '💗',
4243
}"
4344
:is-markdown="true"
45+
:is-fog="{ bgColor: '#FFFFFF' }"
4446
>
4547
<template #avatar>
4648
<el-avatar :size="32" :src="avatar" />

apps/playground/src/components/BubbleListDemo.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function addMessage() {
2222
content,
2323
placement,
2424
typing,
25+
isFog: true,
2526
}
2627
bubbleItems.value.push(obj as MessageItem)
2728
bubbleListRef.value.scrollToBottom()
@@ -51,6 +52,8 @@ onMounted(() => {
5152

5253
<template>
5354
<div class="component-container">
55+
<p>1. 气泡列表组件,同样继承 雾化效果,点击添加对话预览 </p>
56+
<p>2. 新版本 支持回到底部按钮,支持 鼠标悬停出现滚动条增强 交互体验 </p>
5457
<div class="top-wrap">
5558
<div class="btn-list">
5659
<el-button type="primary" plain @click="addMessage">
@@ -67,7 +70,11 @@ onMounted(() => {
6770
</div>
6871

6972
<div class="component-1">
70-
<BubbleList ref="bubbleListRef" :list="bubbleItems" @on-complete="onCompleteFunc">
73+
<BubbleList
74+
ref="bubbleListRef"
75+
:list="bubbleItems"
76+
@on-complete="onCompleteFunc"
77+
>
7178
<template #avatar="{ item }">
7279
<el-avatar :size="32" :src="item.avatar" />
7380
</template>
@@ -102,6 +109,12 @@ onMounted(() => {
102109
}}
103110
</div>
104111
</template>
112+
113+
<!-- <template #backToBottom>
114+
<el-button circle style="padding: 23px; font-size: 20px;">
115+
💖
116+
</el-button>
117+
</template> -->
105118
</BubbleList>
106119
</div>
107120
</div>

0 commit comments

Comments
 (0)