|
|
|
|
"use strict";const uni_modules_zPaging_components_zPaging_js_zPagingStatic=require("../z-paging/js/z-paging-static.js");const common_vendor=require("../../../../common/vendor.js");const _sfc_main={name:"z-paging-empty-view",data(){return{}},props:{emptyViewText:{type:String,default:"没有数据哦~"},emptyViewImg:{type:String,default:""},showEmptyViewReload:{type:Boolean,default:false},emptyViewReloadText:{type:String,default:"重新加载"},isLoadFailed:{type:Boolean,default:false},emptyViewStyle:{type:Object,default:function(){return{}}},emptyViewImgStyle:{type:Object,default:function(){return{}}},emptyViewTitleStyle:{type:Object,default:function(){return{}}},emptyViewReloadStyle:{type:Object,default:function(){return{}}},emptyViewZIndex:{type:Number,default:9},emptyViewFixed:{type:Boolean,default:true},unit:{type:String,default:"rpx"}},computed:{emptyImg(){return this.isLoadFailed?uni_modules_zPaging_components_zPaging_js_zPagingStatic.zStatic.base64Error:uni_modules_zPaging_components_zPaging_js_zPagingStatic.zStatic.base64Empty},finalEmptyViewStyle(){this.emptyViewStyle["z-index"]=this.emptyViewZIndex;return this.emptyViewStyle}},methods:{reloadClick(){this.$emit("reload")},emptyViewClick(){this.$emit("viewClick")}}};function _sfc_render(_ctx,_cache,$props,$setup,$data,$options){return common_vendor.e({a:!$props.emptyViewImg.length},!$props.emptyViewImg.length?{b:$props.unit==="rpx"?1:"",c:$props.unit==="px"?1:"",d:common_vendor.s($props.emptyViewImgStyle),e:$options.emptyImg}:{f:$props.unit==="rpx"?1:"",g:$props.unit==="px"?1:"",h:common_vendor.s($props.emptyViewImgStyle),i:$props.emptyViewImg},{j:common_vendor.t($props.emptyViewText),k:$props.unit==="rpx"?1:"",l:$props.unit==="px"?1:"",m:common_vendor.s($props.emptyViewTitleStyle),n:$props.showEmptyViewReload},$props.showEmptyViewReload?{o:common_vendor.t($props.emptyViewReloadText),p:$props.unit==="rpx"?1:"",q:$props.unit==="px"?1:"",r:common_vendor.s($props.emptyViewReloadStyle),s:common_vendor.o(((...args)=>$options.reloadClick&&$options.reloadClick(...args)))}:{},{t:$props.emptyViewFixed?1:"",v:common_vendor.s($options.finalEmptyViewStyle),w:common_vendor.o(((...args)=>$options.emptyViewClick&&$options.emptyViewClick(...args)))})}const Component=common_vendor._export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-5b8c527d"]]);my.createComponent(Component);
|