1 |
- {"version":3,"sources":["webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-quickIndex/tm-quickIndex.vue?8674","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-quickIndex/tm-quickIndex.vue?07e6","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-quickIndex/tm-quickIndex.vue?a0ef","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-quickIndex/tm-quickIndex.vue?3ec4","uni-app:///tm-vuetify/components/tm-quickIndex/tm-quickIndex.vue","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-quickIndex/tm-quickIndex.vue?505e","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-quickIndex/tm-quickIndex.vue?fbd2"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsI;AACtI;AACiE;AACL;AACsC;;;AAGlG;AACmM;AACnM,gBAAgB,0MAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,oGAAM;AACR,EAAE,6GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wGAAU;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,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,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AAG,EAAC,C;;;;;;;;;;;ACAj+C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"tm-vuetify/components/tm-quickIndex/tm-quickIndex.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tm-quickIndex.vue?vue&type=template&id=440f0dc1&scoped=true&\"\nvar renderjs\nimport script from \"./tm-quickIndex.vue?vue&type=script&lang=js&\"\nexport * from \"./tm-quickIndex.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tm-quickIndex.vue?vue&type=style&index=0&id=440f0dc1&lang=scss&scoped=true&\"\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 \"440f0dc1\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tm-vuetify/components/tm-quickIndex/tm-quickIndex.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-quickIndex.vue?vue&type=template&id=440f0dc1&scoped=true&\"","var components\ntry {\n components = {\n tmLoadding: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-loadding/tm-loadding\" */ \"@/tm-vuetify/components/tm-loadding/tm-loadding.vue\"\n )\n },\n tmIcons: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-icons/tm-icons\" */ \"@/tm-vuetify/components/tm-icons/tm-icons.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.__map(_vm.dataList, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n if (_vm.$scope.data.scopedSlotsCompiler === \"augmented\") {\n _vm.$setScopedSlotsParams(\"cell\", {\n data: {\n prevent: index,\n children: _vm.index2,\n total: $orig.children.length,\n $orig: _vm.item2,\n title: _vm.item2[_vm.rangKey],\n color: _vm.color_tmeme,\n black: _vm.black_tmeme\n }\n })\n }\n\n return {\n $orig: $orig\n }\n })\n\n var m0 = _vm.showtips ? _vm.returnIndexStr(_vm.scrollIndx) : null\n var l1 =\n _vm.activeHeight_watch > 0\n ? _vm.__map(_vm.dataList, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var m1 = _vm.returnIndexStr(index)\n return {\n $orig: $orig,\n m1: m1\n }\n })\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0,\n m0: m0,\n l1: l1\n }\n }\n )\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-quickIndex.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-quickIndex.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"tm-quickIndex \" :style=\"{\r\n\t\t\theight: activeHeight_watch + 'px'\r\n\t\t}\">\r\n\t\t<view :style=\"{\r\n\t\t\theight: activeHeight_watch + 'px'\r\n\t\t}\">\r\n\t\t\t<tm-loadding v-if=\"loadding\" label=\"处理中...\"></tm-loadding>\r\n\t\t\t<scroll-view scroll-y :class=\"[black_tmeme?'grey-darken-4':'white']\" :style=\"{\r\n\t\t\t\t\theight: activeHeight_watch + 'px',\r\n\t\t\t\t}\" @scroll=\"scrollIn\" :scroll-into-view=\"guid+'_'+(isScroll?'':active_value)\">\r\n\t\t\t\t<view v-for=\"(item,index) in dataList\" :key=\"index\" :id=\"guid+'_'+index\" class=\"tm-quickIndex-item\">\r\n\t\t\t\t\t\r\n\t\t\t\t\t<view :class=\"[black_tmeme?'grey-darken-5':'grey-lighten-4 text']\" class=\" text-size-s text-weight-b px-32 py-12\">{{item.title}}</view>\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<view v-for=\"(item2,index2) in item.children\" :key=\"index2\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<slot name=\"cell\" :data=\"{prevent:index,children:index2,total:item.children.length,item:item2,title:item2[rangKey],color:color_tmeme,black:black_tmeme}\">\r\n\t\t\t\t\t\t\t\t<view :class=\"[index2!==item.children.length-1?'border-grey-lighten-4-b-1 ':'',black_tmeme?'bk':'']\" class=\"mx-32 py-24 flex-start\" @click=\"changeIndex(index,index2,item2)\">\r\n\t\t\t\t\t\t\t\t\t<view v-if=\"item2['icon']\" style=\"width: 48rpx;height: 48rpx;\" class=\"mr-24 rounded flex-center overflow\">\r\n\t\t\t\t\t\t\t\t\t\t<tm-icons :size=\"48\" :name=\"item2['icon']\"></tm-icons>\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t<view class=\"text-size-n\">\r\n\t\t\t\t\t\t\t\t\t\t{{item2[rangKey]}}\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</slot>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"tm-quickIndex-index flex-center flex-col pr-16\" :style=\"{\r\n\t\t\t\theight: activeHeight_watch + 'px'\r\n\t\t\t}\">\r\n\t\t\t<view v-if=\"showtips\"\r\n\t\t\t\t:class=\"[`text-${color_tmeme}`,black_tmeme?'bk':'']\"\r\n\t\t\t\tclass=\"tm-quickIndex-index-Tips absolute rounded shadow-10 flex-center white text-size-g text-weight-b\">\r\n\t\t\t\t{{ returnIndexStr(scrollIndx) }}\r\n\t\t\t</view>\r\n\t\t\t<!-- <view v-if=\"scrollInBarIndex\"\r\n\t\t\t\t:class=\"[`text-${color}`]\"\r\n\t\t\t\tclass=\"tm-quickIndex-index-Tips absolute rounded shadow-10 flex-center white text-size-g text-weight-b\">\r\n\t\t\t\t{{returnIndexStr(scrollIndx)}} :class=\"[scrollIndx==index?`text-${color} text-weight-b`:'']\"\r\n\t\t\t</view> -->\r\n\t\t\t<view v-if=\"activeHeight_watch>0\" @touchend.stop.prevent=\"indexMove($event,'end')\" @touchmove.stop.prevent=\"indexMove($event,'scroll')\"\r\n\t\t\t\tclass=\"tm-quickIndex-index-Bk round-24 shadow-3 \" :class=\"[black_tmeme?'grey-darken-5 bk':'white']\">\r\n\t\t\t\t<view @click.stop=\"acitveItemClick($event,index)\"\r\n\t\t\t\t\tclass=\"tm-quickIndex-index-item text-size-xxs flex-center px-2\"\r\n\t\t\t\t\t\r\n\t\t\t\t\tv-for=\"(item,index) in dataList\" :key=\"index\">\r\n\t\t\t\t\t{{\r\n\t\t\t\t\t\treturnIndexStr(index)\r\n\t\t\t\t\t}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t/**\r\n\t * 快速索引\r\n\t * @property {Array} list = [] 默认:[],列表数据,格式:[{title:\"汽车品牌\",children:[{title:\"宝马\"},{title:\"奔驰\"}]}]\r\n\t * @property {String} rang-key = [] 默认:'title',列表对象key,\r\n\t * @property {String | Number} height = [] 默认:0,高度,默认为0时,自动使用屏幕的高度。\r\n\t * @property {Number} value = [] 默认:0,当前滚动的索引位置,推荐使用v-model或者value.sync\r\n\t * @property {String} color = [] 默认:primary,主题色。\r\n\t * @property {Function} change 点击列表项时产生的事件,返回参数:{prent:父Index,children:子index,data:项数据。}\r\n\t * @example <tm-quickIndex :list='[{title:\"汽车品牌\",children:[{title:\"宝马\"},{title:\"奔驰\"}]}]'></tm-quickIndex>\r\n\t * 如果 不提供index索引字符将截取title第一个字符作为索引。如果title第一个没有将使用自建的数字索引。\r\n\t */\r\n\r\n\timport tmIcons from \"@/tm-vuetify/components/tm-icons/tm-icons.vue\"\r\n\timport tmLoadding from \"@/tm-vuetify/components/tm-loadding/tm-loadding.vue\"\r\n\texport default {\r\n\t\tcomponents:{tmIcons,tmLoadding},\r\n\t\tname: 'tm-quickIndex',\r\n\t\tmodel: {\r\n\t\t\tprop: 'value',\r\n\t\t\tevent: 'input'\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\t// 高度,默认为0时,自动使用屏幕的高度。\r\n\t\t\theight: {\r\n\t\t\t\ttype: String | Number,\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\t// 当前滚动的位置。\r\n\t\t\tvalue: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\t// 当前滚动的位置。\r\n\t\t\tcolor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"primary\"\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\trangKey: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: \"title\"\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\tfllowTheme:{\r\n\t\t\t\ttype:Boolean|String,\r\n\t\t\t\tdefault:true\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tvalue: function() {\r\n\t\t\t\t\r\n\t\t\t\tthis.active = this.value;\r\n\t\t\t\tthis.isScroll=false;\r\n\t\t\t\tthis.scrollIndx = this.value;\r\n\t\t\t},\r\n\t\t\tlist:{\r\n\t\t\t\tdeep:true,\r\n\t\t\t\thandler(){\r\n\t\t\t\t\tthis.dataList = this.list;\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\tcolor_tmeme:function(){\r\n\t\t\t\tif(this.$tm.vx.state().tmVuetify.color!==null&&this.$tm.vx.state().tmVuetify.color && this.fllowTheme){\r\n\t\t\t\t\treturn this.$tm.vx.state().tmVuetify.color;\r\n\t\t\t\t}\r\n\t\t\t\treturn this.color;\r\n\t\t\t},\r\n\t\t\tactive: {\r\n\t\t\t\tget: function() {\r\n\t\t\t\t\treturn this.active_value;\r\n\t\t\t\t},\r\n\t\t\t\tset: async function(val) {\r\n\t\t\t\t\tthis.active_value = val;\r\n\t\t\t\t\tthis.$emit('input', val);\r\n\t\t\t\t\tthis.$emit('update:value', val);\r\n\t\t\t\t\tlet t = this;\r\n\t\t\t\t\tthis.showtips = true;\r\n\t\t\t\t\tlet idx = 5655555\r\n\t\t\t\t\tclearTimeout(idx)\r\n\t\t\t\t\tidx = setTimeout(function(){\r\n\t\t\t\t\t\tt.showtips = false;\r\n\t\t\t\t\t},500)\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tactiveHeight_watch: {\r\n\t\t\t\tget: function() {\r\n\t\t\t\t\treturn this.activeHeight;\r\n\t\t\t\t},\r\n\t\t\t\tset: function(val) {\r\n\t\t\t\t\tthis.activeHeight = val;\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\tminTop:0,\r\n\t\t\t\tactiveHeight: 0,\r\n\t\t\t\tguid: \"\",\r\n\t\t\t\tactive_value: 0,\r\n\t\t\t\tlistBound: [],\r\n\t\t\t\tnowIndex: 0,\r\n\t\t\t\tshowtips: false,\r\n\t\t\t\tisScroll: true,\r\n\t\t\t\tquinkBar: null,\r\n\t\t\t\tscrollIndx: 0,\r\n\t\t\t\tscrollInBarIndex: false,\r\n\t\t\t\tdataList:[],\r\n\t\t\t\tloadding:true\r\n\t\t\t};\r\n\t\t},\r\n\t\tasync mounted() {\r\n\t\t\tthis.guid = uni.$tm.guid();\r\n\t\t\tlet t = this;\r\n\t\t\tthis.activeHeight_watch = uni.upx2px(this.height);\r\n\t\t\tthis.loadding=true;\r\n\t\t\tawait uni.$tm.sleep(50)\r\n\t\t\tthis.dataList = [...this.list];\r\n\t\t\t\r\n\t\t\tthis.$nextTick(async function() {\r\n\t\t\t\tif (!this.activeHeight_watch) {\r\n\t\t\t\t\tlet sysinfo = uni.getSystemInfoSync();\r\n\t\t\t\t\tthis.activeHeight_watch = sysinfo.windowHeight;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tlet df = await this.$Querey(\".tm-quickIndex\",this).catch(e=>{});\r\n\t\t\t\t\r\n\t\t\t\tthis.minTop = df[0].top;\r\n\t\t\t\tlet indexbar = await t.$Querey(\".tm-quickIndex-index-Bk\", t).catch(e => {})\r\n\t\t\t\tt.quinkBar = indexbar[0]\r\n\t\t\t\tawait uni.$tm.sleep(100)\r\n\t\t\t\tt.active = t.value;\r\n\t\t\t\tuni.createSelectorQuery().in(t).selectAll('.tm-quickIndex-item')\r\n\t\t\t\t.boundingClientRect(res => {\r\n\t\t\t\t\tres.forEach(item => {\r\n\t\t\t\t\t\tt.listBound.push(item.top)\r\n\t\t\t\t\t})\r\n\t\t\t\t\tt.loadding=false;\r\n\t\t\t\t}).exec()\r\n\t\t\t});\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\treturnIndexStr(index){\r\n\t\t\t\tlet item = this.list[index];\r\n\t\t\t\tif(!item || typeof item === 'undefined') return;\r\n\t\t\t\tif(item['index']&& typeof item['index'] !=='undefined'){\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn item['index'];\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(item[this.rangKey][0]&& typeof item[this.rangKey][0] !=='undefined'){\r\n\t\t\t\t\t\treturn item[this.rangKey][0];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn index+1\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tscrollIn(e) {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tlet y = e.detail.scrollTop;\r\n\t\t\t\tthis.isScroll = true;\r\n\r\n\t\t\t\tfunction chatIndex(min) {\r\n\t\t\t\t\tlet index = 0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (let i = 0; i < t.listBound.length; i++) {\r\n\t\t\t\t\t\tif (t.listBound[i] >= min + t.minTop+1) {\r\n\t\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\t\tbreak;\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\treturn index;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.nowIndex = chatIndex(y) - 1;\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tchangeIndex(prentindex, childrenindex, item) {\r\n\t\t\t\tthis.$emit('change', {\r\n\t\t\t\t\tprent: prentindex,\r\n\t\t\t\t\tchildren: childrenindex,\r\n\t\t\t\t\tdata: item\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tasync acitveItemClick(e, indx) {\r\n\t\t\t\tthis.isScroll = false;\r\n\t\t\t\tif (this.list.length <= 0) return;\r\n\t\t\t\tthis.active = indx;\r\n\t\t\t},\r\n\t\t\tasync indexMove(e, type) {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif (this.list.length <= 0) return;\r\n\t\t\t\tif (e.changedTouches.length > 1) return;\r\n\t\t\t\tlet y = e.changedTouches[0].clientY;\r\n\t\t\t\tlet itemHeight = uni.upx2px(40);\r\n\t\t\t\tlet ClickTop = e.target.offsetTop;\r\n\t\t\t\tlet index = 0;\r\n\t\t\t\tif (y <= this.quinkBar.top) {\r\n\t\t\t\t\tindex = 0;\r\n\t\t\t\t} else if (y >= this.quinkBar.bottom) {\r\n\t\t\t\t\tindex = this.list.length - 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlet xy = y - this.quinkBar.top\r\n\t\t\t\t\tindex = Math.floor(xy / itemHeight);\r\n\t\t\t\t}\r\n\t\t\t\tif(index>=this.list.length-1) index = this.list.length-1\r\n\t\t\t\tif(index<=0) index = 0;\r\n\t\t\t\tthis.isScroll = false;\r\n\t\t\t\t\r\n\t\t\t\tif(this.scrollIndx!==index){\r\n\t\t\t\t\tthis.scrollIndx = index\r\n\t\t\t\t}\r\n\t\t\t\tif(this.active!==index){\r\n\t\t\t\t\tthis.active = index;\r\n\t\t\t\t}\r\n\t\t\t\tif (type == 'end') {\r\n\t\t\t\t\tt.scrollInBarIndex = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tt.scrollInBarIndex = true;\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\" scoped>\r\n\t.tm-quickIndex {\r\n\t\tposition: relative;\r\n\r\n\t\t.tm-quickIndex-index {\r\n\t\t\tposition: absolute;\r\n\t\t\tright: 0upx;\r\n\t\t\ttop: 0;\r\n\t\t\t\r\n\t\t\t.tm-quickIndex-index-item {\r\n\t\t\t\twidth: 40rpx;\r\n\t\t\t\theight: 40rpx;\r\n\t\t\t\t// background: rgba(255,255,255,0.1);\r\n\t\t\t}\r\n\r\n\t\t\t.tm-quickIndex-index-Tips {\r\n\t\t\t\tright: 160rpx;\r\n\t\t\t\twidth: 100rpx;\r\n\t\t\t\theight: 100rpx;\r\n\t\t\t}\r\n\t\t}\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--8-oneOf-1-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../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-quickIndex.vue?vue&type=style&index=0&id=440f0dc1&lang=scss&scoped=true&\"; 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--8-oneOf-1-0!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../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-quickIndex.vue?vue&type=style&index=0&id=440f0dc1&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1678780470274\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":""}
|