UNPKG

drip-table

Version:

A tiny and powerful enterprise-class solution for building tables.

51 lines (50 loc) 3.17 kB
/** * This file is part of the drip-table project. * @link : https://drip-table.jd.com/ * @author : helloqian12138 (johnhello12138@163.com) * @modifier : helloqian12138 (johnhello12138@163.com) * @copyright: Copyright (c) 2020 JD Network Technology Co., Ltd. */ import { DripTableDataColumnSchema } from "../../types"; import DTCButton, { DTCButtonColumnSchema, DTCButtonEvent } from './button'; import DTCCheckbox, { DTCCheckboxColumnSchema, DTCCheckboxEvent } from './checkbox'; import DTCDatePicker, { DTCDateColumnSchema as DTCDatePickerColumnSchema } from './date-picker'; import DTCGroup, { DTCGroupColumnSchema } from './group'; import DTCIcon, { DTCIconColumnSchema, DTCIconEvent } from './icon'; import DTCImage, { DTCImageColumnSchema } from './image'; import DTCInputNumber, { DTCInputNumberColumnSchema } from './input-number'; import DTCLink, { DTCLinkColumnSchema, DTCLinkEvent } from './link'; import DTCPopUpPage, { DTCPopUpPageColumnSchema } from './pop-up-page'; import DTCPopover, { DTCPopoverColumnSchema } from './popover'; import DTCRenderHTML, { DTCRenderHTMLColumnSchema } from './render-html'; import DTCRenderHTMLRemote, { DTCRenderHTMLRemoteColumnSchema } from './render-html-remote'; import DTCRichText, { DTCRichTextColumnSchema } from './rich-text'; import DTCSelect, { DTCSelectColumnSchema, DTCSelectEvent } from './select'; import DTCStatus, { DTCStatusColumnSchema } from './status'; import DTCSwitch, { DTCSwitchColumnSchema, DTCSwitchEvent } from './switch'; import DTCTag, { DTCTagColumnSchema } from './tag'; import DTCText, { DTCTextColumnSchema, DTCTextEvent } from './text'; export type { DripTableComponentProps } from './component'; export declare type DripTableBuiltInComponentEvent = DTCButtonEvent | DTCIconEvent | DTCLinkEvent | DTCSelectEvent | DTCCheckboxEvent | DTCSwitchEvent | DTCTextEvent; export declare type DripTableBuiltInColumnSchema<CustomColumnSchema extends DripTableDataColumnSchema = never> = DTCButtonColumnSchema | DTCDatePickerColumnSchema | DTCIconColumnSchema | DTCImageColumnSchema | DTCInputNumberColumnSchema | DTCLinkColumnSchema | DTCPopUpPageColumnSchema | DTCRenderHTMLColumnSchema | DTCRenderHTMLRemoteColumnSchema | DTCRichTextColumnSchema | DTCRichTextColumnSchema | DTCSelectColumnSchema | DTCStatusColumnSchema | DTCSwitchColumnSchema | DTCCheckboxColumnSchema | DTCTagColumnSchema | DTCTextColumnSchema | DTCGroupColumnSchema<CustomColumnSchema> | DTCPopoverColumnSchema<CustomColumnSchema>; declare const DripTableBuiltInComponents: { button: typeof DTCButton; "date-picker": typeof DTCDatePicker; icon: typeof DTCIcon; image: typeof DTCImage; "input-number": typeof DTCInputNumber; link: typeof DTCLink; "pop-up-page": typeof DTCPopUpPage; "render-html": typeof DTCRenderHTML; "render-html-remote": typeof DTCRenderHTMLRemote; "rich-text": typeof DTCRichText; select: typeof DTCSelect; status: typeof DTCStatus; switch: typeof DTCSwitch; tag: typeof DTCTag; text: typeof DTCText; group: typeof DTCGroup; popover: typeof DTCPopover; checkbox: typeof DTCCheckbox; }; export default DripTableBuiltInComponents;