mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
fix(ecom-dmb): 公司概览税率InputNumber垂直居中;店铺概览税率框高度h-[42px]→h-[50px]与时间选择器对齐
This commit is contained in:
@@ -478,14 +478,14 @@ const navigateToShopOverview = (shopId: number) => {
|
||||
:step="0.01"
|
||||
:precision="2"
|
||||
size="small"
|
||||
class="tax-rate-input !h-8 !w-20 !rounded-lg !border-none !bg-white/30 dark:!bg-[hsl(240deg_3.7%_22%/30%)] !text-sm !font-bold"
|
||||
class="tax-rate-input !h-8 !w-20 !rounded-lg !border-none !bg-white/30 dark:!bg-[hsl(240deg_3.7%_22%/30%)] !text-sm !font-bold !text-center"
|
||||
:formatter="formatTaxRate"
|
||||
:parser="parseTaxRate"
|
||||
/>
|
||||
</div>
|
||||
<!-- 时间选择器容器 -->
|
||||
<div
|
||||
class="flex flex-col gap-2 rounded-2xl border border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] bg-slate-200/50 dark:bg-[hsl(240deg_3.7%_15.9%/30%)] p-1.5 sm:flex-row sm:items-center sm:gap-2"
|
||||
class="flex h-[42px] flex-col gap-2 rounded-2xl border border-slate-200 dark:border-[hsl(240deg_3.7%_22%)] bg-slate-200/50 dark:bg-[hsl(240deg_3.7%_15.9%/30%)] p-1.5 sm:flex-row sm:items-center sm:gap-2"
|
||||
>
|
||||
<!-- 快速选择按钮组 -->
|
||||
<div
|
||||
@@ -603,3 +603,12 @@ const navigateToShopOverview = (shopId: number) => {
|
||||
</Spin>
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
:deep(.tax-rate-input .ant-input-number-input) {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ const handleTaxRateChange = (val: number | string | undefined) => {
|
||||
<div class="flex items-center gap-2">
|
||||
<!-- 税率输入 -->
|
||||
<div
|
||||
class="flex h-[42px] items-center gap-2 rounded-2xl border border-slate-200 bg-slate-200/50 dark:bg-[hsl(240deg_3.7%_15.9%/30%)] px-3"
|
||||
class="flex h-[50px] items-center gap-2 rounded-2xl border border-slate-200 bg-slate-200/50 dark:bg-[hsl(240deg_3.7%_15.9%/30%)] px-3"
|
||||
>
|
||||
<span class="text-xs font-bold text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">税率</span>
|
||||
<InputNumber
|
||||
|
||||
Reference in New Issue
Block a user