UNPKG

data-vis-ui

Version:

## [使用文档](https://temp-static-domain.jd.com/data-vis-ui)

40 lines (39 loc) 999 B
import React from 'react'; export declare type BoxPops = { /** * @description box 宽度 * @default 100% */ width?: string | number; /** * @description box 高度 * @default 100% */ height?: string | number; children?: React.ReactNode; /** * @description 背景资源 * @default '' * @type string | any */ background?: string | any; /** * @description 用于设置其他背景元素 * @default [] * @type {React.CSSProperties & {node: React.ReactNode}}[] */ marks?: any[]; /** * @description 用于设置连线,属性用法参考 svg 的使用 * @default [] * @type { coords: number[][]; width: number; color: string, dasharray:string }[]; */ lines?: { coords: number[][]; width?: number; color?: string; dasharray?: string; }[]; } & Record<string, any>; declare const Box: (props: BoxPops) => JSX.Element; export default Box;