u-grid.js.map 12.6 KB
{"version":3,"sources":["webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-grid/u-grid.vue?1ae1","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-grid/u-grid.vue?4ce4","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-grid/u-grid.vue?38cf","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-grid/u-grid.vue?0602","uni-app:///uview-ui/components/u-grid/u-grid.vue","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-grid/u-grid.vue?92d2","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-grid/u-grid.vue?baec"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AClBA;AAAA;AAAA;AAAA;AAAk2B,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;ACKt3B;;;;;;;;;;AAUA;AACA,gBADA;AAEA;AACA;AACA;AACA,4BADA;AAEA,gBAFA,EAFA;;AAMA;AACA;AACA,mBADA;AAEA,mBAFA,EAPA;;AAWA;AACA;AACA,kBADA;AAEA,qBAFA,EAZA;;AAgBA;AACA;AACA,kBADA;AAEA,8BAFA,EAjBA,EAFA;;;AAwBA,MAxBA,kBAwBA;AACA;AACA,cADA;;AAGA,GA5BA;AA6BA;AACA;AACA,cAFA,wBAEA;AACA;AACA;AACA;AACA;AACA,SAHA;AAIA;AACA,KATA,EA7BA;;AAwCA,SAxCA,qBAwCA;AACA;AACA;AACA,GA3CA;AA4CA;AACA;AACA,cAFA,wBAEA;AACA;AACA,KAJA;AAKA;AACA,aANA,uBAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAVA;AAWA;AACA;AACA,KArBA,EA5CA;;AAmEA;AACA,SADA,iBACA,KADA,EACA;AACA;AACA,KAHA,EAnEA,E;;;;;;;;;;;;ACfA;AAAA;AAAA;AAAA;AAA2kD,CAAgB,s5CAAG,EAAC,C;;;;;;;;;;;ACA/lD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uview-ui/components/u-grid/u-grid.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-grid.vue?vue&type=template&id=a7b3bc80&scoped=true&\"\nvar renderjs\nimport script from \"./u-grid.vue?vue&type=script&lang=js&\"\nexport * from \"./u-grid.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-grid.vue?vue&type=style&index=0&id=a7b3bc80&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../Applications/HBuilderX.app/Contents/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  \"a7b3bc80\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"uview-ui/components/u-grid/u-grid.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-grid.vue?vue&type=template&id=a7b3bc80&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.__get_style([_vm.gridStyle])\n\n  _vm.$mp.data = Object.assign(\n    {},\n    {\n      $root: {\n        s0: s0\n      }\n    }\n  )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-grid.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-grid.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"u-grid\" :class=\"{'u-border-top u-border-left': border}\" :style=\"[gridStyle]\"><slot /></view>\n</template>\n\n<script>\n/**\n * grid 宫格布局\n * @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。\n * @tutorial https://www.uviewui.com/components/grid.html\n * @property {String Number} col 宫格的列数(默认3)\n * @property {Boolean} border 是否显示宫格的边框(默认true)\n * @property {Boolean} hover-class 点击宫格的时候,是否显示按下的灰色背景(默认false)\n * @event {Function} click 点击宫格触发\n * @example <u-grid :col=\"3\" @click=\"click\"></u-grid>\n */\nexport default {\n\tname: 'u-grid',\n\tprops: {\n\t\t// 分成几列\n\t\tcol: {\n\t\t\ttype: [Number, String],\n\t\t\tdefault: 3\n\t\t},\n\t\t// 是否显示边框\n\t\tborder: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true\n\t\t},\n\t\t// 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右\n\t\talign: {\n\t\t\ttype: String,\n\t\t\tdefault: 'left'\n\t\t},\n\t\t// 宫格按压时的样式类,\"none\"为无效果\n\t\thoverClass: {\n\t\t\ttype: String,\n\t\t\tdefault: 'u-hover-class'\n\t\t}\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tindex: 0,\n\t\t}\n\t},\n\twatch: {\n\t\t// 当父组件需要子组件需要共享的参数发生了变化,手动通知子组件\n\t\tparentData() {\n\t\t\tif(this.children.length) {\n\t\t\t\tthis.children.map(child => {\n\t\t\t\t\t// 判断子组件(u-radio)如果有updateParentData方法的话,就就执行(执行的结果是子组件重新从父组件拉取了最新的值)\n\t\t\t\t\ttypeof(child.updateParentData) == 'function' && child.updateParentData();\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t},\n\tcreated() {\n\t\t// 如果将children定义在data中,在微信小程序会造成循环引用而报错\n\t\tthis.children = [];\n\t},\n\tcomputed: {\n\t\t// 计算父组件的值是否发生变化\n\t\tparentData() {\n\t\t\treturn [this.hoverClass, this.col, this.size, this.border];\n\t\t},\n\t\t// 宫格对齐方式\n\t\tgridStyle() {\n\t\t\tlet style = {};\n\t\t\tswitch(this.align) {\n\t\t\t\tcase 'left':\n\t\t\t\t\tstyle.justifyContent = 'flex-start';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'center':\n\t\t\t\t\tstyle.justifyContent = 'center';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'right':\n\t\t\t\t\tstyle.justifyContent = 'flex-end';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: style.justifyContent = 'flex-start';\n\t\t\t};\n\t\t\treturn style;\n\t\t}\n\t},\n\tmethods: {\n\t\tclick(index) {\n\t\t\tthis.$emit('click', index);\n\t\t}\n\t}\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import \"../../libs/css/style.components.scss\";\n\n.u-grid {\n\twidth: 100%;\n\t/* #ifdef MP */\n\tposition: relative;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\t/* #endif */\n\t\n\t/* #ifndef MP */\n\t@include vue-flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\t/* #endif */\n}\n</style>\n","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-grid.vue?vue&type=style&index=0&id=a7b3bc80&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-grid.vue?vue&type=style&index=0&id=a7b3bc80&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1700461801781\n      var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n      module.hot.dispose(cssReload);\n      module.hot.accept(undefined, cssReload);\n    }\n  "],"sourceRoot":""}