UNPKG

@wufengteam/baguaeditor

Version:

低零融合编辑器封装

61 lines (60 loc) 1.56 kB
import type { FormShowRuleDto, Rule } from '../interfaces/ShowHiddenRule'; /** * 添加显隐规则 * @param busiObjectId 表单id * @param rule 规则 * @returns */ export declare function addFormShowRule(busiObjectId: string, rule: Rule): Promise<FormShowRuleDto>; interface GetFormShowRuleParams { busiObjectId: string; convert?: string; } /** * 获取显隐规则列表 * @param params */ export declare function getFormShowRule(params: GetFormShowRuleParams): Promise<FormShowRuleDto[]>; interface DeleteFormShowRuleParams { id?: string; attrShowRuleId: string; } /** * 删除显隐规则 * @param params */ export declare function deleteFormShowRule(params: DeleteFormShowRuleParams): Promise<any>; interface UpdateFormShowRuleParams { id?: string; busiObjectId?: string; appId?: string; ruleName?: string; ruleCondition?: string; ruleResult?: string; state?: string; attrShowRuleId: string; attrRuleJson: string; statusCd?: string; } /** * 更新显隐规则 * @param params * @returns */ export declare function updateFormShowRule(params: UpdateFormShowRuleParams): Promise<any>; interface VariableItem { code: string; name: string; type: string; typeName: string; } /** * 获取所有变量 */ export declare function getAllVariable(): Promise<VariableItem[]>; /** * 获取流程节点数据 * @returns */ export declare function getProcessNodes(params: any): Promise<VariableItem[]>; export {};