jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
11 lines (10 loc) • 518 B
TypeScript
import React from 'react';
import type { ActionObject, SchemaNode } from 'jamis-core';
import type { TableProps } from './types';
export declare const useTableToolbarActions: (props: TableProps, { handleAction }: {
handleAction: (e: React.UIEvent<any> | undefined, action: ActionObject, ctx: object) => void;
}) => {
renderToolbar: (toolbar: SchemaNode) => JSX.Element | null | undefined;
renderActions: (region: string) => JSX.Element | null;
renderedToolbarsRef: React.MutableRefObject<string[]>;
};