u-collapse.js.map 12.4 KB
{"version":3,"sources":["webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-collapse/u-collapse.vue?fd0c","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-collapse/u-collapse.vue?a323","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-collapse/u-collapse.vue?bebc","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-collapse/u-collapse.vue?94ae","uni-app:///uview-ui/components/u-collapse/u-collapse.vue","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-collapse/u-collapse.vue?1086","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-collapse/u-collapse.vue?938b"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;AACsC;;;AAG/F;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,iGAAM;AACR,EAAE,0GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qGAAU;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;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAs2B,CAAgB,wyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACO13B;;;;;;;;;;;;;AAaA;AACA,oBADA;AAEA;AACA;AACA;AACA,mBADA;AAEA,mBAFA,EAFA;;AAMA;AACA;AACA,kBADA;AAEA,aAFA,sBAEA;AACA;AACA,OAJA,EAPA;;AAaA;AACA;AACA,kBADA;AAEA,aAFA,sBAEA;AACA;AACA,OAJA,EAdA;;AAoBA;AACA;AACA,kBADA;AAEA,aAFA,sBAEA;AACA;AACA,OAJA,EArBA;;AA2BA;AACA;AACA,mBADA;AAEA,mBAFA,EA5BA;;AAgCA;AACA;AACA,kBADA;AAEA,wBAFA,EAjCA;;AAqCA;AACA;AACA,kBADA;AAEA,8BAFA,EAtCA,EAFA;;;AA6CA,SA7CA,qBA6CA;AACA;AACA,GA/CA;AAgDA,MAhDA,kBAgDA;AACA;;;AAGA,GApDA;AAqDA;AACA;AACA,QAFA,kBAEA;AACA;AACA;AACA,OAFA;AAGA,KANA;AAOA;AACA,YARA,sBAQA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA;AACA;AACA,KAlBA,EArDA,E;;;;;;;;;;;;ACpBA;AAAA;AAAA;AAAA;AAA+kD,CAAgB,05CAAG,EAAC,C;;;;;;;;;;;ACAnmD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uview-ui/components/u-collapse/u-collapse.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-collapse.vue?vue&type=template&id=e4ce3c40&scoped=true&\"\nvar renderjs\nimport script from \"./u-collapse.vue?vue&type=script&lang=js&\"\nexport * from \"./u-collapse.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-collapse.vue?vue&type=style&index=0&id=e4ce3c40&lang=scss&scoped=true&\"\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  \"e4ce3c40\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"uview-ui/components/u-collapse/u-collapse.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-collapse.vue?vue&type=template&id=e4ce3c40&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 \"-!../../../../../../../../../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-collapse.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-collapse.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"u-collapse\">\n\t\t<slot />\n\t</view>\n</template>\n\n<script>\n\t/**\n\t * collapse 手风琴\n\t * @description 通过折叠面板收纳内容区域\n\t * @tutorial https://www.uviewui.com/components/collapse.html\n\t * @property {Boolean} accordion 是否手风琴模式(默认true)\n\t * @property {Boolean} arrow 是否显示标题右侧的箭头(默认true)\n\t * @property {String} arrow-color 标题右侧箭头的颜色(默认#909399)\n\t * @property {Object} head-style 标题自定义样式,对象形式\n\t * @property {Object} body-style 主体自定义样式,对象形式\n\t * @property {String} hover-class 样式类名,按下时有效(默认u-hover-class)\n\t * @event {Function} change 当前激活面板展开时触发(如果是手风琴模式,参数activeNames类型为String,否则为Array)\n\t * @example <u-collapse></u-collapse>\n\t */\n\texport default {\n\t\tname:\"u-collapse\",\n\t\tprops: {\n\t\t\t// 是否手风琴模式\n\t\t\taccordion: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: true\n\t\t\t},\n\t\t\t// 头部的样式\n\t\t\theadStyle: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault () {\n\t\t\t\t\treturn {}\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 主体的样式\n\t\t\tbodyStyle: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault () {\n\t\t\t\t\treturn {}\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 每一个item的样式\n\t\t\titemStyle: {\n\t\t\t\ttype: Object,\n\t\t\t\tdefault () {\n\t\t\t\t\treturn {}\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 是否显示右侧的箭头\n\t\t\tarrow: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: true\n\t\t\t},\n\t\t\t// 箭头的颜色\n\t\t\tarrowColor: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '#909399'\n\t\t\t},\n\t\t\t// 标题部分按压时的样式类,\"none\"为无效果\n\t\t\thoverClass: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: 'u-hover-class'\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\tthis.childrens = []\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 重新初始化一次内部的所有子元素的高度计算,用于异步获取数据渲染的情况\n\t\t\tinit() {\n\t\t\t\tthis.childrens.forEach((vm, index) => {\n\t\t\t\t\tvm.init();\n\t\t\t\t})\n\t\t\t},\n\t\t\t// collapse item被点击,由collapse item调用父组件方法\n\t\t\tonChange() {\n\t\t\t\tlet activeItem = [];\n\t\t\t\tthis.childrens.forEach((vm, index) => {\n\t\t\t\t\tif (vm.isShow) {\n\t\t\t\t\t\tactiveItem.push(vm.nameSync);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t// 如果是手风琴模式,只有一个匹配结果,也即activeItem长度为1,将其转为字符串\n\t\t\t\tif (this.accordion) activeItem = activeItem.join('');\n\t\t\t\tthis.$emit('change', activeItem);\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import \"../../libs/css/style.components.scss\";\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-collapse.vue?vue&type=style&index=0&id=e4ce3c40&lang=scss&scoped=true&\"; 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-collapse.vue?vue&type=style&index=0&id=e4ce3c40&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1700461804543\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":""}