tm-sliderNav.js.map 13 KB

1
  1. {"version":3,"sources":["webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-sliderNav/tm-sliderNav.vue?76a3","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-sliderNav/tm-sliderNav.vue?39f5","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-sliderNav/tm-sliderNav.vue?9bbc","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-sliderNav/tm-sliderNav.vue?4f54","uni-app:///tm-vuetify/components/tm-sliderNav/tm-sliderNav.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;;;AAG3D;AACmM;AACnM,gBAAgB,0MAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,uFAAM;AACR,EAAE,gGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;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,+NAEN;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;AACA;AACA;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAywB,CAAgB,uwBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiD7xB;AACA,sFADA;AAEA,sBAFA;AAGA;AACA;AACA;AACA,2BADA;AAEA,gBAFA,EAFA;;AAMA;AACA;AACA,2BADA;AAEA,kBAFA,EAPA;;AAWA;AACA;AACA,kBADA;AAEA,gBAFA,EAZA;;AAgBA;AACA;AACA,iBADA;AAEA;AACA;AACA,OAJA,EAjBA;;AAuBA;AACA;AACA,kBADA;AAEA,sBAFA,EAxBA;;AA4BA;AACA;AACA,kBADA;AAEA,wBAFA,EA7BA;;AAiCA;AACA,kBADA;AAEA,8BAFA,EAjCA;;;AAsCA;AACA,4BADA;AAEA,mBAFA,EAtCA;;AA0CA;AACA;AACA,mBADA;AAEA,mBAFA,EA3CA;;AA+CA;AACA;AACA,mBADA;AAEA,oBAFA,EAhDA;;AAoDA;AACA,2BADA;AAEA,mBAFA,EApDA;;AAwDA;AACA;AACA,kBADA;AAEA,+BAFA,EAzDA;;AA6DA;AACA;AACA,4BADA;AAEA,mBAFA,EA9DA,EAHA;;;AAsEA;AACA;AACA,gBADA;AAEA,aAFA,qBAEA;AACA;AACA,OAJA,EADA,EAtEA;;;AA8EA,MA9EA,kBA8EA;AACA;AACA,qBADA;AAEA,oBAFA;AAGA,oBAHA;AAIA,mBAJA;;AAMA,GArFA;AAsFA;AACA;AACA;;AAEA;AACA,OAJA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAfA,EADA;;AAkBA;AACA;AACA;AACA,KArBA;AAsBA;AACA;AACA;AACA;AACA;AACA,KA3BA,EAtFA;;AAmHA,SAnHA,qBAmHA;AACA;AACA;AACA,0DADA;AAEA,+BAFA;AAGA,0EAHA,SAGA,GAHA;AAIA;AACA,+DALA;;AAOA,wCAPA;;AASA,GA9HA;AA+HA;AACA,UADA,kBACA,KADA,EACA;AACA;AACA;AACA,KAJA,EA/HA,E","file":"tm-vuetify/components/tm-sliderNav/tm-sliderNav.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tm-sliderNav.vue?vue&type=template&id=1f03b3cd&\"\nvar renderjs\nimport script from \"./tm-sliderNav.vue?vue&type=script&lang=js&\"\nexport * from \"./tm-sliderNav.vue?vue&type=script&lang=js&\"\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-sliderNav/tm-sliderNav.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-sliderNav.vue?vue&type=template&id=1f03b3cd&\"","var components\ntry {\n components = {\n tmListitem: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-listitem/tm-listitem\" */ \"@/tm-vuetify/components/tm-listitem/tm-listitem.vue\"\n )\n },\n tmBadges: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-badges/tm-badges\" */ \"@/tm-vuetify/components/tm-badges/tm-badges.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}\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-sliderNav.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-sliderNav.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"tm-sliderNav fulled-height\">\r\n\t\t<scroll-view scroll-y :style=\"{\r\n\t\t\t\theight:activeHeight+'px',\r\n\t\t\t\twidth:activeWidth+'px',\r\n\t\t\t}\">\r\n\t\t\t<tm-listitem :disabled=\"item['disabled']==true?true:false\" :black=\"black_tmeme\"\r\n\t\t\t@click=\"change(index)\" \r\n\t\t\tv-for=\"(item,index) in formaData\" :key='index'\r\n\t\t\t:color=\"activeIndex==index?(text?' text ' + color_tmeme:'white'):bgColor\" \r\n\t\t\t:show-right-icon=\"false\" \r\n\t\t\t:margin=\"[0,0]\" \r\n\t\t\t:padding=\"[10,32]\"\r\n\t\t\t:fontSize=\"fontSize\"\r\n\t\t\t:class-style=\"activeIndex==index?`border-${color_tmeme}-l-2`:`border-${bgColor}-l-2`\"\r\n\t\t\tround=\"0\" shadow=\"0\"\r\n\t\t\t>\r\n\t\t\t<tm-badges color='red' :fllowTheme=\"false\" :offset=\"[12,-10]\" v-if=\"item.dot>0&&dot\" :dot=\"false\" :label=\"item.dot\"></tm-badges>\r\n\t\t\t<view class=\"\" >\r\n\t\t\t\t<text :class=\"[`text-${activeIndex==index?color_tmeme:fontColor}`,item['disabled']?'opacity-3':'']\">{{item[rangKey]}}</text>\r\n\t\t\t</view>\r\n\t\t\t</tm-listitem>\r\n\t\t</scroll-view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\r\n\t/**\r\n\t * 侧边导航\r\n\t * @property {Number|String} height = [] 默认0,单位upx,自动使用父组件的高度。\r\n\t * @property {Number|String} width = [] 默认190,单位upx,宽度\r\n\t * @property {Number} round = [] 默认4,单位upx,圆角\r\n\t * @property {Array} list = [] 默认[],数据结构对象,必须需要含有唯一标识符id即可。[{title:'苏州'}],,可以含有dot,显示角标。每一个类目和子类可以含有disabled值,用来禁用类目或者选项。\r\n\t * @property {String} rang-key = [] 默认'title',数据结构对象中,需要展示标签的key\r\n\t * @property {String} color = [] 默认 primary,主题色名\r\n\t * @property {String} bg-color = [] 默认 grey-lighten-5,主题色名未选择时的背景色。\r\n\t * @property {String} font-color = [] 默认 grey,未选中时的文字颜色\r\n\t * @property {String} font-size = [] 默认 28,项目文字大小单位rpx\r\n\t * @property {Boolean} black = [] 默认 false,是否暗黑模式。\r\n\t * @property {Boolean} dot = [] 默认 false,是否显示角标数字,当前选中的数量。\r\n\t * @property {Boolean} text = [] 默认 false,使用主题文本色为高亮色。\r\n\t * @property {Function} change 每次选择变化都会触发全局change,\r\n\t * @example <tm-sliderNav :text=\"true\" :list=\"list\"></tm-sliderNav>\r\n\t */\r\n\r\n\timport tmListitem from \"@/tm-vuetify/components/tm-listitem/tm-listitem.vue\"\r\n\timport tmGrouplist from \"@/tm-vuetify/components/tm-grouplist/tm-grouplist.vue\"\r\n\timport tmBadges from \"@/tm-vuetify/components/tm-badges/tm-badges.vue\"\r\n\texport default {\r\n\t\tcomponents:{tmListitem,tmGrouplist,tmBadges},\r\n\t\tname:\"tm-sliderNav\",\r\n\t\tprops:{\r\n\t\t\t// 高度,默认为0时,自动使用父组件的高度.单位upx\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//单位upx\r\n\t\t\twidth: {\r\n\t\t\t\ttype: String | Number,\r\n\t\t\t\tdefault: 190\r\n\t\t\t},\r\n\t\t\t//单位upx\r\n\t\t\tround: {\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 4\r\n\t\t\t},\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:'title'\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\tfontColor:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:'grey-darken-1'\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\tblack:{\r\n\t\t\t\ttype:Boolean|String,\r\n\t\t\t\tdefault:null\r\n\t\t\t},\r\n\t\t\t// 是否显示角标数字当前选中的数量。\r\n\t\t\tdot:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:true\r\n\t\t\t},\r\n\t\t\t// 使用主题文本色为高亮色。\r\n\t\t\ttext:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:false\r\n\t\t\t},\r\n\t\t\tfontSize:{\r\n\t\t\t\ttype:String|Number,\r\n\t\t\t\tdefault:'28'\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:'grey-lighten-5'\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\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\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tactiveHeight:0,\r\n\t\t\t\tactiveWidth:0,\r\n\t\t\t\tactiveIndex:0,\r\n\t\t\t\tformaData:[]\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed:{\r\n\t\t\tdataList:{\r\n\t\t\t\tget:function(){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn this.formaData\r\n\t\t\t\t\t},\r\n\t\t\t\tset:function(val){\r\n\t\t\t\t\tlet t = this;\r\n\t\t\t\t\tlet p = [...val];\r\n\t\t\t\t\tfor(let j=0;j<p.length;j++){\r\n\t\t\t\t\t\tif(!p[j].hasOwnProperty('dot')){\r\n\t\t\t\t\t\t\tp[j]['dot'] = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tthis.formaData = p;\r\n\t\t\t\t}\r\n\t\t\t},\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},\r\n\t\tmounted() {\r\n\t\t\tlet t = this;\r\n\t\t\tthis.$nextTick(async function() {\r\n\t\t\t\tthis.activeHeight = uni.upx2px(this.height);\r\n\t\t\t\tif (!this.activeHeight) {\r\n\t\t\t\t\tlet wsz = await this.$Querey(\".tm-sliderNav\",this).catch(e=>{})\r\n\t\t\t\t\tthis.activeHeight = wsz[0].height||250;\r\n\t\t\t\t\tthis.activeWidth =uni.upx2px(this.width)||100;\r\n\t\t\t\t}\r\n\t\t\t\tthis.dataList = this.list;\r\n\t\t\t});\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tchange(index) {\r\n\t\t\t\tthis.activeIndex=index;\r\n\t\t\t\tthis.$emit('change',index);\r\n\t\t\t}\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\r\n</style>\r\n"],"sourceRoot":""}