
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
提供一个黑盒子的载体,通过暴露方法,和属性,实现对流程图的操作
npm i yz-flow --save-dev
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| menueList | 左侧显示的菜单栏 | Array | 无 | 无 |
| readerOnly | 是否为只读 | Boolean | true,false | false |
| canZoom | 是否缩放 | Boolean | true,false | false |
| loadComplete | 首次加载数据是否加载完毕 | Boolean | true,false | false |
| nodeList | 节点数据 | Array | 无 | 无 |
| lineList | 线的数据 | Array | 无 | 无 |
| currentElement | 当前操作的节点数据 | Object | {} | {} |
| dataFormat | 定义数据格式 | Object | {} | default |
| visableEditeLine | 父级监听该值,判断是否编辑当前的线 | true,false | false | false |
| visableEditeNode | 父级监听该值,判断是否编辑当前的节点 | true,false | false | false |
| visableAuto | 父级监听该值,判断是否编辑自动表单 | true,false | false | false |
| 事件 | 说明 | 参数值 |
|---|---|---|
| addNode | 添加节点 | params, callback |
| changeNode | 改变该节点 | params |
| connectionLine | 节点连线 | params, callback |
| delConnect | 删除连线 | lineId, callback |
| delNode | 删除节点 | nodeId, callback |
[
{
nodetype: 1, 可以相同
standard: 1001, 唯一值
isShow: true, 是否显示
name: '测试', 显示名称
icon: 'am-icon-lcsj-shixiangshouli' 显示字体图标
}
]
* canvasMenuStyle 右击节点菜单的样式 type Array
[
{
text: '测试' 显示的名字
icon: 'am-icon-lcsj-shuxing' 显示的文字
}
]
readerOnly 是否为只读 默认 false type Boolean
canZoom 是否支持缩放 默认 false type Boolean
loadComplete 数据是否加载完毕 type Boolean
nodeList 节点数据 type Array
lineList 连接线数据 type Array
currentElement 当前操作节点的数据 type Object
{
node_result_id 线的id
node_id 节点id
node_standard_code 节点的编码
}
* dataFormat 数据格式 type Object
{
node: {
sourceId: 'node_id',
targetId: 'next_node_id',
name: 'node_name',
left: 'position_x',
top: 'position_y',
nodetype: 'node_type',
standard: 'node_standard_code'
},
line: {
lineId: 'node_result_id',
name: 'node_result_name'
}
}
右击菜单每个功能的暴出的属性 type Boolean
addNode addNode (params, callback) = >{ callback(接口返回节点的数据) }
changeNode addNode (params) = >{ }
connectionLine (params, callback) = >{ callback(接口返回的数据) }
delConnect (lineId, callback)= >{ callback(true|false)}
delNode (nodeId, callback)= >{ callback(true|false)}
FAQs
flow流程设计图
The npm package yz-flow receives a total of 62 weekly downloads. As such, yz-flow popularity was classified as not popular.
We found that yz-flow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.