Commit c5d05ac7 authored by zhangyichen's avatar zhangyichen

调整角标内数字偏下问题

parent 40d4cfd7
<template> <template>
<div style="position: relative;display: inline-block;width: 0px;height: 18px"> <div style="position: relative;display: inline-block;width: 0px;height: 18px">
<div class="diyTag" v-if="num !== 0" v-show="num !== 'NaN'" <div class="diyTag" v-if="num !== 0" v-show="num !== 'NaN'"
style="height: 14px;border-radius: 14px;font-size: 20px;line-height: 14px" style="height: 14px;border-radius: 14px;font-size: 20px;line-height: 13px"
:style="{ :style="{
'top':type === 1 ? '-21px' : type === 2 ? '-16px' : '0', 'top':type === 1 ? '-22px' : type === 2 ? '-16px' : '0',
'left':type === 1 ? '-10px': type === 2 ? '-8px' : '-2px', 'left':type === 1 ? '-10px': type === 2 ? '-8px' : '-2px',
'width':num > 99 ? '24px': '14px', 'width':num > 99 ? '24px': '14px',
}"> }">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment