Skip to content

Commit 5289b01

Browse files
committed
💄 UI调整,与dialog保持一致
1 parent 0ab8bf3 commit 5289b01

1 file changed

Lines changed: 58 additions & 13 deletions

File tree

src/components/pageConfig/tco-imgQuality.vue

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- 设置图片质量浮窗 -->
22
<template>
3-
<TOverlay v-model="model" :outer-close="clickOuter" blur-val="10px">
3+
<TOverlay v-model="model" :outer-close="clickOuter" blur-val="10px" class="toi-overlay">
44
<div class="toi-box">
55
<div class="toi-top">
66
<div class="toi-title">调整图片质量</div>
@@ -33,8 +33,14 @@
3333
/>
3434
</div>
3535
<div class="toi-bottom">
36-
<v-btn class="toi-btn no-btn" variant="flat" @click="onCancel()">取消</v-btn>
37-
<v-btn class="toi-btn ok-btn" variant="elevated" @click="onConfirm()">确定</v-btn>
36+
<button class="toi-btn no-btn" @click="onCancel()">
37+
<span>></span>
38+
<span>取消</span>
39+
</button>
40+
<button class="toi-btn ok-btn" @click="onConfirm()">
41+
<span>></span>
42+
<span>确定</span>
43+
</button>
3844
</div>
3945
</div>
4046
</TOverlay>
@@ -74,14 +80,33 @@ async function handleSliderEnd(): Promise<void> {
7480
}
7581
</script>
7682
<style lang="scss" scoped>
83+
/* 颜色变量 */
84+
85+
.toi-overlay {
86+
--toi-title: var(--tgc-dark-7);
87+
--toi-bg: var(--tgc-white-1);
88+
}
89+
90+
/* 深色模式 */
91+
92+
.dark .toi-overlay {
93+
--toi-title: var(--tgc-white-1);
94+
--toi-bg: var(--tgc-dark-7);
95+
}
96+
7797
.toi-box {
98+
position: relative;
7899
display: flex;
79100
width: 400px;
80101
flex-direction: column;
102+
align-items: center;
103+
justify-content: space-between;
81104
padding: 8px;
82-
border-radius: 4px;
83-
background-color: var(--box-bg-1);
84-
color: var(--app-page-content);
105+
border: 1px solid var(--common-shadow-1);
106+
border-radius: 8px;
107+
background: var(--toi-bg);
108+
box-shadow: 0 0 10px var(--common-shadow-t-2);
109+
color: var(--tgc-yellow-3);
85110
gap: 12px;
86111
}
87112
@@ -96,7 +121,7 @@ async function handleSliderEnd(): Promise<void> {
96121
text-align: center;
97122
98123
.toi-title {
99-
color: var(--common-text-title);
124+
color: var(--toi-title);
100125
font-size: 20px;
101126
}
102127
@@ -134,14 +159,34 @@ async function handleSliderEnd(): Promise<void> {
134159
.toi-btn {
135160
position: relative;
136161
display: flex;
137-
box-sizing: border-box;
138162
align-items: center;
139163
justify-content: center;
140-
padding: 4px 20px;
141-
border-radius: 24px;
142-
background: var(--tgc-btn-1);
143-
color: var(--btn-text);
164+
padding: 4px 8px;
165+
border: unset;
166+
border-radius: 4px;
167+
background: unset;
168+
column-gap: 8px;
144169
cursor: pointer;
145-
font-family: var(--font-title);
170+
font-size: 14px;
171+
172+
span:first-child {
173+
font-weight: bold;
174+
}
175+
}
176+
177+
.no-btn {
178+
color: var(--tgc-od-white);
179+
180+
&:hover {
181+
background: var(--common-shadow-1);
182+
}
183+
}
184+
185+
.ok-btn {
186+
color: var(--box-text-1);
187+
188+
&:hover {
189+
background: var(--common-shadow-2);
190+
}
146191
}
147192
</style>

0 commit comments

Comments
 (0)