1 |
- {"version":3,"sources":["webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-empty/tn-empty.vue?5ee1","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-empty/tn-empty.vue?9288","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-empty/tn-empty.vue?2fc3","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-empty/tn-empty.vue?4370","uni-app:///tuniao-ui/components/tn-empty/tn-empty.vue","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-empty/tn-empty.vue?2073"],"names":["renderjs","component","options","__file","components","render","_vm","this","_h","$createElement","s0","_self","_c","show","__get_style","emptyStyle","s1","isImage","iconStyle","s2","imageStyle","s3","textStyle","$mp","data","Object","assign","$root","recyclableRender","staticRenderFns","_withStripped","name","props","type","default","icon","mode","text","textColor","textSize","iconColor","iconSize","imgWidth","imgHeight","customStyle","computed","style","icons","cart","page","search","address","network","order","coupon","favor","permission","history","message","list","comment"],"mappings":"uIAAA,oIACIA,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,WACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,6CACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eAETC,GADKJ,EAAIK,MAAMC,GACVN,EAAIO,KAAOP,EAAIQ,YAAY,CAACR,EAAIS,aAAe,MACpDC,EAAKV,EAAIO,OAASP,EAAIW,QAAUX,EAAIQ,YAAY,CAACR,EAAIY,YAAc,KACnEC,EAAKb,EAAIO,MAAUP,EAAIW,QAAUX,EAAIQ,YAAY,CAACR,EAAIc,aAAe,KACrEC,EAAKf,EAAIO,KAAOP,EAAIQ,YAAY,CAACR,EAAIgB,YAAc,KACvDhB,EAAIiB,IAAIC,KAAOC,OAAOC,OACpB,GACA,CACEC,MAAO,CACLjB,GAAIA,EACJM,GAAIA,EACJG,GAAIA,EACJE,GAAIA,MAKRO,GAAmB,EACnBC,EAAkB,GACtBxB,EAAOyB,eAAgB,G,iCCvBvB,yHAA40B,eAAG,G,yGC2B/0B,CACAC,gBACAC,OAEAnB,MACAoB,aACAC,YAIAC,MACAF,YACAC,YAGAE,MACAH,YACAC,gBAGAG,MACAJ,YACAC,YAGAI,WACAL,YACAC,YAGAK,UACAN,YACAC,WAGAM,WACAP,YACAC,YAGAO,UACAR,YACAC,WAGAQ,UACAT,YACAC,WAGAS,WACAV,YACAC,WAGAU,aACAX,YACAC,mBACA,YAIAW,UACA9B,sBACA,SAEA,OADAU,kCACA,GAEAP,qBACA,SAOA,OANA,gBACA4B,gCAEA,iBACAA,wBAEA,GAEA1B,sBACA,SAOA,OANA,gBACA0B,6BAEA,iBACAA,+BAEA,GAEAxB,qBACA,SAOA,OANA,iBACAwB,wBAEA,gBACAA,gCAEA,GAGA7B,mBACA,mCAGAO,gBACA,OACAuB,OACAC,aACAC,aACAC,gBACAC,eACAC,eACAC,aACAC,eACAC,aACAC,iBACAC,iBACAC,eACAC,YACAnC,YACAoC,mBAIA,a,iCCtJA,yHAA2jD,eAAG,G","file":"tuniao-ui/components/tn-empty/tn-empty.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tn-empty.vue?vue&type=template&id=54b480bc&scoped=true&\"\nvar renderjs\nimport script from \"./tn-empty.vue?vue&type=script&lang=js&\"\nexport * from \"./tn-empty.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tn-empty.vue?vue&type=style&index=0&id=54b480bc&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"54b480bc\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tuniao-ui/components/tn-empty/tn-empty.vue\"\nexport default component.exports","export * from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-empty.vue?vue&type=template&id=54b480bc&scoped=true&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var s0 = _vm.show ? _vm.__get_style([_vm.emptyStyle]) : null\n var s1 = _vm.show && !_vm.isImage ? _vm.__get_style([_vm.iconStyle]) : null\n var s2 = _vm.show && !!_vm.isImage ? _vm.__get_style([_vm.imageStyle]) : null\n var s3 = _vm.show ? _vm.__get_style([_vm.textStyle]) : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n s0: s0,\n s1: s1,\n s2: s2,\n s3: s3,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-empty.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-empty.vue?vue&type=script&lang=js&\"","<template>\r\n <view v-if=\"show\" class=\"tn-empty-class tn-empty\" :style=\"[emptyStyle]\">\r\n <view\r\n v-if=\"!isImage\"\r\n class=\"tn-empty__icon\"\r\n :class=\"[icon ? `tn-icon-${icon}` : `tn-icon-empty-${mode}`]\"\r\n :style=\"[iconStyle]\"\r\n ></view>\r\n <image\r\n v-else\r\n class=\"tn-empty__image\"\r\n :style=\"[imageStyle]\"\r\n :src=\"icon\"\r\n mode=\"widthFix\"\r\n ></image>\r\n \r\n <view\r\n class=\"tn-empty__text\"\r\n :style=\"[textStyle]\"\r\n >{{ text ? text : icons[mode]}}</view>\r\n <view v-if=\"$slots.default || $slots.$default\" class=\"tn-empty__slot\">\r\n <slot/>\r\n </view>\r\n </view>\n</template>\n\n<script>\r\n export default {\r\n name: 'tn-empty',\r\n props: {\r\n // 显示空白页\r\n show: {\r\n type: Boolean,\r\n default: true\r\n },\r\n // 内置icon的名称\r\n // 图片路径,建议使用绝对路径\r\n icon: {\r\n type: String,\r\n default: ''\r\n },\r\n // 预置图标类型\r\n mode: {\r\n type: String,\r\n default: 'data'\r\n },\r\n // 提示文字\r\n text: {\r\n type: String,\r\n default: ''\r\n },\r\n // 文字颜色\r\n textColor: {\r\n type: String,\r\n default: ''\r\n },\r\n // 文字大小,单位rpx\r\n textSize: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 图标颜色\r\n iconColor: {\r\n type: String,\r\n default: ''\r\n },\r\n // 图标大小,单位rpx\r\n iconSize: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 图片宽度(当图标为图片时生效),单位rpx\r\n imgWidth: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 图片高度(当图标为图片时生效),单位rpx\r\n imgHeight: {\r\n type: Number,\r\n default: 0\r\n },\r\n // 自定义组件样式\r\n customStyle: {\r\n type: Object,\r\n default() {\r\n return {}\r\n }\r\n }\r\n },\r\n computed: {\r\n emptyStyle() {\r\n let style = {}\r\n Object.assign(style, this.customStyle)\r\n return style\r\n },\r\n iconStyle() {\r\n let style = {}\r\n if (this.iconSize) {\r\n style.fontSize = this.iconSize + 'rpx'\r\n }\r\n if (this.iconColor) {\r\n style.color = this.iconColor\r\n }\r\n return style\r\n },\r\n imageStyle() {\r\n let style = {}\r\n if (this.imgWidth) {\r\n style.width = this.imgWidth + 'rpx'\r\n }\r\n if (this.imgHeight) {\r\n style.height = this.imgHeight + 'rpx'\r\n }\r\n return style\r\n },\r\n textStyle() {\r\n let style = {}\r\n if (this.textColor) {\r\n style.color = this.textColor\r\n }\r\n if (this.textSize) {\r\n style.fontSize = this.textSize + 'rpx'\r\n }\r\n return style\r\n },\r\n // 判断传递的icon是否为图片\r\n isImage() {\r\n return this.icon.indexOf('/') >= 0\r\n }\r\n },\r\n data() {\r\n return {\r\n icons: {\r\n cart: '购物车为空',\r\n page: '页面不存在',\r\n search: '搜索结果为空',\r\n address: '地址为空',\r\n network: '网络不通',\r\n order: '订单为空',\r\n coupon: '优惠券为空',\r\n favor: '暂无收藏',\r\n permission: '无权限',\r\n history: '历史记录为空',\r\n message: '暂无消息',\r\n list: '列表为空',\r\n data: '暂无数据',\r\n comment: '暂无评论'\r\n }\r\n }\r\n }\r\n }\n</script>\n\n<style lang=\"scss\" scoped>\r\n .tn-empty {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n \r\n &__icon {\r\n margin-top: 14rpx;\r\n color: #AAAAAA;\r\n font-size: 90rpx;\r\n }\r\n \r\n &__image {\r\n width: 160rpx;\r\n height: 160rpx;\r\n }\r\n \r\n &__text {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n margin-top: 20rpx;\r\n color: #AAAAAA;\r\n font-size: 30rpx;\r\n }\r\n \r\n &__slot {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n margin-top: 20rpx;\r\n }\r\n }\n</style>\n","import mod from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-empty.vue?vue&type=style&index=0&id=54b480bc&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../self software/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tn-empty.vue?vue&type=style&index=0&id=54b480bc&lang=scss&scoped=true&\""],"sourceRoot":""}
|