index.vue 564 B

1234567891011121314151617181920212223242526272829
  1. <script setup lang="ts">
  2. import { ref, onBeforeMount } from "vue";
  3. import { loader } from "/@/utils/loaders";
  4. import { ElDesignForm } from "vue-form-create2";
  5. defineOptions({
  6. name: "FormDesign"
  7. });
  8. const loading = ref(true);
  9. onBeforeMount(() => {
  10. loader
  11. .loadScript("https://unpkg.com/ace-builds/src-noconflict/ace.js")
  12. .then(() => {
  13. loading.value = false;
  14. });
  15. });
  16. </script>
  17. <template>
  18. <ElDesignForm v-loading="loading" style="height: 100vh" />
  19. </template>
  20. <style lang="scss" scoped>
  21. .main-content {
  22. margin: 0 !important;
  23. }
  24. </style>