<script setup lang="tsx">
import { PropType,ref, reactive, watch } from 'vue'
import ProcedureRule from '@/views/IndexProcess/ProcedureRule/ProcedureRule.vue';
import SqlRule from '@/views/IndexProcess/SqlRule/SqlRule.vue';
import PureSqlRule from '@/views/IndexProcess/PureSqlRule/PureSqlRule.vue'


const props = defineProps({
  currentRow: {
    type: Object as PropType<any>,
    default: () => null
  },
  actionType: {
    type: String,
    default: 'add'
  },
  ruleType:{
    type: String,
    default: 'ProcedureRule'
  }
})
const ruleType = props.ruleType;//当前界面中的规则类型

</script>

<template>
  <!-- 指标规则 -->
  <ProcedureRule v-show="ruleType=='ProcedureRule'" />
  <!-- SQL规则 -->
  <SqlRule v-show="ruleType=='SqlRule'" />
  <!-- 存储过程规则 -->
  <PureSqlRule v-show="ruleType=='PureSqlRule'" />
</template>

