UNPKG

drip-table

Version:

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

67 lines (66 loc) 1.98 kB
import './index.less'; import React from 'react'; import { DripTableColumnSchema, DripTableRecordTypeBase, SchemaObject } from "../../../types"; import { DripTableComponentProps } from '../component'; export declare type DTCLinkColumnSchema = DripTableColumnSchema<'link', { mode?: 'single' | 'multiple'; lineHeight?: string; name?: string; label?: string; href?: string; event?: string; target?: string; tooltip?: string; disabled?: boolean | string; operates?: { name?: string; label?: string; href?: string; event?: string; target?: string; disabled?: boolean | string; /** * 显隐的数据处理 */ visibleFunc?: string; }[]; /** * 多选模式下最大平铺展示数量,如果配置,其余均通过更多收起 */ maxTiledCount?: number; dropdownText?: string; textColor?: string; suffixIcon?: string; trigger?: 'hover' | 'click'; placement?: 'bottom' | 'bottomLeft' | 'bottomRight' | 'top' | 'topLeft' | 'topRight'; /** * 禁用的数据处理 */ disableFunc?: string; /** * 显隐的数据处理 */ visibleFunc?: string; }>; export interface DTCLinkEvent { type: 'drip-link-click'; payload: string; } interface DTCLinkProps<RecordType extends DripTableRecordTypeBase> extends DripTableComponentProps<RecordType, DTCLinkColumnSchema> { } interface DTCLinkState { } export default class DTCLink<RecordType extends DripTableRecordTypeBase> extends React.PureComponent<DTCLinkProps<RecordType>, DTCLinkState> { static componentName: DTCLinkColumnSchema['component']; static schema: SchemaObject; private renderInfoCircle; private formatLabel; private renderToolTip; private get configured(); private finalizeDisabled; private get visible(); private getIcon; renderMenu(): JSX.Element; render(): JSX.Element; } export {};