tn-avatar-group.js.map 13 KB

1
  1. {"version":3,"sources":["webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue?8930","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue?57a8","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue?29f4","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue?c068","uni-app:///tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue","webpack:///D:/Code2024/图鸟模板-社区/tuniao-ui/components/tn-avatar-group/tn-avatar-group.vue?67cb"],"names":["renderjs","component","options","__file","components","tnAvatar","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","l0","_self","_c","__map","lists","item","index","$orig","__get_orig","s0","__get_style","itemStyle","$mp","data","Object","assign","$root","recyclableRender","staticRenderFns","_withStripped","name","props","type","default","shape","size","imgMode","gap","computed","style","methods","_checkSizeIsInline"],"mappings":"qJAAA,oIACIA,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,WACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,2DACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IACEA,EAAa,CACXC,SAAU,WACR,OAAO,6GAKX,MAAOC,GACP,IAC+C,IAA7CA,EAAEC,QAAQC,QAAQ,wBACa,IAA/BF,EAAEC,QAAQC,QAAQ,QAWlB,MAAMF,EATNG,QAAQC,MAAMJ,EAAEC,SAChBE,QAAQC,MAAM,mBACdD,QAAQC,MACN,uFAEFD,QAAQC,MACN,mDAMN,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eAETC,GADKJ,EAAIK,MAAMC,GACVN,EAAIO,MAAMP,EAAIQ,OAAO,SAAUC,EAAMC,GAC5C,IAAIC,EAAQX,EAAIY,WAAWH,GACvBI,EAAKb,EAAIc,YAAY,CAACd,EAAIe,UAAUL,KACxC,MAAO,CACLC,MAAOA,EACPE,GAAIA,OAGRb,EAAIgB,IAAIC,KAAOC,OAAOC,OACpB,GACA,CACEC,MAAO,CACLhB,GAAIA,MAKRiB,GAAmB,EACnBC,EAAkB,GACtBvB,EAAOwB,eAAgB,G,iCCjDvB,yHAAm1B,eAAG,G,yGCkBt1B,CACAC,uBACAC,OAEAjB,OACAkB,WACAC,mBACA,WAKAC,OACAF,YACAC,kBAKAE,MACAH,qBACAC,YAIAG,SACAJ,YACAC,sBAIAI,KACAL,YACAC,aAGAK,UACAjB,qBAAA,WACA,mBACA,SACA,0BACA,eACA,SACAkB,gDACA,MACA,SACAA,gDACA,MACA,SACAA,iDACA,UAEA,CACA,iDACAA,+CAEA,YAIAhB,gBACA,UAIAiB,SAEAC,8BACA,kDAIA,a,iCC1FA,yHAAkkD,eAAG,G","file":"tuniao-ui/components/tn-avatar-group/tn-avatar-group.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tn-avatar-group.vue?vue&type=template&id=221b717a&scoped=true&\"\nvar renderjs\nimport script from \"./tn-avatar-group.vue?vue&type=script&lang=js&\"\nexport * from \"./tn-avatar-group.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tn-avatar-group.vue?vue&type=style&index=0&id=221b717a&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 \"221b717a\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tuniao-ui/components/tn-avatar-group/tn-avatar-group.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-avatar-group.vue?vue&type=template&id=221b717a&scoped=true&\"","var components\ntry {\n components = {\n tnAvatar: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-avatar/tn-avatar\" */ \"@/tuniao-ui/components/tn-avatar/tn-avatar.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.__map(_vm.lists, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var s0 = _vm.__get_style([_vm.itemStyle(index)])\n return {\n $orig: $orig,\n s0: s0,\n }\n })\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0,\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-avatar-group.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-avatar-group.vue?vue&type=script&lang=js&\"","<template>\r\n <view class=\"tn-avatar-group-class tn-avatar-group\">\r\n <view v-for=\"(item, index) in lists\" :key=\"index\" class=\"tn-avatar-group__item\" :style=\"[itemStyle(index)]\">\r\n <tn-avatar\r\n :src=\"item.src || ''\"\r\n :text=\"item.text || ''\"\r\n :icon=\"item.icon || ''\"\r\n :size=\"size\"\r\n :shape=\"shape\"\r\n :imgMode=\"imgMode\"\r\n :border=\"true\"\r\n :borderSize=\"4\"\r\n ></tn-avatar>\r\n </view>\r\n </view>\n</template>\n\n<script>\r\n export default {\r\n name: 'tn-avatar-group',\r\n props: {\r\n // 头像列表\r\n lists: {\r\n type: Array,\r\n default() {\r\n return []\r\n }\r\n },\r\n // 头像类型\r\n // square 带圆角正方形 circle 圆形\r\n shape: {\r\n type: String,\r\n default: 'circle'\r\n },\r\n // 大小\r\n // sm 小头像 lg 大头像 xl 加大头像\r\n // 如果为其他则认为是直接设置大小\r\n size: {\r\n type: [Number, String],\r\n default: ''\r\n },\r\n // 当设置为显示头像信息时,\r\n // 图片的裁剪模式\r\n imgMode: {\r\n type: String,\r\n default: 'aspectFill'\r\n },\r\n // 头像之间的遮挡比例\r\n // 0.4 代表 40%\r\n gap: {\r\n type: Number,\r\n default: 0.4\r\n }\r\n },\r\n computed: {\r\n itemStyle() {\r\n return (index) => {\r\n let style = {}\r\n if (this._checkSizeIsInline()) {\r\n switch(this.size) {\r\n case 'sm':\r\n style.marginLeft = index != 0 ? `${-48 * this.gap}rpx` : ''\r\n break\r\n case 'lg':\r\n style.marginLeft = index != 0 ? `${-96 * this.gap}rpx` : ''\r\n break\r\n case 'xl':\r\n style.marginLeft = index != 0 ? `${-128 * this.gap}rpx` : ''\r\n break\r\n }\r\n } else {\r\n const size = Number(this.size.replace(/(px|rpx)/g, '')) || 64\r\n style.marginLeft = index != 0 ? `-${size * this.gap}rpx` : ''\r\n }\r\n return style\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n \r\n }\r\n },\r\n methods: {\r\n // 检查是否使用内置的大小进行设置\r\n _checkSizeIsInline() {\r\n if (/(xs|sm|md|lg|xl|xxl)/.test(this.size)) return true\r\n else return false\r\n }\r\n }\r\n }\n</script>\n\n<style lang=\"scss\" scoped>\r\n .tn-avatar-group {\r\n display: flex;\r\n flex-direction: row;\r\n \r\n &__item {\r\n position: relative;\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-avatar-group.vue?vue&type=style&index=0&id=221b717a&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-avatar-group.vue?vue&type=style&index=0&id=221b717a&lang=scss&scoped=true&\""],"sourceRoot":""}