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.emptyViewZIndex\r\n return this.emptyViewStyle\r\n },\r\n },\r\n methods: {\r\n // 点击了reload按钮\r\n reloadClick() {\r\n this.$emit('reload')\r\n },\r\n // 点击了空数据view\r\n emptyViewClick() {\r\n this.$emit('viewClick')\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.zp-container {\r\n /* #ifndef APP-NVUE */\r\n display: flex;\r\n /* #endif */\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.zp-container-fixed {\r\n /* #ifndef APP-NVUE */\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n /* #endif */\r\n /* #ifdef APP-NVUE */\r\n flex: 1;\r\n /* #endif */\r\n}\r\n\r\n.zp-main {\r\n /* #ifndef APP-NVUE */\r\n display: flex;\r\n /* #endif */\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 50rpx 0rpx;\r\n}\r\n\r\n.zp-main-image-rpx {\r\n width: 240rpx;\r\n height: 240rpx;\r\n}\r\n.zp-main-image-px {\r\n width: 120px;\r\n height: 120px;\r\n}\r\n\r\n.zp-main-title {\r\n color: #aaaaaa;\r\n text-align: center;\r\n}\r\n.zp-main-title-rpx {\r\n font-size: 28rpx;\r\n margin-top: 10rpx;\r\n padding: 0rpx 20rpx;\r\n}\r\n.zp-main-title-px {\r\n font-size: 14px;\r\n margin-top: 5px;\r\n padding: 0px 10px;\r\n}\r\n\r\n.zp-main-error-btn {\r\n border: solid 1px #dddddd;\r\n color: #aaaaaa;\r\n}\r\n.zp-main-error-btn-rpx {\r\n font-size: 28rpx;\r\n padding: 8rpx 24rpx;\r\n border-radius: 6rpx;\r\n margin-top: 50rpx;\r\n}\r\n.zp-main-error-btn-px {\r\n font-size: 14px;\r\n padding: 4px 12px;\r\n border-radius: 3px;\r\n margin-top: 25px;\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/uni_modules/z-paging/components/z-paging-empty-view/z-paging-empty-view.vue'\nwx.createComponent(Component)"],"names":["zStatic"],"mappings":";;;AAmD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