SldCommonEmpty.vue 954 B

1234567891011121314151617181920212223242526272829303132
  1. <!--
  2. * @Author: zjf
  3. * @Date: 2021-01-.gitignore 15:56:16
  4. * @LastEditTime: 2021-01-09 22:22:.gitignore
  5. * @LastEditors: zjf
  6. * @Description: 公共的空页面
  7. * 可以设置空页面的总宽、总高、空图片距离顶部的高度,提示的内容
  8. -->
  9. <template>
  10. <div
  11. class="sld_common_empty flex_column_start_center"
  12. :style="{
  13. width: totalWidth ? totalWidth + 'px' : '1210px',
  14. height: totalHeight ? totalHeight + 'px' : '500px',
  15. paddingTop: paddingTop ? paddingTop + 'px' : '120px',
  16. }"
  17. >
  18. <img class="empty_img" src="/common_empty.png" />
  19. <p>{{ tip ? tip : L["暂时没有数据~"] }}</p>
  20. </div>
  21. </template>
  22. <script setup>
  23. // import { lang_zn } from "@/assets/language/zh";
  24. import { getCurLanguage } from '@/composables/common.js';
  25. defineProps(["totalWidth", "totalHeight", "paddingTop", "tip"]);
  26. // const L = lang_zn;
  27. const L = getCurLanguage();
  28. const { proxy } = getCurrentInstance();
  29. </script>