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
1713c0af
Commit
1713c0af
authored
Sep 01, 2020
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角标测试
parent
f227b35f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
global.less
src/assets/style/global.less
+4
-10
diyTag.vue
src/components/diyTags/diyTag.vue
+3
-3
No files found.
src/assets/style/global.less
View file @
1713c0af
...
...
@@ -53,27 +53,21 @@
@selectColor: #4498F0; // #4498F0
.diyTag{
// transform: scale(.99,.99);
line-height: normal;
border-radius: 14px;
font-size:
1
0px;
font-size:
2
0px;
background-color:#E94B3F;
color: white;
position: absolute;
font-weight: initial;
z-index: 999;
display: inline-table;
box-sizing: border-box;
transform-origin: 0 0;
// display: flex;
// align-items: center;
// justify-content: center;
.center{
width: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
display: table-cell;
vertical-align:
center
;
vertical-align:
middle
;
//display: flex;
//align-items: center;
//justify-content: center
...
...
src/components/diyTags/diyTag.vue
View file @
1713c0af
<
template
>
<div
style=
"position: relative;display: inline-block;width: 0px;height: 18px"
>
<div
style=
"position: relative;display: inline-block;width: 0px;height: 18px
;transform: scale(0.5)
"
>
<div
class=
"diyTag"
v-if=
"num !== 0"
v-show=
"num !== 'NaN'"
style=
"height:
14
px"
style=
"height:
28
px"
:style=
"
{
'top':type === 1 ? '-22px' : type === 2 ? '-18px' : '0',
'left':type === 1 ? '-10px': type === 2 ? '-8px' : '0',
'width':num > 99 ? '
24px': '14
px',
'width':num > 99 ? '
48px': '28
px',
}">
<span
class=
"center"
>
{{
num
>
99
?
'99+'
:
num
}}
</span>
</div>
...
...
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