新版本流程编辑器
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
export { NodeRenderContext } from './node-render-context';
|
||||
export { IsSidebarContext } from './sidebar-context';
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import type { NodeRenderReturnType } from '@flowgram.ai/free-layout-editor';
|
||||
|
||||
interface INodeRenderContext extends NodeRenderReturnType {}
|
||||
|
||||
/** 业务自定义节点上下文 */
|
||||
export const NodeRenderContext = React.createContext<INodeRenderContext>({} as INodeRenderContext);
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
|
||||
export const IsSidebarContext = React.createContext<boolean>(false);
|
||||
Reference in New Issue
Block a user