UNPKG

@javaguns/flow-ui

Version:

``` <template> <a-spin :spinning="loading"> <FlowDesigner ref="flowDesigner" top="50px"> </FlowDesigner> </a-spin> </template> <script lang="ts" setup> import { ref, provide, onMounted } from 'vue'; import { FlowDesigner, LoadingKey } from '@j

32 lines (31 loc) 565 B
function p(c, i, f, o, h) { if (c) { let n = { id: i[o], name: i[h] }; f.find((e) => e.id == i[o]) || f.push(n); } else f.splice( f.findIndex((n) => n.id === i[o]), 1 ); } function a(c, i, f, o, h) { c ? i.forEach((n) => { if (!f.find((e) => e.id == n[o])) { let e = { id: n[o], name: n[h] }; f.push(e); } }) : i.forEach((n) => { for (let e = f.length - 1; e >= 0; e--) n[o] == f[e].id && f.splice(e, 1); }); } export { a as checkBox, p as radioSelect };