<template>
    <simple-form
        :items="formItems"
        ref="formRef"
        label-width="120px"
        :footer="true"
        @submit="handleSubmit"
    />
</template>

<script setup name="baseConfig">
    import { ref, shallowRef } from 'vue';
    import SimpleForm from '@/components/CommonPage/SimpleForm.vue';

    const formRef = ref(null);
    const formItems = shallowRef([
        {
            type: 'input',
            label: '短信有效期',
            prop: 'logoImage'
        },
        {
            type: 'input',
            label: '短信参数',
            prop: 'params'
        },
        {
            type: 'input',
            label: '短信签名',
            prop: 'sign'
        }
    ]);

    function handleSubmit(data) {
        console.log(data);
    }
</script>
