1 |
- {"version":3,"sources":["webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-grid-item/tn-grid-item.vue?dc9a","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-grid-item/tn-grid-item.vue?e684","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-grid-item/tn-grid-item.vue?ce67","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-grid-item/tn-grid-item.vue?6b17","uni-app:///tuniao-ui/components/tn-grid-item/tn-grid-item.vue","webpack:///D:/Code2024/sulibao-mini/tuniao-ui/components/tn-grid-item/tn-grid-item.vue?0a22"],"names":["renderjs","component","options","__file","components","render","_vm","this","_h","$createElement","_self","_c","recyclableRender","staticRenderFns","_withStripped","mixins","name","props","index","type","default","data","parentData","hoverClass","col","created","computed","gridWidth","methods","updateParentData","click"],"mappings":"+IAAA,oIACIA,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,WACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,qDACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACJH,EAAII,MAAMC,IAEjBC,GAAmB,EACnBC,EAAkB,GACtBR,EAAOS,eAAgB,G,iCCRvB,yHAAg1B,eAAG,G,8GCuBn1B,gB,EACA,CACAC,mBACAC,oBACAC,OAEAC,OACAC,qBACAC,aAGAC,gBACA,OAEAC,YAEAC,cACAC,SAIAC,mBAEA,wBACA,iCAEAC,UAEAC,qBAEA,cAOAJ,sBACA,0CACA,kDACA,6BAGAK,SAEAC,4BACA,+BAEAC,iBACA,+BACA,8CAGA,a,iCC5EA,yHAA+jD,eAAG,G","file":"tuniao-ui/components/tn-grid-item/tn-grid-item.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tn-grid-item.vue?vue&type=template&id=f814fb48&scoped=true&\"\nvar renderjs\nimport script from \"./tn-grid-item.vue?vue&type=script&lang=js&\"\nexport * from \"./tn-grid-item.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tn-grid-item.vue?vue&type=style&index=0&id=f814fb48&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 \"f814fb48\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tuniao-ui/components/tn-grid-item/tn-grid-item.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-grid-item.vue?vue&type=template&id=f814fb48&scoped=true&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\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-grid-item.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-grid-item.vue?vue&type=script&lang=js&\"","<template>\r\n <view\r\n class=\"tn-grid-item-class tn-grid-item\"\r\n :class=\"[\r\n backgroundColorClass\r\n ]\"\r\n :hover-class=\"hoverClass\"\r\n :hover-stay-time=\"150\"\r\n :style=\"{\r\n backgroundColor: backgroundColorStyle,\r\n width: gridWidth\r\n }\"\r\n @tap=\"click\"\r\n >\r\n <view\r\n class=\"tn-grid-item__box\"\r\n >\r\n <slot></slot>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\n import componentsColorMixin from '../../libs/mixin/components_color.js'\r\n export default {\r\n mixins: [ componentsColorMixin ],\r\n name: 'tn-grid-item',\r\n props: {\r\n // 序号\r\n index: {\r\n type: [Number, String],\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n // 父组件数据\r\n parentData: {\r\n // 按下去的样式\r\n hoverClass: '',\r\n col: 3\r\n }\r\n }\r\n },\r\n created() {\r\n // 父组件实例\r\n this.updateParentData()\r\n this.parent.children.push(this)\r\n },\r\n computed: {\r\n // 计算每个宫格的宽度\r\n gridWidth() {\r\n // #ifdef MP-WEIXIN\r\n return '100%'\r\n // #endif\r\n // #ifndef MP-WEIXIN\r\n return 100 / Number(this.parentData.col) + '%'\r\n // #endif\r\n },\r\n // 点击效果\r\n hoverClass() {\r\n return this.parentData.hoverClass !== 'none' \r\n ? this.parentData.hoverClass + ' tn-grid-item--hover' \r\n : this.parentData.hoverClass\r\n }\r\n },\r\n methods: {\r\n // 获取父组件参数\r\n updateParentData() {\r\n this.getParentData('tn-grid')\r\n },\r\n click() {\r\n this.$emit('click', this.index)\r\n this.parent && this.parent.click(this.index)\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n .tn-grid-item {\r\n box-sizing: border-box;\r\n background-color: #FFFFFF;\r\n /* #ifndef APP-NVUE */\r\n display: flex;\r\n flex-direction: row;\r\n /* #endif */\r\n align-items: center;\r\n justify-content: center;\r\n position: relative;\r\n flex-direction: column;\r\n \r\n /* #ifdef MP */\r\n // float: left;\r\n /* #endif */\r\n \r\n &__box {\r\n /* #ifndef APP-NVUE */\r\n display: flex;\r\n flex-direction: row;\r\n /* #endif */\r\n align-items: center;\r\n justify-content: center;\r\n flex-direction: column;\r\n flex: 1;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n \r\n &--hover {\r\n background: $tn-space-color !important;\r\n }\r\n }\r\n</style>\r\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-grid-item.vue?vue&type=style&index=0&id=f814fb48&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-grid-item.vue?vue&type=style&index=0&id=f814fb48&lang=scss&scoped=true&\""],"sourceRoot":""}
|