nodata.js 672 B

123456789101112131415161718192021
  1. (function() {
  2. Vue.component('nodata', {
  3. template: ' <div class="nodata flex_coloumn f_xy_c" style="margin-top:100px">\
  4. <img style="width:50%;max-width:150px;margin-bottom: 10px;" src="../../../page/bigDataOut/images/nodeData.png">\
  5. <div style="font-size:16px;color:#909090;margin-top:10px">找不到您查询的内容</div>\
  6. </div>',
  7. props: ["arr",'needShow'], //可以传数组 可以传显隐
  8. data: function() {
  9. return {
  10. }
  11. },
  12. computed: {
  13. hasData:function(){
  14. return (arr && arr.length>0) || needShow
  15. }
  16. }
  17. })
  18. })()