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