(id, type)
| 212 | return temp |
| 213 | } |
| 214 | const getSetNodeProperty = (id, type) => { |
| 215 | const result = {} |
| 216 | if (type === 'element' || type === 'interActive') { |
| 217 | type = 'component' |
| 218 | } |
| 219 | const config = findNodeConfigById(id, type)// 获取Node的config |
| 220 | config && config.property.forEach(property => { |
| 221 | const { value } = property |
| 222 | if (property.name === 'customFunction') { |
| 223 | result[property.name] = `function adapter(data){${value}}` |
| 224 | } else { |
| 225 | result[property.name] = value |
| 226 | } |
| 227 | }) |
| 228 | return result |
| 229 | } |
| 230 | const getChildrenProperty = (saveNodeData, startNode) => { |
| 231 | // 根据起始node获取所有连接的node |
| 232 | const find = (node) => { |
no test coverage detected