UNPKG

jamis

Version:

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

32 lines (31 loc) 704 B
import type { BadgeObject, BaseSchema, FormBaseControlSchema, FormControlProps, SchemaBoolean, SchemaTpl } from '../types'; /** * 图标选择器 * */ export interface IconPickerControlSchema extends FormBaseControlSchema { type: 'icon-picker'; } export interface IconPickerProps extends FormControlProps { placeholder?: string; resetValue?: any; noDataTip?: string; clearable?: boolean; } /** * Icon 图表组件 * */ export interface IconSchema extends BaseSchema { type: 'icon'; /** * 按钮类型 */ icon: SchemaTpl | Record<SchemaTpl, SchemaBoolean>; title?: string; label?: SchemaTpl; /** * 角标 */ badge?: BadgeObject; }