index.vue 521 B

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