Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
138dfce3
authored
Aug 06, 2021
by
吴云建
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
会话添加页面显示
parent
875c0060
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
components/chat-container.vue
components/chat-container.vue
View file @
138dfce3
<
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment