|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["node-modules/uview-ui/components/u-row-notice/u-row-notice"],{541:function(n,t,e){"use strict";e.r(t);var o=e(542),i=e(544);for(var r in i)"default"!==r&&function(n){e.d(t,n,(function(){return i[n]}))}(r);e(547);var u,c=e(15),a=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"4661e472",null,!1,o["components"],u);a.options.__file="node_modules/uview-ui/components/u-row-notice/u-row-notice.vue",t["default"]=a.exports},542:function(n,t,e){"use strict";e.r(t);var o=e(543);e.d(t,"render",(function(){return o["render"]})),e.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(t,"components",(function(){return o["components"]}))},543:function(n,t,e){"use strict";var o;e.r(t),e.d(t,"render",(function(){return i})),e.d(t,"staticRenderFns",(function(){return u})),e.d(t,"recyclableRender",(function(){return r})),e.d(t,"components",(function(){return o}));try{o={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,414))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__get_style([n.textStyle])),o=["link","closable"].includes(n.mode);n.$mp.data=Object.assign({},{$root:{s0:e,g0:o}})},r=!1,u=[];i._withStripped=!0},544:function(n,t,e){"use strict";e.r(t);var o=e(545),i=e.n(o);for(var r in o)"default"!==r&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},545:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(e(38)),i=r(e(546));function r(n){return n&&n.__esModule?n:{default:n}}function u(n,t,e,o,i,r,u){try{var c=n[r](u),a=c.value}catch(s){return void e(s)}c.done?t(a):Promise.resolve(a).then(o,i)}function c(n){return function(){var t=this,e=arguments;return new Promise((function(o,i){var r=n.apply(t,e);function c(n){u(r,o,i,c,a,"next",n)}function a(n){u(r,o,i,c,a,"throw",n)}c(void 0)}))}}var a={name:"u-row-notice",mixins:[n.$u.mpMixin,n.$u.mixin,i.default],data:function(){return{animationDuration:"0",animationPlayState:"paused",nvueInit:!0,show:!0}},watch:{text:{immediate:!0,handler:function(t,e){this.vue(),n.$u.test.string(t)||n.$u.error("noticebar组件direction为row时,要求text参数为字符串形式")}},fontSize:function(){this.vue()},speed:function(){this.vue()}},computed:{textStyle:function(){var t={};return t.color=this.color,t.animationDuration=this.animationDuration,t.animationPlayState=this.animationPlayState,t.fontSize=n.$u.addUnit(this.fontSize),t}},mounted:function(){this.init()},methods:{init:function(){this.vue(),n.$u.test.string(this.text)||n.$u.error("noticebar组件direction为row时,要求text参数为字符串形式")},vue:function(){var t=this;return c(o.default.mark((function e(){var i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return 0,i=0,e.next=3,n.$u.sleep();case 3:return e.next=5,t.$uGetRect(".u-notice__content__text");case 5:return i=e.sent.width,e.next=8,t.$uGetRect(".u-notice__content");case 8:e.sent.width,t.animationDuration="".concat(i/n.$u.getPx(t.speed),"s"),t.animationPlayState="paused",setTimeout((function(){t.animationPlayState="running"}),10);case 12:case"end":return e.stop()}}),e)})))()},nvue:function(){return c(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:case"end":return n.stop()}}),n)})))()},loopAnimation:function(n,t){},getNvueRect:function(n){},clickHandler:function(n){this.$emit("click")},close:function(){this.$emit("close")}}};t.default=a}).call(this,e(1)["default"])},547:function(n,t,e){"use strict";e.r(t);var o=e(548),i=e.n(o);for(var r in o)"default"!==r&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},548:function(n,t,e){}}]);
|