UNPKG

@tplc/business

Version:

153 lines (145 loc) 4.06 kB
import { CSSProperties } from 'vue' import { TagType } from '@tplc/wot/components/wd-tag/types' export interface LcbProductItemProps { // Define the component's prop types here className?: string layoutType?: 'vertical' | 'horizontal' titleLineClamp?: number itemGap?: number showArea?: string // area在图片上面 areaOnImg?: boolean areaColor?: string areaFontSize?: number tagOverflowWrap?: boolean tagType?: TagType tagContentColor?: string addressOnImg?: boolean // 价格块显示在图片上(包含 price / scribePrice 及其相关字段) priceOnImg?: boolean tagBgColor?: string tagPlain?: boolean tagMark?: boolean tagRound?: boolean distanceUnit?: string imageType?: 'square' | 'vertical' | 'horizontal' borderRadius?: number coverImg?: any productName?: any headImg?: string userName?: string subTitle?: any price?: any priceUnit?: any pricePrefix?: any priceSuffix?: any priceTips?: any scribePrice?: any scribePriceUnit?: any scribePriceSuffix?: any tags?: any addressIntro?: any distance?: any scoreAvg?: any scoreTips?: any level?: any imgCornerIcon?: any imgBottomIcon?: any titleIcon?: any userInteractionInfo?: any orderTips?: any distanceTips?: any orderSkuCountTips?: any coverImgVisible?: boolean productNameVisible?: boolean subTitleVisible?: boolean userInfoVisible?: boolean priceVisible?: boolean priceUnitVisible?: boolean pricePrefixVisible?: boolean priceSuffixVisible?: boolean priceTipsVisible?: boolean scribePriceVisible?: boolean scribePriceUnitVisible?: boolean scribePriceSuffixVisible?: boolean tagsVisible?: boolean addressIntroVisible?: boolean distanceVisible?: boolean scoreAvgVisible?: boolean scoreTipsVisible?: boolean levelVisible?: boolean imgCornerIconVisible?: boolean imgBottomIconVisible?: boolean titleIconVisible?: boolean userInteractionInfoVisible?: boolean orderTipsVisible?: boolean distanceTipsVisible?: boolean orderSkuCountTipsVisible?: boolean coverImgClass?: string productNameClass?: string subTitleClass?: string priceClass?: string priceUnitClass?: string pricePrefixClass?: string priceSuffixClass?: string priceTipsClass?: string scribePriceClass?: string scribePriceUnitClass?: string scribePriceSuffixClass?: string tagsClass?: string tagsWrapperClass?: string addressIntroClass?: string distanceClass?: string scoreAvgClass?: string scoreTipsClass?: string levelClass?: string imgCornerIconClass?: string imgBottomIconClass?: string titleIconClass?: string userInteractionInfoClass?: string orderTipsClass?: string distanceTipsClass?: string orderSkuCountTipsClass?: string coverImgStyle?: CSSProperties productNameStyle?: CSSProperties subTitleStyle?: CSSProperties priceStyle?: CSSProperties priceUnitStyle?: CSSProperties pricePrefixStyle?: CSSProperties priceSuffixStyle?: CSSProperties priceTipsStyle?: CSSProperties scribePriceStyle?: CSSProperties scribePriceUnitStyle?: CSSProperties scribePriceSuffixStyle?: CSSProperties tagsStyle?: CSSProperties tagsWrapperStyle?: CSSProperties addressIntroStyle?: CSSProperties distanceStyle?: CSSProperties scoreAvgStyle?: CSSProperties scoreTipsStyle?: CSSProperties levelStyle?: CSSProperties imgCornerIconStyle?: CSSProperties imgBottomIconStyle?: CSSProperties titleIconStyle?: CSSProperties userInteractionInfoStyle?: CSSProperties orderTipsStyle?: CSSProperties distanceTipsStyle?: CSSProperties orderSkuCountTipsStyle?: CSSProperties blurSize?: number shadowColor?: string shadowSize?: number headImgStyle?: CSSProperties borderWidth?: number borderColor?: string borderMode?: 'full' | 'content' itemVerticalPadding?: number itemHorizontalPadding?: number itemContentPt?: number itemContentPr?: number itemContentPb?: number itemContentPl?: number // 价格居左 priceAlignLeft?: boolean // 标题显示在图片上 titleOnImg?: boolean }