1 |
- {"version":3,"sources":["webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.vue?9110","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.vue?3eb2","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.vue?62bc","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.vue?b704","uni-app:///tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.vue","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.vue?f589","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.vue?c9e6"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwI;AACxI;AACmE;AACL;AACsC;;;AAGpG;AACmM;AACnM,gBAAgB,0MAAU;AAC1B,EAAE,qFAAM;AACR,EAAE,sGAAM;AACR,EAAE,+GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0GAAU;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,mQAEN;AACP,KAAK;AACL;AACA,aAAa,mQAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,yQAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;AACP,KAAK;AACL;AACA,aAAa,uPAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,qRAEN;AACP,KAAK;AACL;AACA,aAAa,qOAEN;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;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC1IA;AAAA;AAAA;AAAA;AAA4wB,CAAgB,0wBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+PhyB;AACA,8QADA;AAEA,yBAFA;AAGA;AACA;AACA;AACA,kBADA;AAEA,wBAFA,EAFA;;AAMA;AACA;AACA,kBADA;AAEA,sBAFA,EAPA;;AAWA;AACA;AACA,kBADA;AAEA,qBAFA,EAZA;;AAgBA;AACA;AACA,kBADA;AAEA,sBAFA,EAjBA;;AAqBA;AACA,iBADA;AAEA;AACA;AACA,OAJA,EArBA;;AA2BA;AACA,2BADA;AAEA,kBAFA,EA3BA;;AA+BA;AACA,2BADA;AAEA,iBAFA,EA/BA;;AAmCA;AACA,2BADA;AAEA,iBAFA,EAnCA;;AAuCA;AACA;AACA,2BADA;AAEA,iBAFA,EAxCA;;AA4CA;AACA;AACA,iBADA;AAEA;AACA;AACA,OAJA,EA7CA;;AAmDA;AACA,4BADA;AAEA,mBAFA,EAnDA;;AAuDA;AACA;AACA,4BADA;AAEA,mBAFA,EAxDA,EAHA;;;AAgEA;AACA;AACA;AACA;AACA,KAJA;AAKA;AACA;AACA;AACA,KARA,EAhEA;;AA0EA;AACA;AACA,gBADA;AAEA,aAFA,qBAEA;AACA;AACA;AACA,SAFA;AAGA,OANA,EADA,EA1EA;;;AAoFA,MApFA,kBAoFA;AACA;AACA,qBADA;AAEA,qBAFA;AAGA,cAHA;AAIA,kBAJA;AAKA,aALA;AAMA,iBANA,EAMA;AACA,gBAPA;AAQA,sBARA;;AAUA,GA/FA;AAgGA,SAhGA,qBAgGA;AACA;AACA,GAlGA;AAmGA,SAnGA,qBAmGA;AACA;AACA;AACA;AACA;AACA;;;;;AAKA;AACA;;AAEA;;AAEA,SAVA;AAWA,OAZA;AAaA,KAhBA;AAiBA,GArHA;AAsHA;AACA,gBADA,wBACA,IADA,EACA;AACA;AACA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA,OANA;AAOA;AACA,KAXA;AAYA,YAZA,oBAYA,IAZA,EAYA;AACA;AACA,KAdA;AAeA,aAfA,uBAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAJA,MAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAtDA;AAuDA;AACA,aAxDA,qBAwDA,KAxDA,EAwDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAPA,MAOA;AACA;AACA;AACA,eAFA,MAEA;AACA;AACA,eAFA,MAEA;AACA;AACA,eAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KArFA;AAsFA,eAtFA,uBAsFA,KAtFA,EAsFA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAHA,MAGA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OANA,EAMA,EANA;AAOA,KA9GA;AA+GA;AACA,WAhHA,qBAgHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aARA,MAQA;AACA;AACA,aAFA,MAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eADA;AAEA,0BAFA;;AAIA;AACA;AACA;;AAEA;AACA;AACA,KAlJA,EAtHA,E;;;;;;;;;;;;;AC/PA;AAAA;AAAA;AAAA;AAA+8C,CAAgB,q4CAAG,EAAC,C;;;;;;;;;;;ACAn+C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tm-dropDownMenu.vue?vue&type=template&id=3f603c52&scoped=true&\"\nvar renderjs\nimport script from \"./tm-dropDownMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./tm-dropDownMenu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tm-dropDownMenu.vue?vue&type=style&index=0&id=3f603c52&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 \"3f603c52\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tm-vuetify/components/tm-dropDownMenu/tm-dropDownMenu.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-dropDownMenu.vue?vue&type=template&id=3f603c52&scoped=true&\"","var components\ntry {\n components = {\n tmRow: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-row/tm-row\" */ \"@/tm-vuetify/components/tm-row/tm-row.vue\"\n )\n },\n tmCol: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-col/tm-col\" */ \"@/tm-vuetify/components/tm-col/tm-col.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 tmGroupcheckbox: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox\" */ \"@/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue\"\n )\n },\n tmCheckbox: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-checkbox/tm-checkbox\" */ \"@/tm-vuetify/components/tm-checkbox/tm-checkbox.vue\"\n )\n },\n tmButton: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-button/tm-button\" */ \"@/tm-vuetify/components/tm-button/tm-button.vue\"\n )\n },\n tmGroupradio: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-groupradio/tm-groupradio\" */ \"@/tm-vuetify/components/tm-groupradio/tm-groupradio.vue\"\n )\n },\n tmRadio: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-radio/tm-radio\" */ \"@/tm-vuetify/components/tm-radio/tm-radio.vue\"\n )\n },\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 tmInput: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-input/tm-input\" */ \"@/tm-vuetify/components/tm-input/tm-input.vue\"\n )\n },\n tmSlider: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-slider/tm-slider\" */ \"@/tm-vuetify/components/tm-slider/tm-slider.vue\"\n )\n },\n tmPickers: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-pickers/tm-pickers\" */ \"@/tm-vuetify/components/tm-pickers/tm-pickers.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 =\n _vm.formartData[_vm.activeIndex] &&\n _vm.formartData[_vm.activeIndex][\"children\"]\n ? _vm.__map(_vm.formartData[_vm.activeIndex].children, function(\n item,\n index\n ) {\n var $orig = _vm.__get_orig(item)\n\n var m0 =\n !(item[\"children\"] && _vm.rendIdx >= index) &&\n item.model == \"input\" &&\n _vm.rendIdx >= index\n ? _vm.chiludis(item)\n : null\n var m1 =\n !(item[\"children\"] && _vm.rendIdx >= index) &&\n item.model == \"slider\" &&\n _vm.rendIdx >= index\n ? _vm.chiludis(item)\n : null\n var m2 =\n !(item[\"children\"] && _vm.rendIdx >= index) &&\n item.model == \"pickers\" &&\n _vm.rendIdx >= index\n ? _vm.pickTostring(item.value)\n : null\n return {\n $orig: $orig,\n m0: m0,\n m1: m1,\n m2: m2\n }\n })\n : null\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.activeIndex = -1\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\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-dropDownMenu.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-dropDownMenu.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"relative\">\r\n\t\t<view class=\"tm-dropDownMenu absolute fulled\" :style=\"{zIndex:101}\">\r\n\t\t\t<view\r\n\t\t\t\tclass=\"tm-dropDownMenu-bar\"\r\n\t\t\t\t:class=\"[\r\n\t\t\t\t\t!black_tmeme && bgColor != 'white' ? bgColor : black_tmeme && bgColor == 'white' ? 'grey-darken-4' : bgColor,\r\n\t\t\t\t\tblack_tmeme ? '' : 'shadow-' + bgColor + '-' + shadow,\r\n\t\t\t\t\tblack_tmeme ? 'bk' : ''\r\n\t\t\t\t]\"\r\n\t\t\t>\r\n\t\t\t\t<tm-row align=\"center\" justify=\"center\">\r\n\t\t\t\t\t<tm-col color=\"none\" justify=\"center\" align=\"middle\" @click=\"changeIndex(index)\" v-for=\"(item, index) in formartData\" :key=\"index\" :width=\"itemLength + '%'\">\r\n\t\t\t\t\t\t<view class=\"flex-center\" :style=\"{height: height+'rpx',lineHeight:height+'rpx'}\">\r\n\t\t\t\t\t\t\t<text class=\" pr-10\" :style=\"{fontSize:fontSize+'rpx'}\" :class=\"[activeIndex == index ? 'text-' + activeColor : 'text-' + unColor]\">{{ item.title }}</text>\r\n\t\t\t\t\t\t\t<tm-icons\r\n\t\t\t\t\t\t\t\tv-if=\"index!=0\"\r\n\t\t\t\t\t\t\t\tstyle=\"line-height: 0;\"\r\n\t\t\t\t\t\t\t\tdense\r\n\t\t\t\t\t\t\t\t:color=\"item.shang ? activeColor : unColor\"\r\n\t\t\t\t\t\t\t\tsize=\"24\"\r\n\t\t\t\t\t\t\t\t:name=\"item.shang ? 'icon-sort-up' : 'icon-sort-down'\"\r\n\t\t\t\t\t\t\t></tm-icons>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</tm-col>\r\n\t\t\t\t</tm-row>\r\n\t\t\t</view>\r\n\r\n\t\t\t<view v-if=\"formartData[activeIndex]\" class=\"tm-dropDownMenu-body py-24 \" :class=\"[black_tmeme ? 'grey-darken-5 bk' : 'white', 'shadow-' + shadow]\">\r\n\t\t\t\t<view v-if=\"formartData[activeIndex]['children']\" :style=\"{maxHeight:maxHeight+'rpx',overflowY: 'auto'}\">\r\n\t\t\t\t\t<block v-for=\"(item, index) in formartData[activeIndex].children\" :key=\"index\">\r\n\t\t\t\t\t\t<block v-if=\"item['children']&&rendIdx>=index\" >\r\n\t\t\t\t\t\t\t<view class=\"pa-24 text-size-s text-weight-b optAniopt\" v-if=\"item['title']\">{{ item.title }}</view>\r\n\t\t\t\t\t\t\t<view class=\"optAniopt\">\r\n\t\t\t\t\t\t\t\t<block v-if=\"item.model == 'checkbox'\">\r\n\t\t\t\t\t\t\t\t\t<tm-groupcheckbox>\r\n\t\t\t\t\t\t\t\t\t\t<block v-for=\"(item2, index2) in item.children\" :key=\"index2\">\r\n\t\t\t\t\t\t\t\t\t\t\t<tm-checkbox :disabled=\"item2['disabled'] || item['disabled'] ? true : false\" dense v-model=\"item2.checked\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"px-10\" :class=\"[item2['disabled'] || item['disabled'] ? 'opacity-6' : '']\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tm-button \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:fllowTheme=\"false\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:black=\"black_tmeme\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:theme=\"item2.checked ? color: (black_tmeme?'grey-darken-3':'grey-lighten-2')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:font-color=\"item2.checked ? color : 'grey'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdense\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"width: auto\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size=\"24\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight=\"70\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\titem-class=\"mx-14 my-10\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tplan\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon=\"icon-check-circle\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:shadow=\"2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:height=\"64\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:round=\"2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ item2.title }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tm-button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t</tm-checkbox>\r\n\t\t\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t\t</tm-groupcheckbox>\r\n\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t<block v-if=\"item.model == 'radio'\">\r\n\t\t\t\t\t\t\t\t\t<tm-groupradio>\r\n\t\t\t\t\t\t\t\t\t\t<block v-for=\"(item2, index2) in item.children\" :key=\"index2\">\r\n\t\t\t\t\t\t\t\t\t\t\t<tm-radio :disabled=\"item2['disabled'] || item['disabled'] ? true : false\" dense v-model=\"item2.checked\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"px-10\" :class=\"[item2['disabled'] || item['disabled'] ? 'opacity-6' : '']\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tm-button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:fllowTheme=\"false\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:black=\"black_tmeme\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:theme=\"item2.checked ? color: (black_tmeme?'grey-darken-3':'grey-lighten-2')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:font-color=\"item2.checked ? color : 'grey'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdense\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"width: auto\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size=\"24\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theight=\"70\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\titem-class=\"mx-14 my-10\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tplan\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon=\"icon-check-circle\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:shadow=\"2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:height=\"64\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:round=\"2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ item2.title }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tm-button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t</tm-radio>\r\n\t\t\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t\t</tm-groupradio>\r\n\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t<block v-if=\"item.model == 'list'\">\r\n\t\t\t\t\t\t\t\t\t<tm-groupradio key=\"test\">\r\n\t\t\t\t\t\t\t\t\t\t<block v-for=\"(item2, index2) in item.children\" :key=\"index2\">\r\n\t\t\t\t\t\t\t\t\t\t\t<tm-radio :inline=\"false\" :disabled=\"item2['disabled'] || item['disabled'] ? true : false\" dense v-model=\"item2.checked\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fulled\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tm-listitem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:disabled=\"item2['disabled'] || item['disabled'] ? true : false\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:title-color=\"item2.checked ? color : 'grey-darken-3'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:rightIconColor=\"item2.checked ? color : 'grey-lighten-3'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:margin=\"[24, 12]\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:title=\"item2.title\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize=\"28\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:shadow=\"0\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:borderBottom=\"true\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:rightIconSize='30'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:rightIcon=\"item2.checked ? 'icon-check-circle' : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t></tm-listitem>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t</tm-radio>\r\n\t\t\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t\t</tm-groupradio>\r\n\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<block v-if=\"item.model == 'listCheckbox'\">\r\n\t\t\t\t\t\t\t\t\t<tm-groupcheckbox >\r\n\t\t\t\t\t\t\t\t\t\t<block v-for=\"(item2, index2) in item.children\" :key=\"index2\">\r\n\t\t\t\t\t\t\t\t\t\t\t<tm-checkbox :inline=\"false\" :disabled=\"item2['disabled'] || item['disabled'] ? true : false\" dense v-model=\"item2.checked\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fulled\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tm-listitem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:disabled=\"item2['disabled'] || item['disabled'] ? true : false\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:title-color=\"item2.checked ? color : 'grey-darken-3'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:rightIconColor=\"item2.checked ? color : 'grey-lighten-3'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:margin=\"[24, 12]\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:title=\"item2.title\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize=\"28\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:shadow=\"0\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:borderBottom=\"true\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:rightIconSize='30'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t:rightIcon=\"item2.checked ? 'icon-check-circle' : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t></tm-listitem>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t</tm-checkbox>\r\n\t\t\t\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t\t\t</tm-groupcheckbox>\r\n\t\t\t\t\t\t\t\t</block>\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</view>\r\n\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t<block v-else>\r\n\t\t\t\t\t\t\t<block v-if=\"item.model == 'input'&&rendIdx>=index\" >\r\n\t\t\t\t\t\t\t\t<view class=\"pa-24 text-size-s text-weight-b optAniopt\" v-if=\"item['title']\">{{ item.title }}</view>\r\n\t\t\t\t\t\t\t\t<tm-input\r\n\t\t\t\t\t\t\t\t\t:fllowTheme=\"fllowTheme\"\r\n\t\t\t\t\t\t\t\t\tborder-color=\"grey-lighten-1\"\r\n\t\t\t\t\t\t\t\t\t:disabled=\"chiludis(item)\"\r\n\t\t\t\t\t\t\t\t\t:black=\"black_tmeme\"\r\n\t\t\t\t\t\t\t\t\t:color=\"color\"\r\n\t\t\t\t\t\t\t\t\t:border-bottom=\"false\"\r\n\t\t\t\t\t\t\t\t\t:input-type=\"item.type || 'text'\"\r\n\t\t\t\t\t\t\t\t\t:value.sync=\"item.value\"\r\n\t\t\t\t\t\t\t\t></tm-input>\r\n\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t<block v-if=\"item.model == 'slider'&&rendIdx>=index\" >\r\n\t\t\t\t\t\t\t\t<view class=\"pa-24 text-size-s text-weight-b optAniopt\" v-if=\"item['title']\">\r\n\t\t\t\t\t\t\t\t\t{{ item.title }}\r\n\t\t\t\t\t\t\t\t\t<text class=\"px-24 \" :class=\"[`text-${color}`]\">\r\n\t\t\t\t\t\t\t\t\t\t{{ item.value ? item.value : '未设置' }}{{ item.value ? (item['suffix'] ? item.suffix : '') : '' }}\r\n\t\t\t\t\t\t\t\t\t</text>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"px-42 py-24 optAniopt\">\r\n\t\t\t\t\t\t\t\t\t<tm-slider\r\n\t\t\t\t\t\t\t\t\t\t:fllowTheme=\"fllowTheme\"\r\n\t\t\t\t\t\t\t\t\t\t:disabled=\"chiludis(item)\"\r\n\t\t\t\t\t\t\t\t\t\t:black=\"black_tmeme\"\r\n\t\t\t\t\t\t\t\t\t\t:color=\"color\"\r\n\t\t\t\t\t\t\t\t\t\t:max=\"item.max ? item.max : 100\"\r\n\t\t\t\t\t\t\t\t\t\tv-model=\"item.value\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<template v-slot:tips>\r\n\t\t\t\t\t\t\t\t\t\t\t{{ item.value }}\r\n\t\t\t\t\t\t\t\t\t\t</template>\r\n\t\t\t\t\t\t\t\t\t</tm-slider>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t\t<block v-if=\"item.model == 'pickers'&&rendIdx>=index\" >\r\n\t\t\t\t\t\t\t\t<view class=\"pa-24 text-size-s text-weight-b optAniopt\" v-if=\"item['title']\">\r\n\t\t\t\t\t\t\t\t\t{{ item.title }}\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"optAniopt\">\r\n\t\t\t\t\t\t\t\t\t<tm-pickers\r\n\t\t\t\t\t\t\t\t\t\t:default-value.sync=\"item.value\"\r\n\t\t\t\t\t\t\t\t\t\trang-key=\"title\"\r\n\t\t\t\t\t\t\t\t\t\t:btn-color=\"color\"\r\n\t\t\t\t\t\t\t\t\t\t:list=\"item.data\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<tm-input :value=\"pickTostring(item.value)\" prefixp-icon=\"icon-calendaralt-fill\" disabled :placeholder=\"item['placeholder']?item['placeholder']:'请选择'\" suffix-icon=\"icon-sort-down\"></tm-input>\r\n\t\t\t\t\t\t\t\t\t</tm-pickers>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t</block>\r\n\t\t\t\t\t</block>\r\n\t\t\t\t</view>\r\n\r\n\t\t\t\t<view class=\"flex-between px-32 pt-32\">\r\n\t\t\t\t\t<tm-button :fllowTheme=\"fllowTheme\" @click=\"getData\" :theme=\"color\" block style=\"width: 48%;\" height=\"80\">确认</tm-button>\r\n\t\t\t\t\t<tm-button\r\n\t\t\t\t\t\t:fllowTheme=\"fllowTheme\"\r\n\t\t\t\t\t\t@click=\"resetinit\"\r\n\t\t\t\t\t\t:black=\"black_tmeme\"\r\n\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t:theme=\"color\"\r\n\t\t\t\t\t\t:font-color=\"color\"\r\n\t\t\t\t\t\ttext\r\n\t\t\t\t\t\tshadow=\"0\"\r\n\t\t\t\t\t\tstyle=\"width: 48%;\"\r\n\t\t\t\t\t\theight=\"80\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t重置\r\n\t\t\t\t\t</tm-button>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view @click=\"activeIndex=-1\" v-if=\"activeIndex>-1\" class=\"fixed fulled\" :style=\"{height:height_bg+'px',top:vtop+'px',width:barwidth,background:'rgba(0,0,0,0.33)',zIndex:100}\">\r\n\t\t\t\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n/**\r\n * 下拉选项\r\n * @property {String} color = [] 默认:primary ,主题色下方选项子组件的主题色。\r\n * @property {String} un-color = [] 默认:black ,默认未激活时。bar条上的文字颜色\r\n * @property {String} active-color = [] 默认:primary ,默认激活时。bar条上的文字颜色\r\n * @property {String} bg-color = [] 默认:white ,导航条背景主题色。\r\n * @property {Number} shadow = [] 默认:10 ,导航条的投影。\r\n * @property {Array} list = [] 默认:[] ,数据格式见文档\r\n * @property {Number} maxHeight = [] 默认:650 ,弹出的标签页,最大内容高度,超过自动滚动。\r\n * @property {Number} height = [] 默认:88 ,标签导航的高度\r\n * @property {Number} font-size = [] 默认:28 ,标签导航的文字大小\r\n * @property {Array} default-selected = [] 默认:[] ,默认赋值选中的选项,注意可以是id数组或者对象数组,对象数组情况下必须含id标签符,且是唯一的。\r\n * @property {Boolean} black = [] 默认:false ,暗黑模式。\r\n * @property {Function} change 切换选项页面时触发。\r\n * @property {Function} confirm 点击确认按钮时触发,返回所有选中的项。\r\n * @example <tm-dropDownMenu color=\"orange\" :list=\"list\"></tm-dropDownMenu>\r\n */\r\nimport tmRow from '@/tm-vuetify/components/tm-row/tm-row.vue';\r\nimport tmCol from '@/tm-vuetify/components/tm-col/tm-col.vue';\r\nimport tmButton from '@/tm-vuetify/components/tm-button/tm-button.vue';\r\nimport tmIcons from '@/tm-vuetify/components/tm-icons/tm-icons.vue';\r\nimport tmInput from '@/tm-vuetify/components/tm-input/tm-input.vue';\r\nimport tmGroupcheckbox from '@/tm-vuetify/components/tm-groupcheckbox/tm-groupcheckbox.vue';\r\nimport tmCheckbox from '@/tm-vuetify/components/tm-checkbox/tm-checkbox.vue';\r\n\r\nimport tmGroupradio from '@/tm-vuetify/components/tm-groupradio/tm-groupradio.vue';\r\nimport tmRadio from '@/tm-vuetify/components/tm-radio/tm-radio.vue';\r\nimport tmSlider from '@/tm-vuetify/components/tm-slider/tm-slider.vue';\r\nimport tmListitem from '@/tm-vuetify/components/tm-listitem/tm-listitem.vue';\r\nimport tmPickers from '@/tm-vuetify/components/tm-pickers/tm-pickers.vue';\r\n\r\nexport default {\r\n\tcomponents: {tmPickers, tmRow, tmCol, tmButton, tmIcons, tmInput, tmGroupcheckbox, tmCheckbox, tmGroupradio, tmRadio, tmSlider, tmListitem },\r\n\tname: 'tm-dropDownMenu',\r\n\tprops: {\r\n\t\t// 主题色下方选项子组件的主题色\r\n\t\tcolor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'primary'\r\n\t\t},\r\n\t\t// 默认未激活时。bar条上的文字颜色\r\n\t\tunColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'black'\r\n\t\t},\r\n\t\t// 默认激活时。bar条上的文字颜色\r\n\t\tactiveColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'gray'\r\n\t\t},\r\n\t\t// 背景颜色。\r\n\t\tbgColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'white'\r\n\t\t},\r\n\t\tlist: {\r\n\t\t\ttype: Array,\r\n\t\t\tdefault: () => {\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t},\r\n\t\tmaxHeight:{\r\n\t\t\ttype:Number|String,\r\n\t\t\tdefault:650\r\n\t\t},\r\n\t\theight:{\r\n\t\t\ttype:Number|String,\r\n\t\t\tdefault:88\r\n\t\t},\r\n\t\tfontSize:{\r\n\t\t\ttype:Number|String,\r\n\t\t\tdefault:28\r\n\t\t},\r\n\t\t//菜单的投影。\r\n\t\tshadow: {\r\n\t\t\ttype: Number | String,\r\n\t\t\tdefault: 10\r\n\t\t},\r\n\t\t// 可以是id索引也可以是对象数组,可以混着来。\r\n\t\tdefaultSelected: {\r\n\t\t\ttype: Array,\r\n\t\t\tdefault: () => {\r\n\t\t\t\treturn [];\r\n\t\t\t}\r\n\t\t},\r\n\t\tblack: {\r\n\t\t\ttype: Boolean | String,\r\n\t\t\tdefault: null\r\n\t\t},\r\n\t\t// 跟随主题色的改变而改变。\r\n\t\tfllowTheme: {\r\n\t\t\ttype: Boolean | String,\r\n\t\t\tdefault: true\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\titemLength: function() {\r\n\t\t\tif (this.list.length == 0) return 100;\r\n\t\t\treturn 100 / this.list.length;\r\n\t\t},\r\n\t\tblack_tmeme: function() {\r\n\t\t\tif (this.black !== null) return this.black;\r\n\t\t\treturn this.$tm.vx.state().tmVuetify.black;\r\n\t\t}\r\n\t},\r\n\twatch:{\r\n\t\tlist:{\r\n\t\t\tdeep:true,\r\n\t\t\thandler(){\r\n\t\t\t\tthis.$nextTick(function() {\r\n\t\t\t\t\tthis.formartData = this.chulidata();\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tactiveIndex: -1,\r\n\t\t\tformartData: [],\r\n\t\t\ttest: [],\r\n\t\t\theight_bg:0,\r\n\t\t\tvtop:0,\r\n\t\t\tmaxLeng:40,//最大渲染级别\r\n\t\t\trendIdx:0,\r\n\t\t\tbarwidth:'100%'\r\n\t\t};\r\n\t},\r\n\tcreated() {\r\n\t\tthis.height_bg = uni.getSystemInfoSync().screenHeight;\r\n\t},\r\n\tmounted() {\r\n\t\tthis.$nextTick(function() {\r\n\t\t\tthis.formartData = this.chulidata();\r\n\t\t\tlet t = this;\r\n\t\t\tuni.$tm.sleep(40).then(e=>{\r\n\t\t\t\tuni.createSelectorQuery().in(this).select('.tm-dropDownMenu').boundingClientRect().exec(function(v){\r\n\t\t\t\t\t// #ifdef H5\r\n\t\t\t\t\tt.vtop = v[0].top+v[0].height+uni.getSystemInfoSync().windowTop;\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\t// #ifndef H5\r\n\t\t\t\t\tt.vtop = v[0].top+v[0].height;\r\n\t\t\t\t\tconsole.log(v[0]);\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\tt.barwidth = v[0].width+'px'\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},\r\n\tmethods: {\r\n\t\tpickTostring(item){\r\n\t\t\tlet p = [];\r\n\t\t\titem.forEach(el=>{\r\n\t\t\t\tif(typeof(el)==\"string\"){\r\n\t\t\t\t\tp.push(el)\r\n\t\t\t\t}else if(typeof el == 'object'){\r\n\t\t\t\t\tp.push(el.title);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\treturn p.join(\"-\")\r\n\t\t},\r\n\t\tchiludis(item) {\r\n\t\t\treturn item?.disabled || false;\r\n\t\t},\r\n\t\tchulidata() {\r\n\t\t\t// 处理相关数据格式以保持 一致。\r\n\t\t\tlet t = this;\r\n\t\t\tlet p = this.$tm.deepClone(this.list);\r\n\t\t\tfor (let j = 0; j < p.length; j++) {\r\n\t\t\t\tp[j]['dot'] = 0;\r\n\t\t\t\tif (p[j]['children']) {\r\n\t\t\t\t\tlet ic = p[j].children;\r\n\t\t\t\t\tif (ic.length > 0) {\r\n\t\t\t\t\t\tfor (let k = 0; k < ic.length; k++) {\r\n\t\t\t\t\t\t\tlet children = ic[k]['children'];\r\n\t\t\t\t\t\t\tif (children) {\r\n\t\t\t\t\t\t\t\tif (ic[k]['model'] == 'checkbox'|| ic[k]['model'] == 'listCheckbox' || ic[k]['model'] == 'list' || (ic[k]['model'] == 'radio' && children.length > 0)) {\r\n\t\t\t\t\t\t\t\t\tfor (let z = 0; z < children.length; z++) {\r\n\t\t\t\t\t\t\t\t\t\tlet im = children[z];\r\n\t\t\t\t\t\t\t\t\t\tif (!im.hasOwnProperty('checked')) {\r\n\t\t\t\t\t\t\t\t\t\t\tim['checked'] = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tfor (let i = 0; i < t.defaultSelected.length; i++) {\r\n\t\t\t\t\t\t\t\t\t\t\tlet lsitem = t.defaultSelected[i];\r\n\t\t\t\t\t\t\t\t\t\t\tif (typeof lsitem === 'object') {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (lsitem['id'] == im['id']) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tim['checked'] = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (lsitem == im['id']) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tim['checked'] = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\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}\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}\r\n\t\t\t}\r\n\r\n\t\t\treturn p;\r\n\t\t},\r\n\t\t// 重置只重置当前打开的页面数量,并不重置其它页面数据。\r\n\t\tresetinit(index) {\r\n\t\t\tlet pd = this.formartData[this.activeIndex];\r\n\t\t\tif (pd['children']) {\r\n\t\t\t\tlet ic = pd.children;\r\n\t\t\t\tif (ic.length > 0) {\r\n\t\t\t\t\tfor (let k = 0; k < ic.length; k++) {\r\n\t\t\t\t\t\tlet children = ic[k]['children'];\r\n\t\t\t\t\t\tif (children) {\r\n\t\t\t\t\t\t\tif (ic[k]['model'] == 'checkbox'||ic[k]['model'] == 'listCheckbox'||ic[k]['model'] == 'list' || (ic[k]['model'] == 'radio' && children.length > 0)) {\r\n\t\t\t\t\t\t\t\tfor (let z = 0; z < children.length; z++) {\r\n\t\t\t\t\t\t\t\t\tlet im = children[z];\r\n\t\t\t\t\t\t\t\t\tim['checked'] = false;\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} else {\r\n\t\t\t\t\t\t\tif (ic[k]['model'] == 'slider') {\r\n\t\t\t\t\t\t\t\tic[k].value = 0;\r\n\t\t\t\t\t\t\t} else if (ic[k]['model'] == 'input') {\r\n\t\t\t\t\t\t\t\tic[k].value = '';\r\n\t\t\t\t\t\t\t} else if (ic[k]['model'] == 'pickers') {\r\n\t\t\t\t\t\t\t\tic[k].value = [];\r\n\t\t\t\t\t\t\t} else if (ic[k]['model'] == 'pickersDate') {\r\n\t\t\t\t\t\t\t\tic[k].value = \"\";\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}\r\n\t\t\t}\r\n\t\t\tthis.formartData.splice(this.activeIndex, 1, pd);\r\n\t\t},\r\n\t\tchangeIndex(index) {\r\n\t\t\tthis.formartData[index].shang=! this.formartData[index].shang;\r\n\t\t\tlet t = this;\r\n\t\t\tlet itmod = 659;\r\n\t\t\tclearInterval(itmod)\r\n\t\t\tif (this.activeIndex === index) {\r\n\t\t\t\tthis.activeIndex = -1;\t\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// this.activeIndex = index;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.$emit('change', this.formartData[index]);\r\n\t\t\t\r\n\t\t\tthis.rendIdx = 0;\r\n\t\t\tclearInterval(itmod)\r\n\t\t\titmod = setInterval(function(){\r\n\t\t\t\tt.rendIdx+=1;\r\n\t\t\t\t\r\n\t\t\t\tif(t.rendIdx>t.maxLeng||t.activeIndex==-1){\r\n\t\t\t\t\tclearInterval(itmod)\r\n\t\t\t\t}\r\n\t\t\t},10)\r\n\t\t},\r\n\t\t// 获取选中以及填写的数据。\r\n\t\tgetData() {\r\n\t\t\tlet p = [...this.formartData];\r\n\t\t\tlet xz = [];\r\n\t\t\tfor (let i = 0; i < p.length; i++) {\r\n\t\t\t\tif (p[i]['children']) {\r\n\t\t\t\t\tfor (let j = 0; j < p[i].children.length; j++) {\r\n\t\t\t\t\t\tlet ic = p[i].children[j];\r\n\t\t\t\t\t\tlet ps = [];\r\n\t\t\t\t\t\tif (ic.model == 'checkbox' || ic.model == 'radio' || ic.model == 'listCheckbox' || ic.model == 'list') {\r\n\t\t\t\t\t\t\tif (ic['children']) {\r\n\t\t\t\t\t\t\t\tfor (let k = 0; k < ic.children.length; k++) {\r\n\t\t\t\t\t\t\t\t\tif (ic.children[k].checked === true) {\r\n\t\t\t\t\t\t\t\t\t\tps.push(ic.children[k]);\r\n\t\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}\r\n\t\t\t\t\t\t} else if (ic.model == 'input' || ic.model == 'slider') {\r\n\t\t\t\t\t\t\tps.push(ic);\r\n\t\t\t\t\t\t} else if(ic.model == 'pickers'){\r\n\t\t\t\t\t\t\tps.push(ic);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tlet pyz = { ...ic };\r\n\t\t\t\t\t\tdelete pyz.children;\r\n\t\t\t\t\t\txz.push({\r\n\t\t\t\t\t\t\t...pyz,\r\n\t\t\t\t\t\t\tchildren: ps\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}\r\n\r\n\t\t\tthis.$emit('confirm', xz);\r\n\t\t\tthis.activeIndex = -1;\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.tm-dropDownMenu {\r\n\tposition: relative;\r\n\t.tm-dropDownMenu-bar {\r\n\t\tposition: relative;\r\n\t\tz-index: 303;\r\n\t}\r\n\t.tm-dropDownMenu-body {\r\n\t\tbackground-color: rgba(0, 0, 0, 0.35);\r\n\t\tmin-height: 150upx;\r\n\t\tposition: absolute;\r\n\t\tz-index: 304;\r\n\t\twidth: 100%;\r\n\t}\r\n}\r\n.optAniopt{\r\n\tanimation: opt 0.2s linear;\r\n}\r\n@keyframes opt{\r\n\t0%{opacity: 0;}\r\n\t100%{opacity: 1;}\r\n}\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-dropDownMenu.vue?vue&type=style&index=0&id=3f603c52&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-dropDownMenu.vue?vue&type=style&index=0&id=3f603c52&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1678780470097\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":""}
|