index.vue 555 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
  5. <el-col :span="24" class="one">
  6. <table></table>
  7. </el-col>
  8. </el-col>
  9. </el-row>
  10. </div>
  11. </template>
  12. <script setup>
  13. import table from './parts/table.vue'
  14. const data = ref([])
  15. // 加载中
  16. const loading = ref(false)
  17. // 请求
  18. onMounted(async () => {
  19. loading.value = true
  20. loading.value = false
  21. })
  22. // provide
  23. provide('data', data)
  24. </script>
  25. <style scoped lang="scss"></style>