-
Notifications
You must be signed in to change notification settings - Fork 0
/
e324fa27.js
1 lines (1 loc) · 1.46 KB
/
e324fa27.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{JZRF:function(v,d,t){"use strict";t.r(d),t.d(d,"default",function(){return h});var U=t("IzEo"),c=t("bx4M"),b=t("DYRE"),a=t("zeV3"),_=t("nKUr"),T=t.n(_),I=t("+L6B"),n=t("2/Rp"),K=t("miYZ"),E=t("tsqr"),i=t("XKWP"),D=t("N7Kx"),m=t("kFHX"),j=t("4jIl"),M=t("q1tI"),P=t.n(M),r=t("LvDl"),R=t.n(r),h=function(C){Object(m.a)(e,C);var o=Object(j.a)(e);function e(){var s;Object(i.a)(this,e);for(var u=arguments.length,O=new Array(u),l=0;l<u;l++)O[l]=arguments[l];return s=o.call.apply(o,[this].concat(O)),s.handDebounceClick=Object(r.debounce)(function(){return E.default.success({icon:Object(_.jsx)(_.Fragment,{}),content:Object(_.jsxs)(a.b,{children:[Object(_.jsx)(n.a,{size:"small",shape:"circle",type:"primary",children:"D"}),"Debounce click"]})})},500),s.handThrottleClick=Object(r.throttle)(function(){return E.default.success({icon:Object(_.jsx)(_.Fragment,{}),content:Object(_.jsxs)(a.b,{children:[Object(_.jsx)(n.a,{size:"small",shape:"circle",type:"primary",danger:!0,children:"T"}),"Throttle click"]})})},500),s}return Object(D.a)(e,[{key:"render",value:function(){return Object(_.jsxs)(a.b,{direction:"vertical",style:{width:"100%"},children:[Object(_.jsx)(c.a,{children:Object(_.jsx)(n.a,{type:"primary",onClick:this.handDebounceClick,children:"debounce\u89E6\u53D1"})}),Object(_.jsx)(c.a,{children:Object(_.jsx)(n.a,{type:"primary",onClick:this.handThrottleClick,children:"throttle\u89E6\u53D1"})})]})}}]),e}(P.a.Component)}}]);