@wufengteam/baguaeditor
Version:
低零融合编辑器封装
108 lines (107 loc) • 2.54 kB
TypeScript
import React from 'react';
import type { SaveFunctionType } from '@lingxiteam/editor/es/Editor/interface';
import { InnerCompList } from './ComPlist';
import type { PageData } from '../../interfaces';
import type { CompListItem } from './ComPlist';
type FormSetAbility = 'formPermission' | 'field' | 'config' | 'print' | 'jump' | 'customBtn' | 'receive' | 'formRelation' | 'customDetailPage' | 'formRelease';
interface BaGuaEditorProps {
/**
* 编辑器外部容易类名
*/
className?: string;
/**
* 表单DSL
*/
pageData?: PageData | null;
/**
* 应用ID
*/
appId: string;
/**
* 页面ID
*/
pageId?: string;
/**
* 表单ID
*/
busiObjectId: string;
/**
* 表单目录ID
*/
catalogItemId: string;
/**
* 租户ID 业务组件相关
*/
tenantId?: string;
/**
* 项目ID 业务组件相关
*/
projectId?: string;
/**
* 表单名称
*/
pageName: string;
/**
* 显示表单配置页面
*/
showFormSetting?: boolean;
/**
* 表单配置能力列表
* formPermission:权限分配
* field:业务规则
* config:提交设置
* print:打印模板
* jump:提交事件
* customBtn:自定义按钮
* receive:数据接收
* formRelation:表单引用
*/
formSetAbility?: FormSetAbility[];
/**
* 显示表单发布页面
*/
showFormPublish?: boolean;
/**
* 显示表单权限配置页面
*/
showAssignPermission?: boolean;
/**
* 组件黑名单
*/
blackList?: string[];
/**
* 开启融合模式
*/
fusionMode: boolean;
/**
* 测试组件列表
*/
testCompList?: CompListItem[];
/**
* 灵犀编辑器请求前缀($$reqPrefix)
*/
LXEReqPrefix?: string;
/**
* 显示流程设计页面
*/
isFlowForm?: boolean;
/**
* 编辑器预览回调
*/
onPreview?: SaveFunctionType;
/**
* 编辑器保存回调
*/
onSave: SaveFunctionType;
/**
* 退出编辑器回调
*/
onBack: () => void;
/**
* 注册到编辑器中的能力
*/
edEngineApis: any;
}
declare const BaGuaEditor: React.ForwardRefExoticComponent<BaGuaEditorProps & React.RefAttributes<any>>;
export default BaGuaEditor;
export { InnerCompList };