Commit 138dfce3 by 吴云建

会话添加页面显示

parent 875c0060
Showing with 7 additions and 2 deletions
<template>
<div class="chat-container">
<div class="chat-container" :class="{'is-in-page': isInPage}">
<div class="search-wrap">
<el-input
class="keyword-input"
......@@ -10,7 +10,7 @@
clearable
@clear="search"
></el-input>
<i class="close-btn el-icon-close" @click="$emit('close')"></i>
<i v-if="!isInPage" class="close-btn el-icon-close" @click="$emit('close')"></i>
</div>
<chat-list :searchKeyword="searchKeyword" ref="chatListComp" />
<div class="chat-content-wrap">
......@@ -34,6 +34,8 @@ import buttonThrottle from "../utils/button-throttle";
}
})
export default class ChatContainer extends Vue {
@Prop(Boolean) isInPage: boolean;
@chatStore.State(ChatStore.STATE_CHAT_DIALOG_VISIBLE)
private readonly chatVisible!: ChatStore.STATE_CHAT_DIALOG_VISIBLE;
......@@ -57,6 +59,9 @@ export default class ChatContainer extends Vue {
<style lang="less">
.chat-container {
height: 70vh;
&.is-in-page {
height: 100%;
}
}
.keyword-input {
width: 300px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment