@tplc/business
Version:
18 lines (17 loc) • 533 B
TypeScript
import { ActionView } from 'action'
import { LcbBlockProps } from '../lcb-block/types'
export interface LcbSwiperProps extends LcbBlockProps {
items?: Partial<
ActionView & {
maskBgColor?: string
}
>[]
itemWidth?: number
itemHeight?: number
mode?: 'stackLeft' | 'stackRight' | 'stackCenter' | 'tinder'
visibleCount?: number
imageRadius?: number
enableOpacity?: boolean
/** 缩放步长:仅针对 stackLeft/stackRight 模式,每张卡片缩小的比例,默认 0.1 (10%) */
scaleStep?: number
}