@tplc/business
Version:
32 lines (30 loc) • 738 B
text/typescript
import { LcbActionViewProps } from '../lcb-action-view/types'
import { LcbBlockProps } from '../lcb-block/types'
export interface LcbButtonProps extends LcbBlockProps {
text: string
action?: LcbActionViewProps
mode: 'image' | 'text'
url?: string
imageWidth?: number
imageHeight?: number
dynamicKey?: string
keyFromUser?: boolean
fillWidth?: boolean
fillHeight?: boolean
icon?: string
iconSize?: number
iconColor?: string
iconGap?: number
// 动态值不存在就不显示
hideWhenDynamicKeyNotExist?: boolean
itemAlign?:
| 'top-left'
| 'top-center'
| 'top-right'
| 'center-left'
| 'center-center'
| 'center-right'
| 'bottom-left'
| 'bottom-center'
| 'bottom-right'
}