@tplc/business
Version:
39 lines (37 loc) • 972 B
text/typescript
import { LcbBlockProps } from '../../components/lcb-block/types'
export interface LcbTabsProps extends LcbBlockProps {
/** 是否吸顶 */
sticky?: boolean
items: {
title: string
/** 字符串json格式数据,用于表单数据联动 */
name: string
activeUrl?: string
inactiveUrl?: string
}[]
showTitle?: boolean
lineWidth?: number
lineHeight?: number
slidable?: 'always' | 'auto'
slidableNum?: number
itemFontSize?: number
mode?: 'tabs' | 'block' | 'image'
tagsMode?: 'scroll' | 'tiled'
gap?: number
dynamicScope?: string
visibleScope?: string
defaultIndex?: number
imgHeight?: number
imgTitleGap?: number
activeColor?: string
inactiveColor?: string
tagActiveColor?: string
tagInactiveColor?: string
tagTitleActiveColor?: string
tagTitleInactiveColor?: string
tagRadius?: number
tagMinWidth?: number
tabActiveFontWeight?: string
tabInactiveFontWeight?: string
tabActiveFontSize?: number
}