UNPKG

@tplc/business

Version:

54 lines (49 loc) 1.33 kB
import { PageListProps } from './components/FilterList/type' import { LcbProductProps } from '../lcb-product/types' import { LcbBlockProps } from '../lcb-block/types' export interface LcbListProps extends LcbBlockProps { pageFilterType?: string pageListProps?: PageListProps borderRadius?: number styleMode?: 'default' | 'plain' imageWidth?: number border?: boolean imageHeight?: number titleLineClamp?: number listType?: LcbProductProps['listType'] isSticky?: boolean mode?: 'map' | 'list' layoutType?: 'vertical' | 'horizontal' imageRadius?: number itemWidth?: number // 列表项宽度 dynamicScope?: string gap?: number borderWidth?: number borderColor?: string borderMode?: 'full' | 'content' itemVerticalPadding?: number itemHorizontalPadding?: number itemContentPt?: number itemContentPr?: number itemContentPb?: number itemContentPl?: number } export interface Option { label: string value: string custom?: boolean max?: number min?: number children?: Option[] unit?: string valueName?: string } export interface FilterItemProps { mode?: 'multiple' | 'single' apiPath?: string apiParams?: Record<string, any> options?: Option[] valueName: string sortType?: boolean } export type ListFormChooserValues = Record<string, Option[] | undefined>