jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
23 lines (22 loc) • 599 B
TypeScript
import type { RendererProps, SchemaClassName } from 'jamis-core';
import type { SchemaIcon, SchemaTpl } from '../types';
export interface SchemaCopyableObject {
/**
* 可以配置图标
*/
icon?: SchemaIcon;
/**
* 配置复制时的内容模板。
*/
content?: SchemaTpl;
/**
* 元素`.cxd-Field-copyBtn`的样式类
*/
copyBtnClassName?: SchemaClassName;
}
export type SchemaCopyable = boolean | SchemaCopyableObject;
export interface CopyableProps extends RendererProps {
name?: string;
label?: string;
copyable: SchemaCopyable;
}