在线课标签样式

This commit is contained in:
670788339
2025-11-11 16:38:51 +08:00
parent 57d9f9b483
commit 2070466786

View File

@@ -364,7 +364,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
} }
/*
::v-deep(.el-tag) { ::v-deep(.el-tag) {
flex: 0 0 calc(50% - 8px); flex: 0 0 calc(50% - 8px);
max-width: calc(50% - 8px); max-width: calc(50% - 8px);
@@ -374,6 +374,20 @@ export default {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
}*/
::v-deep(.el-tag) {
flex: 1 1 auto; /* 自动调整宽度 */
min-width: 30%; /* 设置最小宽度 */
max-width: 48%; /* 设置最大宽度,留出边距 */
box-sizing: border-box;
margin-right: 8px;
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
justify-content: center;
text-align: center;
} }
::v-deep(.el-select__input) { ::v-deep(.el-select__input) {