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

15 lines (14 loc) 398 B
const r = (o) => { const l = o.app.config.globalProperties.$flowUI; return { formValid: async (a) => { try { let e = null; return l == "element-plus" || l == "arco-design" ? e = await a.value.validate() : e = await a.value.validateFields(), console.log("Success:", e), !0; } catch (e) { return console.log("Failed:", e), !1; } } }; }; export { r as default };