@yuntijs/ui
Version:
☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps
21 lines (20 loc) • 978 B
TypeScript
import { type FormItemProps, type FormListOperation } from 'antd';
import React from 'react';
import type { FormCollapseListColumn } from '.';
import { ListFieldValue } from './utils';
export interface FormCollapseListOperation extends FormListOperation {
update: () => void;
}
export declare const useFormCollapseListHooks: (name: FormItemProps['name'], childrenColumnName: string, columns: FormCollapseListColumn[]) => {
values: ListFieldValue[];
updateValues: () => void;
expandedRowKeys: readonly React.Key[];
setExpandedRowKeys: React.Dispatch<React.SetStateAction<readonly React.Key[]>>;
fieldValuesToDataSource: (fields: ListFieldValue[]) => {
dataSource: ListFieldValue[];
allExpandRowKeys: React.Key[];
};
getFieldPath: (fieldKeyPath: number[], fieldName?: string) => any;
getFormListOperation: (operation: FormListOperation, record: ListFieldValue) => FormCollapseListOperation;
firstColumnFormItemName: any;
};