This commit is contained in:
670788339
2025-11-03 19:15:50 +08:00
parent 44ccf8db6d
commit 5b2a6d304c

View File

@@ -27,10 +27,10 @@
/>
</el-select>
<!-- 添加标签计数显示 -->
</div>
<div class="tag-count">
{{ selectedTags.length }}/5
</div>
</div>
</template>
<script>
@@ -309,15 +309,20 @@ export default {
margin-bottom: 6px;
}
/* 添加标签计数样式 */
.tag-count {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
top: 30%;
transform: translateY(-40%);
font-size: 12px;
color: #999;
background: white;
padding: 0 5px;
pointer-events: none;
/* 添加高度限制 */
height: 25px;
line-height: 25px; /* 垂直居中文字 */
box-sizing: border-box; /* 确保padding包含在height内 */
}
</style>