UNPKG

@tplc/business

Version:

42 lines (38 loc) 1.05 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 // 列表项宽度 } 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>