isbn-collection.vue 732 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <simple-form
  3. :items="formItems"
  4. ref="formRef"
  5. label-width="120px"
  6. :footer="false"
  7. ></simple-form>
  8. </template>
  9. <script setup name="isbnCollection">
  10. import { ref, shallowRef } from 'vue';
  11. import SimpleForm from '@/components/CommonPage/SimpleForm.vue';
  12. const formRef = ref(null);
  13. const formItems = shallowRef([
  14. {
  15. type: 'input',
  16. label: '使用者',
  17. prop: 'logoImage',
  18. required: true
  19. },
  20. {
  21. type: 'input',
  22. label: 'Appkey',
  23. prop: 'appkey',
  24. required: true,
  25. },
  26. {
  27. type: 'input',
  28. label: 'Secret',
  29. prop: 'secret',
  30. required: true
  31. }
  32. ]);
  33. function handleSubmit(data) {
  34. console.log(data);
  35. }
  36. </script>