mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +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 genCarouselStyle: GenerateStyle<CarouselToken> = token => {
|
||||||
const {
|
const { componentCls, antCls, carouselArrowSize, carouselDotOffset, marginXXS } = token;
|
||||||
componentCls,
|
|
||||||
antCls,
|
|
||||||
carouselArrowSize,
|
|
||||||
carouselDotOffset,
|
|
||||||
marginXXS,
|
|
||||||
carouselDotInline,
|
|
||||||
} = token;
|
|
||||||
const arrowOffset = -carouselArrowSize * 1.25;
|
const arrowOffset = -carouselArrowSize * 1.25;
|
||||||
|
|
||||||
const carouselDotMargin = marginXXS;
|
const carouselDotMargin = marginXXS;
|
||||||
@ -337,11 +330,10 @@ const genCarouselRtlStyle: GenerateStyle<CarouselToken> = token => {
|
|||||||
export default genComponentStyleHook(
|
export default genComponentStyleHook(
|
||||||
'Carousel',
|
'Carousel',
|
||||||
token => {
|
token => {
|
||||||
const { controlHeightLG, controlHeightSM, dotHeight } = token;
|
const { controlHeightLG, controlHeightSM } = token;
|
||||||
const carouselToken = mergeToken<CarouselToken>(token, {
|
const carouselToken = mergeToken<CarouselToken>(token, {
|
||||||
carouselArrowSize: controlHeightLG / 2,
|
carouselArrowSize: controlHeightLG / 2,
|
||||||
carouselDotOffset: controlHeightSM / 2,
|
carouselDotOffset: controlHeightSM / 2,
|
||||||
carouselDotInline: dotHeight,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user