mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
chore: fix ts
This commit is contained in:
parent
d5cfd195dd
commit
dc9412ee55
@ -15,14 +15,7 @@ interface CarouselToken extends FullToken<'Carousel'> {
|
||||
}
|
||||
|
||||
const genCarouselStyle: GenerateStyle<CarouselToken> = token => {
|
||||
const {
|
||||
componentCls,
|
||||
antCls,
|
||||
carouselArrowSize,
|
||||
carouselDotOffset,
|
||||
marginXXS,
|
||||
carouselDotInline,
|
||||
} = token;
|
||||
const { componentCls, antCls, carouselArrowSize, carouselDotOffset, marginXXS } = token;
|
||||
const arrowOffset = -carouselArrowSize * 1.25;
|
||||
|
||||
const carouselDotMargin = marginXXS;
|
||||
@ -337,11 +330,10 @@ const genCarouselRtlStyle: GenerateStyle<CarouselToken> = token => {
|
||||
export default genComponentStyleHook(
|
||||
'Carousel',
|
||||
token => {
|
||||
const { controlHeightLG, controlHeightSM, dotHeight } = token;
|
||||
const { controlHeightLG, controlHeightSM } = token;
|
||||
const carouselToken = mergeToken<CarouselToken>(token, {
|
||||
carouselArrowSize: controlHeightLG / 2,
|
||||
carouselDotOffset: controlHeightSM / 2,
|
||||
carouselDotInline: dotHeight,
|
||||
});
|
||||
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user