@schema-render/search-table-react
Version:
Conditional search table component.
20 lines (19 loc) • 929 B
TypeScript
import type { IObjectAny } from '@schema-render/core-react';
import type { ReactNode } from 'react';
import type { ILocale, ISearchTableProps } from '../../../typings';
import type { IActionItem } from '../../../typings/table.d';
/**
* 创建「操作栏」按钮
*/
export declare function createActionItem(item: IActionItem, index: number): number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
/**
* 创建 “操作栏” 按钮组
*/
export declare function createActions({ record, index, actionItems, actionItemsCount, actionItemsDropdownProps, locale, }: {
record: IObjectAny;
index: number;
actionItems: ISearchTableProps['table']['actionItems'];
actionItemsCount: number;
actionItemsDropdownProps: ISearchTableProps['table']['actionItemsDropdownProps'];
locale: ILocale;
}): Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null;