cm-loading.vue 502 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view class="cm-loading" v-if="visible"> <tui-loading :text="text"></tui-loading> </view>
  3. </template>
  4. <script>
  5. export default {
  6. props: {
  7. text: {
  8. type: String,
  9. default: '正在加载...'
  10. },
  11. visible: {
  12. type: Boolean,
  13. default: false
  14. }
  15. }
  16. }
  17. </script>
  18. <style lang="scss" scoped>
  19. .cm-loading {
  20. position: fixed;
  21. left: 0;
  22. top: 0;
  23. z-index: 999;
  24. width: 100%;
  25. height: 100%;
  26. }
  27. </style>