mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
fix(ecom-dmb): Segmented圆角统一;品类对比按钮间距gap-2→gap-3与平台/店铺保持一致
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ const formatPercentPlain = (value: number | undefined) => {
|
||||
包含:规模、成本及最终损益所有维度
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="flex items-center gap-3">
|
||||
<template v-if="categoryExportMode">
|
||||
<button
|
||||
class="rounded-2xl border border-slate-300 bg-white px-4 py-2 text-sm font-bold text-slate-700 dark:border-[hsl(240deg_3.7%_22%)] dark:bg-[hsl(240deg_3.7%_15.9%)] dark:text-[hsl(240deg_5%_64.9%)]"
|
||||
|
||||
+18
-1
@@ -106,30 +106,47 @@ const modeOptions = [
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
:deep(.ant-segmented-thumb) {
|
||||
border-radius: 999px !important;
|
||||
}
|
||||
|
||||
:deep(.comparison-segmented) {
|
||||
background: rgb(148 163 184 / 16%);
|
||||
border-radius: 999px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
:deep(.comparison-segmented .ant-segmented-item) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
:deep(.comparison-segmented .ant-segmented-item-label) {
|
||||
font-weight: 700;
|
||||
padding: 4px 14px;
|
||||
padding: 6px 16px;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
:deep(.comparison-segmented .ant-segmented-item-selected) {
|
||||
background: white;
|
||||
color: #1d4ed8;
|
||||
box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
|
||||
}
|
||||
|
||||
:global(html.dark) :deep(.comparison-segmented) {
|
||||
background: hsl(240deg 3.7% 22% / 70%);
|
||||
}
|
||||
|
||||
:global(html.dark) :deep(.comparison-segmented .ant-segmented-item) {
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
:global(html.dark) :deep(.comparison-segmented .ant-segmented-item) {
|
||||
color: hsl(240deg 5% 64.9%);
|
||||
}
|
||||
|
||||
:global(html.dark) :deep(.comparison-segmented .ant-segmented-item-selected) {
|
||||
background: hsl(220deg 13% 18%);
|
||||
color: #60a5fa;
|
||||
box-shadow: 0 1px 3px hsl(0 0 0% / 30%);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user