UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

35 lines (34 loc) 654 B
import type { ActionSchema, BaseSchema, SchemaClassName } from '../types'; export interface SparkLineSchema extends BaseSchema { type: 'sparkline'; /** * css 类名 */ className?: SchemaClassName; /** * 关联数据变量。 */ name?: string; /** * 宽度 * @default 100 */ width?: number; /** * 高度 * @default 50 */ height?: number; /** * 点击行为 */ clickAction?: ActionSchema; /** * 空数据时显示的内容 */ placeholder?: string; value?: Array<number | { value: number; label?: string; }>; }