You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
10 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-library-debounce-index"],{3681:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uSubsection:i("e97e").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-demo"},[i("v-uni-view",{staticClass:"u-demo-wrap"},[i("v-uni-view",{staticClass:"u-demo-title"},[t._v("演示效果")]),i("v-uni-view",{staticClass:"u-demo-area"},[i("v-uni-view",{staticClass:"no-mode-here"},[t._v("选择节流或者防抖模式,点击按钮,将会执行回调并显示在下方:")]),t.result.length?i("v-uni-view",{staticClass:"u-demo-result-line"},t._l(t.result,(function(e,n){return i("v-uni-view",{key:n},[t._v(t._s(n>=1?"-":"")+"回调")])})),1):t._e()],1)],1),i("v-uni-view",{staticClass:"u-config-wrap"},[i("v-uni-view",{staticClass:"u-button",attrs:{"hover-class":"u-button--hover","hover-stay-time":"150"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btnClick.apply(void 0,arguments)}}},[t._v("点击触发")]),i("v-uni-view",{staticClass:"u-config-title u-border-bottom"},[t._v("参数配置")]),i("v-uni-view",{staticClass:"u-config-item"},[i("v-uni-view",{staticClass:"u-item-title"},[t._v("模式")]),i("u-subsection",{attrs:{list:["节流","防抖"]},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.modeChange.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"u-config-item"},[i("v-uni-view",{staticClass:"u-item-title"},[t._v("时间间隔")]),i("u-subsection",{attrs:{current:"1",list:["500ms","1000ms","2000ms"]},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.timeoutChange.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"u-config-item"},[i("v-uni-view",{staticClass:"u-item-title"},[t._v("执行时机")]),i("u-subsection",{attrs:{list:["开始处","结束处"]},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.immediateChange.apply(void 0,arguments)}}})],1)],1)],1)},s=[]},"4d21":function(t,e,i){"use strict";i.r(e);var n=i("e380"),o=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=o.a},5214:function(t,e,i){var n=i("a2e2");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("63e8d19e",n,!0,{sourceMap:!1,shadowMode:!1})},"629f":function(t,e,i){"use strict";var n=i("5214"),o=i.n(n);o.a},"7d6f":function(t,e,i){"use strict";i.r(e);var n=i("3681"),o=i("4d21");for(var s in o)"default"!==s&&function(t){i.d(e,t,(function(){return o[t]}))}(s);i("a155");var u,r=i("f0c5"),a=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"259241fc",null,!1,n["a"],u);e["default"]=a.exports},9552:function(t,e,i){var n=i("d329");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("ac55ac34",n,!0,{sourceMap:!1,shadowMode:!1})},a155:function(t,e,i){"use strict";var n=i("9552"),o=i.n(n);o.a},a2e2:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-subsection[data-v-05edd86e]{\ndisplay:flex;flex-direction:row;\nalign-items:center;overflow:hidden;position:relative}.u-item[data-v-05edd86e]{flex:1;text-align:center;font-size:%?26?%;height:100%;\ndisplay:flex;flex-direction:row;\nalign-items:center;justify-content:center;color:#303133;padding:0 %?6?%}.u-item-bg[data-v-05edd86e]{background-color:#2979ff;position:absolute;z-index:-1}.u-none-border-right[data-v-05edd86e]{border-right:none!important}.u-item-first[data-v-05edd86e]{border-top-left-radius:%?8?%;border-bottom-left-radius:%?8?%}.u-item-last[data-v-05edd86e]{border-top-right-radius:%?8?%;border-bottom-right-radius:%?8?%}.u-item-text[data-v-05edd86e]{transition:all .35s;color: