From 91321923656f18974f8f9d9d17731fbe1ee02e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B1=AA?= <1844749591@qq.com> Date: Tue, 25 Feb 2025 11:08:36 +0800 Subject: [PATCH] style(select): remove unused line height calculations --- components/select/style/single.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/components/select/style/single.ts b/components/select/style/single.ts index 5f2769c647ed..c54d953cf771 100644 --- a/components/select/style/single.ts +++ b/components/select/style/single.ts @@ -8,11 +8,6 @@ import type { SelectToken } from './token'; function genSizeStyle(token: SelectToken, suffix?: string): CSSObject { const { componentCls, inputPaddingHorizontalBase, borderRadius } = token; - const selectHeightWithoutBorder = token - .calc(token.controlHeight) - .sub(token.calc(token.lineWidth).mul(2)) - .equal(); - const suffixCls = suffix ? `${componentCls}-${suffix}` : ''; return { @@ -45,7 +40,6 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject { `]: { display: 'block', padding: 0, - lineHeight: unit(selectHeightWithoutBorder), transition: `all ${token.motionDurationSlow}, visibility 0s`, alignSelf: 'center', }, @@ -96,9 +90,6 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject { [`${componentCls}-selection-search-input`]: { fontSize: token.fontSize, }, - '&:after': { - lineHeight: unit(selectHeightWithoutBorder), - }, }, },