@@ -4,7 +4,14 @@ import { getGridStyle } from './grid'
44import { genOtherStyle } from './other'
55
66const 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
815 return {
916 fontSize : fontSizeSM ,
1017 lineHeight : controlHeightSM ,
@@ -20,7 +27,7 @@ const genSmallStyle: GenerateStyle = (token) => {
2027 [ `${ componentCls } -control-content` ] : {
2128 ' &-component' : {
2229 minHeight : controlHeightSM - 4 ,
23- lineHeight : ` ${ controlHeightSM } px` ,
30+ lineHeight : lineHeightSM ,
2431 } ,
2532 } ,
2633
@@ -147,6 +154,7 @@ const genLargeStyle: GenerateStyle = (token) => {
147154 controlHeightLG,
148155 controlHeightSM,
149156 marginLG,
157+ lineHeightLG,
150158 } = token
151159 return {
152160 fontSize : fontSizeLG ,
@@ -163,7 +171,7 @@ const genLargeStyle: GenerateStyle = (token) => {
163171 [ `${ componentCls } -control-content` ] : {
164172 ' &-component' : {
165173 minHeight : controlHeightLG - 2 ,
166- lineHeight : ` ${ controlHeightLG + 2 } px` ,
174+ lineHeight : lineHeightLG ,
167175 } ,
168176 } ,
169177
@@ -302,8 +310,14 @@ const genLargeStyle: GenerateStyle = (token) => {
302310}
303311
304312const 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
307321 return {
308322 lineHeight : `${ controlHeight } px` ,
309323 minHeight : controlHeight - 2 ,
@@ -364,7 +378,7 @@ const genLableStyle: GenerateStyle = (token) => {
364378 '&-component' : {
365379 width : '100%' ,
366380 minHeight : controlHeight - 2 ,
367- lineHeight : ` ${ controlHeight } px` ,
381+ lineHeight : lineHeight ,
368382
369383 '&-has-feedback-icon' : {
370384 flex : 1 ,
0 commit comments