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
76496ec6
authored
Sep 30, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update style
parent
244c2c93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
components/message.vue
components/who-read-list.vue
components/message.vue
View file @
76496ec6
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<template
v-if=
"showReadSummary && !isWithdrawMessage"
>
<template
v-if=
"showReadSummary && !isWithdrawMessage"
>
<div
v-if=
"isMyMessage"
class=
"msg-read pos-rel"
>
<div
v-if=
"isMyMessage"
class=
"msg-read pos-rel"
>
<span
<span
@
click=
"
readListVisibility = true
"
@
click=
"
openReaderList
"
class=
"pointer"
class=
"pointer"
:class=
"
{ all: isAllRead }"
:class=
"
{ all: isAllRead }"
>
>
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
v-if=
"readListVisibility"
v-if=
"readListVisibility"
@
blur=
"readListVisibility = false"
@
blur=
"readListVisibility = false"
:msgId=
"data.id"
:msgId=
"data.id"
:class=
"{ offset: readerListOffset }"
/>
/>
</div>
</div>
</template>
</template>
...
@@ -62,7 +63,7 @@
...
@@ -62,7 +63,7 @@
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Inject
,
Mixins
,
Prop
,
Ref
}
from
"vue-property-decorator"
;
import
{
Component
,
Inject
,
Mixins
,
Prop
}
from
"vue-property-decorator"
;
import
{
Filters
}
from
"../mixin/filter"
;
import
{
Filters
}
from
"../mixin/filter"
;
import
*
as
dto
from
"../model"
;
import
*
as
dto
from
"../model"
;
...
@@ -149,6 +150,8 @@ export default class Message extends Mixins(Filters) {
...
@@ -149,6 +150,8 @@ export default class Message extends Mixins(Filters) {
private
org
=
""
;
private
org
=
""
;
private
readerListOffset
=
false
;
private
get
canWithdraw
()
{
private
get
canWithdraw
()
{
if
(
this
.
data
)
{
if
(
this
.
data
)
{
return
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoMinutes
;
return
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoMinutes
;
...
@@ -273,6 +276,11 @@ export default class Message extends Mixins(Filters) {
...
@@ -273,6 +276,11 @@ export default class Message extends Mixins(Filters) {
});
});
});
});
}
}
private
openReaderList
(
e
:
MouseEvent
)
{
this
.
readerListOffset
=
e
.
x
<
450
;
this
.
readListVisibility
=
true
;
}
}
}
</
script
>
</
script
>
...
...
components/who-read-list.vue
View file @
76496ec6
...
@@ -176,6 +176,11 @@ export default class WhoReadList extends Vue {
...
@@ -176,6 +176,11 @@ export default class WhoReadList extends Vue {
z-index
:
2
;
z-index
:
2
;
margin-left
:
-100px
;
margin-left
:
-100px
;
width
:
125px
;
width
:
125px
;
&.offset
{
margin-left
:
0
;
}
.number-count
{
.number-count
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#333333
;
color
:
#333333
;
...
...
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