1 line
7.1 KiB
Plaintext
1 line
7.1 KiB
Plaintext
|
{"version":3,"file":"z-paging-empty-view.js","sources":["../../../../../../../src/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue","../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy91bmlfbW9kdWxlcy96LXBhZ2luZy9jb21wb25lbnRzL3otcGFnaW5nLWVtcHR5LXZpZXcvei1wYWdpbmctZW1wdHktdmlldy52dWU"],"sourcesContent":["<!-- z-paging -->\r\n<!-- github地址:https://github.com/SmileZXLee/uni-z-paging -->\r\n<!-- dcloud地址:https://ext.dcloud.net.cn/plugin?id=3935 -->\r\n<!-- 反馈QQ群:790460711 -->\r\n\r\n<!-- 空数据占位view,此组件支持easycom规范,可以在项目中直接引用 -->\r\n<template>\r\n <view\r\n :class=\"{ 'zp-container': true, 'zp-container-fixed': emptyViewFixed }\"\r\n :style=\"[finalEmptyViewStyle]\"\r\n @click=\"emptyViewClick\"\r\n >\r\n <view class=\"zp-main\">\r\n <image\r\n v-if=\"!emptyViewImg.length\"\r\n :class=\"{ 'zp-main-image-rpx': unit === 'rpx', 'zp-main-image-px': unit === 'px' }\"\r\n :style=\"[emptyViewImgStyle]\"\r\n :src=\"emptyImg\"\r\n />\r\n <image\r\n v-else\r\n :class=\"{ 'zp-main-image-rpx': unit === 'rpx', 'zp-main-image-px': unit === 'px' }\"\r\n mode=\"aspectFit\"\r\n :style=\"[emptyViewImgStyle]\"\r\n :src=\"emptyViewImg\"\r\n />\r\n <text\r\n class=\"zp-main-title\"\r\n :class=\"{ 'zp-main-title-rpx': unit === 'rpx', 'zp-main-title-px': unit === 'px' }\"\r\n :style=\"[emptyViewTitleStyle]\"\r\n >\r\n {{ emptyViewText }}\r\n </text>\r\n <text\r\n v-if=\"showEmptyViewReload\"\r\n :class=\"{\r\n 'zp-main-error-btn': true,\r\n 'zp-main-error-btn-rpx': unit === 'rpx',\r\n 'zp-main-error-btn-px': unit === 'px',\r\n }\"\r\n :style=\"[emptyViewReloadStyle]\"\r\n @click.stop=\"reloadClick\"\r\n >\r\n {{ emptyViewReloadText }}\r\n </text>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport zStatic from '../z-paging/js/z-paging-static'\r\nexport default {\r\n name: 'z-paging-empty-view',\r\n data() {\r\n return {}\r\n },\r\n props: {\r\n // 空数据描述文字\r\n emptyViewText: {\r\n type: String,\r\n default: '没有数据哦~',\r\n },\r\n // 空数据图片\r\n emptyViewImg: {\r\n type: String,\r\n default: '',\r\n },\r\n // 是否显示空数据图重新加载按钮\r\n showEmptyViewReload: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n // 空数据点击重新加载文字\r\n emptyViewReloadText: {\r\n type: String,\r\n default: '重新加载',\r\n },\r\n // 是否是加载失败\r\n isLoadFailed: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n // 空数据图样式\r\n emptyViewStyle: {\r\n type: Object,\r\n default: function () {\r\n return {}\r\n },\r\n },\r\n // 空数据图img样式\r\n emptyViewImgStyle: {\r\n type: Object,\r\n default: function () {\r\n return {}\r\n },\r\n },\r\n // 空数据图描述文字样式\r\n emptyViewTitleStyle: {\r\n type: Object,\r\n default: function () {\r\n return {}\r\n },\r\n },\r\n // 空数据图重新加载按钮样式\r\n emptyViewReloadStyle: {\r\n type: Object,\r\n default: function () {\r\n return {}\r\n },\r\n },\r\n // 空数据图z-index\r\n emptyViewZIndex: {\r\n type: Number,\r\n default: 9,\r\n },\r\n // 空数据图片是否使用fixed布局并铺满z-paging\r\n emptyViewFixed: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n // 空数据图中布局的单位,默认为rpx\r\n unit: {\r\n type: String,\r\n default: 'rpx',\r\n },\r\n },\r\n computed: {\r\n emptyImg() {\r\n return this.isLoadFailed ? zStatic.base64Error : zStatic.base64Empty\r\n },\r\n finalEmptyViewStyle() {\r\n this.emptyViewStyle['z-index'] = this.emptyVi
|