<template>
    <simple-form
        :items="formItems"
        ref="formRef"
        label-width="140px"
        :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: '支付宝应用appid',
            prop: 'appid',
            required: true
        },
        { type: 'textarea', label: '支付公钥', prop: 'key', required: true },
        {
            type: 'textarea',
            label: '支付密钥',
            prop: 'minimchid',
            required: true
        }
    ]);

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