You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
520 B

  1. <template>
  2. <view
  3. :class="['bg-' + color, error ? 'erro' : completed ? 'over' : 'loading', className]"
  4. :style="style"
  5. class="cu-load"
  6. >
  7. {{ error ? errorText : completed ? completeText : loadingText }}
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'l-loading',
  13. props: {
  14. completed: {},
  15. error: {},
  16. color: { default: 'gray' },
  17. loadingText: { default: '加载中…' },
  18. completeText: { default: '加载完成' },
  19. errorText: { default: '加载失败' }
  20. }
  21. }
  22. </script>