/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { StepSettingsDrawerProps } from '../../../../types'; import { openStepSettingsDialog } from './StepSettingsDialog'; /** * StepSettingsDrawer组件 - 使用自定义 Drawer 显示单个步骤的配置界面 * @param props.model 模型实例 * @param props.flowKey 流程Key * @param props.stepKey 步骤Key * @param props.drawerWidth 抽屉宽度,默认为600 * @param props.drawerTitle 自定义抽屉标题,默认使用step的title * @returns Promise 返回表单提交的值 */ const openStepSettingsDrawer = async (options: StepSettingsDrawerProps): Promise => { const { drawerWidth, drawerTitle, cleanup, ...restOptions } = options; return openStepSettingsDialog({ ...restOptions, mode: 'drawer', dialogWidth: drawerWidth, dialogTitle: drawerTitle, cleanup, }); }; export { openStepSettingsDrawer };