HHSLinkSLink/HSLink-wx/unpackage/dist/dev/.sourcemap/mp-weixin/components/mehaotian-search/mehaotian-search.js.map
2020-12-19 12:13:27 +08:00

1 line
13 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/office/phy/HSLink/HSLink-app/components/mehaotian-search/mehaotian-search.vue?97db","webpack:///D:/office/phy/HSLink/HSLink-app/components/mehaotian-search/mehaotian-search.vue?3a21","webpack:///D:/office/phy/HSLink/HSLink-app/components/mehaotian-search/mehaotian-search.vue?6da9","webpack:///D:/office/phy/HSLink/HSLink-app/components/mehaotian-search/mehaotian-search.vue?f29b","uni-app:///components/mehaotian-search/mehaotian-search.vue","webpack:///D:/office/phy/HSLink/HSLink-app/components/mehaotian-search/mehaotian-search.vue?50ba","webpack:///D:/office/phy/HSLink/HSLink-app/components/mehaotian-search/mehaotian-search.vue?cc74"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyI;AACzI;AACoE;AACL;AACsC;;;AAGrG;AAC2K;AAC3K,gBAAgB,kLAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,uGAAM;AACR,EAAE,gHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2GAAU;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;AAAqpB,CAAgB,mpBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkBzqB;AACA;AACA;AACA,kBADA,EADA;;AAIA;AACA,kBADA;AAEA,gBAFA,EAJA;;AAQA;AACA,kBADA;AAEA,wBAFA,EARA;;AAYA;AACA,mBADA;AAEA,mBAFA,EAZA;;AAgBA;AACA,kBADA;AAEA,mBAFA,EAhBA;;AAoBA;AACA,kBADA;AAEA,wBAFA,EApBA;;AAwBA;AACA,kBADA;AAEA,qBAFA,EAxBA;;AA4BA,0DA5BA,EADA;;;AAgCA,MAhCA,kBAgCA;AACA;AACA,mBADA;AAEA,0BAFA;AAGA,sBAHA;AAIA,sBAJA;AAKA,oBALA;;AAOA,GAxCA;AAyCA;AACA,SADA,mBACA;AACA;AACA,KAHA;AAIA,QAJA,kBAIA;AACA;AACA;AACA;AACA;AACA,KATA;AAUA,SAVA,mBAUA;AACA;AACA;AACA;AACA,KAdA;AAeA,YAfA,sBAeA;AACA;AACA,KAjBA;AAkBA,UAlBA,oBAkBA;AACA;AACA;AACA;AACA,KAtBA,EAzCA;;AAiEA;AACA,SADA,iBACA,MADA,EACA;AACA;AACA,KAHA;AAIA,YAJA,oBAIA,MAJA,EAIA;AACA;AACA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA;AACA,KAbA,EAjEA,E;;;;;;;;;;;;AClBA;AAAA;AAAA;AAAA;AAAktC,CAAgB,yoCAAG,EAAC,C;;;;;;;;;;;ACAtuC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/mehaotian-search/mehaotian-search.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./mehaotian-search.vue?vue&type=template&id=c742fcb8&scoped=true&\"\nvar renderjs\nimport script from \"./mehaotian-search.vue?vue&type=script&lang=js&\"\nexport * from \"./mehaotian-search.vue?vue&type=script&lang=js&\"\nimport style0 from \"./mehaotian-search.vue?vue&type=style&index=0&id=c742fcb8&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 \"c742fcb8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/mehaotian-search/mehaotian-search.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!./mehaotian-search.vue?vue&type=template&id=c742fcb8&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 \"-!../../../../../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!./mehaotian-search.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!./mehaotian-search.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"search\">\n\t\t<view class=\"content\" :style=\"{ 'border-radius': radius + 'px', border: border,backgroundColor: backgroundColor }\">\n\t\t\t<view class=\"content-box\" :class=\"{ center: mode === 2 }\">\n\t\t\t\t<text class=\"icon icon-search\">&#xe61c;</text>\n\t\t\t\t<input class=\"input\" :class=\"{ center: !active && mode === 2 }\" :focus=\"isFocus\" :placeholder=\"placeholder\" v-model=\"inputVal\" @focus=\"focus\" @blur=\"blur\" />\n\t\t\t\t<!-- <view v-if=\"!active && mode === 2\" class=\"input sub\" @click=\"getFocus\">请输入搜索内容</view> -->\n\t\t\t\t<text v-if=\"isDelShow\" class=\"icon icon-del\" @click=\"clear\">&#xe644;</text>\n\t\t\t</view>\n\t\t\t<view v-show=\"(active && show && button === 'inside') || (isDelShow && button === 'inside')\" class=\"searchBtn\" @click=\"search\">搜索</view>\n\t\t</view>\n\t\t<view v-if=\"button === 'outside'\" class=\"button\" :class=\"{ active: show || active }\" @click=\"search\">\n\t\t\t<view class=\"button-item\">{{ !show ? searchName : '搜索' }}</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\nexport default {\n\tprops: {\n\t value: {\n\t type: String\n\t\t},\n\t\tmode: {\n\t\t\ttype: Number,\n\t\t\tdefault: 1\n\t\t},\n\t\tbutton: {\n\t\t\ttype: String,\n\t\t\tdefault: 'outside'\n\t\t},\n\t\tshow: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true\n\t\t},\n\t\tradius: {\n\t\t\ttype: String,\n\t\t\tdefault: '60'\n\t\t},\n\t\tplaceholder: {\n\t\t\ttype: String,\n\t\t\tdefault: '请输入搜索内容'\n\t\t},\n\t\tbackgroundColor: {\n\t\t\ttype: String,\n\t\t\tdefault: '#fff'\n\t\t},\n\t\tborder: { type: String, default: '1px #f5f5f5 solid' }\n\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tactive: false,\n\t\t\tinputVal: this.value,\n\t\t\tsearchName: '取消',\n\t\t\tisDelShow: false,\n\t\t\tisFocus: false\n\t\t};\n\t},\n\tmethods: {\n\t\tfocus() {\n\t\t\tthis.active = true;\n\t\t},\n\t\tblur() {\n\t\t\tthis.isFocus = false;\n\t\t\tif (!this.inputVal) {\n\t\t\t\tthis.active = false;\n\t\t\t}\n\t\t},\n\t\tclear() {\n\t\t\tthis.inputVal = '';\n\t\t\tthis.active = false;\n\t\t\tthis.$emit('search', '');\n\t\t},\n\t\tgetFocus() {\n\t\t\tthis.isFocus = true;\n\t\t},\n\t\tsearch() {\n\t\t\tif (!this.inputVal) return;\n\t\t\tconsole.log(this.inputVal);\n\t\t\tthis.$emit('search', this.inputVal);\n\t\t}\n\t},\n\twatch: {\n\t value(newVal) {\n\t this.inputVal = newVal;\n\t\t},\n\t\tinputVal(newVal) {\n this.$emit('input', newVal);\n\t\t\tif (newVal) {\n\t\t\t\tthis.searchName = '搜索';\n\t\t\t\tthis.isDelShow = true;\n\t\t\t} else {\n\t\t\t\tthis.searchName = '取消';\n\t\t\t\tthis.isDelShow = false;\n\t\t\t}\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.search {\n\tdisplay: flex;\n\twidth: 100%;\n\tborder-bottom: 1px #f5f5f5 solid;\n\tbox-sizing: border-box;\n\tpadding: 15upx;\n\tfont-size: $uni-font-size-base;\n\tbackground: #fff;\n\t.content {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\theight: 60upx;\n\t\tborder: 1px #ccc solid;\n\t\tbackground: #fff;\n\t\toverflow: hidden;\n\t\ttransition: all 0.2s linear;\n\t\tborder-radius: 30px;\n\t\tpadding-top: 0;\n\t\tpadding-bottom: 0;\n\n\t\t.content-box {\n\t\t\twidth: 100%;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\t&.center {\n\t\t\t\tjustify-content: center;\n\t\t\t}\n\t\t\t.icon {\n\t\t\t\tpadding: 0 15upx;\n\t\t\t\t&.icon-del {\n\t\t\t\t\tfont-size: 38upx;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.input {\n\t\t\t\twidth: 100%;\n\t\t\t\tmax-width: 100%;\n\t\t\t\tline-height: 60upx;\n\t\t\t\theight: 60upx;\n\t\t\t\ttransition: all 0.2s linear;\n\t\t\t\t&.center {\n\t\t\t\t\twidth: 200upx;\n\t\t\t\t}\n\t\t\t\t&.sub {\n\t\t\t\t\t// position: absolute;\n\t\t\t\t\twidth: auto;\n\t\t\t\t\tcolor: grey;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t.searchBtn {\n\t\t\theight: 100%;\n\t\t\tflex-shrink: 0;\n\t\t\tpadding: 0 30upx;\n\t\t\tbackground: $uni-color-success;\n\t\t\tline-height: 60upx;\n\t\t\tcolor: #fff;\n\t\t\tborder-left: 1px #ccc solid;\n\t\t\ttransition: all 0.3s;\n\t\t}\n\t}\n\n\t.button {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tposition: relative;\n\t\tflex-shrink: 0;\n\t\twidth: 0;\n\t\ttransition: all 0.2s linear;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\t&.active {\n\t\t\tpadding-left: 15upx;\n\t\t\twidth: 100upx;\n\t\t}\n\t}\n}\n@font-face {\n\tfont-family: 'iconfont';\n\tsrc: url('https://at.alicdn.com/t/font_989023_efq0mtli526.ttf') format('truetype');\n}\n.icon {\n\tfont-family: iconfont;\n\tfont-size: 32upx;\n\tfont-style: normal;\n\tcolor: #999;\n}\n</style>\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!./mehaotian-search.vue?vue&type=style&index=0&id=c742fcb8&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!./mehaotian-search.vue?vue&type=style&index=0&id=c742fcb8&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1602301330895\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":""}