1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"version":3,"sources":["webpack:///D:/office/phy/HSLink/HSLink-app/components/uni-collapse-item/uni-collapse-item.vue?db1b","webpack:///D:/office/phy/HSLink/HSLink-app/components/uni-collapse-item/uni-collapse-item.vue?5aca","webpack:///D:/office/phy/HSLink/HSLink-app/components/uni-collapse-item/uni-collapse-item.vue?8029","webpack:///D:/office/phy/HSLink/HSLink-app/components/uni-collapse-item/uni-collapse-item.vue?5587","uni-app:///components/uni-collapse-item/uni-collapse-item.vue","webpack:///D:/office/phy/HSLink/HSLink-app/components/uni-collapse-item/uni-collapse-item.vue?a491","webpack:///D:/office/phy/HSLink/HSLink-app/components/uni-collapse-item/uni-collapse-item.vue?d1c9"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA0I;AAC1I;AACqE;AACL;AACsC;;;AAGtG;AAC2K;AAC3K,gBAAgB,kLAAU;AAC1B,EAAE,uFAAM;AACR,EAAE,wGAAM;AACR,EAAE,iHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,4GAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA,WAAW,oPAEN;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACdA;AAAA;AAAA;AAAA;AAAspB,CAAgB,opBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2B1qB;AACA,yBADA;AAEA;AACA,sBADA,EAFA;;AAKA;AACA;AACA;AACA,kBAFA;AAGA,iBAHA,EADA;;AAMA;AACA;AACA,4BAFA;AAGA,gBAHA,EANA;;AAWA;AACA;AACA,mBAFA;AAGA,oBAHA,EAXA;;AAgBA;AACA;AACA,mBAFA;AAGA,oBAHA,EAhBA;;AAqBA;AACA;AACA,mBAFA;AAGA,oBAHA,EArBA;;AA0BA;AACA;AACA,kBAFA;AAGA,iBAHA,EA1BA,EALA;;;AAqCA,MArCA,kBAqCA;AACA;AACA,mBADA;;AAGA,GAzCA;AA0CA;AACA,QADA,gBACA,GADA,EACA;AACA;AACA,KAHA,EA1CA;;AA+CA,sBA/CA;AAgDA,SAhDA,qBAgDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GA5DA;AA6DA;AACA,WADA,qBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SALA;AAMA;AACA;AACA;AACA;AACA,KAhBA,EA7DA,E;;;;;;;;;;;;AC3BA;AAAA;AAAA;AAAA;AAAmtC,CAAgB,0oCAAG,EAAC,C;;;;;;;;;;;ACAvuC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/uni-collapse-item/uni-collapse-item.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-collapse-item.vue?vue&type=template&id=8f47561c&scoped=true&\"\nvar renderjs\nimport script from \"./uni-collapse-item.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-collapse-item.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uni-collapse-item.vue?vue&type=style&index=0&id=8f47561c&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../work/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 \"8f47561c\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-collapse-item/uni-collapse-item.vue\"\nexport default component.exports","export * from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-collapse-item.vue?vue&type=template&id=8f47561c&scoped=true&\"","var components = {\n uniIcons: function() {\n return import(\n /* webpackChunkName: \"components/uni-icons/uni-icons\" */ \"@/components/uni-icons/uni-icons.vue\"\n )\n }\n}\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 \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-collapse-item.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-collapse-item.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view :class=\"{ 'uni-collapse-cell--disabled': disabled,'uni-collapse-cell--notdisabled': !disabled, 'uni-collapse-cell--open': isOpen,'uni-collapse-cell--hide':!isOpen }\"\r\n\t class=\"uni-collapse-cell\">\r\n\t\t<view class=\"uni-collapse-cell__title\" @click=\"onClick\">\r\n\t\t\t<image v-if=\"thumb\" :src=\"thumb\" class=\"uni-collapse-cell__title-img\" />\r\n\t\t\t<text class=\"uni-collapse-cell__title-text\">{{ title }}</text>\r\n\t\t\t<!-- #ifdef MP-ALIPAY -->\r\n\t\t\t<view :class=\"{ 'uni-collapse-cell__title-arrow-active': isOpen, 'uni-collapse-cell--animation': showAnimation === true }\"\r\n\t\t\t class=\"uni-collapse-cell__title-arrow\">\r\n\t\t\t\t<uni-icons color=\"#bbb\" size=\"20\" type=\"arrowdown\" />\r\n\t\t\t</view>\r\n\t\t\t<!-- #endif -->\r\n\t\t\t<!-- #ifndef MP-ALIPAY -->\r\n\t\t\t<uni-icons :class=\"{ 'uni-collapse-cell__title-arrow-active': isOpen, 'uni-collapse-cell--animation': showAnimation === true }\"\r\n\t\t\t class=\"uni-collapse-cell__title-arrow\" color=\"#bbb\" size=\"20\" type=\"arrowdown\" />\r\n\t\t\t<!-- #endif -->\r\n\t\t</view>\r\n\t\t<view :class=\"{'uni-collapse-cell__content--hide':!isOpen}\" class=\"uni-collapse-cell__content\">\r\n\t\t\t<view :class=\"{ 'uni-collapse-cell--animation': showAnimation === true }\" class=\"uni-collapse-cell__wrapper\" :style=\"{'transform':isOpen?'translateY(0)':'translateY(-50%)','-webkit-transform':isOpen?'translateY(0)':'translateY(-50%)'}\">\r\n\t\t\t\t<slot />\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport uniIcons from '../uni-icons/uni-icons.vue'\r\n\texport default {\r\n\t\tname: 'UniCollapseItem',\r\n\t\tcomponents: {\r\n\t\t\tuniIcons\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\ttitle: {\r\n\t\t\t\t// 列表标题\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tname: {\r\n\t\t\t\t// 唯一标识符\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tdisabled: {\r\n\t\t\t\t// 是否禁用\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tshowAnimation: {\r\n\t\t\t\t// 是否显示动画\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\topen: {\r\n\t\t\t\t// 是否展开\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tthumb: {\r\n\t\t\t\t// 缩略图\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tisOpen: false\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\topen(val) {\r\n\t\t\t\tthis.isOpen = val\r\n\t\t\t}\r\n\t\t},\r\n\t\tinject: ['collapse'],\r\n\t\tcreated() {\r\n\t\t\tthis.isOpen = this.open\r\n\t\t\tthis.nameSync = this.name ? this.name : this.collapse.childrens.length\r\n\t\t\tthis.collapse.childrens.push(this)\r\n\t\t\tif (String(this.collapse.accordion) === 'true') {\r\n\t\t\t\tif (this.isOpen) {\r\n\t\t\t\t\tlet lastEl = this.collapse.childrens[this.collapse.childrens.length - 2]\r\n\t\t\t\t\tif (lastEl) {\r\n\t\t\t\t\t\tthis.collapse.childrens[this.collapse.childrens.length - 2].isOpen = false\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tonClick() {\r\n\t\t\t\tif (this.disabled) {\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tif (String(this.collapse.accordion) === 'true') {\r\n\t\t\t\t\tthis.collapse.childrens.forEach(vm => {\r\n\t\t\t\t\t\tif (vm === this) {\r\n\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tvm.isOpen = false\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tthis.isOpen = !this.isOpen\r\n\t\t\t\tthis.collapse.onChange && this.collapse.onChange()\r\n\t\t\t\tthis.$forceUpdate()\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t@import '@/uni.scss';\r\n\r\n\t.uni-collapse-cell {\r\n\t\tflex-direction: column;\r\n\t\tborder-color: $uni-border-color;\r\n\t\tborder-bottom-width: 1px;\r\n\t\tborder-bottom-style: solid;\r\n\t}\r\n\r\n\r\n\t.uni-collapse-cell--hover {\r\n\t\tbackground-color: $uni-bg-color-hover;\r\n\t}\r\n\r\n\t.uni-collapse-cell--open {\r\n\t\tbackground-color: $uni-bg-color-hover;\r\n\t}\r\n\r\n\t.uni-collapse-cell--disabled {\r\n\t\tbackground-color: $uni-bg-color-hover;\r\n\t\t// opacity: 0.3;\r\n\t}\r\n\r\n\r\n\t.uni-collapse-cell--hide {\r\n\t\theight: 48px;\r\n\t}\r\n\r\n\t.uni-collapse-cell--animation {\r\n\t\t// transition: transform 0.3s ease;\r\n\t\ttransition-property: transform;\r\n\t\ttransition-duration: 0.3s;\r\n\t\ttransition-timing-function: ease;\r\n\t}\r\n\r\n\t.uni-collapse-cell__title {\r\n\t\tpadding: 12px 12px;\r\n\t\tposition: relative;\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tdisplay: flex;\r\n\t\twidth: 100%;\r\n\t\tbox-sizing: border-box;\r\n\t\t/* #endif */\r\n\t\theight: 48px;\r\n\t\tline-height: 24px;\r\n\t\tflex-direction: row;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.uni-collapse-cell__title:active {\r\n\t\tbackground-color: $uni-bg-color-hover;\r\n\t}\r\n\r\n\t.uni-collapse-cell__title-img {\r\n\t\theight: $uni-img-size-base;\r\n\t\twidth: $uni-img-size-base;\r\n\t\tmargin-right: 10px;\r\n\t}\r\n\r\n\t.uni-collapse-cell__title-arrow {\r\n\t\twidth: 20px;\r\n\t\theight: 20px;\r\n\t\ttransform: rotate(0deg);\r\n\t\ttransform-origin: center center;\r\n\r\n\t}\r\n\r\n\t.uni-collapse-cell__title-arrow-active {\r\n\t\ttransform: rotate(180deg);\r\n\t}\r\n\r\n\t.uni-collapse-cell__title-text {\r\n\t\tflex: 1;\r\n\t\tfont-size: $uni-font-size-base;\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\twhite-space: nowrap;\r\n\t\tcolor: inherit;\r\n\t\t/* #endif */\r\n\t\t/* #ifdef APP-NVUE */\r\n\t\tlines: 1;\r\n\t\t/* #endif */\r\n\t\toverflow: hidden;\r\n\t\ttext-overflow: ellipsis;\r\n\t}\r\n\r\n\t.uni-collapse-cell__content {\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\t.uni-collapse-cell__wrapper {\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tdisplay: flex;\r\n\t\t/* #endif */\r\n\t\tflex-direction: column;\r\n\t}\r\n\r\n\t.uni-collapse-cell__content--hide {\r\n\t\theight: 0px;\r\n\t\tline-height: 0px;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-collapse-item.vue?vue&type=style&index=0&id=8f47561c&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../work/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-collapse-item.vue?vue&type=style&index=0&id=8f47561c&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1602301331046\n var cssReload = require(\"D:/office/work/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":""} |