@tplc/business
Version:
44 lines (43 loc) • 1.18 kB
TypeScript
import { LcbIconProps } from '../lcb-icon/types'
import { LcbActionViewProps } from '../lcb-action-view/types'
import { LcbBlockProps } from '../lcb-block/types'
export interface LcbTitleProps
extends LcbBlockProps,
Omit<LcbIconProps, 'color' | 'customStyle' | 'size'> {
/** 副标题 */
title: string
titleKeyFromUser?: boolean
fontWeight?: number
action?: LcbActionViewProps
justify?:
| 'justify-start'
| 'justify-end'
| 'justify-center'
| 'justify-between'
| 'justify-around'
hint?: string
hintKeyFromUser?: boolean
hintColor?: string
hintFontSize?: number
hintVerticalAlign?: 'end' | 'center'
showTitleLine?: boolean
lineRight?: number
lineColor?: string
lineWidth?: number
moreColor?: string
moreFontSize?: number
moreText?: string
moreVerticalAlign?: 'end' | 'center'
moreKeyFromUser?: boolean
moreFontWeight?: number
iconColor?: string
iconRight?: number
iconSize?: number
showIcon?: boolean
visibleKeyFromUser?: string
/** 依赖值反选 */
visibleKeyReverse?: boolean
/** 依赖值对比类型 */
compareType?: '=' | '>=' | '<=' | '>' | '<' | '!=' | 'includes'
compareValue?: string
}