1 |
- {"version":3,"sources":["webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-translate/tm-translate.vue?90a9","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-translate/tm-translate.vue?df96","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-translate/tm-translate.vue?1b2e","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-translate/tm-translate.vue?dba1","uni-app:///tm-vuetify/components/tm-translate/tm-translate.vue","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-translate/tm-translate.vue?3f2f","webpack:///D:/yzm/worknew/wardrobe/tm-vuetify/components/tm-translate/tm-translate.vue?677a"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqI;AACrI;AACgE;AACL;AACsC;;;AAGjG;AACmM;AACnM,gBAAgB,0MAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,mGAAM;AACR,EAAE,4GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uGAAU;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;AAAywB,CAAgB,uwBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACO7xB;;;;;;;;;;AAUA;AACA,sBADA;AAEA;AACA;AACA,2BADA;AAEA,kBAFA,EADA;AAIA;AACA;AACA,2BADA;AAEA,gBAFA,EALA;AAQA;AACA;AACA,kBADA;AAEA,uBAFA,EATA;;AAaA;AACA,mBADA;AAEA,mBAFA,EAbA,EAFA;;;AAoBA,MApBA,kBAoBA;AACA;AACA,uBADA;AAEA,iBAFA;AAGA,kBAHA,CAGA;AAHA;AAKA,GA1BA;AA2BA;AACA;AACA;AACA,KAHA,EA3BA;;AAgCA,SAhCA,qBAgCA;AACA;AACA,GAlCA;AAmCA,WAnCA,uBAmCA;AACA;AACA;AACA,KAFA;AAGA,GAvCA;AAwCA;AACA,QADA,kBACA;AACA;AACA;AACA,OAFA;AAGA,KALA;AAMA,YANA,sBAMA;AACA;;AAEA;AACA,KAVA;AAWA,UAXA,oBAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBADA;AAEA,kCAFA;;AAIA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAHA,EAGA,IAHA,CAGA;AACA;AACA,SALA,EAKA,IALA,CAKA;AACA;AACA;AACA;AACA,SATA;;;;AAaA,OA3BA;AA4BA,KAjDA;AAkDA,WAlDA,qBAkDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,gCAFA;;AAIA;AACA;AACA;;;AAGA;AACA;AACA;AACA,SAHA,EAGA,IAHA,CAGA;AACA;AACA,SALA,EAKA,IALA,CAKA;AACA;AACA;AACA;AACA,SATA;;;;AAaA,OA3BA;AA4BA,KAxFA;AAyFA,UAzFA,oBAyFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBADA;AAEA,8BAFA;;AAIA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAJA;AAKA,OARA;AASA,KAxHA;AAyHA,YAzHA,sBAyHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,gCAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,EAGA,IAHA,CAGA;AACA;AACA,SALA,EAKA,IALA,CAKA;AACA;AACA;AACA;AACA,SATA;;AAWA,OAtBA;AAuBA,KA1JA;AA2JA,YA3JA,sBA2JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,gCAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,EAGA,IAHA,CAGA;AACA;AACA,SALA,EAKA,IALA,CAKA;AACA;AACA;AACA;AACA,SATA;;AAWA,OAtBA;AAuBA,KA3LA;AA4LA,aA5LA,uBA4LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,gCAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,EAGA,IAHA,CAGA;AACA;AACA,SALA,EAKA,IALA,CAKA;AACA;AACA;AACA;AACA,SATA;AAUA,OArBA;AAsBA,KA3NA;AA4NA,UA5NA,oBA4NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,gCAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,EAGA,IAHA,CAGA;AACA;AACA,SALA,EAKA,IALA,CAKA;AACA;AACA;AACA;AACA,SATA;;AAWA,OAtBA;AAuBA,KA5PA;AA6PA,WA7PA,qBA6PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,gCAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,EAGA,IAHA,CAGA;AACA;AACA,SALA,EAKA,IALA,CAKA;AACA;AACA;AACA;AACA;AACA,SAVA;;AAYA,OAvBA;AAwBA,KA9RA,EAxCA,E;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAA48C,CAAgB,k4CAAG,EAAC,C;;;;;;;;;;;ACAh+C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"tm-vuetify/components/tm-translate/tm-translate.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./tm-translate.vue?vue&type=template&id=70049f4d&scoped=true&\"\nvar renderjs\nimport script from \"./tm-translate.vue?vue&type=script&lang=js&\"\nexport * from \"./tm-translate.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tm-translate.vue?vue&type=style&index=0&id=70049f4d&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 \"70049f4d\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"tm-vuetify/components/tm-translate/tm-translate.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-translate.vue?vue&type=template&id=70049f4d&scoped=true&\"","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-translate.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-translate.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view v-show=\"show\" :animation=\"animationData\" class=\"tm-translate\" >\r\n\t\t<slot></slot>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t/**\r\n\t * 动画\r\n\t * @property {Function} start 动画开始触发.\r\n\t * @property {Function} end 动画结束触发.\r\n\t * @property {Number} duration 动画时长\r\n\t * @property {Number} wait 延时\r\n\t * @property {String} animation-name = [fadeUp|fadeDown|fadeLeft|fadeRight|zoomIn|zoomOut|fadeIn|fadeOut] 动画效果名称.\r\n\t * @property {String|Boolean} auto = [true|false] 默认:true,是否自动播放动画.\r\n\t * @example <tm-translate wait=\"500\" animation-name=\"fadeDown\"><tm-upload></tm-upload></tm-translate>\r\n\t */\r\n\texport default {\r\n\t\tname:\"tm-translate\",\r\n\t\tprops:{\r\n\t\t\tduration:{\r\n\t\t\t\ttype:Number|String,\r\n\t\t\t\tdefault:600\r\n\t\t\t},//动画时长.\r\n\t\t\twait:{\r\n\t\t\t\ttype:Number|String,\r\n\t\t\t\tdefault:0\r\n\t\t\t},//延时动画.\r\n\t\t\tanimationName:{\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:\"fadeUp\"\r\n\t\t\t},\r\n\t\t\tauto:{//是否自动播放动画.\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:true\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tanimationData:\"\",\r\n\t\t\t\tshow:false,\r\n\t\t\t\taniOff:true,//是否结束了动画.\r\n\t\t\t};\r\n\t\t},\r\n\t\twatch:{\r\n\t\t\tanimationName:function(){\r\n\t\t\t\tthis.play();\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.autoPlay();\r\n\t\t},\r\n\t\tdestroyed() {\r\n\t\t\tthis.$nextTick(function(){\r\n\t\t\t\tthis[this.animationName]()\r\n\t\t\t})\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tplay(){\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis[this.animationName]()\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tautoPlay(){\r\n\t\t\t\tif(!this.auto) return;\r\n\t\t\t\t\r\n\t\t\t\tthis[this.animationName]()\r\n\t\t\t},\r\n\t\t\tfadeIn() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\t\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.animationData = \"\";\r\n\r\n\t\t\t\t\tthis.aniOff = false;\r\n\t\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t\t duration: 0,\r\n\t\t\t\t\t timingFunction: 'linear',\r\n\t\t\t\t\t })\r\n\t\t\t\t\t this.animation = animation\r\n\t\t\t\t\t animation.opacity(0).step()\r\n\t\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tuni.$tm.sleep(wait).then(()=>{\r\n\t\t\t\t\t\t\tanimation.opacity(1).step({duration:duration})\r\n\t\t\t\t\t\t\tt.animationData = animation.export()\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\treturn uni.$tm.sleep(duration);\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\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})\r\n\t\t\t},\r\n\t\t\tfadeOut() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\t\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.animationData = \"\";\r\n\t\t\t\t\tthis.aniOff = false;\r\n\t\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t\t duration: 0,\r\n\t\t\t\t\t timingFunction: 'ease',\r\n\t\t\t\t\t })\r\n\t\t\t\t\t this.animation = animation\r\n\t\t\t\t\t animation.opacity(1).step()\r\n\t\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tuni.$tm.sleep(wait).then(()=>{\r\n\t\t\t\t\t\t\tanimation.opacity(0).step({duration:duration})\r\n\t\t\t\t\t\t\tt.animationData = animation.export()\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\treturn uni.$tm.sleep(duration);;\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\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})\r\n\t\t\t},\r\n\t\t\tfadeUp() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\t\r\n\t\t\t\tthis.animationData = \"\";\r\n\t\t\t\tthis.aniOff = false;\r\n\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t duration: 0,\r\n\t\t\t\t timingFunction: 'ease',\r\n\t\t\t\t })\r\n\t\t\t\t this.animation = animation\r\n\t\t\t\t animation.translateY(45).opacity(0).step()\r\n\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\r\n\t\t\t\t\tuni.$tm.sleep(wait).then(function(){\r\n\t\t\t\t\t\tanimation.translateY(0).opacity(1).step({duration:duration})\r\n\t\t\t\t\t\tt.animationData = animation.export()\r\n\t\t\t\t\t\t uni.$tm.sleep(duration).then(()=>{\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tfadeDown() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\t\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.aniOff = false;\r\n\t\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t\t duration: 0,\r\n\t\t\t\t\t timingFunction: 'ease',\r\n\t\t\t\t\t })\r\n\t\t\t\t\t this.animation = animation\r\n\t\t\t\t\t animation.translateY(-45).opacity(0).step()\r\n\t\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\tuni.$tm.sleep(wait).then(()=>{\r\n\t\t\t\t\t\t\tanimation.translateY(0).opacity(1).step({duration:duration})\r\n\t\t\t\t\t\t\tt.animationData = animation.export()\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\treturn uni.$tm.sleep(duration);\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tfadeLeft() {\r\n\t\t\t\tlet t= this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.aniOff = false;\r\n\t\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t\t duration: 0,\r\n\t\t\t\t\t timingFunction: 'ease',\r\n\t\t\t\t\t })\r\n\t\t\t\t\t this.animation = animation\r\n\t\t\t\t\t animation.translateX(45).opacity(0).step()\r\n\t\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\tuni.$tm.sleep(wait).then(()=>{\r\n\t\t\t\t\t\t\tanimation.translateX(0).opacity(1).step({duration:duration})\r\n\t\t\t\t\t\t\tt.animationData = animation.export()\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\treturn uni.$tm.sleep(duration);\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tfadeRight() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.aniOff = false;\r\n\t\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t\t duration: 0,\r\n\t\t\t\t\t timingFunction: 'ease',\r\n\t\t\t\t\t })\r\n\t\t\t\t\t this.animation = animation\r\n\t\t\t\t\t animation.translateX(-45).opacity(0).step()\r\n\t\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\tuni.$tm.sleep(wait).then(()=>{\r\n\t\t\t\t\t\t\tanimation.translateX(0).opacity(1).step({duration:duration})\r\n\t\t\t\t\t\t\tt.animationData = animation.export()\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\t return uni.$tm.sleep(duration);\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\r\n\t\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tzoomIn() {\r\n\t\t\t\tlet t= this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.aniOff = false;\r\n\t\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t\t duration: 0,\r\n\t\t\t\t\t timingFunction: 'ease',\r\n\t\t\t\t\t })\r\n\t\t\t\t\t this.animation = animation\r\n\t\t\t\t\t animation.scale(0.64).opacity(0).step()\r\n\t\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\tuni.$tm.sleep(wait).then(()=>{\r\n\t\t\t\t\t\t\tanimation.scale(1).opacity(1).step({duration:duration})\r\n\t\t\t\t\t\t\tthis.animationData = animation.export()\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\treturn uni.$tm.sleep(duration);\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tzoomOut() {\r\n\t\t\t\tlet t = this;\r\n\t\t\t\tif(!this.aniOff) {\r\n\t\t\t\t\tconsole.warn(\"未结束动画,不能连续点击.\")\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 开始动画.\r\n\t\t\t\tthis.$emit('start')\r\n\t\t\t\tthis.show = true;\r\n\t\t\t\tthis.$nextTick(function(){\r\n\t\t\t\t\tthis.aniOff = false;\r\n\t\t\t\t\tlet duration = parseInt(this.duration)?parseInt(this.duration):500;\r\n\t\t\t\t\tlet wait = parseInt(this.wait)? parseInt(this.wait) : 50;\r\n\t\t\t\t\tvar animation = uni.createAnimation({\r\n\t\t\t\t\t duration: 0,\r\n\t\t\t\t\t timingFunction: 'ease',\r\n\t\t\t\t\t })\r\n\t\t\t\t\t this.animation = animation\r\n\t\t\t\t\t animation.scale(1).opacity(1).step()\r\n\t\t\t\t\t this.animationData = animation.export()\r\n\t\t\t\t\t\tuni.$tm.sleep(wait).then(()=>{\r\n\t\t\t\t\t\t\tanimation.scale(0.64).opacity(0).step({duration:duration})\r\n\t\t\t\t\t\t\tt.animationData = animation.export()\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\treturn uni.$tm.sleep(duration);\r\n\t\t\t\t\t\t}).then(()=>{\r\n\t\t\t\t\t\t\tt.show = false;\r\n\t\t\t\t\t\t\t// 结束动画.\r\n\t\t\t\t\t\t\tt.$emit('end')\r\n\t\t\t\t\t\t\tt.aniOff = true;\r\n\t\t\t\t\t\t})\r\n\t\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</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.tm-translate{\r\n\t// #ifdef H5\r\n\topacity: 0;\r\n\t// #endif\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-translate.vue?vue&type=style&index=0&id=70049f4d&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-translate.vue?vue&type=style&index=0&id=70049f4d&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1678780470052\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":""}
|