UNPKG

jamis

Version:

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

41 lines (40 loc) 1.03 kB
import type { FormBaseControlSchema, FormControlProps, SchemaCopyable, SchemaExpression, SchemaPopOver, SchemaQuickEdit, SchemaTpl } from '../types'; export interface StaticControlSchemaBase extends Omit<FormBaseControlSchema, 'type'> { /** * 配置查看详情功能 */ popOver?: SchemaPopOver; popOverEnable?: boolean; popOverEnableOn?: SchemaExpression; /** * 配置快速编辑功能 */ quickEdit?: SchemaQuickEdit; /** * 配置点击复制功能 */ copyable?: SchemaCopyable; /** * 边框模式,默认是无边框的 */ borderMode?: 'full' | 'half' | 'none'; } /** * Static */ export interface StaticControlSchema extends StaticControlSchemaBase { type: 'static'; /** * 内容模板, 支持 HTML */ tpl?: SchemaTpl; /** * 内容模板,不支持 HTML */ text?: SchemaTpl; } export interface StaticProps extends FormControlProps { placeholder?: string; tpl?: string; text?: string; }