@schema-render/search-react
Version:
Conditional search component based on FormRender.
10 lines (9 loc) • 411 B
TypeScript
import type { ISearchProps } from '../typings';
/**
* 根据容器尺寸计算折叠表单项个数
* @param container 容器 DOM 元素
* @param collapsedRows 折叠行数
* @param customAlgo 自定义算法
* @returns 折叠个数
*/
export declare function calcCollapsedNumber(container: HTMLElement | null | undefined, collapsedRows: number, customAlgo?: ISearchProps['calcCollapsedNumber']): number;