UNPKG

@schema-render/search-table-react

Version:
20 lines (19 loc) 929 B
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 | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | 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; }): import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null;