UNPKG

@tarojs/components

Version:
1 lines 799 B
System.register([],(function(t){"use strict";return{execute:function(){t({a:i,d:n,i:o,t:e});function e(t,e,n){if(e===void 0){e=250}var i=0;var o;return function(){var r=[];for(var f=0;f<arguments.length;f++){r[f]=arguments[f]}var u=n||this;var a=Date.now();if(a-i>e){t.apply(this,r);i=a}else{clearTimeout(o);o=setTimeout((function(){i=a;t.apply(u,r)}),e)}}}function n(t,e,n){if(e===void 0){e=250}var i;return function(){var o=[];for(var r=0;r<arguments.length;r++){o[r]=arguments[r]}var f=n||this;clearTimeout(i);i=setTimeout((function(){t.apply(f,o)}),e)}}function i(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function o(t){return typeof HTMLElement==="object"?t instanceof HTMLElement:t&&typeof t==="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName==="string"}}}}));