marquee-vue
Advanced tools
Comparing version 1.0.4 to 1.0.6
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MarqueeVue=t():e.MarqueeVue=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(e,t,n){"use strict";function r(e){n(3)}var o=n(1),s=n(5),i=n(4),u=r,a=i(o.a,s.a,u,"data-v-f3d948f6",null);t.a=a.exports},function(e,t,n){"use strict";t.a={name:"MarqueeVue",data:function(){return{run:!1,pWidth:""}},props:{content:{default:"",type:String},speed:{default:"middle",type:String},showtwo:{default:!0}},mounted:function(){var e=this;this.$nextTick(function(){var t=e.$refs.out.clientWidth,n=e.$refs.in.clientWidth;e.run=n>t,console.log("out = "+t+"; _in = "+n)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=r.a},function(e,t){},function(e,t){e.exports=function(e,t,n,r,o){var s,i=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(s=e,i=e.default);var a="function"==typeof i?i.options:i;t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),r&&(a._scopeId=r);var c;if(o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},a._ssrRegister=c):n&&(c=n),c){var f=a.functional,d=f?a.render:a.beforeCreate;f?a.render=function(e,t){return c.call(t),d(e,t)}:a.beforeCreate=d?[].concat(d,c):[c]}return{esModule:s,exports:i,options:a}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"marquee-box"},[n("div",{ref:"out",staticClass:"marquee-content"},[n("p",{class:e.run?e.speed:""},[n("span",{ref:"in",staticClass:"text1"},[e._v(e._s(e.content))]),e._v(" "),e.showtwo||e.run?n("span",{staticClass:"text2"},[e._v(e._s(e.content))]):e._e()])])])},o=[],s={render:r,staticRenderFns:o};t.a=s}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.MarqueeVue=e():t.MarqueeVue=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(t,e,n){"use strict";function r(t){n(3)}var o=n(1),i=n(5),s=n(4),u=r,c=s(o.a,i.a,u,"data-v-f3d948f6",null);e.a=c.exports},function(t,e,n){"use strict";e.a={name:"MarqueeVue",data:function(){return{run:!1,pWidth:""}},props:{content:{default:"",type:String},speed:{default:"middle",type:String},showtwo:{default:!0}},watch:{content:function(){var t=this;setTimeout(function(){t.$nextTick(function(){var e=t.$refs.out.clientWidth,n=t.$refs.in.clientWidth;t.pWidth=2*n,t.run=n>e})},0)}},mounted:function(){var t=this;this.$nextTick(function(){var e=t.$refs.out.clientWidth,n=t.$refs.in.clientWidth;t.run=n>e,console.log("out = "+e+"; _in = "+n)})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default=r.a},function(t,e){},function(t,e){t.exports=function(t,e,n,r,o){var i,s=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(i=t,s=t.default);var c="function"==typeof s?s.options:s;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),r&&(c._scopeId=r);var a;if(o?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=a):n&&(a=n),a){var f=c.functional,d=f?c.render:c.beforeCreate;f?c.render=function(t,e){return a.call(e),d(t,e)}:c.beforeCreate=d?[].concat(d,a):[a]}return{esModule:i,exports:s,options:c}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"marquee-box"},[n("div",{ref:"out",staticClass:"marquee-content"},[n("p",{class:t.run?t.speed:""},[n("span",{ref:"in",staticClass:"text1"},[t._v(t._s(t.content))]),t._v(" "),t.showtwo||t.run?n("span",{staticClass:"text2"},[t._v(t._s(t.content))]):t._e()])])])},o=[],i={render:r,staticRenderFns:o};e.a=i}])}); | ||
//# sourceMappingURL=marquee-vue.min.js.map |
{ | ||
"name": "marquee-vue", | ||
"version": "1.0.4", | ||
"version": "1.0.6", | ||
"description": "A Vue Component to marquee", | ||
@@ -5,0 +5,0 @@ "author": "hexonZhang <308826842@qq.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55755
549