@@ -4,7 +4,14 @@ import { getGridStyle } from './grid'
4
4
import { genOtherStyle } from './other'
5
5
6
6
const genSmallStyle : GenerateStyle = ( token ) => {
7
- const { componentCls, antCls, controlHeightSM, marginLG, fontSizeSM } = token
7
+ const {
8
+ componentCls,
9
+ antCls,
10
+ controlHeightSM,
11
+ marginLG,
12
+ fontSizeSM,
13
+ lineHeightSM,
14
+ } = token
8
15
return {
9
16
fontSize : fontSizeSM ,
10
17
lineHeight : controlHeightSM ,
@@ -20,7 +27,7 @@ const genSmallStyle: GenerateStyle = (token) => {
20
27
[ `${ componentCls } -control-content` ] : {
21
28
' &-component' : {
22
29
minHeight : controlHeightSM - 4 ,
23
- lineHeight : ` ${ controlHeightSM } px` ,
30
+ lineHeight : lineHeightSM ,
24
31
} ,
25
32
} ,
26
33
@@ -147,6 +154,7 @@ const genLargeStyle: GenerateStyle = (token) => {
147
154
controlHeightLG,
148
155
controlHeightSM,
149
156
marginLG,
157
+ lineHeightLG,
150
158
} = token
151
159
return {
152
160
fontSize : fontSizeLG ,
@@ -163,7 +171,7 @@ const genLargeStyle: GenerateStyle = (token) => {
163
171
[ `${ componentCls } -control-content` ] : {
164
172
' &-component' : {
165
173
minHeight : controlHeightLG - 2 ,
166
- lineHeight : ` ${ controlHeightLG + 2 } px` ,
174
+ lineHeight : lineHeightLG ,
167
175
} ,
168
176
} ,
169
177
@@ -302,8 +310,14 @@ const genLargeStyle: GenerateStyle = (token) => {
302
310
}
303
311
304
312
const genLableStyle : GenerateStyle = ( token ) => {
305
- const { componentCls, controlHeight, controlHeightSM, marginLG, marginSM } =
306
- token
313
+ const {
314
+ componentCls,
315
+ controlHeight,
316
+ controlHeightSM,
317
+ marginLG,
318
+ marginSM,
319
+ lineHeight,
320
+ } = token
307
321
return {
308
322
lineHeight : `${ controlHeight } px` ,
309
323
minHeight : controlHeight - 2 ,
@@ -364,7 +378,7 @@ const genLableStyle: GenerateStyle = (token) => {
364
378
'&-component' : {
365
379
width : '100%' ,
366
380
minHeight : controlHeight - 2 ,
367
- lineHeight : ` ${ controlHeight } px` ,
381
+ lineHeight : lineHeight ,
368
382
369
383
'&-has-feedback-icon' : {
370
384
flex : 1 ,
0 commit comments