UNPKG

nimble-ui

Version:
1 lines 25.5 kB
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="puu/")}({"/GK1":function(t,e,n){"use strict";var o=n("shrL");e.a=o.a},"0Zk/":function(t,e,n){"use strict";e.a=function(t,e){return Object(o.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var o=n("lXuC")},"4TYt":function(t,e,n){"use strict";var o=n("Krqh");e.a=o.a},"4qRk":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",o=e.component(n);o||e.component(n,t)});return t}},"5fCB":function(t,e,n){"use strict";var o=n("E5mE"),i=n("eY/N");e.a=function t(){for(var e=!0,n=void 0,r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];if(s instanceof Array&&(n=s.slice(0,1)[0]),"boolean"==typeof n&&(e=n,s.splice(0,1),e||(n=s.splice(0,1)[0])),s&&s.length<1)return"boolean"==typeof n?s[1]:n;e&&(n=null);for(var c=0;c<s.length;c++){var u=s[c];if(u instanceof Object)if(e){for(var l in n&&n instanceof Object||(n=u instanceof Array?[]:{}),u)if(u.hasOwnProperty(l)){var f=u[l];if(p(f)){var h=p(n[l])&&n[l]||(f instanceof Array?[]:{});n[l]=t(h,f)}else void 0!==f?n[l]=f:void 0!==n[l]&&(n[l]=f)}}else n=n&&n instanceof Object?Object.assign(n,u):u}return n;function p(t){return t&&(Object(o.a)(t,"Array")||Object(i.a)(t))||!1}}},"B/FW":function(t,e){},BOJz:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={extends:n("ho/f").a,name:"NuTag",props:{nameText:{type:[String,Number],default:"标签"},styleName:{type:String,default:""}}},i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_tag",class:[t.styleName&&"nu_tag-"+t.styleName||""],on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[n("span",{staticClass:"nu_tag",attrs:{"data-text":t.nameText||t.text}})])},staticRenderFns:[]};var r=n("VU/8")(o,i,!1,function(t){n("HNS/")},null,null).exports,s=n("4qRk");e.default=Object(s.a)(r)},E5mE:function(t,e,n){"use strict";e.a=function(t,e){var n=!1;try{n=Object.prototype.toString.call(t)==="[object "+e+"]"}catch(t){}return n}},EGiU:function(t,e,n){"use strict";var o={extends:n("Lv3q").a},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},FMyl:function(t,e,n){"use strict";var o={extends:n("ho/f").a,props:{nameText:{default:""}}},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},FNmr:function(t,e,n){"use strict";e.a=function(t,e){var n="";if(t&&e)if(e.name){var i="$s"+(n=Object(o.a)(e.name));t.prototype&&!t.prototype[i]&&function(t,e,n){if(t&&e&&n){t[n]=e;try{Object.defineProperty(t,n,{get:function(){var t=this;return e._getParent=function(){return t},e},enumerable:!1,configurable:!1})}catch(t){}}}(t.prototype,e,i)}else console.error("Mount is not defined for the image name");return n};var o=n("0Zk/")},"HNS/":function(t,e){},I3JS:function(t,e,n){"use strict";var o,i=n("qd2b"),r=n("Krqh"),s=n("fk+x"),a=n("MEnT");!function(t){t.ITEM_MOVE="itemmove"}(o||(o={}));var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return o.name="NavIndex",o._maxHeight=0,o._minHeight=0,o._offsetList=null,o.refresh(),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.refresh=function(t){this._maxHeight=0,this._minHeight=0,this._offsetList=t&&this._initListOffset(t,!0)||null},e.prototype.getItem=function(t,e){return(this._initListOffset(e)||[])[t]||{}},e.prototype.getScrollTop=function(t){var e=this._initListOffset(t),n=e&&e[0],o=0,i=void 0;if(n){var r=n.el,c=this._isFixed;for(void 0===c&&(c=r&&r.offsetParent&&"fixed"===Object(s.a)(r.offsetParent,"position")||!1),this._isFixed=c,c&&(r=document.body);r;)o+=(r=Object(a.a)(r))&&(r.scrollTop||r.scrollY||0)||0,i=r,r=r.parentNode;o=(c?0-o:o)||0}return{scrollTop:o,el:i,isFixed:!!this._isFixed}},e.prototype.getIndex=function(t,e){t=t||0;var n=this._initListOffset(e)||[],i=n[0]||{},r=i&&i.top||0,s=n.length||0,a=this._getRegion(t-r,this._minHeight,this._maxHeight),c=Math.min(Math.max(s,1),a.endIndex),u=Math.max(0,Math.min(a.startIndex,c-1)),l=this._calcIndex(u,c-1,t,n);null===l&&(n[0]&&(n[0].bottom||0)>=t?l=0:n[s-1]&&(n[s-1].bottom||0)<=t&&(l=s-1));var f=n&&n[l||0];if(f){var h=(f.bottom||0)-t,p=(f.top||0)-t;this.$emit(o.ITEM_MOVE,{index:l,top:Math.min(p,0),bottom:Math.max(h,0)})}return l||0},e.prototype._initListOffset=function(t,e){var n=this._offsetList;return!e&&n&&n.length?n:(n=t&&this._getListOffset(t)||null,this._offsetList=n,n)},e.prototype._getListOffset=function(t){var e=this,n=t||[],o=[];return n&&n.length&&n.forEach(function(t,n){var i=t.$el||t,s={};if(i){var a=i.offsetHeight,c=0;s={top:c=0===n?Object(r.a)(i):o[n-1].bottom||0,height:a,bottom:c+a,el:i}}s.height&&((e._maxHeight||0)<s.height&&(e._maxHeight=s.height),(!e._minHeight||e._minHeight>s.height)&&(e._minHeight=s.height)),o.push(s)}),o},e.prototype._getRegion=function(t,e,n){e=e||1,n=n||1,t=t||0;var o=Math.floor(t/n-.5),i=Math.ceil(t/e+.5);return{startIndex:Math.max(Math.min(o,i-1),0),endIndex:Math.max(i,1)}},e.prototype._calcIndex=function(t,e,n,o){var i=null,r=Math.ceil((e-t)/2);if(e>=t&&e>=0&&t>=0&&o&&o.length)if(r>1){var s=t+r,a=o[s];a.top<=n&&a.bottom>n?i=s:a.top>n&&o[t].top<=n?i=o[t].bottom>n?t:this._calcIndex(t,s-1,n,o):a.bottom<=n&&o[e].bottom>n&&(i=o[e].top<=n?e:this._calcIndex(s+1,e-1,n,o))}else if(r>=0)for(var c=t;c<=e;c++){var u=o[c];if(u.top<=n&&u.bottom>n){i=c;break}}return i},e}(i.a);e.a=function(t){return c.instance(t)}},ImqO:function(t,e,n){"use strict";var o=function(){var t=!1;if("undefined"==typeof window)return t;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",function(){},e)}catch(t){}return t}();e.a=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"add",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=r;"remove"!==i&&(r instanceof Object||!o||(s={capture:r,passive:!0}));e instanceof Array?e.forEach(function(t){a(t)}):a(e);function a(e){e&&t&&t[i+"EventListener"](e,n,s)}}},IwUv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("aPLb"),i=n("BOJz"),r={extends:o.a,name:"NuLoadingc",components:{NuTag:i.default}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_loadingc",on:{click:t._onClick,tap:t._onTap}},[n("div",{staticClass:"nu_loading-icon",style:{width:t.mySize}},[n("div",{staticClass:"nu_loading"},[n("div",{staticClass:"nu_loading-cont"},[t._t("default",[n("svg",{attrs:{viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"}},[n("defs",[n("line",{attrs:{id:t.fillId,x1:"60",x2:"60",y1:"7",y2:"27",stroke:"currentcolor","stroke-width":"8%","stroke-linecap":"round"}})]),t._v(" "),n("g",t._l(12,function(e,o){return n("use",{key:o,attrs:{"xlink:href":"#"+t.fillId,opacity:Math.min(.27+(o<4?0:.13*(o-4)),1),transform:"rotate("+30*o+" 60,60)"}})}))])])],2)])]),t._v(" "),t.nameText?n("nu-tag",{staticClass:"nu_loading-text",attrs:{nameText:t.nameText}}):t._e()],1)},staticRenderFns:[]};var a=n("VU/8")(r,s,!1,function(t){n("vcB0")},null,null).exports,c=n("4qRk");e.default=Object(c.a)(a)},Krqh:function(t,e,n){"use strict";e.a=function(t){var e=t.offsetTop;t=t.offsetParent;for(;null!=t;)e+=t.offsetTop,t=t.offsetParent;return e}},Lv3q:function(t,e,n){"use strict";n("B/FW");var o=n("VU/8")({methods:{_onClick:function(t){this.$emit("click",t)},_onTap:function(t){this.$emit("tap",t)},_onClickItem:function(t){this.$emit("clickItem",t)}}},null,!1,null,null,null);e.a=o.exports},MEnT:function(t,e,n){"use strict";e.a=function(t){if("undefined"==typeof HTMLElement||!(t instanceof HTMLElement))return window;var e=t;for(;e&&e!==document.body&&e!==document.documentElement;){if(e!==t){if(e._isScroll)return e;if(!e.parentNode)break;if(!1!==e._isScroll){if(/(scroll|auto)/.test(i(e)))return e._isScroll=!0,e;e._isScroll=!1}}e=e.parentNode}return window};var o=n("fk+x");function i(t){return Object(o.a)(t,"overflow")+Object(o.a)(t,"overflow-y")+Object(o.a)(t,"overflow-x")}},MR0z:function(t,e){},"VU/8":function(t,e){t.exports=function(t,e,n,o,i,r){var s,a=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(s=t,a=t.default);var u,l="function"==typeof a?a.options:a;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i),r?(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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=u):o&&(u=o),u){var f=l.functional,h=f?l.render:l.beforeCreate;f?(l._injectStyles=u,l.render=function(t,e){return u.call(e),h(t,e)}):l.beforeCreate=h?[].concat(h,u):[u]}return{esModule:s,exports:a,options:l}}},XAAj:function(t,e,n){"use strict";e.a=function(t){var e=document.createEvent("undefined"!=typeof MouseEvent?"MouseEvents":"Event");return e.initEvent(t,!0,!1),e}},YjC1:function(t,e,n){"use strict";var o=n("ImqO");e.a=o.a},Z05q:function(t,e,n){"use strict";e.a=function(t,e,n){if(t&&(t.tagName||t===window||t===document)&&e&&"string"==typeof e){var r=Object(o.a)(e);r._constructed=!0,r=Object(i.a)(!1,r,n),t.dispatchEvent(r)}};var o=n("XAAj"),i=n("5fCB")},aPLb:function(t,e,n){"use strict";var o=n("fnCA").a,i={extends:n("ho/f").a,props:{size:{type:[String,Number]},nameText:{type:String}},data:function(){return{}},computed:{mySize:function(){var t=this.size;return("number"==typeof t||/\d\s*$/.test(t+""))&&(t=100*t+"%"),t},fillId:function(){return"_line-"+o()+"_"}}},r=n("VU/8")(i,null,!1,null,null,null);e.a=r.exports},dLC9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={extends:n("FMyl").a,name:"NuTextl"},i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_textl",on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[n("div",{staticClass:"nu_textline"}),t._v(" "),n("div",{staticClass:"nu_textwrap"},[n("span",{staticClass:"nu_textwrap-text"},[t._t("default",[t._v("\n "+t._s(t.nameText)+"\n ")])],2)]),t._v(" "),n("div",{staticClass:"nu_textline"})])},staticRenderFns:[]};var r=n("VU/8")(o,i,!1,function(t){n("vBBd")},null,null).exports,s=n("4qRk");e.default=Object(s.a)(r)},"eY/N":function(t,e,n){"use strict";e.a=function(t){if(!Object(o.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=i.call(e,"constructor")&&e.constructor;return"function"==typeof n&&i.toString.call(n)===i.toString.call(Object)};var o=n("E5mE"),i=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var o=n("zagf");e.a=o.a},"fk+x":function(t,e,n){"use strict";e.a=function(t,e){return("undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e])||""}},fnCA:function(t,e,n){"use strict";e.a=function(){return i()};var o,i=(o=function(){for(var t=(new Date).getTime(),e=0;t===(new Date).getTime();)e++;return t.toString(16)+e.toString(16)},function(){var t=window.screen||{},e=t.height*t.width||0,n="";n=e&&/\d{5,}/.test(e+"")?e.toString(16):(31242*Math.random()+"").replace(".","").slice(0,8);var i=o()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var t=navigator.userAgent,e=void 0,n=void 0,o=[],i=0;function r(t,e){var n=void 0,i=0;for(n=0;n<e.length;n++)i|=o[n]<<8*n;return t^i}for(e=0;e<t.length;e++)n=t.charCodeAt(e),o.unshift(255&n),o.length>=4&&(i=r(i,o),o=[]);return o.length>0&&(i=r(i,o)),i.toString(16)}()+"-"+n+"-"+o();return i||[Math.random(),Math.random(),Math.random()].join("").slice(2,15)})},"ho/f":function(t,e,n){"use strict";var o={extends:n("Lv3q").a},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},lXuC:function(t,e,n){"use strict";e.a=function(t,e){var n="("+(e||"_|-")+")";return t=(t=(t=(t+"").replace(new RegExp(n+"?(?:(?:[A-Z]{2,}[A-Z]"+n+"*$)|(?:[A-Z]{2,}(?=[A-Z])))","g"),function(t){return(((e||"")+"").split("|")[0]||"-")+(t=t.replace(new RegExp(n),"")).toLowerCase()})).replace(new RegExp("(?:^"+n+"?([a-z]))|(?:"+n+"$)","gi"),function(t,e,n){return(n||"").toLowerCase()})).replace(new RegExp(n+"([a-z])","gi"),function(t,e,n){return(n||"").toUpperCase()})}},"puu/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("/GK1"),i="0",r="1",s="2",a="3",c="update:state",u="scroll",l="init",f={touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,mouseleave:2},h=(Object(o.a)("transform"),Object(o.a)("transitionTimingFunction"),Object(o.a)("transitionDuration"),n("ekq3")),p=n("xp1T"),d=n("4TYt"),v=n("I3JS"),m=n("IwUv"),_=n("EGiU"),g=n("dLC9"),y={extends:_.a,components:{NuLoadingc:m.default,NuTextl:g.default},props:{isSupport:{type:Boolean|Object,default:!0},state:{type:String,default:i},moreText:{type:String,default:"load more"},noMoreText:{type:String,default:"No more data"}},computed:{isLoading:function(){return this.state==r},myNameText:function(){var t=void 0;switch(this.state){case a:t=this.noMoreText;break;case s:case i:t=this.moreText}return t||""}}},x={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isSupport?n("div",{staticClass:"nus_pullupload"},[t.isLoading?n("div",{staticClass:"nu_after-trigger"},[t._t("hook_loading",[n("nu-loadingc",{attrs:{size:"20px"}})])],2):n("div",{staticClass:"nu_before-trigger"},[t._t("hook_loadText",[n("nu-textl",{attrs:{nameText:t.myNameText}})],{nameText:t.myNameText,state:t.state})],2)]):t._e()},staticRenderFns:[]};var b=n("VU/8")(y,x,!1,function(t){n("ql//")},null,null).exports,O={extends:_.a,methods:{_getScrollTop:function(t){return t===window?Math.max(window.pageYOffset||0,document.documentElement.scrollTop):t&&t.scrollTop||0},_getVisibleHeight:function(t){return t===window?document.documentElement.clientHeight:t&&t.clientHeight||0},_getScrollHeight:function(t){return t===window?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight):t&&t.scrollHeight||0}}},T=n("VU/8")(O,null,!1,null,null,null).exports;var w=n("YjC1"),L={extends:T,props:{list:{type:Array},moreText:{type:String,default:"load more"},noMoreText:{type:String,default:"No more data"},pullUpLoad:{type:Boolean|Object,default:function(){return{threshold:90}}},state:{type:String,default:i},offset:{type:Number,default:6},filterItem:{type:Function}},data:function(){return{myState:this.state||i,myList:[]}},watch:{state:function(t){this.myState=t},myState:function(t){this.$emit(c,t)}},methods:{isNotEventHandler:function(){var t=!1,e=(this.wrapDom.offsetHeight||"")+"",n=(this.scrollOffsetH||"")+"";return e&&"0"!==e&&n&&"0"!==n?this.wrapDom&&e&&"0"!==e&&n&&"0"!==n&&(t=this.wrapDom.offsetHeight>this.scrollOffsetH):t=!0,t},_isPullUpLoad:function(){var t=!0;return this.myState!=r&&this.myState!=a&&this.pullUpLoad||(t=!1),t},_initEventListener:function(t){t=t?"add":"remove",Object(w.a)(this.wrapDom,["mousedown","touchstart"],this._onStart,t),Object(w.a)(this.wrapDom,["mousemove","touchmove"],this._onMove,t),Object(w.a)(this.wrapDom,["mouseup","touchend"],this._onEnd,t)},_onStart:function(t){var e=f[t.type];if(2===e&&"0"!==function(t){var e=void 0;if(t){var n=t.button+"";if(document.implementation.hasFeature("MouseEvents","2.0"))e=n;else switch(n){case"0":case"1":case"3":case"5":case"7":e="0";break;case"2":case"6":e="2";break;case"4":e="1"}}return e}(t))return;if(!this.initiated||this.initiated===e){this.initiated=e,this.y=0;var n=t.touches?t.touches[0]:t;this.pointY=n.pageY}},_onMove:function(t){var e=f[t.type];if(this.initiated===e){var n=t.touches?t.touches[0]:t,o=n.pageY-this.pointY;this.pointY=n.pageY;var i=this.y+o,s=Math.abs(i);i<=0&&(s>20&&this._isPullUpLoad()?(this.initiated=!1,this.myState=r):this.y=i)}},_onEnd:function(t){var e=f[t.type];this.initiated===e&&(this.initiated=!1)},_click:function(t,e){t={Event:t,data:e},this._onClick(t),this._onClickItem(t)},_tap:function(t,e){t={Event:t,data:e},this._onTap(t),this._onClickItem(t)}}},j={};function C(t,e){return!t||t.length<=0||!e||e.length<=0?t:t.filter(function(t){return e.indexOf(t)<0})}var E={extends:n("VU/8")(L,null,!1,null,null,null).exports,name:"nu-scroll",components:{PullUpLoad:b},data:function(){return{hasCont:!1,isLoadTextSlot:!1}},mounted:function(){this._initCom()},updated:function(){var t=this;t._isSlotTemplate()&&t.$nextTick(function(){t.scrollOffsetH=t._getVisibleHeight(t.scrollDom),t.isNotEventHandler()&&t._initEventListener(!1)}),t._isCont()},beforeDestroy:function(){this.pullUpLoad&&this._removeHandler()},watch:{list:function(){this._filterList()},myList:function(){var t=this;t.$nextTick(function(){t.scrollOffsetH=t._getVisibleHeight(t.scrollDom),t.isNotEventHandler()&&t._initEventListener(!1),t._isCont()})},hasCont:function(t){t||this._refresh()}},methods:{_initCom:function(){var t=this;t.$nextTick(function(){t.gIndexList=Object(v.a)(),t.wrapDom=t.$refs.hook_wrap,t.scrollDom=Object(p.a)(t.wrapDom),t.scrollDom&&t.scrollDom.addEventListener("scroll",t._checkPullUpLoad),t.distance=t.pullUpLoad&&t.pullUpLoad.threshold||0,setTimeout(function(){t.scrollOffsetH=t._getVisibleHeight(t.scrollDom),t.isNotEventHandler()||t._initEventListener(!0)},100),t.isLoadTextSlot=void 0!==t.$scopedSlots.hook_loadText,t._refresh(),t._filterList(),t._isCont(),t.$emit(l,{el:t.scrollDom})})},_refresh:function(){this.tempScrollTop=0,this.activeIndex=0,this.itemNum=0},_checkPullUpLoad:function(t){this.$emit(u,t);var e=this.scrollDom,n=this._getScrollTop(e);if(this._isPullUpLoad()&&!(Math.abs(n-this.tempScrollTop)<10)){this.scrollOffsetH=this._getVisibleHeight(this.scrollDom),this.tempScrollTop=n;var o=n+this.scrollOffsetH,i=this._getScrollHeight(e);o+this.distance>=i&&(this.myState=r),this._isSlotTemplate()||this._replaceDom(n)}},_replaceDom:function(t){var e=this,n=e.activeIndex,o=e.gIndexList.getIndex(t+(Object(d.a)(e.$el)||0)+e.scrollOffsetH/2),i=s(n),r=s(o);function s(t){var n=[];t=t||0;for(var o=e.offset||2,i=Math.max(t-o,1),r=Math.min(t+o,e.myList.length-1),s=i;s<=r;s++)n.push(s);return n}function a(t,n){var o=e.myList||[];t&&t.length>0&&t.forEach(function(t){var i=o[t];if(i){var r=i.dom,s=i.el;if(n){var a=e.gIndexList.getItem(t);s=function(t,e){var n=j[t=t||"div"]=j[t]||document.createElement(t);n=n.cloneNode();var o=e||{};return i(o.attrs,function(t,e){n.setAttribute(t,e||"")}),i(o.styles,function(t,e){n.style[t]=e}),n;function i(t,e){if(t)for(var n in t)t.hasOwnProperty(n)&&Object(h.a)(e,[n,t[n]],null)}}("div",{styles:{height:(a&&a.height)+"px"},attrs:{class:"nu_scroll-group nu_group-container"}}),i.el=s,r.replaceWith(s)}else s&&(s.replaceWith(r),i.el=null);e.gIndexList.refresh(e.$refs.hook_groups.querySelectorAll(".nu_scroll-group"))}})}a(C(i,r),!0),a(C(r,i),!1),e.activeIndex=o},_filterList:function(){var t=this,e=this,n=e.itemNum||0,o=e.list;if(o&&o.length>0&&!e._isSlotTemplate()){if(o.length===n)return;e.myList.push({list:o.slice(n)}),e.itemNum=o.length,e.$nextTick(function(){var n=e.$refs.hook_groups,o=n&&n.querySelectorAll(".nu_scroll-group");t.gIndexList&&t.gIndexList.refresh(o);var i=e.myList.length;if(o){var r=o[i-1];Object.assign(e.myList[i-1],{dom:r})}})}else e.myList=[]},_isSlotTemplate:function(){return void 0!==this.$slots.default},_getText:function(t){var e=void 0;t?void 0===(e=Object(h.a)(this.filterItem,[t],this))&&(e=(0===t.text?"0":t.text)||t):e="";return e},_filterItem:function(t,e){return Object(h.a)(this.filterItem||t,[t,e])||t},_isCont:function(){var t=this,e=this;e.$nextTick(function(){setTimeout(function(){e.hasCont=e._isSlotTemplate()||e.myList&&e.myList.length>0||void 0!==t.$slots.hook_cont})})},_removeHandler:function(){this.scrollDom&&this.scrollDom.removeEventListener("scroll",this._checkPullUpLoad),this._initEventListener(!1)}}},S={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.hasCont,expression:"hasCont"}],staticClass:"nus_scroll"},[n("div",{ref:"hook_scrollDom",staticClass:"nu_scroll-cont"},[n("div",{ref:"hook_wrap",staticClass:"nu_scroll-wrap"},[t._t("hook_cont"),t._v(" "),t._t("default",[n("div",{ref:"hook_groups",staticClass:"nu_scroll-groups"},t._l(t.myList,function(e,o){return n("div",{key:o,staticClass:"nu_scroll-group"},[t._t("hook_group",[t._l(e.list,function(o,i){return[e&&e.list&&e.list.length>0?n("div",{key:i,staticClass:"nu_scroll-item",on:{click:function(e){t._click(e,o)},tap:function(e){t._tap(e,o)}}},[t._t("hook_item",[n("span",{staticClass:"nu_scroll-text"},[t._v("\n "+t._s(t._getText(o))+"\n ")])],{itemData:o,myItemData:t._filterItem(o,i),index:i})],2):t._e()]})],{list:e.list})],2)}))])],2),t._v(" "),t._t("hook_pullUp",[n("pull-up-load",{attrs:{isSupport:t.pullUpLoad,state:t.myState,moreText:t.moreText,noMoreText:t.noMoreText},scopedSlots:t._u([{key:"hook_loadText",fn:function(e){var n=e.nameText;return t.isLoadTextSlot?[t._t("hook_loadText",null,{nameText:n,state:t.state})]:void 0}}])},[n("template",{slot:"hook_loading"},[t._t("hook_loading")],2)],2)],{pullUpLoad:t.pullUpLoad,state:t.myState})],2)])},staticRenderFns:[]};var k=n("VU/8")(E,S,!1,function(t){n("MR0z")},null,null).exports,M=n("4qRk");e.default=Object(M.a)(k)},qd2b:function(t,e,n){"use strict";var o=n("5fCB"),i=n("Z05q"),r=n("zagf");var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={}}return t.prototype.$dispatchEvent=function(t,e,n){return Object(i.a)(t,e,n)},t.prototype.$on=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push([e,n])},t.prototype.$once=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,o=this,i=!1,r=function r(){o.$off(t,r),i||(i=!0,e.apply(n,arguments))};r.fn=e,o.$on(t,r)},t.prototype.$off=function(t,e){var n=this._events&&this._events[t];if(n)for(var o=n.length;o--;)(n[o][0]===e||n[o][0]&&n[o][0].fn===e)&&(n[o][0]=void 0)},t.prototype.$emit=function(t){var e=this._events&&this._events[t];if(e){for(var n=e.length,o=[].concat(e),i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];for(var c=0;c<n;c++){var u=o[c],l=u[0],f=u[1];Object(r.a)(l,s,f)}}},t}(),a=n("FNmr");n.d(e,"a",function(){return c});var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return o.name="",o.defaultOption={},o.setDefaultOptions(!0,n),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.singleton=function(t){var e=this._singleton||this.instance(t);return this._singleton=e,e},e.instance=function(t){return new this(t)},e.install=function(t,e){var n=this.instance(e);return t&&t.use instanceof Function&&t.use(n,e),n},e.prototype.getParent=function(){return Object(r.a)(this._getParent||this._vue&&this._vue.prototype||null,[],this)},e.prototype.install=function(t,e){this._vue=this._vue||t;var n=Object(a.a)(t,this);return this.setDefaultOptions(e&&n&&e[n]||e),this},e.prototype.setDefaultOptions=function(t){var e=void 0,n=!0;"boolean"==typeof t?(n=t,e=arguments[1]||{}):e=t,e&&(this.defaultOption=Object(o.a)(n,this.defaultOption||{},e))},e.prototype.getOptions=function(){for(var t=[{},this.defaultOption||{}],e=!0,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return"boolean"==typeof i[0]&&(e=i[0],i.splice(0,1)),i&&i.length>0&&(t=t.concat(i)),o.a.apply(void 0,[e].concat(t))},e.prototype.preload=function(){var t=this;return new Promise(function(e,n){e(t)})},e}(s)},"ql//":function(t,e){},shrL:function(t,e,n){"use strict";e.a=function(t,e){if(t=Object(o.a)(((t||"")+"").replace(/\s+/g,"")),!e&&a[t])return a[t];if(!e&&t in r)return t;for(var n=Object(i.a)(t),c=0;c<s.length;c++){var u=s[c],l=u+n;if(l in r)return s=[u],a[t]=l,e?u:l}return e?"":t};var o=n("lXuC"),i=n("0Zk/"),r=document.createElement("div").style,s=["Moz","webkit","O","ms"],a={}},vBBd:function(t,e){},vcB0:function(t,e){},xp1T:function(t,e,n){"use strict";var o=n("MEnT");e.a=o.a},zagf:function(t,e,n){"use strict";e.a=function(t,e,n){var o=t;t instanceof Function&&(o=t.apply(n,e));return o}}});