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

View File

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