UNPKG

jamis

Version:

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

27 lines (26 loc) 683 B
import type { RendererProps, SchemaClassName } from 'jamis-core'; import type { SchemaIcon, SchemaTpl } from '../types'; export interface SchemaCopyableObject { /** * 可以配置图标 */ icon?: SchemaIcon; /** * 配置复制时的内容模板。 */ content?: SchemaTpl; /** * 复制格式, 默认是 'text/html' */ copyFormat?: string; /** * 元素`.cxd-Field-copyBtn`的样式类 */ copyBtnClassName?: SchemaClassName; } export type SchemaCopyable = boolean | SchemaCopyableObject; export interface CopyableProps extends RendererProps { name?: string; label?: string; copyable: SchemaCopyable; }