Skip to content

Commit 28a2c98

Browse files
fix: 优化下拉框字重
1 parent acebb7b commit 28a2c98

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

ui/src/components/common-list/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ defineExpose({
7373
li {
7474
padding: 10px 16px;
7575
font-weight: 400;
76+
color: var(--el-text-color-regular);
77+
font-size: 14px;
7678
&.active {
7779
background: var(--el-color-primary-light-9);
7880
border-radius: 4px;

ui/src/styles/element-plus.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133

134134
.el-card {
135135
--el-card-padding: calc(var(--app-base-px) * 2);
136+
color: var(--el-text-color-regular);
136137
}
137138
.el-dropdown {
138139
color: var(--app-text-color);
@@ -267,6 +268,9 @@
267268
.el-select-group .el-select-dropdown__item {
268269
padding-left: 11px;
269270
}
271+
.el-select-dropdown__item {
272+
font-weight: 400;
273+
}
270274

271275
.el-select__caret {
272276
color: var(--app-text-color-secondary);

ui/src/views/template/index.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<LayoutContainer header="模型设置">
33
<div class="template-manage flex main-calc-height">
44
<div class="template-manage__left p-8 border-r">
5-
<h4 style="padding-bottom: 8px">供应商</h4>
5+
<h4 class="p-16">供应商</h4>
66
<div class="model-list-height-left">
77
<div
88
class="all-mode flex cursor"
@@ -33,7 +33,7 @@
3333
ref="commonList1"
3434
>
3535
<template #default="{ row }">
36-
<div class="flex">
36+
<div class="flex align-center">
3737
<span
3838
:innerHTML="row.icon"
3939
alt=""
@@ -59,7 +59,7 @@
5959
ref="commonList2"
6060
>
6161
<template #default="{ row }">
62-
<div class="flex">
62+
<div class="flex align-center">
6363
<span
6464
:innerHTML="row.icon"
6565
alt=""
@@ -301,11 +301,11 @@ onMounted(() => {
301301
}
302302
303303
.model-list-height {
304-
height: calc(var(--create-dataset-height) - 70px);
304+
height: calc(var(--create-dataset-height) - 80px);
305305
}
306306
307307
.model-list-height-left {
308-
height: calc(var(--create-dataset-height));
308+
height: calc(var(--create-dataset-height) - 40px);
309309
}
310310
.all-mode {
311311
padding: 10px 16px;
@@ -338,6 +338,9 @@ onMounted(() => {
338338
:deep(.el-collapse-item__wrap) {
339339
border-bottom: none !important;
340340
}
341+
:deep(.el-collapse-item__content) {
342+
padding-bottom: 0 !important;;
343+
}
341344
}
342345
}
343346
</style>

0 commit comments

Comments
 (0)