mescroll-empty.vue 566 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <view class="mescroll-empty" :class="{ 'empty-fixed': option.fixed }" :style="{ 'z-index': option.zIndex, top: option.top }">
  3. <mix-empty :type="option.type" :backgroundColor="option.backgroundColor"></mix-empty>
  4. </view>
  5. </template>
  6. <script>
  7. import mixEmpty from '@/components/mix-empty/mix-empty.vue'
  8. export default {
  9. components: {
  10. mixEmpty
  11. },
  12. props: {
  13. // empty的配置项: 默认为GlobalOption.up.empty
  14. option: {
  15. type: Object,
  16. default() {
  17. return {};
  18. }
  19. }
  20. }
  21. };
  22. </script>
  23. <style scoped lang="scss">
  24. </style>