w-ui
Version:
A Vue.js 2.0 UI Toolkit for mobile
1 lines • 27.3 kB
JavaScript
module.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=372)}({0:function(e,t){e.exports=function(e,t,n,i,o,r){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var c="function"==typeof s?s.options:s;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var u;if(r?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=u):i&&(u=i),u){var f=c.functional,p=f?c.render:c.beforeCreate;f?(c._injectStyles=u,c.render=function(e,t){return u.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,u):[u]}return{esModule:a,exports:s,options:c}}},1:function(e,t,n){"use strict";function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=o(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([r]).join("\n")}return[n].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=i(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},2:function(e,t,n){function i(e){for(var t=0;t<e.length;t++){var n=e[t],i=u[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(r(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{for(var a=[],o=0;o<n.parts.length;o++)a.push(r(n.parts[o]));u[n.id]={id:n.id,refs:1,parts:a}}}}function o(){var e=document.createElement("style");return e.type="text/css",f.appendChild(e),e}function r(e){var t,n,i=document.querySelector("style["+v+'~="'+e.id+'"]');if(i){if(d)return m;i.parentNode.removeChild(i)}if(g){var r=_++;i=p||(p=o()),t=a.bind(null,i,r,!1),n=a.bind(null,i,r,!0)}else i=o(),t=s.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}function a(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function s(e,t){var n=t.css,i=t.media,o=t.sourceMap;if(i&&e.setAttribute("media",i),h.ssrId&&e.setAttribute(v,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(3),u={},f=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,_=0,d=!1,m=function(){},h=null,v="data-vue-ssr-id",g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,o){d=n,h=o||{};var r=c(e,t);return i(r),function(t){for(var n=[],o=0;o<r.length;o++){var a=r[o],s=u[a.id];s.refs--,n.push(s)}t?(r=c(e,t),i(r)):r=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete u[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},3:function(e,t,n){"use strict";e.exports=function(e,t){for(var n=[],i={},o=0;o<t.length;o++){var r=t[o],a=r[0],s=r[1],l=r[2],c=r[3],u={id:e+":"+o,css:s,media:l,sourceMap:c};i[a]?i[a].parts.push(u):n.push(i[a]={id:a,parts:[u]})}return n}},315:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),r=i(o),a=n(376),s=i(a),l=n(5);t.default={name:"w-picker",data:function(){return{picker:null,currentValue:this.value,tmpNum:0,displayValue:""}},props:{columns:{type:Array},items:{type:Object},readonly:{type:Boolean,default:!1},value:{type:Object,default:function(){}}},watch:{columns:function(e,t){},items:function(e,t){}},methods:{open:function(){this.readonly||this.picker.open()},close:function(){this.picker.close()},removeElement:function(){this.picker&&this.picker.$el&&document.body.removeChild(this.picker.$el)},setDisplayText:function(e){var t=this,n=[];for(var i in e)!function(i){t.items[i].forEach(function(t){t.value==e[i]&&n.push(t.name)})}(i);this.displayValue=n.join(" ")},render:function(){var e=this;this.$watch("items",function(){e.removeElement();var t=r.default.extend(s.default),n=e._props;n.parentEL=e.$el,e.picker=new t({el:document.createElement("div"),data:n}),document.body.appendChild(e.picker.$el),e.picker.$on("confirm",function(t){(e.tmpNum>0||e.initEmit)&&(e.setDisplayText(t),e.currentValue=t,e.$emit("input",t)),e.tmpNum++}),e.picker.$on("change",function(t){e.$emit("change",t)})})},updateColumn:function(e){var t=this,n=this.items[e];n&&n.length>0&&this.$nextTick(function(){t.picker.scrolloToPosition(e,n,function(n){t.$emit("change",{column:e,value:n})})})}},mounted:function(){this.render(),this.setDisplayText(this.value)},beforeDestroy:function(){l.pageScroll.unlock(),this.removeElement()}}},316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(377),o=function(e){return e&&e.__esModule?e:{default:e}}(i),r=n(5);t.default={data:function(){return{values:{},show:!1,parentEL:null,scroller:[],type:"",scrolling:{},readonly:!1}},methods:{render:function(){var e=this;e.columns.forEach(function(t){var n=e.$refs["Component_"+t][0],i=e.$refs["Content_"+t][0];e.scroller[t]=new o.default(n,i,{itemHeight:38,onSelect:function(n){e.values[t]=n,e.scrolling[t]=!1,e.$emit("change",{column:t,value:n})},callback:function(n,o){o&&(e.scrolling[t]=!0),i.style.webkitTransform="translate3d(0, "+-n+"px, 0)"}}),e.scroller[t].setDimensions(n.clientHeight,i.offsetHeight,e.items[t].length),void 0!=e.value[t]&&(e.scroller[t].select(e.value[t],!1),e.$emit("change",{column:t,value:e.value[t]})),e.scrolling[t]=!1}),e.setValue()},scrolloToPosition:function(e,t,n){var i=this,o=i.scroller[e];o&&(o.setDimensions(i.$refs["Component_"+e][0].clientHeight,i.$refs["Content_"+e][0].offsetHeight,t.length),setTimeout(function(){var r=i.inDatas(t,i.values[e]),a=r?i.values[e]:t[0].value;i.scrolling[e]||o.select(a,!1),"function"==typeof n&&n(a)},0))},setValue:function(){this.currentValue=this.values,this.$emit("confirm",this.values),this.close()},inDatas:function(e,t){var n=!1;return e.forEach(function(e){e.value==t&&(n=!0)}),n},open:function(){this.readonly||(this.show=!0,r.isIOS&&(r.pageScroll.lock(),(0,r.addClass)(this.scrollView,"g-fix-ios-overflow-scrolling-bug")))},close:function(){this.show=!1,r.isIOS&&(r.pageScroll.unlock(),(0,r.removeClass)(this.scrollView,"g-fix-ios-overflow-scrolling-bug"))}},mounted:function(){this.scrollView=(0,r.getScrollview)(this.parentEL),this.$nextTick(this.render)},beforeDestroy:function(){var e=this;this.columns.forEach(function(t){e.scroller[t]=null})}}},372:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Picker=void 0;var i=n(373),o=function(e){return e&&e.__esModule?e:{default:e}}(i);t.Picker=o.default},373:function(e,t,n){"use strict";function i(e){l||n(374)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(315),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,function(){return o[e]})}(a);var s=n(380),l=!1,c=n(0),u=i,f=c(r.a,s.a,!1,u,null,null);f.options.__file="packages/picker/src/index.vue",t.default=f.exports},374:function(e,t,n){var i=n(375);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n(2)("156ae8b4",i,!1,{})},375:function(e,t,n){t=e.exports=n(1)(!1),t.push([e.i,"\n.wui-picker-mask {\n background-color: rgba(0, 0, 0, .4);\n position: fixed;\n z-index: 1502;\n bottom: 0;\n right: 0;\n left: 0;\n top: 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.wui-picker {\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 1502;\n background-color: #FFF;\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n -webkit-transition: -webkit-transform .25s;\n transition: -webkit-transform .25s;\n transition: transform .25s;\n transition: transform .25s, -webkit-transform .25s;\n -ms-touch-action: none;\n touch-action: none;\n}\n.wui-picker-active {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n.wui-picker-input {\n width: 100%;\n height: 0.6rem;\n line-height: 0.6rem;\n}\n.wui-picker-head {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n position: relative;\n background-color: #FBFBFB;\n}\n.wui-picker-head:after {\n content: '';\n position: absolute;\n z-index: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n border-bottom: 1px solid #D9D9D9;\n -webkit-transform: scaleY(0.5);\n transform: scaleY(0.5);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n.wui-picker-head > a {\n height: 43px;\n padding: 0 30px;\n font-size: 15px;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n color: #555;\n}\n.wui-picker-head > a:last-child {\n color: dodgerblue;\n}\n.wui-picker-content {\n position: relative;\n width: 100%;\n height: 266px;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.wui-picker-item {\n font-size: 16px;\n height: 100%;\n position: relative;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.wui-picker-item-content > span {\n width: 100%;\n display: block;\n height: 38px;\n line-height: 38px;\n text-align: center;\n}\n.wui-picker-item-box {\n height: 100%;\n}\n.wui-picker-shade,\n.wui-picker-indicator {\n pointer-events: none;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n}\n.wui-picker-shade {\n z-index: 3;\n -webkit-transform: translateZ(0px);\n transform: translateZ(0px);\n background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .95)), to(rgba(255, 255, 255, .6))), -webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, .95)), to(rgba(255, 255, 255, .6)));\n background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6)), -webkit-linear-gradient(bottom, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6));\n background-image: linear-gradient(to bottom, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6)), linear-gradient(to top, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6));\n background-position: top, bottom;\n background-size: 100% 114px;\n background-repeat: no-repeat;\n}\n.wui-picker-indicator {\n z-index: 4;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.wui-picker-indicator > span {\n display: block;\n width: 100%;\n height: 38px;\n position: relative;\n}\n.wui-picker-indicator > span:after {\n content: '';\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n border-top: 1px solid #D9D9D9;\n -webkit-transform: scaleY(0.5);\n transform: scaleY(0.5);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n.wui-picker-indicator > span:before {\n content: '';\n position: absolute;\n z-index: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n border-bottom: 1px solid #D9D9D9;\n -webkit-transform: scaleY(0.5);\n transform: scaleY(0.5);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n}\n",""])},376:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(316),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,function(){return i[e]})}(r);var a=n(379),s=n(0),l=s(o.a,a.a,!1,null,null,null);l.options.__file="packages/picker/src/picker.vue",t.default=l.exports},377:function(e,t,n){"use strict";var i=n(378),o=function(e,t,n){var i=this;if(e){n=n||{},i.options={onSelect:function(){},itemHeight:38};for(var o in n)void 0!==n[o]&&(i.options[o]=n[o]);i.__content=t,i.__component=e,i.__itemHeight=i.options.itemHeight;var r=window.Modernizr&&!!window.Modernizr.touch||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),a={start:r?"touchstart":"mousedown",move:r?"touchmove":"mousemove",end:r?"touchend":"mouseup"};e.addEventListener(a.start,function(e){e.target.tagName.match(/input|textarea|select/i)||(e.preventDefault(),i.__doTouchStart(e,e.timeStamp))},!1),e.addEventListener(a.move,function(e){i.__doTouchMove(e,e.timeStamp)},!1),e.addEventListener(a.end,function(e){i.__doTouchEnd(e.timeStamp)},!1)}},r={value:null,__prevValue:null,__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientTop:0,__clientHeight:0,__contentHeight:0,__itemHeight:0,__scrollTop:0,__minScrollTop:0,__maxScrollTop:0,__scheduledTop:0,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollTop:null,__maxDecelerationScrollTop:null,__decelerationVelocityY:null,setDimensions:function(e,t,n){var i=this;i.__clientHeight=e,i.__contentHeight=t;var o=Math.round(i.__clientHeight/i.__itemHeight);i.__minScrollTop=-i.__itemHeight*(o/2),i.__maxScrollTop=i.__minScrollTop+n*i.__itemHeight-.1},selectByIndex:function(e,t){var n=this;e<0||e>n.__content.childElementCount-1||(n.__scrollTop=n.__minScrollTop+e*n.__itemHeight,n.scrollTo(n.__scrollTop,t),n.__selectItem(n.__content.children[e]))},select:function(e,t){for(var n=this,i=n.__content.children,o=0,r=i.length;o<r;o++)if(i[o].dataset.value==e)return void n.selectByIndex(o,t);n.selectByIndex(0,t)},scrollTo:function(e,t){var n=this;if(t=void 0===t||t,n.__isDecelerating&&(i.stop(n.__isDecelerating),n.__isDecelerating=!1),e=Math.round(e/n.__itemHeight)*n.__itemHeight,(e=Math.max(Math.min(n.__maxScrollTop,e),n.__minScrollTop))===n.__scrollTop||!t)return n.__publish(e),void n.__scrollingComplete();n.__publish(e,250)},__selectItem:function(e){var t=this;null!==t.value&&(t.__prevValue=t.value),t.value=e.dataset.value},__scrollingComplete:function(){var e=this,t=Math.round((e.__scrollTop-e.__minScrollTop-e.__itemHeight/2)/e.__itemHeight);e.__selectItem(e.__content.children[t]),null!==e.__prevValue&&e.__prevValue!==e.value&&e.options.onSelect(e.value)},__doTouchStart:function(e,t){var n=e.touches,o=this,r=e.touches?e.touches[0]:e,a=!!e.touches;if(e.touches&&null==n.length)throw new Error("Invalid touch list: "+n);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);o.__interruptedAnimation=!0,o.__isDecelerating&&(i.stop(o.__isDecelerating),o.__isDecelerating=!1,o.__interruptedAnimation=!0),o.__isAnimating&&(i.stop(o.__isAnimating),o.__isAnimating=!1,o.__interruptedAnimation=!0);var s,l=a&&1===n.length||!a;s=l?r.pageY:Math.abs(r.pageY+n[1].pageY)/2,o.__initialTouchTop=s,o.__lastTouchTop=s,o.__lastTouchMove=t,o.__lastScale=1,o.__enableScrollY=!l,o.__isTracking=!0,o.__didDecelerationComplete=!1,o.__isDragging=!l,o.__isSingleTouch=l,o.__positions=[]},__doTouchMove:function(e,t,n){var i=this,o=e.touches,r=e.touches?e.touches[0]:e,a=!!e.touches;if(o&&null==o.length)throw new Error("Invalid touch list: "+o);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);if(i.__isTracking){var s;s=a&&2===o.length?Math.abs(r.pageY+o[1].pageY)/2:r.pageY;var l=i.__positions;if(i.__isDragging){var c=s-i.__lastTouchTop,u=i.__scrollTop;if(i.__enableScrollY){u-=c;var f=i.__minScrollTop,p=i.__maxScrollTop;(u>p||u<f)&&(u=u>p?p:f)}l.length>40&&l.splice(0,20),l.push(u,t),i.__publish(u)}else{var _=Math.abs(s-i.__initialTouchTop);i.__enableScrollY=_>=0,l.push(i.__scrollTop,t),i.__isDragging=i.__enableScrollY&&_>=5,i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchTop=s,i.__lastTouchMove=t,i.__lastScale=n}},__doTouchEnd:function(e){var t=this;if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);if(t.__isTracking){if(t.__isTracking=!1,t.__isDragging&&(t.__isDragging=!1,t.__isSingleTouch&&e-t.__lastTouchMove<=100)){for(var n=t.__positions,i=n.length-1,o=i,r=i;r>0&&n[r]>t.__lastTouchMove-100;r-=2)o=r;if(o!==i){var a=n[i]-n[o],s=t.__scrollTop-n[o-1];t.__decelerationVelocityY=s/a*(1e3/60);Math.abs(t.__decelerationVelocityY)>4&&t.__startDeceleration(e)}}t.__isDecelerating||t.scrollTo(t.__scrollTop),t.__positions.length=0}},__easeOutCubic:function(e){return Math.pow(e-1,3)+1},__easeInOutCubic:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},__publish:function(e,t){var n=this,o=n.__isAnimating;if(o&&(i.stop(o),n.__isAnimating=!1),t){n.__scheduledTop=e;var r=n.__scrollTop,a=e-r,s=function(e,t,i){n.__scrollTop=r+a*e,n.options.callback&&n.options.callback(n.__scrollTop,n.__isDragging)},l=function(e){return n.__isAnimating===e},c=function(e,t,i){t===n.__isAnimating&&(n.__isAnimating=!1),(n.__didDecelerationComplete||i)&&n.__scrollingComplete()};n.__isAnimating=i.start(s,l,c,t,o?n.__easeOutCubic:n.__easeInOutCubic)}else n.__scheduledTop=n.__scrollTop=e,n.options.callback&&n.options.callback(e,n.__isDragging)},__startDeceleration:function(e){var t=this;t.__minDecelerationScrollTop=t.__minScrollTop,t.__maxDecelerationScrollTop=t.__maxScrollTop;var n=function(e,n,i){t.__stepThroughDeceleration(i)},o=function(){var e=Math.abs(t.__decelerationVelocityY)>=.5;return e||(t.__didDecelerationComplete=!0),e},r=function(e,n,i){if(t.__isDecelerating=!1,t.__scrollTop<=t.__minScrollTop||t.__scrollTop>=t.__maxScrollTop)return void t.scrollTo(t.__scrollTop);t.__didDecelerationComplete&&t.__scrollingComplete()};t.__isDecelerating=i.start(n,o,r)},__stepThroughDeceleration:function(e){var t=this,n=t.__scrollTop+t.__decelerationVelocityY,i=Math.max(Math.min(t.__maxDecelerationScrollTop,n),t.__minDecelerationScrollTop);i!==n&&(n=i,t.__decelerationVelocityY=0),Math.abs(t.__decelerationVelocityY)<=1?Math.abs(n%t.__itemHeight)<1&&(t.__decelerationVelocityY=0):t.__decelerationVelocityY*=.95,t.__publish(n)}};for(var a in r)o.prototype[a]=r[a];e.exports=o},378:function(e,t,n){"use strict";var i=Date.now||function(){return+new Date},o={},r=1;e.exports={requestAnimationFrame:function(){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame,t=!!e;if(e&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(e.toString())&&(t=!1),t)return function(t,n){e(t,n)};var n={},i=0,o=1,r=null,a=+new Date;return function(e,t){var s=o++;return n[s]=e,i++,null===r&&(r=setInterval(function(){var e=+new Date,t=n;n={},i=0;for(var o in t)t.hasOwnProperty(o)&&(t[o](e),a=e);e-a>2500&&(clearInterval(r),r=null)},1e3/60)),s}}(),stop:function(e){var t=null!=o[e];return t&&(o[e]=null),t},isRunning:function(e){return null!=o[e]},start:function(e,t,n,a,s,l){var c=this,u=i(),f=u,p=0,_=0,d=r++;if(l||(l=document.body),d%20==0){var m={};for(var h in o)m[h]=!0;o=m}var v=function r(m){var h=!0!==m,v=i();if(!o[d]||t&&!t(d))return o[d]=null,void(n&&n(60-_/((v-u)/1e3),d,!1));if(h)for(var g=Math.round((v-f)/(1e3/60))-1,b=0;b<Math.min(g,4);b++)r(!0),_++;a&&(p=(v-u)/a)>1&&(p=1);var w=s?s(p):p;!1!==e(w,v,h)&&1!==p||!h?h&&(f=v,c.requestAnimationFrame(r,l)):(o[d]=null,n&&n(60-_/((v-u)/1e3),d,1===p||null==a))};return o[d]=!0,c.requestAnimationFrame(v,l),d}}},379:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"wui-picker-mask",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}),e._v(" "),n("div",{staticClass:"wui-picker",class:e.show?"wui-picker-active":""},[n("div",{staticClass:"wui-picker-head"},[n("a",{on:{click:function(t){return t.stopPropagation(),e.close(t)}}},[e._v("取消")]),e._v(" "),n("a",{on:{click:function(t){return t.stopPropagation(),e.setValue(t)}}},[e._v("确定")])]),e._v(" "),n("div",{staticClass:"wui-picker-content"},[e._l(e.columns,function(t,i){return n("div",{key:i,staticClass:"wui-picker-item"},[n("div",{ref:"Component_"+t,refInFor:!0,staticClass:"wui-picker-item-box"},[n("div",{ref:"Content_"+t,refInFor:!0,staticClass:"wui-picker-item-content"},e._l(e.items[t],function(t,i){return n("span",{key:i,attrs:{"data-value":t.value},domProps:{innerHTML:e._s(t.name)}})}))])])}),e._v(" "),n("div",{staticClass:"wui-picker-shade"}),e._v(" "),e._m(0)],2)])])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wui-picker-indicator"},[n("span")])}];i._withStripped=!0;var r={render:i,staticRenderFns:o};t.a=r},380:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"wui-picker-input",on:{click:function(t){return t.stopPropagation(),e.open(t)}}},[e._v(e._s(e.displayValue))])},o=[];i._withStripped=!0;var r={render:i,staticRenderFns:o};t.a=r},4:function(e,t){e.exports=require("vue")},5:function(e,t,n){"use strict";function i(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function o(e,t){if(e){for(var n=e.className,o=(t||"").split(" "),r=0,a=o.length;r<a;r++){var s=o[r];s&&(e.classList?e.classList.add(s):i(e,s)||(n+=" "+s))}e.classList||(e.className=n)}}function r(e,t){if(e&&t){for(var n=t.split(" "),o=" "+e.className+" ",r=0,a=n.length;r<a;r++){var s=n[r];s&&(e.classList?e.classList.remove(s):i(e,s)&&(o=o.replace(" "+s+" "," ")))}e.classList||(e.className=b(o))}}function a(e,t,n){if(e&&t)if("object"===(void 0===t?"undefined":f(t)))for(var i in t)t.hasOwnProperty(i)&&a(e,i,t[i]);else t=w(t),"opacity"===t&&v<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}function s(e){for(var t=e;t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&1===t.nodeType;){var n=document.defaultView.getComputedStyle(t).overflowY;if("scroll"===n||"auto"===n)return t;t=t.parentNode}return window}function l(e,t){var n=e==window?document.body.offsetHeight:e.offsetHeight,i=e===window?0:e.getBoundingClientRect().top,o=t.getBoundingClientRect().top-i,r=o+t.offsetHeight;return o>=0&&o<n||r>0&&r<=n}function c(e){function t(n,i,o){if(n!==i){var r=n+o>i?i:n+o;n>i&&(r=n-o<i?i:n-o),e===window?window.scrollTo(r,r):e.scrollTop=r,window.requestAnimationFrame(function(){return t(r,i,o)})}}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)});var r=Math.abs(n-i);t(n,i,Math.ceil(r/o*50))}function u(){return++g}Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=t.isArray=t.isDate=t.isFunction=t.isNumber=t.isString=t.isBoolean=t.pageScroll=t.isIOS=t.getStyle=t.once=t.off=t.on=void 0;var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=i,t.addClass=o,t.removeClass=r,t.setStyle=a,t.getScrollview=s,t.checkInview=l,t.scrollTop=c,t.getZIndex=u;var p=n(4),_=function(e){return e&&e.__esModule?e:{default:e}}(p),d=_.default.prototype.$isServer,m=/([\:\-\_]+(.))/g,h=/^moz([A-Z])/,v=d?0:Number(document.documentMode),g=1e4,b=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},w=function(e){return e.replace(m,function(e,t,n,i){return i?n.toUpperCase():n}).replace(h,"Moz$1")},y=t.on=function(){return!d&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),k=t.off=function(){return!d&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){y(e,t,function i(){n&&n.apply(this,arguments),k(e,t,i)})},t.getStyle=v<9?function(e,t){if(!d){if(!e||!t)return null;t=w(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!d){if(!e||!t)return null;t=w(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}},t.isIOS=!!(window.navigator&&window.navigator.userAgent||"").match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),t.pageScroll=function(){var e=function(e){e.preventDefault(),e.stopPropagation()},t=!1;return{lock:function(n){t||(t=!0,(n||document).addEventListener("touchmove",e))},unlock:function(n){t=!1,(n||document).removeEventListener("touchmove",e)}}}(),t.isBoolean=function(e){return"boolean"==typeof e},t.isString=function(e){return"string"==typeof e},t.isNumber=function(e){return"number"==typeof e},t.isFunction=function(e){return"function"==typeof e},t.isDate=function(e){return"date"===Object.prototype.toString.call(e).match(/^(\[object )(\w+)\]$/i)[2].toLowerCase()},t.isArray=Array.isArray,t.isObject=function(e){return"object"===(void 0===e?"undefined":f(e))}}});