优化解析器

This commit is contained in:
caixiaofeng 2023-11-25 12:23:06 +08:00
parent 0cb9095fac
commit 2c6b857c5f
13 changed files with 13 additions and 25 deletions

View File

@ -8,7 +8,7 @@ import FlowDesign from '~/views/flowDesign/index.vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import {FlowNode} from "~/views/flowDesign/nodes/Node/index";
import {ref} from "vue";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
import {StartNode} from "~/views/flowDesign/nodes/Start/index";
import {EndNode} from "~/views/flowDesign/nodes/End/index";
//

3
src/components.d.ts vendored
View File

@ -40,7 +40,8 @@ declare module 'vue' {
ElText: typeof import('element-plus/es')['ElText']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTree: typeof import('element-plus/es')['ElTree']
Render: typeof import('./components/Render/index.ts')['default']
Interface: typeof import('./components/Render/interface.ts')['default']
Render: typeof import('./components/Render/interface.ts')['default']
Segmented: typeof import('./components/Segmented/index.ts')['default']
UserSelection: typeof import('./components/UserSelection/index.ts')['default']
}

View File

@ -1,13 +0,0 @@
<script setup lang="ts">
</script>
<template>
<div>
</div>
</template>
<style scoped lang="scss">
</style>

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
import {FilterRules} from "~/components/Condition/index";
import {useVModel} from "@vueuse/core";

View File

@ -1,11 +1,11 @@
<script setup lang="ts" name="ConditionFilter">
import {FilterRules} from "~/components/Condition/index";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
import {useVModel} from "@vueuse/core";
import {Delete} from "@element-plus/icons-vue";
import Trigger from './Trigger.vue'
import Operator from './Operator.vue'
import Render from '~/components/Render/index.tsx'
import Render from '~/components/Render/index'
const $props = defineProps<{
filterFields: Field[],

View File

@ -1,6 +1,6 @@
import {defineAsyncComponent, defineComponent, h, PropType, resolveComponent} from "vue";
import {cloneDeep} from 'lodash-es'
import {Field} from "./index";
import {Field} from "./interface";
export default defineComponent({
props: {

View File

@ -6,7 +6,7 @@ import {ApprovalNode} from '../nodes/Approval/index'
import {CcNode} from '../nodes/Cc/index'
import {ref, Ref} from "vue";
import {FormProperty} from "~/views/flowDesign/index";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
const useNode = (node: Ref<FlowNode>, fields: Ref<Field[]>) => {
/**

View File

@ -6,7 +6,7 @@ import useNode from './hooks/useNode'
import {computed, onUnmounted, provide, ref} from "vue";
import {Plus, Minus} from "@element-plus/icons-vue";
import {useVModels} from "@vueuse/core";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
export interface FlowDesignProps {
process: FlowNode,

View File

@ -4,7 +4,7 @@ import {useVModels} from '@vueuse/core'
import {ApprovalNode} from '../nodes/Approval/index'
import {computed, inject, Ref, ref, watchEffect} from "vue";
import {CircleCheck, CircleClose, Switch, Plus, Minus} from "@element-plus/icons-vue";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
import {FormProperty} from "~/views/flowDesign/index";
const activeName = ref('properties')

View File

@ -3,7 +3,7 @@ import Segmented from '~/components/Segmented'
import {useVModels} from '@vueuse/core'
import {CcNode} from '../nodes/Cc/index'
import {computed, inject, Ref, ref, watchEffect} from "vue";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
const activeName = ref('properties')

View File

@ -3,7 +3,7 @@ import {useVModels} from '@vueuse/core'
import {inject, Ref} from "vue";
import ConditionFilter from "~/components/Condition/index.vue";
import {ConditionNode} from "~/views/flowDesign/nodes/Condition/index";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
export interface ConditionAttr {
node: ConditionNode

View File

@ -3,7 +3,7 @@ import Segmented from '~/components/Segmented'
import {useVModels} from '@vueuse/core'
import {StartNode} from '../nodes/Start/index'
import {computed, inject, Ref, ref, watchEffect} from "vue";
import {Field} from "~/components/Render/index";
import {Field} from "~/components/Render/interface";
import {FormProperty} from "~/views/flowDesign/index";
const activeName = ref('formPermissions')