Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王旭
mt-education-mobile
Commits
f563d93e
Commit
f563d93e
authored
Sep 01, 2020
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角标修改
parent
f0076150
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
global.less
src/assets/style/global.less
+5
-1
diyTag.vue
src/components/diyTags/diyTag.vue
+4
-4
No files found.
src/assets/style/global.less
View file @
f563d93e
...
...
@@ -58,13 +58,17 @@
font-size: 10px;
background-color:#E94B3F;
color: white;
position:
absolut
e;
position:
relativ
e;
font-weight: initial;
z-index: 999;
// display: flex;
// align-items: center;
// justify-content: center;
.center{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);;
//display: flex;
//align-items: center;
//justify-content: center
...
...
src/components/diyTags/diyTag.vue
View file @
f563d93e
<
template
>
<div
style=
"position: relative;display: inline-block;width: 0px;height: 18px"
>
<
span
class=
"diyTag"
v-if=
"num !== 0"
v-show=
"num !== 'NaN'"
style=
"height: 14px
;line-height: 14px
"
<
div
class=
"diyTag"
v-if=
"num !== 0"
v-show=
"num !== 'NaN'"
style=
"height: 14px"
:style=
"
{
'top':type === 1 ? '-22px' : type === 2 ? '-18px' : '0',
'left':type === 1 ? '-10px': type === 2 ? '-8px' : '0',
'width':num > 99 ? '24px': '14px',
}">
{{
num
>
99
?
'99+'
:
num
}}
</
span
>
<span
class=
"center"
>
{{
num
>
99
?
'99+'
:
num
}}
</span>
</
div
>
</div>
</
template
>
...
...
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