mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
调整
This commit is contained in:
@@ -27,9 +27,9 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<!-- 添加标签计数显示 -->
|
<!-- 添加标签计数显示 -->
|
||||||
<div class="tag-count">
|
</div>
|
||||||
{{ selectedTags.length }}/5
|
<div class="tag-count">
|
||||||
</div>
|
{{ selectedTags.length }}/5
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -300,7 +300,6 @@ export default {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.tag-container {
|
.tag-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-right: 50px;
|
|
||||||
}
|
}
|
||||||
.tag-preview {
|
.tag-preview {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
@@ -312,54 +311,13 @@ export default {
|
|||||||
|
|
||||||
.tag-count {
|
.tag-count {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: 10px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #909399;
|
color: #999;
|
||||||
background: white;
|
background: white;
|
||||||
padding: 2px 6px;
|
padding: 0 5px;
|
||||||
border-radius: 3px;
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 10;
|
|
||||||
/* 添加边框和阴影使其更清晰 */
|
|
||||||
border: 1px solid #e4e7ed;
|
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
||||||
/* 最小宽度确保数字对齐 */
|
|
||||||
min-width: 35px;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 通过调整el-select的样式来避免遮挡 */
|
|
||||||
.tag-container ::v-deep .el-select {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-container ::v-deep .el-select .el-input__inner {
|
|
||||||
padding-right: 60px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-container ::v-deep .el-select__tags {
|
|
||||||
max-width: calc(100% - 50px);
|
|
||||||
padding-right: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-container ::v-deep .el-select .el-input__suffix {
|
|
||||||
right: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-container ::v-deep .el-select .el-input__suffix-inner {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-preview {
|
|
||||||
margin-top: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-tag {
|
|
||||||
margin-right: 6px;
|
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user