提交 | 用户 | 时间
|
820397
|
1 |
<!-- 无聊天对话时,在 message 区域,可以新增对话 --> |
H |
2 |
<template> |
|
3 |
<div class="new-chat"> |
|
4 |
<div class="box-center"> |
|
5 |
<div class="tip">点击下方按钮,开始你的对话吧</div> |
|
6 |
<div class="btns"> |
|
7 |
<el-button type="primary" round @click="handlerNewChat">新建对话</el-button> |
|
8 |
</div> |
|
9 |
</div> |
|
10 |
</div> |
|
11 |
</template> |
|
12 |
<script setup lang="ts"> |
|
13 |
const emits = defineEmits(['onNewConversation']) |
|
14 |
|
|
15 |
/** 新建 conversation 聊天对话 */ |
|
16 |
const handlerNewChat = () => { |
|
17 |
emits('onNewConversation') |
|
18 |
} |
|
19 |
</script> |
|
20 |
<style scoped lang="scss"> |
|
21 |
.new-chat { |
|
22 |
display: flex; |
|
23 |
flex-direction: row; |
|
24 |
justify-content: center; |
|
25 |
width: 100%; |
|
26 |
height: 100%; |
|
27 |
|
|
28 |
.box-center { |
|
29 |
display: flex; |
|
30 |
flex-direction: column; |
|
31 |
justify-content: center; |
|
32 |
|
|
33 |
.tip { |
|
34 |
font-size: 14px; |
|
35 |
color: #858585; |
|
36 |
} |
|
37 |
|
|
38 |
.btns { |
|
39 |
display: flex; |
|
40 |
flex-direction: row; |
|
41 |
justify-content: center; |
|
42 |
margin-top: 20px; |
|
43 |
} |
|
44 |
} |
|
45 |
} |
|
46 |
</style> |