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
43bd9273
authored
Sep 29, 2021
by
胡锦波
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. feat 样式调整
parent
06599338
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
components/chat-room.vue
components/chat-room.vue
View file @
43bd9273
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"chat-area h-100 d-flex flex-column"
ref=
"chatBox"
>
<div
class=
"chat-area h-100 d-flex flex-column"
ref=
"chatBox"
>
<div
<div
ref=
"top"
ref=
"top"
class=
"chat-messages pos-rel flex-fill"
class=
"chat-messages pos-rel flex-fill
d-flex
"
:class=
"
{ 'is-not-chat-member': !isChatMember }"
:class=
"
{ 'is-not-chat-member': !isChatMember }"
>
>
<div
<div
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
>
>
{{
getCurrentInputingPeople
}}
正在输入
{{
getCurrentInputingPeople
}}
正在输入
</div>
</div>
<messages
/>
<messages
class=
"flex-fill"
/>
<slot
name=
"chat-right-panel"
></slot>
</div>
</div>
<div
<div
class=
"resize"
class=
"resize"
...
@@ -34,28 +35,28 @@
...
@@ -34,28 +35,28 @@
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
import
{
Component
,
Component
,
Prop
,
Prop
,
Provide
,
Provide
,
Ref
,
Ref
,
Vue
,
Vue
,
Watch
,
Watch
,
}
from
"vue-property-decorator"
;
}
from
"vue-property-decorator"
;
import
MessageInput
from
"@/customer-service/components/message-input.vue"
;
import
MessageInput
from
"@/customer-service/components/message-input.vue"
;
import
messages
from
"@/customer-service/components/message-list.vue"
;
import
messages
from
"@/customer-service/components/message-list.vue"
;
import
{
ChatStore
,
chatStore
}
from
"@/customer-service/store/model"
;
import
{
ChatStore
,
chatStore
}
from
"@/customer-service/store/model"
;
type
RoomInfoTab
=
"customer"
|
"order"
;
type
RoomInfoTab
=
"customer"
|
"order"
;
@
Component
({
@
Component
({
components
:
{
components
:
{
MessageInput
,
MessageInput
,
messages
,
messages
,
},
},
})
})
export
default
class
ChatRoom
extends
Vue
{
export
default
class
ChatRoom
extends
Vue
{
@
Ref
(
"chatBox"
)
chatBox
!
:
Element
;
@
Ref
(
"chatBox"
)
chatBox
!
:
Element
;
@
Ref
(
"top"
)
refTop
!
:
Element
;
@
Ref
(
"top"
)
refTop
!
:
Element
;
@
Ref
(
"bottom"
)
refBottom
!
:
Element
;
@
Ref
(
"bottom"
)
refBottom
!
:
Element
;
...
@@ -160,11 +161,11 @@ export default class ChatRoom extends Vue {
...
@@ -160,11 +161,11 @@ export default class ChatRoom extends Vue {
((
this
.
refBottom
as
HTMLElement
).
style
.
height
=
((
this
.
refBottom
as
HTMLElement
).
style
.
height
=
this
.
chatBox
.
clientHeight
-
this
.
refTop
.
clientHeight
+
"px"
);
this
.
chatBox
.
clientHeight
-
this
.
refTop
.
clientHeight
+
"px"
);
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.chat-status
{
.chat-status
{
display
:
inline-block
;
display
:
inline-block
;
width
:
46px
;
width
:
46px
;
height
:
20px
;
height
:
20px
;
...
@@ -178,9 +179,9 @@ export default class ChatRoom extends Vue {
...
@@ -178,9 +179,9 @@ export default class ChatRoom extends Vue {
&.chat-done
{
&.chat-done
{
background
:
#c5d4e5
;
background
:
#c5d4e5
;
}
}
}
}
.chat-panel
{
.chat-panel
{
height
:
100%
;
height
:
100%
;
.chat-area,
.chat-area,
.chat-info
{
.chat-info
{
...
@@ -191,8 +192,8 @@ export default class ChatRoom extends Vue {
...
@@ -191,8 +192,8 @@ export default class ChatRoom extends Vue {
width
:
349px
;
width
:
349px
;
border-left
:
1px
solid
#e1e1e1
;
border-left
:
1px
solid
#e1e1e1
;
}
}
}
}
.info-tabs
{
.info-tabs
{
height
:
40px
;
height
:
40px
;
line-height
:
40px
;
line-height
:
40px
;
border-bottom
:
1px
solid
#f0f0f0
;
border-bottom
:
1px
solid
#f0f0f0
;
...
@@ -210,8 +211,8 @@ export default class ChatRoom extends Vue {
...
@@ -210,8 +211,8 @@ export default class ChatRoom extends Vue {
font-weight
:
600
;
font-weight
:
600
;
}
}
}
}
}
}
.chat-area
{
.chat-area
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -231,15 +232,15 @@ export default class ChatRoom extends Vue {
...
@@ -231,15 +232,15 @@ export default class ChatRoom extends Vue {
height
:
6px
;
height
:
6px
;
width
:
100%
;
width
:
100%
;
}
}
}
}
.order-info-con
{
.order-info-con
{
height
:
calc
(
100%
-
40px
);
height
:
calc
(
100%
-
40px
);
}
}
.someone-inputing
{
.someone-inputing
{
position
:
absolute
;
position
:
absolute
;
left
:
20px
;
left
:
20px
;
bottom
:
20px
;
bottom
:
20px
;
z-index
:
1
;
z-index
:
1
;
color
:
#c2c2c2
;
color
:
#c2c2c2
;
}
}
</
style
>
</
style
>
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