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
d35424a0
authored
Jan 07, 2022
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'pre' into release
parents
d1683770
ac6f7019
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
16 deletions
components/chat-room.vue
components/chat-room.vue
View file @
d35424a0
...
@@ -132,22 +132,29 @@
...
@@ -132,22 +132,29 @@
}
}
mounted
()
{
mounted
()
{
if
(
this
.
adjust
();
localStorage
.
getItem
(
chatResizeKey1
)
&&
}
localStorage
.
getItem
(
chatResizeKey2
)
)
{
private
adjust
()
{
const
s1
=
localStorage
.
getItem
(
chatResizeKey1
)
+
"px"
;
setTimeout
(()
=>
{
const
s2
=
localStorage
.
getItem
(
chatResizeKey2
)
+
"px"
;
if
(
this
.
refResize
&&
(
this
.
refResize
.
style
.
top
=
s1
);
localStorage
.
getItem
(
chatResizeKey1
)
&&
this
.
refTop
&&
(
this
.
refTop
.
style
.
height
=
s1
);
localStorage
.
getItem
(
chatResizeKey2
)
&&
this
.
refBottom
&&
(
this
.
refBottom
.
style
.
height
=
s2
);
this
.
hasInput
}
else
{
)
{
this
.
refBottom
&&
const
s1
=
localStorage
.
getItem
(
chatResizeKey1
)
+
"px"
;
((
this
.
refBottom
as
HTMLElement
).
style
.
height
=
const
s2
=
localStorage
.
getItem
(
chatResizeKey2
)
+
"px"
;
this
.
chatBox
.
clientHeight
-
this
.
refTop
&&
(
this
.
refTop
.
style
.
height
=
s1
);
this
.
refTop
.
clientHeight
+
this
.
refResize
&&
(
this
.
refResize
.
style
.
top
=
s1
);
"px"
);
this
.
refBottom
&&
(
this
.
refBottom
.
style
.
height
=
s2
);
}
}
else
{
this
.
refBottom
&&
((
this
.
refBottom
as
HTMLElement
).
style
.
height
=
this
.
chatBox
.
clientHeight
-
this
.
refTop
.
clientHeight
+
"px"
);
}
},
800
);
}
}
private
openMessage
(
o
:
any
)
{
private
openMessage
(
o
:
any
)
{
...
@@ -242,6 +249,10 @@
...
@@ -242,6 +249,10 @@
top
:
calc
(
100%
-
130px
+
1px
);
top
:
calc
(
100%
-
130px
+
1px
);
height
:
6px
;
height
:
6px
;
width
:
100%
;
width
:
100%
;
&:hover
{
background-color
:
#eee
;
}
}
}
}
}
.order-info-con
{
.order-info-con
{
...
...
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