UNPKG

agora-classroom-sdk

Version:

For publishing npm package agora-classroom-sdk (Web & Electron). Get more information from https://docs.agora.io

41 lines (40 loc) 1.34 kB
import React, { ReactElement } from 'react'; import { BaseProps } from '../util/type'; import './index.css'; import { TableProps as AntTableProps } from 'antd/lib/table'; export interface TableBaseProps extends BaseProps { className?: string; children?: any; align?: 'center' | 'start' | 'end' | 'between' | 'around' | 'evenly'; onClick?: (evt: any) => Promise<void> | void; hoverClass?: string; onMouseEnter?: () => void; onMouseLeave?: () => void; onScroll?: React.UIEventHandler<HTMLDivElement>; } export declare type TableProps = TableBaseProps; export declare const Table: React.FC<TableProps>; export interface ColProps extends TableBaseProps { width?: 9 | 20; } export declare const Col: React.FC<ColProps>; export interface RowProps extends TableBaseProps { border?: 1; height?: 10; gap?: 10; } export declare const Row: React.FC<RowProps>; export interface ItemFontColorProps extends BaseProps { children: any; color?: string; width?: number; title?: string; } export declare const Inline: React.FC<ItemFontColorProps>; export declare const TableHeader: React.FC<RowProps>; declare type ATableProps<T> = AntTableProps<T> & { emptyImg?: string; emptyClassName?: string; }; export declare function ATable<T>(props: ATableProps<T>): ReactElement; export {};