uni-notice-bar.js.map 23 KB

1
  1. {"version":3,"sources":["webpack:///G:/item/appBase/components/uni-notice-bar/uni-notice-bar.vue?9e8f","webpack:///G:/item/appBase/components/uni-notice-bar/uni-notice-bar.vue?82ec","webpack:///G:/item/appBase/components/uni-notice-bar/uni-notice-bar.vue?57db","webpack:///G:/item/appBase/components/uni-notice-bar/uni-notice-bar.vue?dc0e","uni-app:///components/uni-notice-bar/uni-notice-bar.vue","webpack:///G:/item/appBase/components/uni-notice-bar/uni-notice-bar.vue?7009","webpack:///G:/item/appBase/components/uni-notice-bar/uni-notice-bar.vue?d0c8"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuI;AACvI;AACkE;AACL;AACsC;;;AAGnG;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,qGAAM;AACR,EAAE,8GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yGAAU;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,oPAEN;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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAsoB,CAAgB,2pBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoC1pB;;;;;;;;;;;;;;;;;;;;AAoBA;AACA,sBADA;AAEA;AACA,sBADA,EAFA;;AAKA;AACA;AACA,kBADA;AAEA,iBAFA,EADA;;AAKA;AACA,kBADA;AAEA,iBAFA,EALA;;AASA;AACA,kBADA;AAEA,wBAFA,EATA;;AAaA;AACA;AACA,kBAFA;AAGA,kBAHA,EAbA;;AAkBA;AACA,kBADA;AAEA,wBAFA,EAlBA;;AAsBA;AACA,kBADA;AAEA,wBAFA,EAtBA;;AA0BA;AACA;AACA,6BAFA;AAGA,oBAHA,EA1BA;;AA+BA;AACA;AACA,6BAFA;AAGA,oBAHA,EA/BA;;AAoCA;AACA;AACA,6BAFA;AAGA,oBAHA,EApCA;;AAyCA;AACA;AACA,6BAFA;AAGA,oBAHA,EAzCA;;AA8CA;AACA;AACA,6BAFA;AAGA,oBAHA,EA9CA,EALA;;;AAyDA,MAzDA,kBAyDA;AACA;AACA;AACA;AACA,kBADA;AAEA,iBAFA;AAGA,mBAHA;AAIA,wBAJA;;;;AAQA,gBARA;AASA,sBATA;AAUA,gBAVA;AAWA,+BAXA;AAYA,kCAZA;AAaA,0BAbA;;AAeA,GA3EA;AA4EA,SA5EA,qBA4EA;;;;;;;;;;;;AAYA;AACA;AACA,KAFA;AAGA,GA3FA;;;;;;AAiGA;AACA,YADA,sBACA;AACA;;AAEA;AACA,oBADA;AAEA,qBAFA;AAGA;AACA;;AAEA,YAFA,CAEA,MAFA;;AAIA,gBAJA,YAIA,WAJA;AAKA,4BALA;AAMA,cANA,CAMA;AACA;AACA;AACA,WATA;AAUA,SAXA;AAYA;AACA;;AAEA,YAFA,CAEA,MAFA;;AAIA,gBAJA,YAIA,cAJA;AAKA,4BALA;AAMA,cANA,CAMA;AACA;AACA;AACA,WATA;AAUA,SAXA;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAFA,EAEA,IAFA;AAGA,SANA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA;;;;;;;;AAQA,KA9EA;AA+EA,iBA/EA,2BA+EA;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,KAvGA;AAwGA,aAxGA,uBAwGA;AACA;AACA,KA1GA;AA2GA,SA3GA,mBA2GA;AACA;AACA;AACA,KA9GA;AA+GA,WA/GA,qBA+GA;AACA;AACA,KAjHA,EAjGA,E;;;;;;;;;;;;;ACxDA;AAAA;AAAA;AAAA;AAAwrC,CAAgB,ypCAAG,EAAC,C;;;;;;;;;;;ACA5sC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/uni-notice-bar/uni-notice-bar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-notice-bar.vue?vue&type=template&id=24a05de4&scoped=true&\"\nvar renderjs\nimport script from \"./uni-notice-bar.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-notice-bar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uni-notice-bar.vue?vue&type=style&index=0&id=24a05de4&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\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 \"24a05de4\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-notice-bar/uni-notice-bar.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=template&id=24a05de4&scoped=true&\"","var components\ntry {\n components = {\n uniIcons: function() {\n return import(\n /* webpackChunkName: \"components/uni-icons/uni-icons\" */ \"@/components/uni-icons/uni-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}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view v-if=\"show\" class=\"uni-noticebar\" :style=\"{ backgroundColor: backgroundColor }\" @click=\"onClick\">\r\n\t\t<!-- #ifdef MP-ALIPAY -->\r\n\t\t<view v-if=\"showClose === true || showClose === 'true'\" class=\"uni-noticebar-close\" @click=\"close\">\r\n\t\t\t<uni-icons type=\"closefill\" :color=\"color\" size=\"12\" />\r\n\t\t</view>\r\n\t\t<view v-if=\"showIcon === true || showIcon === 'true'\" class=\"uni-noticebar-icon\">\r\n\t\t\t<uni-icons type=\"sound\" :color=\"color\" size=\"14\" />\r\n\t\t</view>\r\n\t\t<!-- #endif -->\r\n\t\t<!-- #ifndef MP-ALIPAY -->\r\n\t\t<uni-icons v-if=\"showClose === true || showClose === 'true'\" class=\"uni-noticebar-close\" type=\"closefill\" :color=\"color\"\r\n\t\t size=\"12\" @click=\"close\" />\r\n\t\t<uni-icons v-if=\"showIcon === true || showIcon === 'true'\" class=\"uni-noticebar-icon\" type=\"sound\" :color=\"color\"\r\n\t\t size=\"14\" />\r\n\t\t<!-- #endif -->\r\n\t\t<view ref=\"textBox\" class=\"uni-noticebar__content-wrapper\" :class=\"{'uni-noticebar__content-wrapper--scrollable':scrollable, 'uni-noticebar__content-wrapper--single':!scrollable && (single || moreText)}\">\r\n\t\t\t<view :id=\"elIdBox\" class=\"uni-noticebar__content\" :class=\"{'uni-noticebar__content--scrollable':scrollable, 'uni-noticebar__content--single':!scrollable && (single || moreText)}\">\r\n\t\t\t\t<text :id=\"elId\" ref=\"animationEle\" class=\"uni-noticebar__content-text\" :class=\"{'uni-noticebar__content-text--scrollable':scrollable,'uni-noticebar__content-text--single':!scrollable && (single || moreText)}\"\r\n\t\t\t\t :style=\"{color:color, width:wrapWidth+'px', 'animationDuration': animationDuration, '-webkit-animationDuration': animationDuration ,animationPlayState: webviewHide?'paused':animationPlayState,'-webkit-animationPlayState':webviewHide?'paused':animationPlayState, animationDelay: animationDelay, '-webkit-animationDelay':animationDelay}\">{{text}}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view v-if=\"showGetMore === true || showGetMore === 'true'\" class=\"uni-noticebar__more\" @click=\"clickMore\">\r\n\t\t\t<text v-if=\"moreText\" :style=\"{ color: moreColor }\" class=\"uni-noticebar__more-text\">{{ moreText }}</text>\r\n\t\t\t<uni-icons type=\"arrowright\" :color=\"moreColor\" size=\"14\" />\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport uniIcons from '../uni-icons/uni-icons.vue'\r\n\t// #ifdef APP-NVUE\r\n\tconst dom = weex.requireModule('dom');\r\n\tconst animation = weex.requireModule('animation');\r\n\t// #endif\r\n\r\n\t/**\r\n\t * NoticeBar 自定义导航栏\r\n\t * @description 通告栏组件\r\n\t * @tutorial https://ext.dcloud.net.cn/plugin?id=30\r\n\t * @property {Number} speed 文字滚动的速度,默认100px/秒\r\n\t * @property {String} text 显示文字\r\n\t * @property {String} backgroundColor 背景颜色\r\n\t * @property {String} color 文字颜色\r\n\t * @property {String} moreColor 查看更多文字的颜色\r\n\t * @property {String} moreText 设置“查看更多”的文本\r\n\t * @property {Boolean} single = [true|false] 是否单行\r\n\t * @property {Boolean} scrollable = [true|false] 是否滚动,为true时,NoticeBar为单行\r\n\t * @property {Boolean} showIcon = [true|false] 是否显示左侧喇叭图标\r\n\t * @property {Boolean} showClose = [true|false] 是否显示左侧关闭按钮\r\n\t * @property {Boolean} showGetMore = [true|false] 是否显示右侧查看更多图标,为true时,NoticeBar为单行\r\n\t * @event {Function} click 点击 NoticeBar 触发事件\r\n\t * @event {Function} close 关闭 NoticeBar 触发事件\r\n\t * @event {Function} getmore 点击”查看更多“时触发事件\r\n\t */\r\n\r\n\texport default {\r\n\t\tname: 'UniNoticeBar',\r\n\t\tcomponents: {\r\n\t\t\tuniIcons\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\ttext: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tmoreText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tbackgroundColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#fffbe8'\r\n\t\t\t},\r\n\t\t\tspeed: {\r\n\t\t\t\t// 默认1s滚动100px\r\n\t\t\t\ttype: Number,\r\n\t\t\t\tdefault: 100\r\n\t\t\t},\r\n\t\t\tcolor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#de8c17'\r\n\t\t\t},\r\n\t\t\tmoreColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#999999'\r\n\t\t\t},\r\n\t\t\tsingle: {\r\n\t\t\t\t// 是否单行\r\n\t\t\t\ttype: [Boolean, String],\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tscrollable: {\r\n\t\t\t\t// 是否滚动,添加后控制单行效果取消\r\n\t\t\t\ttype: [Boolean, String],\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tshowIcon: {\r\n\t\t\t\t// 是否显示左侧icon\r\n\t\t\t\ttype: [Boolean, String],\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tshowGetMore: {\r\n\t\t\t\t// 是否显示右侧查看更多\r\n\t\t\t\ttype: [Boolean, String],\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tshowClose: {\r\n\t\t\t\t// 是否显示左侧关闭按钮\r\n\t\t\t\ttype: [Boolean, String],\r\n\t\t\t\tdefault: false\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\tconst elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`\r\n\t\t\tconst elIdBox = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`\r\n\t\t\treturn {\r\n\t\t\t\ttextWidth: 0,\r\n\t\t\t\tboxWidth: 0,\r\n\t\t\t\twrapWidth: '',\r\n\t\t\t\twebviewHide: false,\r\n\t\t\t\t// #ifdef APP-NVUE\r\n\t\t\t\tstopAnimation: false,\r\n\t\t\t\t// #endif\r\n\t\t\t\telId: elId,\r\n\t\t\t\telIdBox: elIdBox,\r\n\t\t\t\tshow: true,\r\n\t\t\t\tanimationDuration: 'none',\r\n\t\t\t\tanimationPlayState: 'paused',\r\n\t\t\t\tanimationDelay: '0s'\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\t// #ifdef APP-PLUS\r\n\t\t\tvar pages = getCurrentPages();\r\n\t\t\tvar page = pages[pages.length - 1];\r\n\t\t\tvar currentWebview = page.$getAppWebview();\r\n\t\t\tcurrentWebview.addEventListener('hide',()=>{\r\n\t\t\t\tthis.webviewHide = true\r\n\t\t\t})\r\n\t\t\tcurrentWebview.addEventListener('show',()=>{\r\n\t\t\t\tthis.webviewHide = false\r\n\t\t\t})\r\n\t\t\t// #endif\r\n\t\t\tthis.$nextTick(() => {\r\n\t\t\t\tthis.initSize()\r\n\t\t\t})\r\n\t\t},\r\n\t\t// #ifdef APP-NVUE\r\n\t\tbeforeDestroy() {\r\n\t\t\tthis.stopAnimation = true\r\n\t\t},\r\n\t\t// #endif\r\n\t\tmethods: {\r\n\t\t\tinitSize() {\r\n\t\t\t\tif (this.scrollable) {\r\n\t\t\t\t\t// #ifndef APP-NVUE\r\n\t\t\t\t\tlet query = [],\r\n\t\t\t\t\t\tboxWidth = 0,\r\n\t\t\t\t\t\ttextWidth = 0;\r\n\t\t\t\t\tlet textQuery = new Promise((resolve, reject) => {\r\n\t\t\t\t\t\tuni.createSelectorQuery()\r\n\t\t\t\t\t\t\t// #ifndef MP-ALIPAY\r\n\t\t\t\t\t\t\t.in(this)\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t.select(`#${this.elId}`)\r\n\t\t\t\t\t\t\t.boundingClientRect()\r\n\t\t\t\t\t\t\t.exec(ret => {\r\n\t\t\t\t\t\t\t\tthis.textWidth = ret[0].width\r\n\t\t\t\t\t\t\t\tresolve()\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t})\r\n\t\t\t\t\tlet boxQuery = new Promise((resolve, reject) => {\r\n\t\t\t\t\t\tuni.createSelectorQuery()\r\n\t\t\t\t\t\t\t// #ifndef MP-ALIPAY\r\n\t\t\t\t\t\t\t.in(this)\r\n\t\t\t\t\t\t\t// #endif\r\n\t\t\t\t\t\t\t.select(`#${this.elIdBox}`)\r\n\t\t\t\t\t\t\t.boundingClientRect()\r\n\t\t\t\t\t\t\t.exec(ret => {\r\n\t\t\t\t\t\t\t\tthis.boxWidth = ret[0].width\r\n\t\t\t\t\t\t\t\tresolve()\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t})\r\n\t\t\t\t\tquery.push(textQuery)\r\n\t\t\t\t\tquery.push(boxQuery)\r\n\t\t\t\t\tPromise.all(query).then(() => {\r\n\t\t\t\t\t\tthis.animationDuration = `${this.textWidth / this.speed}s`\r\n\t\t\t\t\t\tthis.animationDelay = `-${this.boxWidth / this.speed}s`\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\tthis.animationPlayState = 'running'\r\n\t\t\t\t\t\t}, 1000)\r\n\t\t\t\t\t})\r\n\t\t\t\t\t// #endif\r\n\t\t\t\t\t// #ifdef APP-NVUE\r\n\t\t\t\t\tdom.getComponentRect(this.$refs['animationEle'], (res) => {\r\n\t\t\t\t\t\tlet winWidth = uni.getSystemInfoSync().windowWidth\r\n\t\t\t\t\t\tthis.textWidth = res.size.width\r\n\t\t\t\t\t\tanimation.transition(this.$refs['animationEle'], {\r\n\t\t\t\t\t\t\tstyles: {\r\n\t\t\t\t\t\t\t\ttransform: `translateX(-${winWidth}px)`\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tduration: 0,\r\n\t\t\t\t\t\t\ttimingFunction: 'linear',\r\n\t\t\t\t\t\t\tdelay: 0\r\n\t\t\t\t\t\t}, () => {\r\n\t\t\t\t\t\t\tif (!this.stopAnimation) {\r\n\t\t\t\t\t\t\t\tanimation.transition(this.$refs['animationEle'], {\r\n\t\t\t\t\t\t\t\t\tstyles: {\r\n\t\t\t\t\t\t\t\t\t\ttransform: `translateX(-${this.textWidth}px)`\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\ttimingFunction: 'linear',\r\n\t\t\t\t\t\t\t\t\tduration: (this.textWidth - winWidth) / this.speed * 1000,\r\n\t\t\t\t\t\t\t\t\tdelay: 1000\r\n\t\t\t\t\t\t\t\t}, () => {\r\n\t\t\t\t\t\t\t\t\tif (!this.stopAnimation) {\r\n\t\t\t\t\t\t\t\t\t\tthis.loopAnimation()\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\t// #endif\r\n\t\t\t\t}\r\n\t\t\t\t// #ifdef APP-NVUE\r\n\t\t\t\tif (!this.scrollable && (this.single || this.moreText)) {\r\n\t\t\t\t\tdom.getComponentRect(this.$refs['textBox'], (res) => {\r\n\t\t\t\t\t\tthis.wrapWidth = res.size.width\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\tloopAnimation() {\r\n\t\t\t\t// #ifdef APP-NVUE\r\n\t\t\t\tanimation.transition(this.$refs['animationEle'], {\r\n\t\t\t\t\tstyles: {\r\n\t\t\t\t\t\ttransform: `translateX(0px)`\r\n\t\t\t\t\t},\r\n\t\t\t\t\tduration: 0\r\n\t\t\t\t}, () => {\r\n\t\t\t\t\tif (!this.stopAnimation) {\r\n\t\t\t\t\t\tanimation.transition(this.$refs['animationEle'], {\r\n\t\t\t\t\t\t\tstyles: {\r\n\t\t\t\t\t\t\t\ttransform: `translateX(-${this.textWidth}px)`\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tduration: this.textWidth / this.speed * 1000,\r\n\t\t\t\t\t\t\ttimingFunction: 'linear',\r\n\t\t\t\t\t\t\tdelay: 0\r\n\t\t\t\t\t\t}, () => {\r\n\t\t\t\t\t\t\tif (!this.stopAnimation) {\r\n\t\t\t\t\t\t\t\tthis.loopAnimation()\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\t// #endif\r\n\t\t\t},\r\n\t\t\tclickMore() {\r\n\t\t\t\tthis.$emit('getmore')\r\n\t\t\t},\r\n\t\t\tclose() {\r\n\t\t\t\tthis.show = false;\r\n\t\t\t\tthis.$emit('close')\r\n\t\t\t},\r\n\t\t\tonClick() {\r\n\t\t\t\tthis.$emit('click')\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@import '@/uni.scss';\r\n\r\n\t.uni-noticebar {\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tdisplay: flex;\r\n\t\twidth: 100%;\r\n\t\tbox-sizing: border-box;\r\n\t\t/* #endif */\r\n\t\tflex-direction: row;\r\n\t\talign-items: center;\r\n\t\tpadding: 6px 12px;\r\n\t\tmargin-bottom: 10px;\r\n\t}\r\n\r\n\t.uni-noticebar-close {\r\n\t\tmargin-right: 5px;\r\n\t}\r\n\r\n\t.uni-noticebar-icon {\r\n\t\tmargin-right: 5px;\r\n\t}\r\n\r\n\t.uni-noticebar__content-wrapper {\r\n\t\tflex: 1;\r\n\t\tflex-direction: column;\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\t.uni-noticebar__content-wrapper--single {\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tline-height: 18px;\r\n\t\t/* #endif */\r\n\t}\r\n\r\n\t.uni-noticebar__content-wrapper--single,\r\n\t.uni-noticebar__content-wrapper--scrollable {\r\n\t\tflex-direction: row;\r\n\t}\r\n\r\n\t/* #ifndef APP-NVUE */\r\n\t.uni-noticebar__content-wrapper--scrollable {\r\n\t\tposition: relative;\r\n\t\theight: 18px;\r\n\t}\r\n\t/* #endif */\r\n\r\n\t.uni-noticebar__content--scrollable {\r\n\t\t/* #ifdef APP-NVUE */\r\n\t\tflex: 0;\r\n\t\t/* #endif */\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tflex: 1;\r\n\t\tdisplay: block;\r\n\t\toverflow: hidden;\r\n\t\t/* #endif */\r\n\t}\r\n\r\n\t.uni-noticebar__content--single {\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tdisplay: flex;\r\n\t\tflex: none;\r\n\t\twidth: 100%;\r\n\t\tjustify-content: center;\r\n\t\t/* #endif */\r\n\t}\r\n\r\n\t.uni-noticebar__content-text {\r\n\t\tfont-size: 14px;\r\n\t\tline-height: 18px;\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tword-break: break-all;\r\n\t\t/* #endif */\r\n\t}\r\n\r\n\t.uni-noticebar__content-text--single {\r\n\t\t/* #ifdef APP-NVUE */\r\n\t\tlines: 1;\r\n\t\t/* #endif */\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tdisplay: block;\r\n\t\twidth: 100%;\r\n\t\twhite-space: nowrap;\r\n\t\t/* #endif */\r\n\t\toverflow: hidden;\r\n\t\ttext-overflow: ellipsis;\r\n\t}\r\n\r\n\t.uni-noticebar__content-text--scrollable {\r\n\t\t/* #ifdef APP-NVUE */\r\n\t\tlines: 1;\r\n\t\tpadding-left: 750rpx;\r\n\t\t/* #endif */\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tposition: absolute;\r\n\t\tdisplay: block;\r\n\t\theight: 18px;\r\n\t\tline-height: 18px;\r\n\t\twhite-space: nowrap;\r\n\t\tpadding-left: 100%;\r\n\t\tanimation: notice 10s 0s linear infinite both;\r\n\t\tanimation-play-state: paused;\r\n\t\t/* #endif */\r\n\t}\r\n\r\n\t.uni-noticebar__more {\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\tdisplay: inline-flex;\r\n\t\t/* #endif */\r\n\t\tflex-direction: row;\r\n\t\tflex-wrap: nowrap;\r\n\t\talign-items: center;\r\n\t\tpadding-left: 5px;\r\n\t}\r\n\r\n\t.uni-noticebar__more-text {\r\n\t\tfont-size: 14px;\r\n\t}\r\n\r\n\t@keyframes notice {\r\n\t\t100% {\r\n\t\t\ttransform: translate3d(-100%, 0, 0);\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=style&index=0&id=24a05de4&lang=scss&scoped=true&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=style&index=0&id=24a05de4&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084737\n var cssReload = require(\"D:/work/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":""}