user-agreement.vue 523 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <simple-form
  3. :items="formItems"
  4. ref="formRef"
  5. label-width="0"
  6. :footer="true"
  7. @submit="handleSubmit"
  8. ></simple-form>
  9. </template>
  10. <script setup name="baseConfig">
  11. import { ref, shallowRef } from 'vue';
  12. import SimpleForm from '@/components/CommonPage/SimpleForm.vue';
  13. const formRef = ref(null);
  14. const formItems = shallowRef([
  15. {
  16. type: 'editor',
  17. label: '',
  18. prop: 'userAgreement'
  19. }
  20. ]);
  21. function handleSubmit(data) {
  22. console.log(data);
  23. }
  24. </script>