<template>
    <voluntary-form-major/>
    <voluntary-form-rule v-if="!disableRule"/>
    <voluntary-form-simulate v-if="!disableSimulate"/>
    <voluntary-form-core ref="form"/>
</template>

<script setup lang="ts">
import VoluntaryFormMajor from "@/pagesOther/pages/voluntary/index/components/voluntary-form-major.vue";
import VoluntaryFormRule from "@/pagesOther/pages/voluntary/index/components/voluntary-form-rule.vue";
import VoluntaryFormSimulate from "@/pagesOther/pages/voluntary/index/components/voluntary-form-simulate.vue";
import VoluntaryFormCore from "@/pagesOther/pages/voluntary/index/components/voluntary-form-core.vue";

defineProps({
    disableRule: Boolean,
    disableSimulate: Boolean
})

const form = ref<InstanceType<typeof VoluntaryFormCore>>()
const validate = () => {
    return form.value?.validate()
}
defineExpose({validate})
</script>

<style scoped>

</style>