@cainiaofe/cn-ui-charts
Version:
36 lines (35 loc) • 723 B
TypeScript
import { CSSProperties } from 'react';
export interface Obj {
[key: string]: unknown;
}
export type Fn = (...args: unknown[]) => unknown;
export type ServiceQuery = [
{
params: {
key?: string;
} & Record<string, any>;
}
];
export type ServiceResult = string;
export interface BaseConfig {
/**
* 容器className
*/
className?: string;
/**
* 样式属性
*/
style?: CSSProperties;
/**
* 远程获取数据配置
*/
remote?: {
url: string;
};
/** 图表数据 */
dataSource: Array<Record<string, any>>;
/** 画布宽度 */
readonly width?: number;
/** 画布高度 */
readonly height?: number;
}