tm-pickersView.js.map 29 KB

1
  1. {"version":3,"sources":["webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-pickersView/tm-pickersView.vue?89fd","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-pickersView/tm-pickersView.vue?8c15","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-pickersView/tm-pickersView.vue?a692","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-pickersView/tm-pickersView.vue?843e","uni-app:///tm-vuetify/components/tm-pickersView/tm-pickersView.vue","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-pickersView/tm-pickersView.vue?3409","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-pickersView/tm-pickersView.vue?bb77"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2H;AAC3H;AACkE;AACL;AACa;;;AAG1E;AACmM;AACnM,gBAAgB,0MAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,yFAAM;AACR,EAAE,kGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,6FAAU;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;AAA2wB,CAAgB,ywBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuB/xB;;;;;;;;;;;;;;;AAeA;AACA,wBADA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBADA;AAEA,+CAFA,EALA;;AASA;AACA;AACA,2BADA;AAEA,iBAFA,EAVA;;AAcA;AACA,iBADA;AAEA;AACA;AACA,OAJA,EAdA;;AAoBA;AACA;AACA,kBADA;AAEA,qBAFA,EArBA;;AAyBA;AACA,kBADA;AAEA,mBAFA,EAzBA;;AA6BA;AACA;AACA,kBADA;AAEA,yBAFA,EA9BA;;AAkCA;AACA,4BADA;AAEA,mBAFA,EAlCA;;AAsCA;AACA;AACA,4BADA;AAEA,oBAFA,EAvCA;;AA2CA;AACA;AACA,kBADA;AAEA,sBAFA,EA5CA,EAFA;;;;AAoDA,MApDA,kBAoDA;AACA;AACA,uBADA;AAEA,mBAFA;AAGA,oBAHA;AAIA,sBAJA;AAKA,mBALA;AAMA,kBANA;;AAQA,eARA;;AAUA,GA/DA;AAgEA,SAhEA,qBAgEA;AACA;AACA;AACA;;AAEA,KAJA;AAKA,GAtEA;AAuEA;AACA;AACA,gBADA;AAEA;AACA;AACA;AACA;AACA,SAFA;AAGA,OAPA,EADA;;AAUA;AACA,gBADA;AAEA;AACA;AACA;AACA,0CADA,oEAFA,wJAFA,EAVA,EAvEA;;;;;AA2FA;AACA;AACA;AACA;AACA,KAJA;AAKA;AACA;AACA;AACA;AACA;AACA,KAVA;;AAYA;AACA;AACA;AACA;AACA,yCAFA;AAGA;AACA;AACA,sBADA;AAEA,0BAFA;AAGA,eAHA;;AAKA;AACA;AACA;AACA;AACA,sBADA;AAEA,0BAFA;AAGA,eAHA;;AAKA;AACA;AACA;;;;AAIA,aAJA,GAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBADA;AAEA,gCAFA;AAGA,iBAHA;;AAKA;AACA;AACA;AACA;AACA;AACA,SApBA,CACA,cACA,eACA;AAkBA;AACA,sBADA;AAEA,8BAFA;AAGA,eAHA;;AAKA;AACA;AACA;AACA;AACA,KA/DA,EA3FA;;;AA6JA;AACA,yBADA,mCACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KARA;AASA;AACA,oBAVA,8BAUA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4CADA;AAEA,6DAFA;;AAIA,OALA,MAKA;;AAEA;;AAEA;AACA;AACA;AACA,8CADA;AAEA,oBAFA;;;AAKA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ACAlnC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"tm-vuetify/components/tm-pickersView/tm-pickersView.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tm-pickersView.vue?vue&type=template&id=67b6178d&\"\nvar renderjs\nimport script from \"./tm-pickersView.vue?vue&type=script&lang=js&\"\nexport * from \"./tm-pickersView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tm-pickersView.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../exe/HBuilderX.3.4.7.20220422/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 = \"tm-vuetify/components/tm-pickersView/tm-pickersView.vue\"\nexport default component.exports","export * from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-pickersView.vue?vue&type=template&id=67b6178d&\"","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 \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-pickersView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-pickersView.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"tm-pickersView flex-start px-24\" :class=\"[black_tmeme?'grey-darken-5':bgColor]\">\r\n\t\t<!-- @change=\"bindChange\" -->\r\n\t\t\r\n\t\t<picker-view @change=\"change\" @pickstart='$emit(\"aniStart\")' @pickend='$emit(\"aniEnd\")' v-if=\"listData.length>0\" :value=\"value_default\" \r\n\t\t:mask-style='black_tmeme?\"opacity:0;\":\"\"'\r\n\t\tindicator-style='height:50px;' \r\n\t\tindicator-class=\"tm-pickersBView-item-h\" \r\n\t\tclass=\"tm-pickersBView-wk\">\r\n\t\t\t<picker-view-column v-for=\"(item,index) in listData\" :key=\"index\">\r\n\t\t\t\t<view class=\"tm-pickersBView-item fulled-height flex-center \" style=\"margin: 0 5px;\" :class=\"[value_default[index]==index_pub?'text-size-n text-weight-b active':'',black_tmeme?'bk':'']\" v-for=\"(item_data,index_pub) in listData[index]\" :key=\"index_pub\">\r\n\t\t\t\t\t<text v-if=\"dataType == 'string'\" >{{item_data}}</text>\r\n\t\t\t\t\t<text v-if=\"dataType == 'object'\">{{item_data[rangKey]}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</picker-view-column>\r\n\t\t\t\r\n\t\t</picker-view>\r\n\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t/**\r\n\t * 普通级联拉选择器(嵌入式)\r\n\t * @description 多级关联,单级关联选择\r\n\t * @property {Array} default-value = [] 默认:[],默认赋值项。可选三种赋值方式,名称赋值,对象赋值,数字序列赋值\r\n\t * @property {String|Number} item-height = [34|42|50|58|62] 项目的高度单位px\r\n\t * @property {Array} list = [] 选择器的数据,可选格式:Array<string>,Array<object>.如果为object格式需要提供rangKey.如果为多级需要提供children.key值\r\n\t * @property {String} rang-key = [text|title] 默认:text,如果List格式为对象数组,需要提供此值\r\n\t * @property {String} children-key = [children] 默认:children,如果List格式为对象数组且为多级联选择,需要提供此值,理论上无限级联数据\r\n\t * @property {String|Boolean} black = [true|false] 是否开启暗黑模式。 \r\n\t * @property {String|Boolean} disabled = [true|false] 是否禁用\r\n\t * @property {String} bg-color = [white|blue] 默认:white,白色背景;请填写背景的主题色名称。 \r\n\t * @property {Function} change 列数被选中改变时触发。\r\n\t * \r\n\t */\r\n\r\n\texport default {\r\n\t\tname: \"tm-pickersView\",\r\n\t\tprops: {\r\n\t\t\t// 默认选中的项\r\n\t\t\t// 格式有三种分别是[string,string...]\r\n\t\t\t// [数字序列,数字序列....]\r\n\t\t\t// 和list同等对象结构[{},{},...],此格式需要提供rangKey字段否则报错。\r\n\t\t\tdefaultValue:{\r\n\t\t\t\ttype:Array,\r\n\t\t\t\tdefault:()=>{return []}\r\n\t\t\t},\r\n\t\t\t// 行高。\r\n\t\t\titemHeight: {\r\n\t\t\t\ttype: String | Number,\r\n\t\t\t\tdefault: 40\r\n\t\t\t},\r\n\t\t\tlist: {\r\n\t\t\t\ttype: Array,\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\t// 如果数据是对象,则需要提供key值。\r\n\t\t\trangKey: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"text\"\r\n\t\t\t},\r\n\t\t\trangKeyId: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"id\"\r\n\t\t\t},\r\n\t\t\t// 如果是联级,则需要提供子集key值。\r\n\t\t\tchildrenKey: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"children\"\r\n\t\t\t},\r\n\t\t\tblack:{\r\n\t\t\t\ttype:String|Boolean,\r\n\t\t\t\tdefault:null\r\n\t\t\t},\r\n\t\t\t// 是否禁用\r\n\t\t\tdisabled:{\r\n\t\t\t\ttype:String|Boolean,\r\n\t\t\t\tdefault:false\r\n\t\t\t},\r\n\t\t\t// 背景颜色,主题色名称。\r\n\t\t\tbgColor:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:'white'\r\n\t\t\t}\r\n\t\t\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tvalue_default:[],\r\n\t\t\t\tpre_value:[],\r\n\t\t\t\tscrollEvent: 0,\r\n\t\t\t\tchildrenIndex: 0,\r\n\t\t\t\tlistIndex: [],\r\n\t\t\t\tlistData: [],\r\n\t\t\t\r\n\t\t\t\tidx:9123\r\n\t\t\t};\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.$nextTick(function(){\r\n\t\t\t\tthis.chulisdata()\r\n\t\t\t\tthis.setDefaultValue();\r\n\t\t\t\t\r\n\t\t\t})\r\n\t\t},\r\n\t\twatch:{\r\n\t\t\tdefaultValue:{\r\n\t\t\t\tdeep:true,\r\n\t\t\t\thandler: function(newV,oldV){\r\n\t\t\t\t\tthis.chulisdata()\r\n\t\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\t\tthis.inits();\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tlist:{\r\n\t\t\t\tdeep:true,\r\n\t\t\t\thandler:async function(newV,oldV){\r\n\t\t\t\t\tthis.chulisdata()\r\n\t\t\t\t\tthis.$nextTick(async function(){\r\n\t\t\t\t\t\tawait this.inits();\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\tcomputed: {\r\n\t\t\tblack_tmeme: function() {\r\n\t\t\t\tif (this.black !== null) return this.black;\r\n\t\t\t\treturn this.$tm.vx.state().tmVuetify.black;\r\n\t\t\t},\r\n\t\t\tdataType: function() {\r\n\t\t\t\t// 数据有误\r\n\t\t\t\tif (typeof this.list !== 'object' && !Array.isArray(this.list) && !this.list.length) return null;\r\n\t\t\t\tif (typeof this.list[0] === 'string') return 'string';\r\n\t\t\t\tif (typeof this.list[0] === 'object') return 'object';\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\tgridNum: function() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif (\r\n\t\t\t\t(typeof this.list !== 'object' && !Array.isArray(this.list) && this.list.length==0)||\r\n\t\t\t\ttypeof this.list[0] === 'undefined'\r\n\t\t\t\t) {\r\n\t\t\t\t\tthis.listIndex = [{\r\n\t\t\t\t\t\titemIndex: 0,\r\n\t\t\t\t\t\tchildrenIndex: 0,\r\n\t\t\t\t\t\twz: 0\r\n\t\t\t\t\t}]\r\n\t\t\t\t\treturn 0\r\n\t\t\t\t};\r\n\t\t\t\tif (typeof this.list[0] === 'string') {\r\n\t\t\t\t\tthis.listIndex = [{\r\n\t\t\t\t\t\titemIndex: 0,\r\n\t\t\t\t\t\tchildrenIndex: 0,\r\n\t\t\t\t\t\twz: 0\r\n\t\t\t\t\t}]\r\n\t\t\t\t\treturn 1\r\n\t\t\t\t}\r\n\t\t\t\tif (typeof this.list[0] === 'object') {\r\n\t\t\t\t\tlet index = 0;\r\n\t\t\t\t\tlet cindex = 1;\r\n\t\t\t\t\tlet pds = []\r\n\t\t\t\t\tfunction tests(obj) {\r\n\t\t\t\t\t\tif(!obj||obj?.length==0){\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcindex = cindex+1;\r\n\t\t\t\t\t\tindex +=1;\r\n\t\t\t\t\t\tpds.push({\r\n\t\t\t\t\t\t\titemIndex: 0,\r\n\t\t\t\t\t\t\tchildrenIndex: index,\r\n\t\t\t\t\t\t\twz: 0\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tif (obj && typeof obj === 'object' && Array.isArray(obj)) {\r\n\t\t\t\t\t\t\tif (obj[0][t.childrenKey]) {\r\n\t\t\t\t\t\t\t\ttests(obj[0][t.childrenKey]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpds.push({\r\n\t\t\t\t\t\titemIndex: 0,\r\n\t\t\t\t\t\tchildrenIndex: index,\r\n\t\t\t\t\t\twz: 0\r\n\t\t\t\t\t})\r\n\t\t\t\t\ttests(this.list[0][this.childrenKey])\r\n\t\t\t\t\tt.listIndex = pds;\r\n\t\t\t\t\treturn cindex;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tSeletecdeIndexdefault(){\r\n\t\t\t\tlet d = []\r\n\t\t\t\t\r\n\t\t\t\tfor(let i=0;i<this.gridNum;i++){\r\n\t\t\t\t\td.push(this.listIndex[i].itemIndex)\r\n\t\t\t\t}\r\n\t\t\t\tthis.value_default = d;\r\n\t\t\t},\r\n\t\t\t// 获取当前选中的数据。\r\n\t\t\tgetSelectedValue(){\r\n\t\t\t\tlet t = this;\r\n\t\t\t\t// 总的级联数。\r\n\t\t\t\tlet dNum = this.gridNum;\r\n\t\t\t\tlet pd = this.listIndex;\r\n\t\t\t\t\r\n\t\t\t\tif(this.dataType === 'string'){\r\n\t\t\t\t\treturn [{\r\n\t\t\t\t\t\tindex:this.listIndex[0].itemIndex,\r\n\t\t\t\t\t\tdata:this.listData[0][this.listIndex[0].itemIndex]\r\n\t\t\t\t\t}]\r\n\t\t\t\t}else if(this.dataType === 'object'){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(dNum===1){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlet ps = {...this.listData[0][this.listIndex[0].itemIndex]};\r\n\t\t\t\t\t\tdelete ps.children;\r\n\t\t\t\t\t\treturn [{\r\n\t\t\t\t\t\t\tindex:this.listIndex[0].itemIndex,\r\n\t\t\t\t\t\t\tdata:ps\r\n\t\t\t\t\t\t}]\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else if(dNum>1){\r\n\t\t\t\t\t\tlet p = [];\r\n\t\t\t\t\t\tthis.listIndex.forEach((item,index)=>{\r\n\t\t\t\t\t\t\tif(t.listData[index]){\r\n\t\t\t\t\t\t\t\tlet ps = {...t.listData[index][item.itemIndex]};\r\n\t\t\t\t\t\t\t\tdelete ps.children;\r\n\t\t\t\t\t\t\t\tp.push({\r\n\t\t\t\t\t\t\t\t\tindex:item.itemIndex,\r\n\t\t\t\t\t\t\t\t\tdata:ps\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn [];\r\n\t\t\t},\r\n\t\t\tchulisdata() {\r\n\t\t\t\t// 总的级联数。\r\n\t\t\t\tlet dNum = this.gridNum;\r\n\t\t\t\t\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif (dNum === 0) {\r\n\t\t\t\t\tthis.listData = [];\r\n\t\t\t\t\tthis.$forceUpdate()\r\n\t\t\t\t\treturn this.listData;\r\n\t\t\t\t}\r\n\t\t\t\tif (dNum === 1) {\r\n\t\t\t\t\tthis.listData = [this.list];\r\n\t\t\t\t\t// this.listData.push([...this.list]);\r\n\t\t\t\t\tthis.$forceUpdate()\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn this.listData;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (dNum > 1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tlet index = 1;\r\n\t\t\t\t\tlet list = [];\r\n\t\t\t\t\tlet p = [];\r\n\t\t\t\t\tfunction tests(obj) {\r\n\t\t\t\t\t\tif(index > dNum) return;\r\n\t\t\t\t\t\tlist.push([...obj])\r\n\t\t\t\t\t\tif(obj[t.listIndex[index]?.itemIndex]){\r\n\t\t\t\t\t\t\tlet cl = obj[t.listIndex[index].itemIndex][t.childrenKey];\r\n\t\t\t\t\t\t\tif (cl && typeof cl === 'object' && Array.isArray(cl)) {\r\n\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\ttests(cl);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tp.push([...this.list])\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.list[t.listIndex[0].itemIndex][this.childrenKey]){\r\n\t\t\t\t\t\ttests(this.list[t.listIndex[0].itemIndex][this.childrenKey])\r\n\t\t\t\t\t}\r\n\t\t\t\t\tp.push(...list);\r\n\t\t\t\t\tthis.$forceUpdate()\r\n\t\t\t\t\tthis.listData = p;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn this.listData;\r\n\t\t\t},\r\n\t\t\tsetDefaultValue(objSelected){\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tuni.$tm.sleep(50).then(()=>t.inits(objSelected))\r\n\t\t\t\t.then(()=>uni.$tm.sleep(50))\r\n\t\t\t\t.then(()=>t.SeletecdeIndexdefault())\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tasync inits(objSelected){\r\n\t\t\t\t// 总的级联数。\r\n\t\t\t\tlet dNum = this.gridNum;\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tvar sjd = null;\r\n\t\t\t\tif(typeof objSelected ==='object' && Array.isArray(objSelected)){\r\n\t\t\t\t\tsjd = objSelected;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(!this.defaultValue||this.defaultValue.length==0) return;\r\n\t\t\t\t\tsjd = this.defaultValue;\r\n\t\t\t\t}\r\n\t\t\t\tlet typeindex = typeof sjd[0];\r\n\t\t\t\t\r\n\t\t\t\tif(dNum===0) return;\r\n\t\t\t\t\r\n\t\t\t\tif(typeindex === 'number'){\r\n\t\t\t\t\tif (dNum === 1) {\r\n\t\t\t\t\t\tlet itemIndex = sjd[0];\r\n\t\t\t\t\t\tif(typeof itemIndex === 'number' && !isNaN(itemIndex) ){\r\n\t\t\t\t\t\t\tthis.$set(this.listIndex[0], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn \r\n\t\t\t\t\t}else if(dNum > 1){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlet index = 1;\r\n\t\t\t\t\t\tasync function tests() {\r\n\t\t\t\t\t\t\tif(index > dNum) return;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlet itemIndex = t.defaultValue[index];\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(typeof itemIndex === 'number' && !isNaN(itemIndex) &&typeof t.listIndex[index] === 'object' && typeof t.listIndex[index] !=='undefined'){\r\n\t\t\t\t\t\t\t\tawait uni.$tm.sleep(30)\r\n\t\t\t\t\t\t\t\tt.$set(t.listIndex[index], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tt.chulisdata();\r\n\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t\tawait tests();\r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlet itemIndex = sjd[0];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.$set(this.listIndex[0], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.chulisdata();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tawait tests()\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(typeindex === 'string'){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.dataType==='string'){\r\n\t\t\t\t\t\tif (dNum === 1) {\r\n\t\t\t\t\t\t\tlet valueStr = sjd[0];\r\n\t\t\t\t\t\t\tif(typeof valueStr !=='string' || typeof valueStr ==='undefined' || valueStr ==null){\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tlet itemIndex = this.listData[0].indexOf(valueStr)\r\n\t\t\t\t\t\t\tif(itemIndex>-1){\r\n\t\t\t\t\t\t\t\tthis.$set(this.listIndex[0], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\treturn \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else if(this.dataType === 'object'){\r\n\t\t\t\t\t\tif (dNum === 1) {\r\n\t\t\t\t\t\t\tlet valueStr = sjd[0];\r\n\t\t\t\t\t\t\tif(typeof valueStr !=='string' || typeof valueStr ==='undefined' || valueStr ==null){\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tlet itemIndex = this.listData[0].findIndex(item=>{\r\n\t\t\t\t\t\t\t\treturn item[t.rangKey] == valueStr;\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tif(itemIndex>-1){\r\n\t\t\t\t\t\t\t\tthis.$set(this.listIndex[0], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn \r\n\t\t\t\t\t\t}else if(dNum>1){\r\n\t\t\t\t\t\t\tlet index = 0;\r\n\t\t\t\t\t\t\tasync function tests() {\r\n\t\t\t\t\t\t\t\tif(index > dNum) return;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(typeof t.listIndex[index] === 'object' && typeof t.listIndex[index] !=='undefined'){\r\n\t\t\t\t\t\t\t\t\tlet valueStr = t.defaultValue[index];\r\n\t\t\t\t\t\t\t\t\tif(typeof valueStr !=='string' || typeof valueStr ==='undefined' || valueStr ==null){\r\n\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlet itemIndex = t.listData[index].findIndex(item=>{\r\n\t\t\t\t\t\t\t\t\t\treturn item[t.rangKey] == valueStr;\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\tif(itemIndex>-1){\r\n\t\t\t\t\t\t\t\t\t\tawait uni.$tm.sleep(30)\r\n\t\t\t\t\t\t\t\t\t\tt.$set(t.listIndex[index], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tt.chulisdata();\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t\t\tawait tests();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tawait tests()\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(typeindex === 'object'){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (dNum === 1) {\r\n\t\t\t\t\t\tlet valueStr = sjd[0];\r\n\t\t\t\t\t\tif(typeof valueStr[t.rangKey] ==='undefined' || typeof valueStr !=='object' || typeof valueStr ==='undefined' || valueStr ==null){\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlet itemIndex = this.listData[0].findIndex(item=>{\r\n\t\t\t\t\t\t\treturn (item[t.rangKey] == valueStr[t.rangKey])||(parseInt(item[t.rangKeyId]) == parseInt(valueStr[t.rangKeyId]));;\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tif(itemIndex>-1){\r\n\t\t\t\t\t\t\tthis.$set(this.listIndex[0], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn \r\n\t\t\t\t\t}else if(dNum>1){\r\n\t\t\t\t\t\tlet index = 0;\r\n\t\t\t\t\t\tasync function tests() {\r\n\t\t\t\t\t\t\tif(index > dNum) return;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(typeof t.listIndex[index] === 'object' && typeof t.listIndex[index] !=='undefined'){\r\n\t\t\t\t\t\t\t\tlet valueStr = t.defaultValue[index];\r\n\t\t\t\t\t\t\t\tif(typeof valueStr[t.rangKey] ==='undefined' || typeof valueStr !=='object' || typeof valueStr ==='undefined' || valueStr ==null){\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tlet itemIndex = t.listData[index].findIndex(item=>{\r\n\t\t\t\t\t\t\t\t\treturn (item[t.rangKey] == valueStr[t.rangKey])||(parseInt(item[t.rangKeyId]) == parseInt(valueStr[t.rangKeyId]));\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tif(itemIndex>-1){\r\n\t\t\t\t\t\t\t\t\tawait uni.$tm.sleep(30)\r\n\t\t\t\t\t\t\t\t\tt.$set(t.listIndex[index], 'itemIndex', itemIndex);\r\n\t\t\t\t\t\t\t\t\tt.$set(t.listIndex[index], 'wz', itemIndex * t.itemHeight);\r\n\t\t\t\t\t\t\t\t\tt.chulisdata();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\t\t\tawait tests();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tawait tests()\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchange(e) {\r\n\t\t\t\tlet pl = [...e.detail.value];\r\n\t\t\t\t\r\n\t\t\t\tthis.pre_value =[...this.value_default];\r\n\t\t\t\t\r\n\t\t\t\tif(this.disabled){\r\n\t\t\t\t\tthis.value_default = this.pre_value;\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tlet childrenIndex = 0;\r\n\t\t\t\tfor(let i=0;i<pl.length;i++){\r\n\t\t\t\t\tif(this.listIndex[i].itemIndex !== pl[i]){\r\n\t\t\t\t\t\tchildrenIndex = this.listIndex[i].childrenIndex;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.childrenIndex = childrenIndex;\r\n\t\t\t\t\r\n\t\t\t\tfor(let i=childrenIndex;i<pl.length;i++){\r\n\t\t\t\t\tif(this.listIndex[i]?.itemIndex !== pl[i]){\r\n\t\t\t\t\t\tthis.$set(this.listIndex[i],'itemIndex',pl[i])\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.$set(this.listIndex[i],'itemIndex',0)\r\n\t\t\t\t\t\tpl[i] = 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\tthis.chulisdata()\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.value_default = pl;\r\n\t\t\t\t\tthis.$emit(\"change\",pl)\r\n\t\t\t\t})\r\n\t\t\t\t\r\n\t\t\t},\r\n\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style >\r\n\t.tm-pickersView .tm-pickersBView-item-h{\r\n\t\theight: 50px;\r\n\t\tbackground-color: rgba(255,255,255,0.2);\r\n\t\twidth: calc(100% - 10px);\r\n\t\tmargin-left: 5px;\r\n\t\tborder-radius: 20rpx;\r\n\t\tborder: none;\r\n\t}\r\n\t.tm-pickersView .tm-pickersBView-item-h::after,.tm-pickersView .tm-pickersBView-item-h::before{\r\n\t\tborder: none;\r\n\t}\r\n\t.tm-pickersView .tm-pickersBView-wk{\r\n\t\tposition: relative;\r\n\t\twidth: 750rpx;\r\n\t\theight: 500rpx;\r\n\t\t\r\n\t}\r\n\t.tm-pickersView .tm-pickersBView-wk .tm-pickersBView-item.bk{\r\n\t\topacity: 0.4;\r\n\t}\r\n\t.tm-pickersView .tm-pickersBView-wk .tm-pickersBView-item.active{\r\n\t\topacity: 1;\r\n\t\tborder-radius: 20rpx;\r\n\t\tborder: none;\r\n\t\tbackground-color: rgba(0,0,0,0.06);\r\n\t}\r\n\t.tm-pickersView .tm-pickersBView-wk .tm-pickersBView-item.active.bk{\r\n\t\tbackground-color: rgba(255,255,255,0.06);\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-pickersView.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./tm-pickersView.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1678780469589\n var cssReload = require(\"D:/yzm/exe/HBuilderX.3.4.7.20220422/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":""}