You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
12 KiB
1 lines
12 KiB
{"version":3,"sources":["webpack:///C:/Users/18634/Desktop/项目/xxdj1/components/w-picker/selector-picker.vue?9588","webpack:///C:/Users/18634/Desktop/项目/xxdj1/components/w-picker/selector-picker.vue?f0c8","webpack:///C:/Users/18634/Desktop/项目/xxdj1/components/w-picker/selector-picker.vue?dad0","webpack:///C:/Users/18634/Desktop/项目/xxdj1/components/w-picker/selector-picker.vue?b511","uni-app:///components/w-picker/selector-picker.vue","webpack:///C:/Users/18634/Desktop/项目/xxdj1/components/w-picker/selector-picker.vue?3379","webpack:///C:/Users/18634/Desktop/项目/xxdj1/components/w-picker/selector-picker.vue?bdd2"],"names":["props","itemHeight","type","default","options","value","defaultType","defaultProps","label","data","pickVal","computed","nodeKey","nodeValue","range","watch","created","methods","initData","idx","result","obj","handlerChange"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA4H;AAC5H;AACmE;AACL;AACc;;;AAG5E;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,qFAAM;AACR,EAAE,0FAAM;AACR,EAAE,mGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,8FAAU;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;AAAymB,CAAgB,moBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBCW7nB;EACAA;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;QACA;MACA;IACA;IACAE;MACAH;MACAC;IACA;IACAG;MACAJ;MACAC;IACA;IACAI;MACAL;MACAC;QACA;UACAK;UACAH;QACA;MACA;IACA;EACA;EACAI;IACA;MACAC;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IACAV;MACA;QACA;MACA;IACA;IACAD;MACA;IACA;EACA;EACAY;IACA;MACA;IACA;EACA;EACAC;IACAC;MAAA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;QACAb;UAAA;QAAA;QACAc;UAAA;QAAA;MACA;QACAd;UAAA;QAAA;QACAc;UAAA;QAAA;MACA;MACAT;MACA;QACA;MACA;MACA;QACA;UACAU;UACAf;UACAgB;QACA;MACA;QACA;UACAD;UACAf;UACAgB;QACA;MACA;IAEA;IACAC;MAAA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;QACA;MACA;MACA;QACAF;QACAf;QACAgB;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;AC3HA;AAAA;AAAA;AAAA;AAAopC,CAAgB,0nCAAG,EAAC,C;;;;;;;;;;;ACAxqC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/w-picker/selector-picker.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./selector-picker.vue?vue&type=template&id=10e1f68c&\"\nvar renderjs\nimport script from \"./selector-picker.vue?vue&type=script&lang=js&\"\nexport * from \"./selector-picker.vue?vue&type=script&lang=js&\"\nimport style0 from \"./selector-picker.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/w-picker/selector-picker.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./selector-picker.vue?vue&type=template&id=10e1f68c&\"","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 \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./selector-picker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./selector-picker.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"w-picker-view\">\r\n\t\t<picker-view class=\"d-picker-view\" :indicator-style=\"itemHeight\" :value=\"pickVal\" @change=\"handlerChange\">\r\n\t\t\t<picker-view-column>\r\n\t\t\t\t<view class=\"w-picker-item\" v-for=\"(item,index) in range\" :key=\"index\">{{item[nodeKey]}}</view>\r\n\t\t\t</picker-view-column>\r\n\t\t</picker-view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tprops:{\r\n\t\t\titemHeight:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:\"44px\"\r\n\t\t\t},\r\n\t\t\toptions:{\r\n\t\t\t\ttype:[Array,Object],\r\n\t\t\t\tdefault(){\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tvalue:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:\"\"\r\n\t\t\t},\r\n\t\t\tdefaultType:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:\"label\"\r\n\t\t\t},\r\n\t\t\tdefaultProps:{\r\n\t\t\t\ttype:Object,\r\n\t\t\t\tdefault(){\r\n\t\t\t\t\treturn{\r\n\t\t\t\t\t\tlabel:\"label\",\r\n\t\t\t\t\t\tvalue:\"value\"\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\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tpickVal:[]\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed:{\r\n\t\t\tnodeKey(){\r\n\t\t\t\treturn this.defaultProps.label;\r\n\t\t\t},\r\n\t\t\tnodeValue(){\r\n\t\t\t\treturn this.defaultProps.value;\r\n\t\t\t},\r\n\t\t\trange(){\r\n\t\t\t\treturn this.options\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch:{\r\n\t\t\tvalue(val){\r\n\t\t\t\tif(this.options.length!=0){\r\n\t\t\t\t\tthis.initData();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\toptions(val){\r\n\t\t\t\tthis.initData();\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tif(this.options.length!=0){\r\n\t\t\t\tthis.initData();\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tinitData(){\r\n\t\t\t\tlet dVal=this.value||\"\";\r\n\t\t\t\tlet data=this.range;\r\n\t\t\t\tlet pickVal=[0];\r\n\t\t\t\tlet cur=null;\r\n\t\t\t\tlet label=\"\";\r\n\t\t\t\tlet value,idx;\r\n\t\t\t\tif(this.defaultType==this.nodeValue){\r\n\t\t\t\t\tvalue=data.find((v)=>v[this.nodeValue]==dVal);\r\n\t\t\t\t\tidx=data.findIndex((v)=>v[this.nodeValue]==dVal);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tvalue=data.find((v)=>v[this.nodeKey]==dVal);\r\n\t\t\t\t\tidx=data.findIndex((v)=>v[this.nodeKey]==dVal);\r\n\t\t\t\t}\r\n\t\t\t\tpickVal=[idx!=-1?idx:0];\r\n\t\t\t\tthis.$nextTick(()=>{\r\n\t\t\t\t\tthis.pickVal=pickVal;\r\n\t\t\t\t});\r\n\t\t\t\tif(this.defaultType==this.nodeValue){\r\n\t\t\t\t\tthis.$emit(\"change\",{\r\n\t\t\t\t\t\tresult:value?value[this.nodeKey]:data[0][this.nodeKey],\r\n\t\t\t\t\t\tvalue:dVal||data[0][this.nodeKey],\r\n\t\t\t\t\t\tobj:value?value:data[0]\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.$emit(\"change\",{\r\n\t\t\t\t\t\tresult:dVal||data[0][this.nodeKey],\r\n\t\t\t\t\t\tvalue:value?value[this.nodeValue]:data[0][this.nodeValue],\r\n\t\t\t\t\t\tobj:value?value:data[0]\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\thandlerChange(e){\r\n\t\t\t\tlet arr=[...e.detail.value];\r\n\t\t\t\tlet pickVal=[arr[0]||0];\r\n\t\t\t\tlet data=this.range;\r\n\t\t\t\tlet cur=data[arr[0]];\r\n\t\t\t\tlet label=\"\";\r\n\t\t\t\tlet value=\"\";\r\n\t\t\t\tthis.$nextTick(()=>{\r\n\t\t\t\t\tthis.pickVal=pickVal;\r\n\t\t\t\t});\r\n\t\t\t\tthis.$emit(\"change\",{\r\n\t\t\t\t\tresult:cur[this.nodeKey],\r\n\t\t\t\t\tvalue:cur[this.nodeValue],\r\n\t\t\t\t\tobj:cur\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t@import \"./w-picker.css\";\r\n</style>\r\n","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./selector-picker.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./selector-picker.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1693645337393\n var cssReload = require(\"D:/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":""} |