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
Show 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
>
<
template
>
<div
class=
"chat-container"
>
<div
class=
"chat-container"
:class=
"
{'is-in-page': isInPage}"
>
<div
class=
"search-wrap"
>
<div
class=
"search-wrap"
>
<el-input
<el-input
class=
"keyword-input"
class=
"keyword-input"
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
clearable
clearable
@
clear=
"search"
@
clear=
"search"
></el-input>
></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>
</div>
<chat-list
:searchKeyword=
"searchKeyword"
ref=
"chatListComp"
/>
<chat-list
:searchKeyword=
"searchKeyword"
ref=
"chatListComp"
/>
<div
class=
"chat-content-wrap"
>
<div
class=
"chat-content-wrap"
>
...
@@ -34,6 +34,8 @@ import buttonThrottle from "../utils/button-throttle";
...
@@ -34,6 +34,8 @@ import buttonThrottle from "../utils/button-throttle";
}
}
})
})
export
default
class
ChatContainer
extends
Vue
{
export
default
class
ChatContainer
extends
Vue
{
@
Prop
(
Boolean
)
isInPage
:
boolean
;
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_DIALOG_VISIBLE
)
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_DIALOG_VISIBLE
)
private
readonly
chatVisible
!
:
ChatStore
.
STATE_CHAT_DIALOG_VISIBLE
;
private
readonly
chatVisible
!
:
ChatStore
.
STATE_CHAT_DIALOG_VISIBLE
;
...
@@ -57,6 +59,9 @@ export default class ChatContainer extends Vue {
...
@@ -57,6 +59,9 @@ export default class ChatContainer extends Vue {
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.chat-container
{
.chat-container
{
height
:
70vh
;
height
:
70vh
;
&.is-in-page
{
height
:
100%
;
}
}
}
.keyword-input
{
.keyword-input
{
width
:
300px
;
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