UNPKG

@rxflow/base

Version:

BaseFlow - 核心 Flow 组件库

29 lines (27 loc) 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseHandles = void 0; /** * @author: yanxianliang * @date: 2025-10-09 13:00 * @modified:2025/10/9 13:00 by yanxianliang * @desc: 数据转换 * * Copyright (c) 2025 by yanxianliang, All Rights Reserved. */ const parseHandles = handles => { if (!handles) { return undefined; } if (Array.isArray(handles)) { return handles; } const { source, target } = handles; return [...(source || []), ...(target || [])]; }; exports.parseHandles = parseHandles;