UNPKG

@persagy2/meri-design

Version:

fork from meri-design and extend it.

7 lines 2.41 kB
/*! * @@persagy2/meri-design v1.4.9-extend.2 * (c) 2019-2020 xiongshuang * Released under the MIT License. * 2022-12-07 10:32:51 */ var t,e;t=this,e=function(){return function(){"use strict";var t={d:function(e,n){for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}t.r(e),t.d(e,{default:function(){return i}});var o=function(t,e,n,o,r,i,a,s){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):r&&(u=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(c.functional){c._injectStyles=u;var f=c.render;c.render=function(t,e){return u.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:c}}({name:"Shake",props:{activate:{type:[Boolean,String,Number],default:!1}},data:function(){return{activateStatus:null}},created:function(){this.setActivate(this.activate)},watch:{activate:function(t,e){t!==e&&this.setActivate(t)}},methods:{setActivate:function(t){var e=this;"boolean"===n(t)?this.activateStatus=t:t!==this.activateStatus&&(this.activateStatus=t,setTimeout((function(){e.activateStatus=null}),1800))}}},(function(){var t=this;return(0,t._self._c)("div",{class:["p-shake",t.activateStatus&&"p-shake-activate"]},[t._t("default")],2)}),[],!1,null,null,null),r=o.exports;r.install=function(t){return t.component(r.name,r)};var i=r;return e}()},"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Shake",[],e):"object"==typeof exports?exports.Shake=e():t.Shake=e();