drip-table
Version:
A tiny and powerful enterprise-class solution for building tables.
67 lines (66 loc) • 1.74 kB
TypeScript
/**
* 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 React from 'react';
import { DripTableColumnSchema, DripTableRecordTypeBase, SchemaObject } from "../../../types";
import { DripTableComponentProps } from '../component';
export declare type DTCTagColumnSchema = DripTableColumnSchema<'tag', {
/**
* 字体颜色
*/
color?: string | 'success' | 'processing' | 'error' | 'default' | 'warning';
/**
* 边框颜色
*/
borderColor?: string;
/**
* 背景色
*/
backgroundColor?: string;
/**
* 圆角半径
*/
radius?: number;
/**
* 前缀
*/
prefix?: string;
/**
* 后缀
*/
suffix?: string;
/**
* 静态文案
*/
content?: string;
/**
* 枚举
*/
tagOptions?: {
label: string;
value: string | number;
color?: string;
borderColor?: string;
backgroundColor?: string;
}[];
/**
* 最大显示数量
*/
maxDisplay?: number;
}>;
interface DTCTagProps<RecordType extends DripTableRecordTypeBase> extends DripTableComponentProps<RecordType, DTCTagColumnSchema> {
}
interface DTCTagState {
}
export default class DTCTag<RecordType extends DripTableRecordTypeBase> extends React.PureComponent<DTCTagProps<RecordType>, DTCTagState> {
static componentName: DTCTagColumnSchema['component'];
static schema: SchemaObject;
private get value();
private renderTag;
render(): React.JSX.Element;
}
export {};