sums-components
Advanced tools
Comparing version 0.6.11 to 0.6.12
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=52)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,i,u,a){var c,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),u?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},s._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(e,t){return c.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:s}}n.d(t,"a",(function(){return r}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},10:function(e,t){e.exports=require("core-js/library/fn/promise")},15:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},2:function(e,t,n){e.exports=n(10)},22:function(e,t,n){"use strict";(function(e){n(9);var r,o=n(3),i=(n(15),n(27)),u=n.n(i),a=n(28),c=n.n(a);t.a={name:"s-advertisement",props:{wxappId:{type:[Number,String],required:!0,default:e.env.VUE_APP_APP_ID},isDevelopment:{type:Boolean,default:!1}},data:function(){return{list:[]}},mounted:(r=Object(o.a)(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="https://agent-pro.mgmtdecoder.com/api/v2/GetProductReportBanner",this.isDevelopment&&(t="http://agent-pro-final.8geek.com/api/v2/GetProductReportBanner"),e.next=4,c.a.get(t,{params:{host:1,wxapp_id:this.wxappId}});case 4:if(n=e.sent,!(r=n.data).error){e.next=9;break}return this.$toast(r.desc),e.abrupt("return");case 9:this.list=r.data.list;case 10:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)}),methods:{handleClick:function(e){var t=JSON.parse(localStorage.getItem("relation"));window.location.href="".concat(e.host,"?").concat(u.a.stringify(t))}}}}).call(this,n(34))},27:function(e,t){e.exports=require("qs")},28:function(e,t){e.exports=require("axios")},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(2),o=n.n(r);function i(e,t,n,r,i,u,a){try{var c=e[u](a),s=c.value}catch(e){return void n(e)}c.done?t(s):o.a.resolve(s).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new o.a((function(r,o){var u=e.apply(t,n);function a(e){i(u,r,o,a,c,"next",e)}function c(e){i(u,r,o,a,c,"throw",e)}a(void 0)}))}}},34:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var c,s=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=a(p);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f<t;)c&&c[f].run();f=-1,t=s.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||l||a(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},52:function(e,t,n){"use strict";n.r(t);n(1);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"s-recommend"},e._l(e.list,(function(t){return n("div",{key:t.wxapp_id,staticClass:"s-recommend-item"},[n("img",{staticClass:"s-recommend-item-banner",attrs:{src:t.banner_report,alt:""},on:{click:function(n){return e.handleClick(t)}}})])})),0)};r._withStripped=!0;var o=n(22).a,i=n(0),u=Object(i.a)(o,r,[],!1,null,null,null);u.options.__file="packages/advertisement/main.vue";var a=u.exports;a.install=function(e){e.component(a.name,a)};t.default=a},9:function(e,t){e.exports=require("regenerator-runtime/runtime")}}); | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=53)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,i,u,a){var c,s="function"==typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),u?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},s._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(e,t){return c.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:s}}n.d(t,"a",(function(){return r}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},10:function(e,t){e.exports=require("core-js/library/fn/promise")},14:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},2:function(e,t,n){e.exports=n(10)},22:function(e,t,n){"use strict";(function(e){n(9);var r,o=n(3),i=(n(14),n(27)),u=n.n(i),a=n(28),c=n.n(a);t.a={name:"s-advertisement",props:{wxappId:{type:[Number,String],required:!0,default:e.env.VUE_APP_APP_ID},isDevelopment:{type:Boolean,default:!1}},data:function(){return{list:[]}},mounted:(r=Object(o.a)(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="https://agent-pro.mgmtdecoder.com/api/v2/GetProductReportBanner",this.isDevelopment&&(t="http://agent-pro-final.8geek.com/api/v2/GetProductReportBanner"),e.next=4,c.a.get(t,{params:{host:1,wxapp_id:this.wxappId}});case 4:if(n=e.sent,!(r=n.data).error){e.next=9;break}return this.$toast(r.desc),e.abrupt("return");case 9:this.list=r.data.list;case 10:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)}),methods:{handleClick:function(e){var t=JSON.parse(localStorage.getItem("relation"));window.location.href="".concat(e.host,"?").concat(u.a.stringify(t))}}}}).call(this,n(34))},27:function(e,t){e.exports=require("qs")},28:function(e,t){e.exports=require("axios")},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(2),o=n.n(r);function i(e,t,n,r,i,u,a){try{var c=e[u](a),s=c.value}catch(e){return void n(e)}c.done?t(s):o.a.resolve(s).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new o.a((function(r,o){var u=e.apply(t,n);function a(e){i(u,r,o,a,c,"next",e)}function c(e){i(u,r,o,a,c,"throw",e)}a(void 0)}))}}},34:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var c,s=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=a(p);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f<t;)c&&c[f].run();f=-1,t=s.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||l||a(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},53:function(e,t,n){"use strict";n.r(t);n(1);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"s-recommend"},e._l(e.list,(function(t){return n("div",{key:t.wxapp_id,staticClass:"s-recommend-item"},[n("img",{staticClass:"s-recommend-item-banner",attrs:{src:t.banner_report,alt:""},on:{click:function(n){return e.handleClick(t)}}})])})),0)};r._withStripped=!0;var o=n(22).a,i=n(0),u=Object(i.a)(o,r,[],!1,null,null,null);u.options.__file="packages/advertisement/main.vue";var a=u.exports;a.install=function(e){e.component(a.name,a)};t.default=a},9:function(e,t){e.exports=require("regenerator-runtime/runtime")}}); |
@@ -1,1 +0,1 @@ | ||
module.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=51)}([function(t,e,i){"use strict";function n(t,e,i,n,s,r,o,a){var h,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(h=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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):s&&(h=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(c.functional){c._injectStyles=h;var l=c.render;c.render=function(t,e){return h.call(e),l(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,h):[h]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},function(t,e){t.exports=require("core-js/modules/es6.function.name")},function(t,e,i){t.exports=i(10)},function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(2),s=i.n(n);function r(t,e,i,n,r,o,a){try{var h=t[o](a),c=h.value}catch(t){return void i(t)}h.done?e(c):s.a.resolve(c).then(n,r)}function o(t){return function(){var e=this,i=arguments;return new s.a((function(n,s){var o=t.apply(e,i);function a(t){r(o,n,s,a,h,"next",t)}function h(t){r(o,n,s,a,h,"throw",t)}a(void 0)}))}}},function(t,e,i){"use strict";var n=i(7),s=i.n(n);i(14);var r=i(12),o=i.n(r),a=i(8),h=i.n(a);function c(t){return function(t){if(s()(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(h()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return o()(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}i.d(e,"a",(function(){return c}))},function(t,e,i){"use strict";var n=i(7),s=i.n(n);i(14);var r=i(21),o=i.n(r),a=i(8),h=i.n(a);function c(t,e){return function(t){if(s()(t))return t}(t)||function(t,e){if(h()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,s=!1,r=void 0;try{for(var a,c=o()(t);!(n=(a=c.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){s=!0,r=t}finally{try{n||null==c.return||c.return()}finally{if(s)throw r}}return i}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}i.d(e,"a",(function(){return c}))},function(t,e,i){"use strict";i.r(e);i(1);var n={name:"SResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(t){this.$emit("resize",Object.assign({},t))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},methods:{reset:function(){var t=this.$el.firstChild,e=this.$el.lastChild;t.scrollLeft=1e5,t.scrollTop=1e5,e.scrollLeft=1e5,e.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}},render:function(t){return t("div",{on:{"~animationstart":this.update},class:"s-resize-sensor"},[t("div",{on:{scroll:this.update}},[t("div")]),t("div",{on:{scroll:this.update}},[t("div")])])}},s=i(0),r=Object(s.a)(n,void 0,void 0,!1,null,null,null);r.options.__file="packages/resize-sensor/main.vue";var o=r.exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){t.exports=i(16)},function(t,e,i){t.exports=i(17)},function(t,e){t.exports=require("regenerator-runtime/runtime")},function(t,e){t.exports=require("core-js/library/fn/promise")},function(t,e){t.exports=require("core-js/modules/web.dom.iterable")},function(t,e,i){t.exports=i(18)},function(t,e){t.exports=require("chinese-lunar_fix")},function(t,e){t.exports=require("core-js/modules/es6.regexp.to-string")},function(t,e){t.exports=require("core-js/modules/es6.number.constructor")},function(t,e){t.exports=require("core-js/library/fn/array/is-array")},function(t,e){t.exports=require("core-js/library/fn/is-iterable")},function(t,e){t.exports=require("core-js/library/fn/array/from")},function(t,e,i){"use strict";i.r(e);i(1),i(9);var n=i(3),s=function(t,e,i){t.addEventListener(e,(function(t){"function"==typeof i&&!1===i(t)&&(t.preventDefault(),t.stopPropagation())}),{passive:!1})},r={methods:{touchtrack:function(t,e,i){var n=this,r=0,o=0,a=0,h=0,c=function(t,i,s,c){if(!1===n[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:i,x0:s,y0:c,dx:s-r,dy:c-o,ddx:s-a,ddy:c-h,timeStamp:t.timeStamp}}))return!1},l=null;s(t,"touchstart",(function(t){if(1===t.touches.length&&!l)return l=t,r=a=t.touches[0].pageX,o=h=t.touches[0].pageY,c(t,"start",r,o)})),s(t,"touchmove",(function(t){if(1===t.touches.length&&l){var e=c(t,"move",t.touches[0].pageX,t.touches[0].pageY);return a=t.touches[0].pageX,h=t.touches[0].pageY,e}})),s(t,"touchend",(function(t){if(0===t.touches.length&&l)return l=null,c(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)})),s(t,"touchcancel",(function(t){if(l){var e=l;return l=null,c(t,i?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}}))}}};function o(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}function a(t,e,i){return t>e-i&&t<e+i}function h(t,e){return a(t,0,e)}function c(t,e,i){this._m=t,this._k=e,this._c=i,this._solution=null,this._endPosition=0,this._startTime=0}function l(t,e,i){this._extent=t,this._friction=e||new o(.01),this._spring=i||new c(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function u(t,e){e=e||{},this._element=t,this._options=e,this._enableSnap=e.enableSnap||!1,this._itemSize=e.itemSize||0,this._enableX=e.enableX||!1,this._enableY=e.enableY||!1,this._shouldDispatchScrollEvent=!!e.onScroll,this._enableX?(this._extent=(e.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=e.scrollWidth):(this._extent=(e.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=e.scrollHeight),this._position=0,this._scroll=new l(this._extent,e.friction,e.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}function d(t,e){var i=navigator.maxTouchPoints,n=0,s=0;t.addEventListener(i?"touchstart":"mousedown",(function(t){var e=i?t.changedTouches[0]:t;n=e.clientX,s=e.clientY})),t.addEventListener(i?"touchend":"mouseup",(function(t){var r=i?t.changedTouches[0]:t;Math.abs(r.clientX-n)<20&&Math.abs(r.clientY-s)<20&&e(r)}))}o.prototype.set=function(t,e){this._x=t,this._v=e,this._startTime=(new Date).getTime()},o.prototype.setVelocityByEnd=function(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},o.prototype.x=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._x+this._v*e/this._dragLog-this._v/this._dragLog},o.prototype.dx=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._v*e},o.prototype.done=function(){return Math.abs(this.dx())<3},o.prototype.reconfigure=function(t){var e=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(e,i)},o.prototype.configuration=function(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(e){t.reconfigure(e)},min:.001,max:.1,step:.001}]},c.prototype._solve=function(t,e){var i=this._c,n=this._m,s=this._k,r=i*i-4*n*s;if(0===r){var o=-i/(2*n),a=t,h=e/(o*t);return{x:function(t){return(a+h*t)*Math.pow(Math.E,o*t)},dx:function(t){var e=Math.pow(Math.E,o*t);return o*(a+h*t)*e+h*e}}}if(r>0){var c=(-i-Math.sqrt(r))/(2*n),l=(-i+Math.sqrt(r))/(2*n),u=(e-c*t)/(l-c),d=t-u;return{x:function(t){var e,i;return t===this._t&&(e=this._powER1T,i=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,c*t)),i||(i=this._powER2T=Math.pow(Math.E,l*t)),d*e+u*i},dx:function(t){var e,i;return t===this._t&&(e=this._powER1T,i=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,c*t)),i||(i=this._powER2T=Math.pow(Math.E,l*t)),d*c*e+u*l*i}}}var p=Math.sqrt(4*n*s-i*i)/(2*n),f=-i/2*n,_=t,m=(e-f*t)/p;return{x:function(t){return Math.pow(Math.E,f*t)*(_*Math.cos(p*t)+m*Math.sin(p*t))},dx:function(t){var e=Math.pow(Math.E,f*t),i=Math.cos(p*t),n=Math.sin(p*t);return e*(m*p*i-_*p*n)+f*e*(m*n+_*i)}}},c.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},c.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},c.prototype.setEnd=function(t,e,i){if(i||(i=(new Date).getTime()),t!==this._endPosition||!h(e,.4)){e=e||0;var n=this._endPosition;this._solution&&(h(e,.4)&&(e=this._solution.dx((i-this._startTime)/1e3)),n=this._solution.x((i-this._startTime)/1e3),h(e,.4)&&(e=0),h(n,.4)&&(n=0),n+=this._endPosition),this._solution&&h(n-t,.4)&&h(e,.4)||(this._endPosition=t,this._solution=this._solve(n-this._endPosition,e),this._startTime=i)}},c.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},c.prototype.done=function(t){return t||(t=(new Date).getTime()),a(this.x(),this._endPosition,.4)&&h(this.dx(),.4)},c.prototype.reconfigure=function(t,e,i){this._m=t,this._k=e,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},c.prototype.springConstant=function(){return this._k},c.prototype.damping=function(){return this._c},c.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]},l.prototype.snap=function(t,e){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(e)},l.prototype.set=function(t,e){this._friction.set(t,e),t>0&&e>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&e<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},l.prototype.x=function(t){if(!this._startTime)return 0;if(t||(t=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var e=this._friction.x(t),i=this.dx(t);return(e>0&&i>=0||e<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),e<-this._extent?this._springOffset=-this._extent:this._springOffset=0,e=this._spring.x()+this._springOffset),e},l.prototype.dx=function(t){var e;return e=this._lastTime===t?this._lastDx:this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=e,e},l.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},l.prototype.setVelocityByEnd=function(t){this._friction.setVelocityByEnd(t)},l.prototype.configuration=function(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t},u.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},u.prototype.onTouchMove=function(t,e){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=e),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()},u.prototype.onTouchEnd=function(t,e,i){var n=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(e)<this._itemSize&&Math.abs(i.y)<300||Math.abs(i.y)<150))return void this.snap();if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(i.x)<300||Math.abs(i.x)<150))return void this.snap()}if(this._enableX?this._scroll.set(this._position,i.x):this._enableY&&this._scroll.set(this._position,i.y),this._enableSnap){var s=this._scroll._friction.x(100),r=s%this._itemSize,o=Math.abs(r)>this._itemSize/2?s-(this._itemSize-Math.abs(r)):s-r;o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(t,e,i){var n={id:0,cancelled:!1};return function t(e,i,n,s){if(!e||!e.cancelled){n(i);var r=i.done();r||e.cancelled||(e.id=requestAnimationFrame(t.bind(null,e,i,n,s))),r&&s&&s(i)}}(n,t,e,i),{cancel:function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}.bind(null,n),model:t}}(this._scroll,(function(){var t=Date.now(),e=(t-n._scroll._startTime)/1e3,i=n._scroll.x(e);n._position=i,n.updatePosition();var s=n._scroll.dx(e);n._shouldDispatchScrollEvent&&t-n._lastTime>n._lastDelay&&(n.dispatchScroll(),n._lastDelay=Math.abs(2e3/s),n._lastTime=t)}),(function(){n._enableSnap&&(o<=0&&o>=-n._extent&&(n._position=o,n.updatePosition()),"function"==typeof n._options.onSnap&&n._options.onSnap(Math.floor(Math.abs(n._position)/n._itemSize))),n._shouldDispatchScrollEvent&&n.dispatchScroll(),n._scrolling=!1}))},u.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},u.prototype.snap=function(){var t=this._itemSize,e=this._position%t,i=Math.abs(e)>this._itemSize/2?this._position-(t-Math.abs(e)):this._position-e;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},u.prototype.scrollTo=function(t,e){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof t&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(e||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(e||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},u.prototype.dispatchScroll=function(){if("function"==typeof this._options.onScroll&&Math.floor(this._lastPos)!==Math.floor(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}},u.prototype.update=function(t,e,i){var n=0,s=this._position;this._enableX?(n=this._element.childNodes.length?(e||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=e):(n=this._element.childNodes.length?(e||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=e),"number"==typeof t&&(this._position=-t),this._position<-n?this._position=-n:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),s!==this._position&&(this.dispatchScroll(),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=n,this._scroll._extent=n},u.prototype.updatePosition=function(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t},u.prototype.isScrolling=function(){return this._scrolling||this._snapping};var p,f={name:"SPickerViewColumn",mixins:[r,{methods:{initScroller:function(t,e){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new u(t,e),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(t){var e=this._touchInfo;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:t.screenX-e.x,y:t.screenY-e.y}},_handleTouchStart:function(t){var e=this._touchInfo,i=this._scroller;i&&("start"===t.detail.state?(e.trackingID="touch",e.x=t.detail.x,e.y=t.detail.y):(e.trackingID="mouse",e.x=t.screenX,e.y=t.screenY),e.maxDx=0,e.maxDy=0,e.historyX=[0],e.historyY=[0],e.historyTime=[t.detail.timeStamp],e.listener=i,i.onTouchStart&&i.onTouchStart())},_handleTouchMove:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var i=this._findDelta(t);if(i){for(e.maxDy=Math.max(e.maxDy,Math.abs(i.y)),e.maxDx=Math.max(e.maxDx,Math.abs(i.x)),e.historyX.push(i.x),e.historyY.push(i.y),e.historyTime.push(t.detail.timeStamp);e.historyTime.length>10;)e.historyTime.shift(),e.historyX.shift(),e.historyY.shift();e.listener&&e.listener.onTouchMove&&e.listener.onTouchMove(i.x,i.y,t.detail.timeStamp)}}},_handleTouchEnd:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var i=this._findDelta(t);if(i){var n=e.listener;e.trackingID=-1,e.listener=null;var s={x:0,y:0};if(e.historyTime.length>2)for(var r=e.historyTime.length-1,o=e.historyTime[r],a=e.historyX[r],h=e.historyY[r];r>0;){r--;var c=o-e.historyTime[r];if(c>30&&c<50){s.x=(a-e.historyX[r])/(c/1e3),s.y=(h-e.historyY[r])/(c/1e3);break}}e.historyTime=[],e.historyX=[],e.historyY=[],n&&n.onTouchEnd&&n.onTouchEnd(i.x,i.y,s)}}}}}],components:{ResizeSensor:i(6).default},data:function(){return{scope:"picker-view-column-".concat(Date.now()),inited:!1,indicatorStyle:"",indicatorClass:"",indicatorHeight:34,maskStyle:"",maskClass:"",current:this.$parent.getItemValue(this),length:0}},computed:{height:function(){return this.$parent.height},maskSize:function(){return(this.height-this.indicatorHeight)/2}},watch:{indicatorHeight:function(t){this._setItemHeight(t),this.inited&&this.update()},current:function(t){this.$parent.setItemValue(this,t)},length:function(t){this.inited&&this.update(t)}},created:function(){var t=this.$parent;this.indicatorStyle=t.indicatorStyle,this.indicatorClass=t.indicatorClass,this.maskStyle=t.maskStyle,this.maskClass=t.maskClass,this.deltaY=0},mounted:(p=Object(n.a)(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.touchtrack(this.$refs.main,"_handleTrack",!0),this.setCurrent(this.current),this.$nextTick((function(){e.init(),e.update()})),d(this.$el,this._handleTap.bind(this));case 4:case"end":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)}),methods:{_setItemHeight:function(t){var e=document.createElement("style");e.innerText=".s-picker-view-content.".concat(this.scope,">*{height: ").concat(t,"px;line-height: ").concat(t,"px;overflow: hidden;}"),document.head.appendChild(e)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t);break;case"move":this._handleTouchMove(t);break;case"end":case"cancel":this._handleTouchEnd(t)}},_handleTap:function(t){var e=t.clientY;if(!this._scroller.isScrolling()){var i=e-this.$el.getBoundingClientRect().top-this.height/2,n=this.indicatorHeight/2;if(!(Math.abs(i)<=n)){var s=Math.ceil((Math.abs(i)-n)/this.indicatorHeight),r=i<0?-s:s,o=Math.min(this.current+r,this.length-1);this.current=o=Math.max(o,0),this._scroller.scrollTo(o*this.indicatorHeight)}}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;if(Math.abs(e)>10){this.deltaY=0;var i=Math.min(this.current+(e<0?-1:1),this.length-1);this.current=i=Math.max(i,0),this._scroller.scrollTo(i*this.indicatorHeight)}else this.deltaY=e;t.preventDefault()},setCurrent:function(t){t!==this.current&&(this.current=t,this.inited&&this.update())},init:function(){var t=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,friction:new o(1e-4),spring:new c(2,90,20),onSnap:function(e){isNaN(e)||e===t.current||(t.current=e)}}),this.inited=!0},update:function(){var t=this;this.$nextTick((function(){var e=Math.min(t.current,t.length-1);e=Math.max(e,0),t._scroller.update(e*t.indicatorHeight,void 0,t.indicatorHeight)}))},_resize:function(t){var e=t.height;this.indicatorHeight=e}},render:function(t){return this.length=this.$slots.default&&this.$slots.default.length||0,t("div",{on:{wheel:this._handleWheel},class:"s-picker-view-column"},[t("div",{ref:"main",staticClass:"s-picker-view-group"},[t("div",{ref:"mask",staticClass:"s-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),t("div",{ref:"indicator",staticClass:"s-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[t("resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),t("div",{ref:"content",staticClass:"s-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}},_=i(0),m=Object(_.a)(f,void 0,void 0,!1,null,null,null);m.options.__file="packages/picker-view-column/main.vue";var v=m.exports;v.install=function(t){t.component(v.name,v)};e.default=v},function(t,e,i){"use strict";i.r(e);i(1),i(11);var n=i(4),s={name:"SPickerView",components:{ResizeSensor:i(6).default},props:{value:{type:Array,default:function(){return[]},validator:function(t){return Array.isArray(t)&&t.filter((function(t){return"number"==typeof t})).length===t.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:Object(n.a)(this.value),height:34,items:[],changeSource:""}},watch:{value:function(t){var e=this;this.valueSync.length=t.length,t.forEach((function(t,i){t!==e.valueSync[i]&&e.$set(e.valueSync,i,t)}))},valueSync:{deep:!0,handler:function(t){if(""===this.changeSource)this._valueChanged(t);else{this.changeSource="";var e=Object(n.a)(t);this.$emit("update:value",e),this.$emit("change",e)}}}},methods:{getItemIndex:function(t){return this.items.indexOf(t)},getItemValue:function(t){return this.valueSync[this.getItemIndex(t.$vnode)]||0},setItemValue:function(t,e){var i=this.getItemIndex(t.$vnode);this.valueSync[i]!==e&&(this.changeSource="touch",this.$set(this.valueSync,i,e))},_valueChanged:function(t){this.items.forEach((function(e,i){e.componentInstance.setCurrent(t[i]||0)}))},_resize:function(t){var e=t.height;this.height=e}},render:function(t){var e=[];return this.$slots.default&&this.$slots.default.forEach((function(t){t.componentOptions&&"picker-view-column"===t.componentOptions.tag&&e.push(t)})),this.items=e,t("div",{on:this.$listeners,class:"s-picker-view"},[t("resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),t("div",{ref:"wrapper",class:"s-picker-view-wrapper"},e)])}},r=i(0),o=Object(r.a)(s,void 0,void 0,!1,null,null,null);o.options.__file="packages/picker-view/main.vue";var a=o.exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){t.exports=i(25)},,,,function(t,e){t.exports=require("core-js/library/fn/get-iterator")},,,,,,,,,,function(t,e){t.exports=require("core-js/modules/es6.array.find-index")},function(t,e){t.exports=require("core-js/modules/es6.array.sort")},function(t,e){t.exports=require("core-js/modules/es6.array.fill")},,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);i(1);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("van-popup",{staticClass:"s-calendar-box",attrs:{value:t.value,position:"bottom"},on:{input:function(e){return t.$emit("input",e)}}},[i("div",{staticClass:"s-calendar"},[i("div",{staticClass:"s-calendar-header"},[0===t.type?i("div",{staticClass:"s-calendar-header--date"},[i("p",[t._v(t._s(t.currentSolar[0].hans)+"年")]),i("p",[t._v(t._s(t.currentSolar[1].hans)+"月"+t._s(t.currentSolar[2].hans)+"日")])]):i("div",{staticClass:"s-calendar-header--date"},[i("p",[t._v(t._s(t.currentLunar[0].hans))]),i("p",[t._v("\n "+t._s(t.currentLunar[1]?t.currentLunar[1].hans:"")+t._s(t.currentLunar[2]?t.currentLunar[2].hans:"")+"\n ")])]),i("div",{staticClass:"s-calendar-header--btn-group"},t._l(t.dateList,(function(e,n){return i("div",{key:n,staticClass:"s-calendar-header--btn",class:["s-calendar-header--btn__"+n],style:[n===t.type?{color:"#fff",background:t.color,borderColor:t.color}:{}],on:{click:function(e){return e.stopPropagation(),t.handleCalendarChange(n)}}},[t._v("\n "+t._s(e)+"\n ")])})),0)]),i("div",{staticClass:"s-calendar-content"},[0===t.type?i("picker-view",{staticClass:"s-calendar-content--picker",attrs:{value:t.solarTime,"indicator-class":"ignore-calendar-indicator","mask-style":"opacity:0.5"},on:{change:t.handleSolarDateChange}},[i("picker-view-column",t._l(t.solarYears,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[0]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"年\n ")])})),0),i("picker-view-column",t._l(t.solarMonths,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[1]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"月\n ")])})),0),i("picker-view-column",t._l(t.solarDates,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[2]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"日\n ")])})),0),t.hasDateTime?[i("picker-view-column",t._l(t.hours,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[3]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0),i("picker-view-column",t._l(t.minutes,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[4]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0)]:t._e()],2):i("picker-view",{staticClass:"s-calendar-content--picker",attrs:{value:t.lunarTime,"indicator-class":"ignore-calendar-indicator","mask-style":"opacity:0.5"},on:{change:t.handleLunarDateChange}},[i("picker-view-column",t._l(t.lunarYears,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[0]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e.hans)+"\n ")])})),0),i("picker-view-column",t._l(t.lunarMonths,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[1]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e.hans)+"\n ")])})),0),i("picker-view-column",t._l(t.lunarDates,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[2]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e.hans)+"\n ")])})),0),t.hasDateTime?[i("picker-view-column",t._l(t.hours,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[3]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0),i("picker-view-column",t._l(t.minutes,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[4]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0)]:t._e()],2)],1),i("div",{staticClass:"s-calendar-footer"},[i("div",{staticClass:"s-calendar-footer--btn s-calendar-footer--cancel",on:{click:t.handleCancel}},[t._v("\n 取消\n ")]),i("div",{staticClass:"s-calendar-footer--btn",style:{background:t.color,color:"#fff",borderColor:t.color},on:{click:t.handleSubmit}},[t._v("\n 确定\n ")])])])])};n._withStripped=!0;i(35);var s=i(5),r=(i(36),i(15),i(37),i(4)),o=i(13),a=i(20),h=i(19),c=function(t,e){return["未知"].concat(Object(r.a)(new Array(t).fill().map((function(t,i){return"".concat(i).concat(e)}))))};function l(t){for(var e="";t>0;)e="〇一二三四五六七八九"[t%10]+e,t=Math.floor(t/10);return e}function u(t,e){return 2!==e?[0,31,0,31,30,31,30,31,31,30,31,30,31][e]:t%400?t%100?t%4?28:29:28:29}function d(t){var e=Object(o.leapMonthOfYear)(t),i=Object(r.a)(Array(12)).map((function(t,e){return{month:e+1,leap:!1}}));return e&&(i=i.concat({month:e,leap:!0}).sort((function(t,e){return t.month-e.month}))),i.map((function(t){return Object.assign({},t,{hans:Object(o.monthName)(t.month,!0,t.leap)})}))}function p(t,e,i){for(var n=function(t,e,i){var n=Object(o.lunarToSolar)(t,e,1,i);return Object(o.leapMonthOfYear)(t)!==e||i?12===e?(t+=1,e=1):(i=!1,e+=1):i=!0,(Object(o.lunarToSolar)(t,e,1,i).valueOf()-n.valueOf())/864e5}(t,e,i),s=[],r=1;r<=n;r+=1)s.push({date:r,hans:Object(o.dayName)(r)});return s}function f(t){return t<10?"0".concat(t):"".concat(t)}var _=c(24,"时"),m=c(60,"分"),v=function(){for(var t=(new Date).getFullYear(),e=[],i=1930;i<=t;i++)e.push(i);return e}(),g=function(t){for(var e=Number(Object(o.solarToLunar)(new Date(t[0],0,1),"y")),i=Number(Object(o.solarToLunar)(new Date(t[t.length-1],11,31),"y")),n=[],s=e;s<=i;s+=1)n.push({year:s,hans:l(s)});return n}(v),y={1986:[Date.UTC(1986,5,4),Date.UTC(1986,9,14)],1987:[Date.UTC(1987,4,12),Date.UTC(1987,9,13)],1988:[Date.UTC(1988,4,10),Date.UTC(1988,9,11)],1989:[Date.UTC(1989,5,16),Date.UTC(1989,9,17)],1990:[Date.UTC(1990,4,15),Date.UTC(1990,9,16)],1991:[Date.UTC(1991,4,14),Date.UTC(1991,9,15)]},T={name:"SCalendar",components:{PickerView:a.default,PickerViewColumn:h.default},props:{defaultDate:{type:Array,required:!1,default:function(){return[1995,1,1]}},defaultTime:{type:Array,required:!1,default:function(){return[-1,-1]}},isLunar:{type:Boolean,required:!1,dafault:!0},value:{type:Boolean,default:!1},defaultType:{type:Number,default:0},color:{type:String,default:"#522273"},dateType:{type:String,default:"date"}},data:function(){return{solarValue:[-1,-1,-1],solarYears:v,solarMonths:12,solarDates:31,lunarValue:[-1,-1,-1],lunarYears:g,lunarMonths:[],lunarDates:[],type:0,hours:_,minutes:m,dateList:["公历","农历"],currentTime:[-1,-1]}},computed:{solarTime:function(){var t=Object(s.a)(this.currentTime,2),e=t[0],i=void 0===e?0:e,n=t[1],r=void 0===n?0:n;return this.solarValue.concat(i,r)},lunarTime:function(){var t=Object(s.a)(this.currentTime,2),e=t[0],i=void 0===e?0:e,n=t[1],r=void 0===n?0:n;return this.lunarValue.concat(i,r)},currentSolar:function(){var t=Object(s.a)(this.solarValue,3),e=t[0],i=t[1],n=t[2],r=this.solarYears[e]||this.solarYears[0],o=i+1,a=n+1;return[{hans:f(r),year:r},{hans:f(o),month:o},{hans:f(a),date:a}]},currentLunar:function(){var t=Object(s.a)(this.lunarValue,3),e=t[0],i=t[1],n=t[2];return[this.lunarYears[e]||this.lunarYears[0],this.lunarMonths[i]||this.lunarMonths[0],this.lunarDates[n]||this.lunarDates[0]]},hasDateTime:function(){return"datetime"===this.dateType}},mounted:function(){this.currentTime=this.defaultTime,this.initDate()},methods:{cancal:function(){this.$emit("input",!1)},getTruthTime:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=Date.UTC.apply(Date,e),s=y[e[0]],r=-8;s&&n>=s[0]&&n<=s[1]&&(r=-9);var o=60*r*60*1e3;return n+o},handleSubmit:function(){var t={solar:this.currentSolar,lunar:this.currentLunar,type:this.type,time:[0,0]};if(this.hasDateTime){var e=Object(s.a)(this.currentTime,2),i=e[0],n=void 0===i?0:i,o=e[1],a=void 0===o?0:o;0===n&&(n=1),0===a&&(a=1),t.time=[n-1,a-1]}var h=this.getTruthTime.apply(this,[this.currentSolar[0].year,this.currentSolar[1].month-1,this.currentSolar[2].date].concat(Object(r.a)(t.time)));this.cancal(),this.$emit("change",t,h)},handleCancel:function(){this.cancal(),this.$emit("cancel")},initDate:function(){var t=Object(s.a)(this.defaultDate,3),e=t[0],i=t[1],n=t[2];this.type=this.defaultType;var r=this.solarYears.findIndex((function(t){return t===e}));this.handleSolarDateChange([r,i-1,n-1],!0)},handleCalendarChange:function(t){this.type=t},handleSolarDateChange:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(s.a)(t,5),o=r[0],a=r[1],h=r[2],c=r[3],l=r[4],d=Object(s.a)(this.solarValue,3),p=d[0],f=d[1],_=d[2];if(i||o!==p||a!==f){var m=this.solarYears[o],v=a+1;this.solarDates=u(m,v)}this.$nextTick().then((function(){e.solarValue=[o,a,h],e.currentTime=[c,l]})),!n||o===p&&a===f&&h===_||this.$nextTick().then((function(){var t=Object(s.a)(e.currentSolar,3),i=t[0].year,n=t[1].month,r=t[2].date;e.findLunarValue(i,n,r)}))},handleLunarDateChange:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(s.a)(t,5),o=r[0],a=r[1],h=r[2],c=r[3],l=r[4],u=Object(s.a)(this.lunarValue,3),f=u[0],_=u[1],m=u[2];if((i||o!==f)&&(this.lunarMonths=d(this.lunarYears[o].year)),i||o!==f||a!==_){var v=this.lunarYears[o].year,g=this.lunarMonths[a],y=g.month,T=g.leap;this.lunarDates=p(v,y,T)}this.$nextTick().then((function(){e.lunarValue=[o,a,h],e.currentTime=[c,l]})),!n||o===f&&a===_&&h===m||this.$nextTick().then((function(){var t=Object(s.a)(e.currentLunar,3),i=t[0],n=(i=void 0===i?{}:i).year,r=void 0===n?1989:n,o=t[1],a=(o=void 0===o?{}:o).month,h=void 0===a?12:a,c=o.leap,l=void 0!==c&&c,u=t[2],d=(u=void 0===u?{}:u).date,p=void 0===d?5:d;e.findSolarValue(r,h,p,l)}))},findSolarValue:function(t,e,i,n){var s=Object(o.lunarToSolar)(t,e,i,n),a=s.getFullYear(),h=s.getMonth(),c=s.getDate()-1,l=this.solarYears.findIndex((function(t){return t===a}));this.handleSolarDateChange([l,h,c].concat(Object(r.a)(this.currentTime)),!0,!1)},findLunarValue:function(t,e,i){var n=Object(o.solarToLunar)(new Date(t,e-1,i,0,0,0)),s=n.leap,a=n.year,h=n.month,c=n.day,l=n.leapMonth,u=this.lunarYears.findIndex((function(t){return t.year===a})),d=l&&(s||h>l)?h:h-1,p=c-1;this.handleLunarDateChange([u,d,p].concat(Object(r.a)(this.currentTime)),!0,!1)}}},x=i(0),b=Object(x.a)(T,n,[],!1,null,null,null);b.options.__file="packages/calendar/main.vue";var S=b.exports;S.install=function(t){t.component(S.name,S)};e.default=S}]); | ||
module.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=52)}([function(t,e,i){"use strict";function n(t,e,i,n,s,r,o,a){var h,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(h=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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):s&&(h=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(c.functional){c._injectStyles=h;var l=c.render;c.render=function(t,e){return h.call(e),l(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,h):[h]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},function(t,e){t.exports=require("core-js/modules/es6.function.name")},function(t,e,i){t.exports=i(10)},function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(2),s=i.n(n);function r(t,e,i,n,r,o,a){try{var h=t[o](a),c=h.value}catch(t){return void i(t)}h.done?e(c):s.a.resolve(c).then(n,r)}function o(t){return function(){var e=this,i=arguments;return new s.a((function(n,s){var o=t.apply(e,i);function a(t){r(o,n,s,a,h,"next",t)}function h(t){r(o,n,s,a,h,"throw",t)}a(void 0)}))}}},function(t,e,i){"use strict";var n=i(7),s=i.n(n);i(15);var r=i(12),o=i.n(r),a=i(8),h=i.n(a);function c(t){return function(t){if(s()(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(h()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return o()(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}i.d(e,"a",(function(){return c}))},function(t,e,i){"use strict";var n=i(7),s=i.n(n);i(15);var r=i(21),o=i.n(r),a=i(8),h=i.n(a);function c(t,e){return function(t){if(s()(t))return t}(t)||function(t,e){if(h()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,s=!1,r=void 0;try{for(var a,c=o()(t);!(n=(a=c.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){s=!0,r=t}finally{try{n||null==c.return||c.return()}finally{if(s)throw r}}return i}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}i.d(e,"a",(function(){return c}))},function(t,e,i){"use strict";i.r(e);i(1);var n={name:"SResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(t){this.$emit("resize",Object.assign({},t))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},methods:{reset:function(){var t=this.$el.firstChild,e=this.$el.lastChild;t.scrollLeft=1e5,t.scrollTop=1e5,e.scrollLeft=1e5,e.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}},render:function(t){return t("div",{on:{"~animationstart":this.update},class:"s-resize-sensor"},[t("div",{on:{scroll:this.update}},[t("div")]),t("div",{on:{scroll:this.update}},[t("div")])])}},s=i(0),r=Object(s.a)(n,void 0,void 0,!1,null,null,null);r.options.__file="packages/resize-sensor/main.vue";var o=r.exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){t.exports=i(16)},function(t,e,i){t.exports=i(17)},function(t,e){t.exports=require("regenerator-runtime/runtime")},function(t,e){t.exports=require("core-js/library/fn/promise")},function(t,e){t.exports=require("core-js/modules/web.dom.iterable")},function(t,e,i){t.exports=i(18)},function(t,e){t.exports=require("chinese-lunar_fix")},function(t,e){t.exports=require("core-js/modules/es6.number.constructor")},function(t,e){t.exports=require("core-js/modules/es6.regexp.to-string")},function(t,e){t.exports=require("core-js/library/fn/array/is-array")},function(t,e){t.exports=require("core-js/library/fn/is-iterable")},function(t,e){t.exports=require("core-js/library/fn/array/from")},function(t,e,i){"use strict";i.r(e);i(1),i(9);var n=i(3),s=function(t,e,i){t.addEventListener(e,(function(t){"function"==typeof i&&!1===i(t)&&(t.preventDefault(),t.stopPropagation())}),{passive:!1})},r={methods:{touchtrack:function(t,e,i){var n=this,r=0,o=0,a=0,h=0,c=function(t,i,s,c){if(!1===n[e]({target:t.target,currentTarget:t.currentTarget,preventDefault:t.preventDefault.bind(t),stopPropagation:t.stopPropagation.bind(t),touches:t.touches,changedTouches:t.changedTouches,detail:{state:i,x0:s,y0:c,dx:s-r,dy:c-o,ddx:s-a,ddy:c-h,timeStamp:t.timeStamp}}))return!1},l=null;s(t,"touchstart",(function(t){if(1===t.touches.length&&!l)return l=t,r=a=t.touches[0].pageX,o=h=t.touches[0].pageY,c(t,"start",r,o)})),s(t,"touchmove",(function(t){if(1===t.touches.length&&l){var e=c(t,"move",t.touches[0].pageX,t.touches[0].pageY);return a=t.touches[0].pageX,h=t.touches[0].pageY,e}})),s(t,"touchend",(function(t){if(0===t.touches.length&&l)return l=null,c(t,"end",t.changedTouches[0].pageX,t.changedTouches[0].pageY)})),s(t,"touchcancel",(function(t){if(l){var e=l;return l=null,c(t,i?"cancel":"end",e.touches[0].pageX,e.touches[0].pageY)}}))}}};function o(t){this._drag=t,this._dragLog=Math.log(t),this._x=0,this._v=0,this._startTime=0}function a(t,e,i){return t>e-i&&t<e+i}function h(t,e){return a(t,0,e)}function c(t,e,i){this._m=t,this._k=e,this._c=i,this._solution=null,this._endPosition=0,this._startTime=0}function l(t,e,i){this._extent=t,this._friction=e||new o(.01),this._spring=i||new c(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function u(t,e){e=e||{},this._element=t,this._options=e,this._enableSnap=e.enableSnap||!1,this._itemSize=e.itemSize||0,this._enableX=e.enableX||!1,this._enableY=e.enableY||!1,this._shouldDispatchScrollEvent=!!e.onScroll,this._enableX?(this._extent=(e.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=e.scrollWidth):(this._extent=(e.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=e.scrollHeight),this._position=0,this._scroll=new l(this._extent,e.friction,e.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}function d(t,e){var i=navigator.maxTouchPoints,n=0,s=0;t.addEventListener(i?"touchstart":"mousedown",(function(t){var e=i?t.changedTouches[0]:t;n=e.clientX,s=e.clientY})),t.addEventListener(i?"touchend":"mouseup",(function(t){var r=i?t.changedTouches[0]:t;Math.abs(r.clientX-n)<20&&Math.abs(r.clientY-s)<20&&e(r)}))}o.prototype.set=function(t,e){this._x=t,this._v=e,this._startTime=(new Date).getTime()},o.prototype.setVelocityByEnd=function(t){this._v=(t-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},o.prototype.x=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._x+this._v*e/this._dragLog-this._v/this._dragLog},o.prototype.dx=function(t){var e;return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),e=t===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,t),this._dt=t,this._v*e},o.prototype.done=function(){return Math.abs(this.dx())<3},o.prototype.reconfigure=function(t){var e=this.x(),i=this.dx();this._drag=t,this._dragLog=Math.log(t),this.set(e,i)},o.prototype.configuration=function(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(e){t.reconfigure(e)},min:.001,max:.1,step:.001}]},c.prototype._solve=function(t,e){var i=this._c,n=this._m,s=this._k,r=i*i-4*n*s;if(0===r){var o=-i/(2*n),a=t,h=e/(o*t);return{x:function(t){return(a+h*t)*Math.pow(Math.E,o*t)},dx:function(t){var e=Math.pow(Math.E,o*t);return o*(a+h*t)*e+h*e}}}if(r>0){var c=(-i-Math.sqrt(r))/(2*n),l=(-i+Math.sqrt(r))/(2*n),u=(e-c*t)/(l-c),d=t-u;return{x:function(t){var e,i;return t===this._t&&(e=this._powER1T,i=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,c*t)),i||(i=this._powER2T=Math.pow(Math.E,l*t)),d*e+u*i},dx:function(t){var e,i;return t===this._t&&(e=this._powER1T,i=this._powER2T),this._t=t,e||(e=this._powER1T=Math.pow(Math.E,c*t)),i||(i=this._powER2T=Math.pow(Math.E,l*t)),d*c*e+u*l*i}}}var p=Math.sqrt(4*n*s-i*i)/(2*n),f=-i/2*n,_=t,m=(e-f*t)/p;return{x:function(t){return Math.pow(Math.E,f*t)*(_*Math.cos(p*t)+m*Math.sin(p*t))},dx:function(t){var e=Math.pow(Math.E,f*t),i=Math.cos(p*t),n=Math.sin(p*t);return e*(m*p*i-_*p*n)+f*e*(m*n+_*i)}}},c.prototype.x=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(t):0},c.prototype.dx=function(t){return void 0===t&&(t=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(t):0},c.prototype.setEnd=function(t,e,i){if(i||(i=(new Date).getTime()),t!==this._endPosition||!h(e,.4)){e=e||0;var n=this._endPosition;this._solution&&(h(e,.4)&&(e=this._solution.dx((i-this._startTime)/1e3)),n=this._solution.x((i-this._startTime)/1e3),h(e,.4)&&(e=0),h(n,.4)&&(n=0),n+=this._endPosition),this._solution&&h(n-t,.4)&&h(e,.4)||(this._endPosition=t,this._solution=this._solve(n-this._endPosition,e),this._startTime=i)}},c.prototype.snap=function(t){this._startTime=(new Date).getTime(),this._endPosition=t,this._solution={x:function(){return 0},dx:function(){return 0}}},c.prototype.done=function(t){return t||(t=(new Date).getTime()),a(this.x(),this._endPosition,.4)&&h(this.dx(),.4)},c.prototype.reconfigure=function(t,e,i){this._m=t,this._k=e,this._c=i,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},c.prototype.springConstant=function(){return this._k},c.prototype.damping=function(){return this._c},c.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(t,e){t.reconfigure(1,e,t.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(t,e){t.reconfigure(1,t.springConstant(),e)}.bind(this,this),min:1,max:500}]},l.prototype.snap=function(t,e){this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(e)},l.prototype.set=function(t,e){this._friction.set(t,e),t>0&&e>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(0)):t<-this._extent&&e<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(t),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},l.prototype.x=function(t){if(!this._startTime)return 0;if(t||(t=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var e=this._friction.x(t),i=this.dx(t);return(e>0&&i>=0||e<-this._extent&&i<=0)&&(this._springing=!0,this._spring.setEnd(0,i),e<-this._extent?this._springOffset=-this._extent:this._springOffset=0,e=this._spring.x()+this._springOffset),e},l.prototype.dx=function(t){var e;return e=this._lastTime===t?this._lastDx:this._springing?this._spring.dx(t):this._friction.dx(t),this._lastTime=t,this._lastDx=e,e},l.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},l.prototype.setVelocityByEnd=function(t){this._friction.setVelocityByEnd(t)},l.prototype.configuration=function(){var t=this._friction.configuration();return t.push.apply(t,this._spring.configuration()),t},u.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},u.prototype.onTouchMove=function(t,e){var i=this._startPosition;this._enableX?i+=t:this._enableY&&(i+=e),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll()},u.prototype.onTouchEnd=function(t,e,i){var n=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(e)<this._itemSize&&Math.abs(i.y)<300||Math.abs(i.y)<150))return void this.snap();if(this._enableX&&(Math.abs(t)<this._itemSize&&Math.abs(i.x)<300||Math.abs(i.x)<150))return void this.snap()}if(this._enableX?this._scroll.set(this._position,i.x):this._enableY&&this._scroll.set(this._position,i.y),this._enableSnap){var s=this._scroll._friction.x(100),r=s%this._itemSize,o=Math.abs(r)>this._itemSize/2?s-(this._itemSize-Math.abs(r)):s-r;o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(t,e,i){var n={id:0,cancelled:!1};return function t(e,i,n,s){if(!e||!e.cancelled){n(i);var r=i.done();r||e.cancelled||(e.id=requestAnimationFrame(t.bind(null,e,i,n,s))),r&&s&&s(i)}}(n,t,e,i),{cancel:function(t){t&&t.id&&cancelAnimationFrame(t.id),t&&(t.cancelled=!0)}.bind(null,n),model:t}}(this._scroll,(function(){var t=Date.now(),e=(t-n._scroll._startTime)/1e3,i=n._scroll.x(e);n._position=i,n.updatePosition();var s=n._scroll.dx(e);n._shouldDispatchScrollEvent&&t-n._lastTime>n._lastDelay&&(n.dispatchScroll(),n._lastDelay=Math.abs(2e3/s),n._lastTime=t)}),(function(){n._enableSnap&&(o<=0&&o>=-n._extent&&(n._position=o,n.updatePosition()),"function"==typeof n._options.onSnap&&n._options.onSnap(Math.floor(Math.abs(n._position)/n._itemSize))),n._shouldDispatchScrollEvent&&n.dispatchScroll(),n._scrolling=!1}))},u.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},u.prototype.snap=function(){var t=this._itemSize,e=this._position%t,i=Math.abs(e)>this._itemSize/2?this._position-(t-Math.abs(e)):this._position-e;this._position!==i&&(this._snapping=!0,this.scrollTo(-i),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},u.prototype.scrollTo=function(t,e){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof t&&(this._position=-t),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(e||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(e||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},u.prototype.dispatchScroll=function(){if("function"==typeof this._options.onScroll&&Math.floor(this._lastPos)!==Math.floor(this._position)){this._lastPos=this._position;var t={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(t)}},u.prototype.update=function(t,e,i){var n=0,s=this._position;this._enableX?(n=this._element.childNodes.length?(e||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=e):(n=this._element.childNodes.length?(e||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=e),"number"==typeof t&&(this._position=-t),this._position<-n?this._position=-n:this._position>0&&(this._position=0),this._itemSize=i||this._itemSize,this.updatePosition(),s!==this._position&&(this.dispatchScroll(),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=n,this._scroll._extent=n},u.prototype.updatePosition=function(){var t="";this._enableX?t="translateX("+this._position+"px) translateZ(0)":this._enableY&&(t="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=t,this._element.style.transform=t},u.prototype.isScrolling=function(){return this._scrolling||this._snapping};var p,f={name:"SPickerViewColumn",mixins:[r,{methods:{initScroller:function(t,e){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new u(t,e),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(t){var e=this._touchInfo;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:t.screenX-e.x,y:t.screenY-e.y}},_handleTouchStart:function(t){var e=this._touchInfo,i=this._scroller;i&&("start"===t.detail.state?(e.trackingID="touch",e.x=t.detail.x,e.y=t.detail.y):(e.trackingID="mouse",e.x=t.screenX,e.y=t.screenY),e.maxDx=0,e.maxDy=0,e.historyX=[0],e.historyY=[0],e.historyTime=[t.detail.timeStamp],e.listener=i,i.onTouchStart&&i.onTouchStart())},_handleTouchMove:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var i=this._findDelta(t);if(i){for(e.maxDy=Math.max(e.maxDy,Math.abs(i.y)),e.maxDx=Math.max(e.maxDx,Math.abs(i.x)),e.historyX.push(i.x),e.historyY.push(i.y),e.historyTime.push(t.detail.timeStamp);e.historyTime.length>10;)e.historyTime.shift(),e.historyX.shift(),e.historyY.shift();e.listener&&e.listener.onTouchMove&&e.listener.onTouchMove(i.x,i.y,t.detail.timeStamp)}}},_handleTouchEnd:function(t){var e=this._touchInfo;if(-1!==e.trackingID){t.preventDefault();var i=this._findDelta(t);if(i){var n=e.listener;e.trackingID=-1,e.listener=null;var s={x:0,y:0};if(e.historyTime.length>2)for(var r=e.historyTime.length-1,o=e.historyTime[r],a=e.historyX[r],h=e.historyY[r];r>0;){r--;var c=o-e.historyTime[r];if(c>30&&c<50){s.x=(a-e.historyX[r])/(c/1e3),s.y=(h-e.historyY[r])/(c/1e3);break}}e.historyTime=[],e.historyX=[],e.historyY=[],n&&n.onTouchEnd&&n.onTouchEnd(i.x,i.y,s)}}}}}],components:{ResizeSensor:i(6).default},data:function(){return{scope:"picker-view-column-".concat(Date.now()),inited:!1,indicatorStyle:"",indicatorClass:"",indicatorHeight:34,maskStyle:"",maskClass:"",current:this.$parent.getItemValue(this),length:0}},computed:{height:function(){return this.$parent.height},maskSize:function(){return(this.height-this.indicatorHeight)/2}},watch:{indicatorHeight:function(t){this._setItemHeight(t),this.inited&&this.update()},current:function(t){this.$parent.setItemValue(this,t)},length:function(t){this.inited&&this.update(t)}},created:function(){var t=this.$parent;this.indicatorStyle=t.indicatorStyle,this.indicatorClass=t.indicatorClass,this.maskStyle=t.maskStyle,this.maskClass=t.maskClass,this.deltaY=0},mounted:(p=Object(n.a)(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.touchtrack(this.$refs.main,"_handleTrack",!0),this.setCurrent(this.current),this.$nextTick((function(){e.init(),e.update()})),d(this.$el,this._handleTap.bind(this));case 4:case"end":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)}),methods:{_setItemHeight:function(t){var e=document.createElement("style");e.innerText=".s-picker-view-content.".concat(this.scope,">*{height: ").concat(t,"px;line-height: ").concat(t,"px;overflow: hidden;}"),document.head.appendChild(e)},_handleTrack:function(t){if(this._scroller)switch(t.detail.state){case"start":this._handleTouchStart(t);break;case"move":this._handleTouchMove(t);break;case"end":case"cancel":this._handleTouchEnd(t)}},_handleTap:function(t){var e=t.clientY;if(!this._scroller.isScrolling()){var i=e-this.$el.getBoundingClientRect().top-this.height/2,n=this.indicatorHeight/2;if(!(Math.abs(i)<=n)){var s=Math.ceil((Math.abs(i)-n)/this.indicatorHeight),r=i<0?-s:s,o=Math.min(this.current+r,this.length-1);this.current=o=Math.max(o,0),this._scroller.scrollTo(o*this.indicatorHeight)}}},_handleWheel:function(t){var e=this.deltaY+t.deltaY;if(Math.abs(e)>10){this.deltaY=0;var i=Math.min(this.current+(e<0?-1:1),this.length-1);this.current=i=Math.max(i,0),this._scroller.scrollTo(i*this.indicatorHeight)}else this.deltaY=e;t.preventDefault()},setCurrent:function(t){t!==this.current&&(this.current=t,this.inited&&this.update())},init:function(){var t=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,friction:new o(1e-4),spring:new c(2,90,20),onSnap:function(e){isNaN(e)||e===t.current||(t.current=e)}}),this.inited=!0},update:function(){var t=this;this.$nextTick((function(){var e=Math.min(t.current,t.length-1);e=Math.max(e,0),t._scroller.update(e*t.indicatorHeight,void 0,t.indicatorHeight)}))},_resize:function(t){var e=t.height;this.indicatorHeight=e}},render:function(t){return this.length=this.$slots.default&&this.$slots.default.length||0,t("div",{on:{wheel:this._handleWheel},class:"s-picker-view-column"},[t("div",{ref:"main",staticClass:"s-picker-view-group"},[t("div",{ref:"mask",staticClass:"s-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),t("div",{ref:"indicator",staticClass:"s-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[t("resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),t("div",{ref:"content",staticClass:"s-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}},_=i(0),m=Object(_.a)(f,void 0,void 0,!1,null,null,null);m.options.__file="packages/picker-view-column/main.vue";var v=m.exports;v.install=function(t){t.component(v.name,v)};e.default=v},function(t,e,i){"use strict";i.r(e);i(1),i(11);var n=i(4),s={name:"SPickerView",components:{ResizeSensor:i(6).default},props:{value:{type:Array,default:function(){return[]},validator:function(t){return Array.isArray(t)&&t.filter((function(t){return"number"==typeof t})).length===t.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:Object(n.a)(this.value),height:34,items:[],changeSource:""}},watch:{value:function(t){var e=this;this.valueSync.length=t.length,t.forEach((function(t,i){t!==e.valueSync[i]&&e.$set(e.valueSync,i,t)}))},valueSync:{deep:!0,handler:function(t){if(""===this.changeSource)this._valueChanged(t);else{this.changeSource="";var e=Object(n.a)(t);this.$emit("update:value",e),this.$emit("change",e)}}}},methods:{getItemIndex:function(t){return this.items.indexOf(t)},getItemValue:function(t){return this.valueSync[this.getItemIndex(t.$vnode)]||0},setItemValue:function(t,e){var i=this.getItemIndex(t.$vnode);this.valueSync[i]!==e&&(this.changeSource="touch",this.$set(this.valueSync,i,e))},_valueChanged:function(t){this.items.forEach((function(e,i){e.componentInstance.setCurrent(t[i]||0)}))},_resize:function(t){var e=t.height;this.height=e}},render:function(t){var e=[];return this.$slots.default&&this.$slots.default.forEach((function(t){t.componentOptions&&"picker-view-column"===t.componentOptions.tag&&e.push(t)})),this.items=e,t("div",{on:this.$listeners,class:"s-picker-view"},[t("resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),t("div",{ref:"wrapper",class:"s-picker-view-wrapper"},e)])}},r=i(0),o=Object(r.a)(s,void 0,void 0,!1,null,null,null);o.options.__file="packages/picker-view/main.vue";var a=o.exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){t.exports=i(25)},,,,function(t,e){t.exports=require("core-js/library/fn/get-iterator")},,,,,,,,,,function(t,e){t.exports=require("core-js/modules/es6.array.find-index")},function(t,e){t.exports=require("core-js/modules/es6.array.sort")},function(t,e){t.exports=require("core-js/modules/es6.array.fill")},,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);i(1);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("van-popup",{staticClass:"s-calendar-box",attrs:{value:t.value,position:"bottom"},on:{input:function(e){return t.$emit("input",e)}}},[i("div",{staticClass:"s-calendar"},[i("div",{staticClass:"s-calendar-header"},[0===t.type?i("div",{staticClass:"s-calendar-header--date"},[i("p",[t._v(t._s(t.currentSolar[0].hans)+"年")]),i("p",[t._v(t._s(t.currentSolar[1].hans)+"月"+t._s(t.currentSolar[2].hans)+"日")])]):i("div",{staticClass:"s-calendar-header--date"},[i("p",[t._v(t._s(t.currentLunar[0].hans))]),i("p",[t._v("\n "+t._s(t.currentLunar[1]?t.currentLunar[1].hans:"")+t._s(t.currentLunar[2]?t.currentLunar[2].hans:"")+"\n ")])]),i("div",{staticClass:"s-calendar-header--btn-group"},t._l(t.dateList,(function(e,n){return i("div",{key:n,staticClass:"s-calendar-header--btn",class:["s-calendar-header--btn__"+n],style:[n===t.type?{color:"#fff",background:t.color,borderColor:t.color}:{}],on:{click:function(e){return e.stopPropagation(),t.handleCalendarChange(n)}}},[t._v("\n "+t._s(e)+"\n ")])})),0)]),i("div",{staticClass:"s-calendar-content"},[0===t.type?i("picker-view",{staticClass:"s-calendar-content--picker",attrs:{value:t.solarTime,"indicator-class":"ignore-calendar-indicator","mask-style":"opacity:0.5"},on:{change:t.handleSolarDateChange}},[i("picker-view-column",t._l(t.solarYears,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[0]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"年\n ")])})),0),i("picker-view-column",t._l(t.solarMonths,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[1]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"月\n ")])})),0),i("picker-view-column",t._l(t.solarDates,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[2]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"日\n ")])})),0),t.hasDateTime?[i("picker-view-column",t._l(t.hours,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[3]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0),i("picker-view-column",t._l(t.minutes,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.solarTime[4]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0)]:t._e()],2):i("picker-view",{staticClass:"s-calendar-content--picker",attrs:{value:t.lunarTime,"indicator-class":"ignore-calendar-indicator","mask-style":"opacity:0.5"},on:{change:t.handleLunarDateChange}},[i("picker-view-column",t._l(t.lunarYears,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[0]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e.hans)+"\n ")])})),0),i("picker-view-column",t._l(t.lunarMonths,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[1]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e.hans)+"\n ")])})),0),i("picker-view-column",t._l(t.lunarDates,(function(e,n){return i("div",{key:n,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[2]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e.hans)+"\n ")])})),0),t.hasDateTime?[i("picker-view-column",t._l(t.hours,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[3]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0),i("picker-view-column",t._l(t.minutes,(function(e,n){return i("div",{key:e,staticClass:"ignore-calendar-content--picker-item",style:[n===t.lunarTime[4]?{color:t.color,fontWeight:600}:{}]},[t._v("\n "+t._s(e)+"\n ")])})),0)]:t._e()],2)],1),i("div",{staticClass:"s-calendar-footer"},[i("div",{staticClass:"s-calendar-footer--btn s-calendar-footer--cancel",on:{click:t.handleCancel}},[t._v("\n 取消\n ")]),i("div",{staticClass:"s-calendar-footer--btn",style:{background:t.color,color:"#fff",borderColor:t.color},on:{click:t.handleSubmit}},[t._v("\n 确定\n ")])])])])};n._withStripped=!0;i(35);var s=i(5),r=(i(36),i(14),i(37),i(4)),o=i(13),a=i(20),h=i(19),c=function(t,e){return["未知"].concat(Object(r.a)(new Array(t).fill().map((function(t,i){return"".concat(i).concat(e)}))))};function l(t){for(var e="";t>0;)e="〇一二三四五六七八九"[t%10]+e,t=Math.floor(t/10);return e}function u(t,e){return 2!==e?[0,31,0,31,30,31,30,31,31,30,31,30,31][e]:t%400?t%100?t%4?28:29:28:29}function d(t){var e=Object(o.leapMonthOfYear)(t),i=Object(r.a)(Array(12)).map((function(t,e){return{month:e+1,leap:!1}}));return e&&(i=i.concat({month:e,leap:!0}).sort((function(t,e){return t.month-e.month}))),i.map((function(t){return Object.assign({},t,{hans:Object(o.monthName)(t.month,!0,t.leap)})}))}function p(t,e,i){for(var n=function(t,e,i){var n=Object(o.lunarToSolar)(t,e,1,i);return Object(o.leapMonthOfYear)(t)!==e||i?12===e?(t+=1,e=1):(i=!1,e+=1):i=!0,(Object(o.lunarToSolar)(t,e,1,i).valueOf()-n.valueOf())/864e5}(t,e,i),s=[],r=1;r<=n;r+=1)s.push({date:r,hans:Object(o.dayName)(r)});return s}function f(t){return t<10?"0".concat(t):"".concat(t)}var _=c(24,"时"),m=c(60,"分"),v=function(){for(var t=(new Date).getFullYear(),e=[],i=1930;i<=t;i++)e.push(i);return e}(),g=function(t){for(var e=Number(Object(o.solarToLunar)(new Date(t[0],0,1),"y")),i=Number(Object(o.solarToLunar)(new Date(t[t.length-1],11,31),"y")),n=[],s=e;s<=i;s+=1)n.push({year:s,hans:l(s)});return n}(v),y={1986:[Date.UTC(1986,5,4),Date.UTC(1986,9,14)],1987:[Date.UTC(1987,4,12),Date.UTC(1987,9,13)],1988:[Date.UTC(1988,4,10),Date.UTC(1988,9,11)],1989:[Date.UTC(1989,5,16),Date.UTC(1989,9,17)],1990:[Date.UTC(1990,4,15),Date.UTC(1990,9,16)],1991:[Date.UTC(1991,4,14),Date.UTC(1991,9,15)]},T={name:"SCalendar",components:{PickerView:a.default,PickerViewColumn:h.default},props:{defaultDate:{type:Array,required:!1,default:function(){return[1995,1,1]}},defaultTime:{type:Array,required:!1,default:function(){return[-1,-1]}},isLunar:{type:Boolean,required:!1,dafault:!0},value:{type:Boolean,default:!1},defaultType:{type:Number,default:0},color:{type:String,default:"#522273"},dateType:{type:String,default:"date"}},data:function(){return{solarValue:[-1,-1,-1],solarYears:v,solarMonths:12,solarDates:31,lunarValue:[-1,-1,-1],lunarYears:g,lunarMonths:[],lunarDates:[],type:0,hours:_,minutes:m,dateList:["公历","农历"],currentTime:[-1,-1]}},computed:{solarTime:function(){var t=Object(s.a)(this.currentTime,2),e=t[0],i=void 0===e?0:e,n=t[1],r=void 0===n?0:n;return this.solarValue.concat(i,r)},lunarTime:function(){var t=Object(s.a)(this.currentTime,2),e=t[0],i=void 0===e?0:e,n=t[1],r=void 0===n?0:n;return this.lunarValue.concat(i,r)},currentSolar:function(){var t=Object(s.a)(this.solarValue,3),e=t[0],i=t[1],n=t[2],r=this.solarYears[e]||this.solarYears[0],o=i+1,a=n+1;return[{hans:f(r),year:r},{hans:f(o),month:o},{hans:f(a),date:a}]},currentLunar:function(){var t=Object(s.a)(this.lunarValue,3),e=t[0],i=t[1],n=t[2];return[this.lunarYears[e]||this.lunarYears[0],this.lunarMonths[i]||this.lunarMonths[0],this.lunarDates[n]||this.lunarDates[0]]},hasDateTime:function(){return"datetime"===this.dateType}},mounted:function(){this.currentTime=this.defaultTime,this.initDate()},methods:{cancal:function(){this.$emit("input",!1)},getTruthTime:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=Date.UTC.apply(Date,e),s=y[e[0]],r=-8;s&&n>=s[0]&&n<=s[1]&&(r=-9);var o=60*r*60*1e3;return n+o},handleSubmit:function(){var t={solar:this.currentSolar,lunar:this.currentLunar,type:this.type,time:[0,0]};if(this.hasDateTime){var e=Object(s.a)(this.currentTime,2),i=e[0],n=void 0===i?0:i,o=e[1],a=void 0===o?0:o;0===n&&(n=1),0===a&&(a=1),t.time=[n-1,a-1]}var h=this.getTruthTime.apply(this,[this.currentSolar[0].year,this.currentSolar[1].month-1,this.currentSolar[2].date].concat(Object(r.a)(t.time)));this.cancal(),this.$emit("change",t,h)},handleCancel:function(){this.cancal(),this.$emit("cancel")},initDate:function(){var t=Object(s.a)(this.defaultDate,3),e=t[0],i=t[1],n=t[2];this.type=this.defaultType;var r=this.solarYears.findIndex((function(t){return t===e}));this.handleSolarDateChange([r,i-1,n-1],!0)},handleCalendarChange:function(t){this.type=t},handleSolarDateChange:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(s.a)(t,5),o=r[0],a=r[1],h=r[2],c=r[3],l=r[4],d=Object(s.a)(this.solarValue,3),p=d[0],f=d[1],_=d[2];if(i||o!==p||a!==f){var m=this.solarYears[o],v=a+1;this.solarDates=u(m,v)}this.$nextTick().then((function(){e.solarValue=[o,a,h],e.currentTime=[c,l]})),!n||o===p&&a===f&&h===_||this.$nextTick().then((function(){var t=Object(s.a)(e.currentSolar,3),i=t[0].year,n=t[1].month,r=t[2].date;e.findLunarValue(i,n,r)}))},handleLunarDateChange:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(s.a)(t,5),o=r[0],a=r[1],h=r[2],c=r[3],l=r[4],u=Object(s.a)(this.lunarValue,3),f=u[0],_=u[1],m=u[2];if((i||o!==f)&&(this.lunarMonths=d(this.lunarYears[o].year)),i||o!==f||a!==_){var v=this.lunarYears[o].year,g=this.lunarMonths[a],y=g.month,T=g.leap;this.lunarDates=p(v,y,T)}this.$nextTick().then((function(){e.lunarValue=[o,a,h],e.currentTime=[c,l]})),!n||o===f&&a===_&&h===m||this.$nextTick().then((function(){var t=Object(s.a)(e.currentLunar,3),i=t[0],n=(i=void 0===i?{}:i).year,r=void 0===n?1989:n,o=t[1],a=(o=void 0===o?{}:o).month,h=void 0===a?12:a,c=o.leap,l=void 0!==c&&c,u=t[2],d=(u=void 0===u?{}:u).date,p=void 0===d?5:d;e.findSolarValue(r,h,p,l)}))},findSolarValue:function(t,e,i,n){var s=Object(o.lunarToSolar)(t,e,i,n),a=s.getFullYear(),h=s.getMonth(),c=s.getDate()-1,l=this.solarYears.findIndex((function(t){return t===a}));this.handleSolarDateChange([l,h,c].concat(Object(r.a)(this.currentTime)),!0,!1)},findLunarValue:function(t,e,i){var n=Object(o.solarToLunar)(new Date(t,e-1,i,0,0,0)),s=n.leap,a=n.year,h=n.month,c=n.day,l=n.leapMonth,u=this.lunarYears.findIndex((function(t){return t.year===a})),d=l&&(s||h>l)?h:h-1,p=c-1;this.handleLunarDateChange([u,d,p].concat(Object(r.a)(this.currentTime)),!0,!1)}}},x=i(0),b=Object(x.a)(T,n,[],!1,null,null,null);b.options.__file="packages/calendar/main.vue";var S=b.exports;S.install=function(t){t.component(S.name,S)};e.default=S}]); |
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=53)}([,,function(e,r,t){e.exports=t(10)},function(e,r,t){"use strict";t.d(r,"a",(function(){return i}));var n=t(2),o=t.n(n);function u(e,r,t,n,u,i,a){try{var c=e[i](a),s=c.value}catch(e){return void t(e)}c.done?r(s):o.a.resolve(s).then(n,u)}function i(e){return function(){var r=this,t=arguments;return new o.a((function(n,o){var i=e.apply(r,t);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))}}},function(e,r,t){"use strict";var n=t(7),o=t.n(n);t(14);var u=t(12),i=t.n(u),a=t(8),c=t.n(a);function s(e){return function(e){if(o()(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(c()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return i()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}t.d(r,"a",(function(){return s}))},,,function(e,r,t){e.exports=t(16)},function(e,r,t){e.exports=t(17)},function(e,r){e.exports=require("regenerator-runtime/runtime")},function(e,r){e.exports=require("core-js/library/fn/promise")},function(e,r){e.exports=require("core-js/modules/web.dom.iterable")},function(e,r,t){e.exports=t(18)},,function(e,r){e.exports=require("core-js/modules/es6.regexp.to-string")},,function(e,r){e.exports=require("core-js/library/fn/array/is-array")},function(e,r){e.exports=require("core-js/library/fn/is-iterable")},function(e,r){e.exports=require("core-js/library/fn/array/from")},,,,,,,,,,,,function(e,r){e.exports=require("vue")},function(e,r){e.exports=require("html2canvas")},,,,,,,function(e,r){e.exports=require("core-js/modules/es6.string.iterator")},function(e,r){e.exports=require("core-js/modules/es6.regexp.match")},,,,,,,,,,,,,,function(e,r,t){"use strict";t.r(r);t(9);var n=t(3),o=t(30),u=t.n(o),i=(t(11),t(38),t(4)),a=(t(39),t(31)),c=t.n(a),s=function(e){return new Promise((function(r){if("string"!=typeof e)return r(e);if(e.match(/base64/))return r(e);var t=document.createElement("canvas"),n=t.getContext("2d"),o=new Image;o.crossOrigin="Anonymous",o.src=e,o.onload=function(){t.height=o.height,t.width=o.width,n.drawImage(o,0,0);var e=t.toDataURL("image/png");r(e),t=null},o.onerror=function(t){console.error(t),r(e)}}))};function f(e){return l.apply(this,arguments)}function l(){return(l=Object(n.a)(regeneratorRuntime.mark((function e(r){var t,n,o,u,i,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{scale:2},n=document.createElement("canvas"),o=r.offsetWidth,u=r.offsetHeight,i=t.scale,n.width=o*i,n.height=u*i,n.style.width="".concat(o,"px"),n.style.height="".concat(u,"px"),e.next=11,c()(r,{width:o,height:u,scale:i,useCORS:!0,canvas:n,scrollX:0,scrollY:0,imageTimeout:0});case 11:return a=e.sent,e.abrupt("return",a.toDataURL("image/jpeg",1));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=Object(n.a)(regeneratorRuntime.mark((function e(r){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=r.querySelectorAll("img"),n=Object(i.a)(t).map((function(e){return s(e.src)})),e.next=5,Promise.all(n);case 5:e.sent.forEach((function(e,r){t[r].src=e})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error(e.t0,"图片错误");case 12:return e.prev=12,e.abrupt("return",r);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})))).apply(this,arguments)}var m=function(e,r){return v.apply(this,arguments)};function v(){return(v=Object(n.a)(regeneratorRuntime.mark((function e(r,t){var n,o,i,a,c,s,l,d,m,v,g=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=g.length>2&&void 0!==g[2]?g[2]:{},o=n.debug,i=void 0!==o&&o,a=n.scale,c=void 0===a?2:a,s=n.base64,l=void 0!==s&&s,d=new u.a({render:function(e){return e(r,{props:t,staticClass:"s-canvas-to-imgae",class:i?"s-canvas-to-imgae--debug":""})}}).$mount(),!l){e.next=9;break}return e.next=6,p(d.$el);case 6:e.t0=e.sent,e.next=10;break;case 9:e.t0=d.$el;case 10:if(m=e.t0,document.body.appendChild(m),!i){e.next=14;break}return e.abrupt("return",Promise.resolve());case 14:return e.next=16,f(m,{scale:c});case 16:return v=e.sent,document.body.removeChild(m),e.abrupt("return",v);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}m.install=function(e){return e.prototype.$genImage=m};r.default=m}]); | ||
module.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=54)}([,,function(e,r,t){e.exports=t(10)},function(e,r,t){"use strict";t.d(r,"a",(function(){return i}));var n=t(2),o=t.n(n);function u(e,r,t,n,u,i,a){try{var c=e[i](a),s=c.value}catch(e){return void t(e)}c.done?r(s):o.a.resolve(s).then(n,u)}function i(e){return function(){var r=this,t=arguments;return new o.a((function(n,o){var i=e.apply(r,t);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))}}},function(e,r,t){"use strict";var n=t(7),o=t.n(n);t(15);var u=t(12),i=t.n(u),a=t(8),c=t.n(a);function s(e){return function(e){if(o()(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(c()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return i()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}t.d(r,"a",(function(){return s}))},,,function(e,r,t){e.exports=t(16)},function(e,r,t){e.exports=t(17)},function(e,r){e.exports=require("regenerator-runtime/runtime")},function(e,r){e.exports=require("core-js/library/fn/promise")},function(e,r){e.exports=require("core-js/modules/web.dom.iterable")},function(e,r,t){e.exports=t(18)},,,function(e,r){e.exports=require("core-js/modules/es6.regexp.to-string")},function(e,r){e.exports=require("core-js/library/fn/array/is-array")},function(e,r){e.exports=require("core-js/library/fn/is-iterable")},function(e,r){e.exports=require("core-js/library/fn/array/from")},,,,,,,,,,,,function(e,r){e.exports=require("vue")},function(e,r){e.exports=require("html2canvas")},,,,,,,function(e,r){e.exports=require("core-js/modules/es6.string.iterator")},function(e,r){e.exports=require("core-js/modules/es6.regexp.match")},,,,,,,,,,,,,,,function(e,r,t){"use strict";t.r(r);t(9);var n=t(3),o=t(30),u=t.n(o),i=(t(11),t(38),t(4)),a=(t(39),t(31)),c=t.n(a),s=function(e){return new Promise((function(r){if("string"!=typeof e)return r(e);if(e.match(/base64/))return r(e);var t=document.createElement("canvas"),n=t.getContext("2d"),o=new Image;o.crossOrigin="Anonymous",o.src=e,o.onload=function(){t.height=o.height,t.width=o.width,n.drawImage(o,0,0);var e=t.toDataURL("image/png");r(e),t=null},o.onerror=function(t){console.error(t),r(e)}}))};function f(e){return l.apply(this,arguments)}function l(){return(l=Object(n.a)(regeneratorRuntime.mark((function e(r){var t,n,o,u,i,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>1&&void 0!==s[1]?s[1]:{scale:2},n=document.createElement("canvas"),o=r.offsetWidth,u=r.offsetHeight,i=t.scale,n.width=o*i,n.height=u*i,n.style.width="".concat(o,"px"),n.style.height="".concat(u,"px"),e.next=11,c()(r,{width:o,height:u,scale:i,useCORS:!0,canvas:n,scrollX:0,scrollY:0,imageTimeout:0});case 11:return a=e.sent,e.abrupt("return",a.toDataURL("image/jpeg",1));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return(d=Object(n.a)(regeneratorRuntime.mark((function e(r){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=r.querySelectorAll("img"),n=Object(i.a)(t).map((function(e){return s(e.src)})),e.next=5,Promise.all(n);case 5:e.sent.forEach((function(e,r){t[r].src=e})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error(e.t0,"图片错误");case 12:return e.prev=12,e.abrupt("return",r);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})))).apply(this,arguments)}var m=function(e,r){return v.apply(this,arguments)};function v(){return(v=Object(n.a)(regeneratorRuntime.mark((function e(r,t){var n,o,i,a,c,s,l,d,m,v,g=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=g.length>2&&void 0!==g[2]?g[2]:{},o=n.debug,i=void 0!==o&&o,a=n.scale,c=void 0===a?2:a,s=n.base64,l=void 0!==s&&s,d=new u.a({render:function(e){return e(r,{props:t,staticClass:"s-canvas-to-imgae",class:i?"s-canvas-to-imgae--debug":""})}}).$mount(),!l){e.next=9;break}return e.next=6,p(d.$el);case 6:e.t0=e.sent,e.next=10;break;case 9:e.t0=d.$el;case 10:if(m=e.t0,document.body.appendChild(m),!i){e.next=14;break}return e.abrupt("return",Promise.resolve());case 14:return e.next=16,f(m,{scale:c});case 16:return v=e.sent,document.body.removeChild(m),e.abrupt("return",v);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}m.install=function(e){return e.prototype.$genImage=m};r.default=m}]); |
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=50)}({0:function(e,t,n){"use strict";function o(e,t,n,o,r,i,s,u){var c,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=c):r&&(c=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(a.functional){a._injectStyles=c;var l=a.render;a.render=function(e,t){return c.call(t),l(e,t)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:a}}n.d(t,"a",(function(){return o}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},15:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},50:function(e,t,n){"use strict";n.r(t);n(1);var o=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"s-go-home",style:{boxShadow:"0px 4px 14px 0px "+this.color,zIndex:this.zIndex},on:{click:this.jumpHome}},[t("svg",{staticClass:"icon",attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14"}},[t("path",{attrs:{fill:this.color,d:"M982.942252 439.393802L597.918435 38.571136A124.050227 124.050227 0 0 0 507.708954 0.000488C473.478114 0.000488 441.539081 13.653814 417.596997 38.571136L32.573181 439.393802c-39.740933 41.398837-34.620936 77.141297-28.086844 92.062433 4.681141 10.63009 20.47999 39.740933 66.023588 39.740933h56.417496v308.370139c0 69.9733 50.2735 135.899364 121.709657 135.899364H412.525762v-326.314512c0-35.011031-5.266283-54.467022 30.476176-54.467021h129.511557c35.742459 0 30.427414 19.504753 30.427414 54.467021v326.314512h163.937446c71.387395 0 121.660894-65.926064 121.660894-135.899364v-308.370139h56.466259c45.494835 0 61.293685-29.110843 65.974826-39.740933 6.582854-14.921136 11.702852-50.712357-28.038082-92.062433z"}})])])};o._withStripped=!0;n(15);var r={name:"SGoHome",props:{appid:{type:[String,Number],default:0},color:{type:String,default:"#FF6D39"},zIndex:{type:[Number,String],default:1e3}},methods:{jumpHome:function(){window.__S_BUS__&&(window.__S_BUS__.$emit("home",this.appid),window.__S_BUS__.$emit("track",{product:this.appid,process:"报告",type:"首页"}))}}},i=n(0),s=Object(i.a)(r,o,[],!1,null,null,null);s.options.__file="packages/go-home/main.vue";var u=s.exports;u.install=function(e){e.component(u.name,u)};t.default=u}}); | ||
module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}({0:function(e,t,n){"use strict";function o(e,t,n,o,r,i,s,u){var c,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=c):r&&(c=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(a.functional){a._injectStyles=c;var l=a.render;a.render=function(e,t){return c.call(t),l(e,t)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:a}}n.d(t,"a",(function(){return o}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},14:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},48:function(e,t,n){"use strict";n.r(t);n(1);var o=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"s-go-home",style:{boxShadow:"0px 4px 14px 0px "+this.color,zIndex:this.zIndex},on:{click:this.jumpHome}},[t("svg",{staticClass:"icon",attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14"}},[t("path",{attrs:{fill:this.color,d:"M982.942252 439.393802L597.918435 38.571136A124.050227 124.050227 0 0 0 507.708954 0.000488C473.478114 0.000488 441.539081 13.653814 417.596997 38.571136L32.573181 439.393802c-39.740933 41.398837-34.620936 77.141297-28.086844 92.062433 4.681141 10.63009 20.47999 39.740933 66.023588 39.740933h56.417496v308.370139c0 69.9733 50.2735 135.899364 121.709657 135.899364H412.525762v-326.314512c0-35.011031-5.266283-54.467022 30.476176-54.467021h129.511557c35.742459 0 30.427414 19.504753 30.427414 54.467021v326.314512h163.937446c71.387395 0 121.660894-65.926064 121.660894-135.899364v-308.370139h56.466259c45.494835 0 61.293685-29.110843 65.974826-39.740933 6.582854-14.921136 11.702852-50.712357-28.038082-92.062433z"}})])])};o._withStripped=!0;n(14);var r={name:"SGoHome",props:{appid:{type:[String,Number],default:0},color:{type:String,default:"#FF6D39"},zIndex:{type:[Number,String],default:1e3}},methods:{jumpHome:function(){window.__S_BUS__&&(window.__S_BUS__.$emit("home",this.appid),window.__S_BUS__.$emit("track",{product:this.appid,process:"报告",type:"首页"}))}}},i=n(0),s=Object(i.a)(r,o,[],!1,null,null,null);s.options.__file="packages/go-home/main.vue";var u=s.exports;u.install=function(e){e.component(u.name,u)};t.default=u}}); |
@@ -1,1 +0,1 @@ | ||
module.exports=function(r){var e={};function t(n){if(e[n])return e[n].exports;var u=e[n]={i:n,l:!1,exports:{}};return r[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var u in r)t.d(n,u,function(e){return r[e]}.bind(null,u));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s=48)}({0:function(r,e,t){"use strict";function n(r,e,t,n,u,o,i,s){var a,c="function"==typeof r?r.options:r;if(e&&(c.render=e,c.staticRenderFns=t,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(a=function(r){(r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(r=__VUE_SSR_CONTEXT__),u&&u.call(this,r),r&&r._registeredComponents&&r._registeredComponents.add(i)},c._ssrRegister=a):u&&(a=s?function(){u.call(this,this.$root.$options.shadowRoot)}:u),a)if(c.functional){c._injectStyles=a;var Q=c.render;c.render=function(r,e){return a.call(e),Q(r,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,a):[a]}return{exports:r,options:c}}t.d(e,"a",(function(){return n}))},1:function(r,e){r.exports=require("core-js/modules/es6.function.name")},10:function(r,e){r.exports=require("core-js/library/fn/promise")},2:function(r,e,t){r.exports=t(10)},3:function(r,e,t){"use strict";t.d(e,"a",(function(){return i}));var n=t(2),u=t.n(n);function o(r,e,t,n,o,i,s){try{var a=r[i](s),c=a.value}catch(r){return void t(r)}a.done?e(c):u.a.resolve(c).then(n,o)}function i(r){return function(){var e=this,t=arguments;return new u.a((function(n,u){var i=r.apply(e,t);function s(r){o(i,n,u,s,a,"next",r)}function a(r){o(i,n,u,s,a,"throw",r)}s(void 0)}))}}},40:function(r,e){r.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAACB1BMVEVHcEwQruMRr+MAqtQAzP8Qr+IQreIQr+IUresRruEA//8PruIQruIAv/8PreIQruIQr+MQruQQreIPr+QPreIPr+ERseQQr+MRqt0RruIQreEQruMQr+MQruIVquoQruIQr+MAs+YNs+YQr+QQruMQruMPruIRr+IQruIRruEAf/8Pr+IQruEAqv8PreIQruIQruMQr+MQr+MNruQRsOMQr+MQr+IPruMPruILsekQruMPruIAAP8PruQPr+IQruIQseUOruMQruMMsOcQr+MPruMRquUOrOIAougUsdgPrOEQruIRreEQruIQr+IPr+IQruIPr+MQruIRreIQruMPr+IQr+IOsucRruIRr+MRsOIQreQRruMRruIAmcwQr+IQruISsOUPruIQruISsucPruITsOMPruMQruEPr+MQruIOquMQruMQruIQruIas+YQr+EQr+ISruQPruISreIPr+EPr+QSrOEPreAQruIQruIPruIPruMQruIQr+IRr+MQruQNruQTs+MQr+QOreIQruEPr+MAquMPr+QQr+MQruIQreIPruARruEOseMQruIQruMRseUQruIPr+EQruUQruMSsOcQruIPr+MPr+IQr+QQruMQr+IQruIPr+IQr+EPruIMsOEQseIPr+IQr+IRruIQreMPruIQr+IPreESpNsRr+MQruJD99h3AAAArHRSTlMAbmwGBWD9+BlMAef+BJbErJ6fQ+dDS5IPmKyrnO8M0X8KFF38/dZpYTwCpvIGuPC++0ATLeHC6fcXm4QBQkbuTkiUKp3XHkcLDSL9Z+XV6NBTjXryqbI11plqQYhoBXPiHfjNK/k3h1/YyhLa5PsKknw5hVeJVisy9vPHxqHuiS85G3A1bnYJef6qr0KKJLr7O+ZWT6MqT8iWg8Cgv5V/uSo+I1AsUdnxVA5JYy5PGgAAAddJREFUOMtjYGBgEBbgZluDE7BxCwgzgACz0BqCQIgZqFBwDRFAkIFBdA1RQJRBijiF0gwi6EIBDmJiYn7ooiIMGP7lA/mQH8PvDGuIU7iGdgqXc8CABEghLwsUNKErNOWEAROQwtWsUNCK22pJkEIzItxIUKEeEwQYgRSuZISASiwKZzFgggpsJhqyo4AVq4AKi/G5EQq6QSZmEqGwDKjOBItnJokvW7p44SKNXoMqMD9XF6hQHEOhvjoz3AO8RQrJPGvigSyJEHSFpn1A0YlTlmgaQxUnRskBSQX0cDRsYejpnwDidarVl8ONlpNFV1jL0MyDEMnKiIOqdAt2RVVo1KCC4uGEWLip4eLmSArzS1FDxjsQKXJ47SL9oQrzGCRR1Kn6gOQ1POFqtTRj5HlAJiopI6tLUgZJyqyxt7ZEMlgJpLCEuQahLicNKMzlBGJaWDnDFXKBFFZzGXdBldUVKgJFFbWhXB49RxskhWvaGBimzdeeu2Dm5HaQYIo8kkvU1D0gSsHO79BCuCY7PRU1EGSDvGAK16yZMV0XYkNjgQ5mSlIJc+eCFyk6s+fMm2qgjyvVRWAWUtiBL4M0cQpDiS1Io4ksmmWILOxdIBmAUPUhZQtUBACgEA5W+hZaOgAAAABJRU5ErkJggg=="},48:function(r,e,t){"use strict";t.r(e);t(1);var n=function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("van-popup",{staticClass:"s-pay",attrs:{value:r.value,position:"bottom"},on:{input:function(e){return r.$emit("input",e)}}},[t("div",{staticClass:"s-pay-title"},[r._v("选择支付方式")]),t("van-radio-group",{model:{value:r.payType,callback:function(e){r.payType=e},expression:"payType"}},r._l(r.payList,(function(e,n){return t("div",{key:n,staticClass:"s-pay-item",on:{click:function(t){r.payType=e.value}}},[t("div",{staticClass:"s-pay-item-left"},[t("img",{staticClass:"s-pay-item-left-icon",attrs:{src:e.icon}}),t("p",[r._v(r._s(e.name))])]),t("van-radio",{attrs:{"checked-color":"#39AC6E",name:e.value}})],1)})),0),t("div",{staticClass:"s-pay-bootom"},[t("div",{staticClass:"s-pay-money"},[t("span",[r._v("合计: ")]),t("span",{staticClass:"s-pay-money-value"},[r._v("¥"+r._s(r.info.money))])]),t("div",{staticClass:"s-pay-btn",on:{click:r.handlePay}},[r._v("去支付")])])],1)};n._withStripped=!0;t(9);var u,o=t(3),i={name:"SH5Pay",props:{value:{type:Boolean,default:!1},info:{type:Object,default:function(){return{}}}},data:function(){return{payType:1,payList:[{name:"支付宝支付",value:1,icon:t(40)}]}},methods:{handlePay:(u=Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.$emit("onpay");case 1:case"end":return r.stop()}}),r,this)}))),function(){return u.apply(this,arguments)})}},s=t(0),a=Object(s.a)(i,n,[],!1,null,null,null);a.options.__file="packages/h5-pay/main.vue";var c=a.exports;c.install=function(r){r.component(c.name,c)};e.default=c},9:function(r,e){r.exports=require("regenerator-runtime/runtime")}}); | ||
module.exports=function(r){var e={};function t(n){if(e[n])return e[n].exports;var u=e[n]={i:n,l:!1,exports:{}};return r[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var u in r)t.d(n,u,function(e){return r[e]}.bind(null,u));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s=47)}({0:function(r,e,t){"use strict";function n(r,e,t,n,u,o,i,s){var a,c="function"==typeof r?r.options:r;if(e&&(c.render=e,c.staticRenderFns=t,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(a=function(r){(r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(r=__VUE_SSR_CONTEXT__),u&&u.call(this,r),r&&r._registeredComponents&&r._registeredComponents.add(i)},c._ssrRegister=a):u&&(a=s?function(){u.call(this,this.$root.$options.shadowRoot)}:u),a)if(c.functional){c._injectStyles=a;var Q=c.render;c.render=function(r,e){return a.call(e),Q(r,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,a):[a]}return{exports:r,options:c}}t.d(e,"a",(function(){return n}))},1:function(r,e){r.exports=require("core-js/modules/es6.function.name")},10:function(r,e){r.exports=require("core-js/library/fn/promise")},2:function(r,e,t){r.exports=t(10)},3:function(r,e,t){"use strict";t.d(e,"a",(function(){return i}));var n=t(2),u=t.n(n);function o(r,e,t,n,o,i,s){try{var a=r[i](s),c=a.value}catch(r){return void t(r)}a.done?e(c):u.a.resolve(c).then(n,o)}function i(r){return function(){var e=this,t=arguments;return new u.a((function(n,u){var i=r.apply(e,t);function s(r){o(i,n,u,s,a,"next",r)}function a(r){o(i,n,u,s,a,"throw",r)}s(void 0)}))}}},40:function(r,e){r.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAACB1BMVEVHcEwQruMRr+MAqtQAzP8Qr+IQreIQr+IUresRruEA//8PruIQruIAv/8PreIQruIQr+MQruQQreIPr+QPreIPr+ERseQQr+MRqt0RruIQreEQruMQr+MQruIVquoQruIQr+MAs+YNs+YQr+QQruMQruMPruIRr+IQruIRruEAf/8Pr+IQruEAqv8PreIQruIQruMQr+MQr+MNruQRsOMQr+MQr+IPruMPruILsekQruMPruIAAP8PruQPr+IQruIQseUOruMQruMMsOcQr+MPruMRquUOrOIAougUsdgPrOEQruIRreEQruIQr+IPr+IQruIPr+MQruIRreIQruMPr+IQr+IOsucRruIRr+MRsOIQreQRruMRruIAmcwQr+IQruISsOUPruIQruISsucPruITsOMPruMQruEPr+MQruIOquMQruMQruIQruIas+YQr+EQr+ISruQPruISreIPr+EPr+QSrOEPreAQruIQruIPruIPruMQruIQr+IRr+MQruQNruQTs+MQr+QOreIQruEPr+MAquMPr+QQr+MQruIQreIPruARruEOseMQruIQruMRseUQruIPr+EQruUQruMSsOcQruIPr+MPr+IQr+QQruMQr+IQruIPr+IQr+EPruIMsOEQseIPr+IQr+IRruIQreMPruIQr+IPreESpNsRr+MQruJD99h3AAAArHRSTlMAbmwGBWD9+BlMAef+BJbErJ6fQ+dDS5IPmKyrnO8M0X8KFF38/dZpYTwCpvIGuPC++0ATLeHC6fcXm4QBQkbuTkiUKp3XHkcLDSL9Z+XV6NBTjXryqbI11plqQYhoBXPiHfjNK/k3h1/YyhLa5PsKknw5hVeJVisy9vPHxqHuiS85G3A1bnYJef6qr0KKJLr7O+ZWT6MqT8iWg8Cgv5V/uSo+I1AsUdnxVA5JYy5PGgAAAddJREFUOMtjYGBgEBbgZluDE7BxCwgzgACz0BqCQIgZqFBwDRFAkIFBdA1RQJRBijiF0gwi6EIBDmJiYn7ooiIMGP7lA/mQH8PvDGuIU7iGdgqXc8CABEghLwsUNKErNOWEAROQwtWsUNCK22pJkEIzItxIUKEeEwQYgRSuZISASiwKZzFgggpsJhqyo4AVq4AKi/G5EQq6QSZmEqGwDKjOBItnJokvW7p44SKNXoMqMD9XF6hQHEOhvjoz3AO8RQrJPGvigSyJEHSFpn1A0YlTlmgaQxUnRskBSQX0cDRsYejpnwDidarVl8ONlpNFV1jL0MyDEMnKiIOqdAt2RVVo1KCC4uGEWLip4eLmSArzS1FDxjsQKXJ47SL9oQrzGCRR1Kn6gOQ1POFqtTRj5HlAJiopI6tLUgZJyqyxt7ZEMlgJpLCEuQahLicNKMzlBGJaWDnDFXKBFFZzGXdBldUVKgJFFbWhXB49RxskhWvaGBimzdeeu2Dm5HaQYIo8kkvU1D0gSsHO79BCuCY7PRU1EGSDvGAK16yZMV0XYkNjgQ5mSlIJc+eCFyk6s+fMm2qgjyvVRWAWUtiBL4M0cQpDiS1Io4ksmmWILOxdIBmAUPUhZQtUBACgEA5W+hZaOgAAAABJRU5ErkJggg=="},47:function(r,e,t){"use strict";t.r(e);t(1);var n=function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("van-popup",{staticClass:"s-pay",attrs:{value:r.value,position:"bottom"},on:{input:function(e){return r.$emit("input",e)}}},[t("div",{staticClass:"s-pay-title"},[r._v("选择支付方式")]),t("van-radio-group",{model:{value:r.payType,callback:function(e){r.payType=e},expression:"payType"}},r._l(r.payList,(function(e,n){return t("div",{key:n,staticClass:"s-pay-item",on:{click:function(t){r.payType=e.value}}},[t("div",{staticClass:"s-pay-item-left"},[t("img",{staticClass:"s-pay-item-left-icon",attrs:{src:e.icon}}),t("p",[r._v(r._s(e.name))])]),t("van-radio",{attrs:{"checked-color":"#39AC6E",name:e.value}})],1)})),0),t("div",{staticClass:"s-pay-bootom"},[t("div",{staticClass:"s-pay-money"},[t("span",[r._v("合计: ")]),t("span",{staticClass:"s-pay-money-value"},[r._v("¥"+r._s(r.info.money))])]),t("div",{staticClass:"s-pay-btn",on:{click:r.handlePay}},[r._v("去支付")])])],1)};n._withStripped=!0;t(9);var u,o=t(3),i={name:"SH5Pay",props:{value:{type:Boolean,default:!1},info:{type:Object,default:function(){return{}}}},data:function(){return{payType:1,payList:[{name:"支付宝支付",value:1,icon:t(40)}]}},methods:{handlePay:(u=Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.$emit("onpay");case 1:case"end":return r.stop()}}),r,this)}))),function(){return u.apply(this,arguments)})}},s=t(0),a=Object(s.a)(i,n,[],!1,null,null,null);a.options.__file="packages/h5-pay/main.vue";var c=a.exports;c.install=function(r){r.component(c.name,c)};e.default=c},9:function(r,e){r.exports=require("regenerator-runtime/runtime")}}); |
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=require("core-js/modules/es6.function.name")},,,function(e,t,n){"use strict";var r=n(7),i=n.n(r);n(14);var o=n(12),s=n.n(o),a=n(8),u=n.n(a);function c(e){return function(e){if(i()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(u()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return s()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return c}))},,function(e,t,n){"use strict";n.r(t);n(1);var r={name:"SResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(e){this.$emit("resize",Object.assign({},e))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},methods:{reset:function(){var e=this.$el.firstChild,t=this.$el.lastChild;e.scrollLeft=1e5,e.scrollTop=1e5,t.scrollLeft=1e5,t.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}},render:function(e){return e("div",{on:{"~animationstart":this.update},class:"s-resize-sensor"},[e("div",{on:{scroll:this.update}},[e("div")]),e("div",{on:{scroll:this.update}},[e("div")])])}},i=n(0),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/resize-sensor/main.vue";var s=o.exports;s.install=function(e){e.component(s.name,s)};t.default=s},function(e,t,n){e.exports=n(16)},function(e,t,n){e.exports=n(17)},,,function(e,t){e.exports=require("core-js/modules/web.dom.iterable")},function(e,t,n){e.exports=n(18)},,function(e,t){e.exports=require("core-js/modules/es6.regexp.to-string")},,function(e,t){e.exports=require("core-js/library/fn/array/is-array")},function(e,t){e.exports=require("core-js/library/fn/is-iterable")},function(e,t){e.exports=require("core-js/library/fn/array/from")},,function(e,t,n){"use strict";n.r(t);n(1),n(11);var r=n(4),i={name:"SPickerView",components:{ResizeSensor:n(6).default},props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)&&e.filter((function(e){return"number"==typeof e})).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:Object(r.a)(this.value),height:34,items:[],changeSource:""}},watch:{value:function(e){var t=this;this.valueSync.length=e.length,e.forEach((function(e,n){e!==t.valueSync[n]&&t.$set(t.valueSync,n,e)}))},valueSync:{deep:!0,handler:function(e){if(""===this.changeSource)this._valueChanged(e);else{this.changeSource="";var t=Object(r.a)(e);this.$emit("update:value",t),this.$emit("change",t)}}}},methods:{getItemIndex:function(e){return this.items.indexOf(e)},getItemValue:function(e){return this.valueSync[this.getItemIndex(e.$vnode)]||0},setItemValue:function(e,t){var n=this.getItemIndex(e.$vnode);this.valueSync[n]!==t&&(this.changeSource="touch",this.$set(this.valueSync,n,t))},_valueChanged:function(e){this.items.forEach((function(t,n){t.componentInstance.setCurrent(e[n]||0)}))},_resize:function(e){var t=e.height;this.height=t}},render:function(e){var t=[];return this.$slots.default&&this.$slots.default.forEach((function(e){e.componentOptions&&"picker-view-column"===e.componentOptions.tag&&t.push(e)})),this.items=t,e("div",{on:this.$listeners,class:"s-picker-view"},[e("resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),e("div",{ref:"wrapper",class:"s-picker-view-wrapper"},t)])}},o=n(0),s=Object(o.a)(i,void 0,void 0,!1,null,null,null);s.options.__file="packages/picker-view/main.vue";var a=s.exports;a.install=function(e){e.component(a.name,a)};t.default=a}]); | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=require("core-js/modules/es6.function.name")},,,function(e,t,n){"use strict";var r=n(7),i=n.n(r);n(15);var o=n(12),s=n.n(o),a=n(8),u=n.n(a);function c(e){return function(e){if(i()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(u()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return s()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return c}))},,function(e,t,n){"use strict";n.r(t);n(1);var r={name:"SResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(e){this.$emit("resize",Object.assign({},e))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},methods:{reset:function(){var e=this.$el.firstChild,t=this.$el.lastChild;e.scrollLeft=1e5,e.scrollTop=1e5,t.scrollLeft=1e5,t.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}},render:function(e){return e("div",{on:{"~animationstart":this.update},class:"s-resize-sensor"},[e("div",{on:{scroll:this.update}},[e("div")]),e("div",{on:{scroll:this.update}},[e("div")])])}},i=n(0),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/resize-sensor/main.vue";var s=o.exports;s.install=function(e){e.component(s.name,s)};t.default=s},function(e,t,n){e.exports=n(16)},function(e,t,n){e.exports=n(17)},,,function(e,t){e.exports=require("core-js/modules/web.dom.iterable")},function(e,t,n){e.exports=n(18)},,,function(e,t){e.exports=require("core-js/modules/es6.regexp.to-string")},function(e,t){e.exports=require("core-js/library/fn/array/is-array")},function(e,t){e.exports=require("core-js/library/fn/is-iterable")},function(e,t){e.exports=require("core-js/library/fn/array/from")},,function(e,t,n){"use strict";n.r(t);n(1),n(11);var r=n(4),i={name:"SPickerView",components:{ResizeSensor:n(6).default},props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)&&e.filter((function(e){return"number"==typeof e})).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:Object(r.a)(this.value),height:34,items:[],changeSource:""}},watch:{value:function(e){var t=this;this.valueSync.length=e.length,e.forEach((function(e,n){e!==t.valueSync[n]&&t.$set(t.valueSync,n,e)}))},valueSync:{deep:!0,handler:function(e){if(""===this.changeSource)this._valueChanged(e);else{this.changeSource="";var t=Object(r.a)(e);this.$emit("update:value",t),this.$emit("change",t)}}}},methods:{getItemIndex:function(e){return this.items.indexOf(e)},getItemValue:function(e){return this.valueSync[this.getItemIndex(e.$vnode)]||0},setItemValue:function(e,t){var n=this.getItemIndex(e.$vnode);this.valueSync[n]!==t&&(this.changeSource="touch",this.$set(this.valueSync,n,t))},_valueChanged:function(e){this.items.forEach((function(t,n){t.componentInstance.setCurrent(e[n]||0)}))},_resize:function(e){var t=e.height;this.height=t}},render:function(e){var t=[];return this.$slots.default&&this.$slots.default.forEach((function(e){e.componentOptions&&"picker-view-column"===e.componentOptions.tag&&t.push(e)})),this.items=t,e("div",{on:this.$listeners,class:"s-picker-view"},[e("resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),e("div",{ref:"wrapper",class:"s-picker-view-wrapper"},t)])}},o=n(0),s=Object(o.a)(i,void 0,void 0,!1,null,null,null);s.options.__file="packages/picker-view/main.vue";var a=s.exports;a.install=function(e){e.component(a.name,a)};t.default=a}]); |
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=46)}({0:function(e,t,o){"use strict";function r(e,t,o,r,n,s,i,c){var a,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),r&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=a):n&&(a=c?function(){n.call(this,this.$root.$options.shadowRoot)}:n),a)if(l.functional){l._injectStyles=a;var u=l.render;l.render=function(e,t){return a.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,a):[a]}return{exports:e,options:l}}o.d(t,"a",(function(){return r}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},10:function(e,t){e.exports=require("core-js/library/fn/promise")},15:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},2:function(e,t,o){e.exports=o(10)},26:function(e,t){e.exports=require("intersection-observer")},3:function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));var r=o(2),n=o.n(r);function s(e,t,o,r,s,i,c){try{var a=e[i](c),l=a.value}catch(e){return void o(e)}a.done?t(l):n.a.resolve(l).then(r,s)}function i(e){return function(){var t=this,o=arguments;return new n.a((function(r,n){var i=e.apply(t,o);function c(e){s(i,r,n,c,a,"next",e)}function a(e){s(i,r,n,c,a,"throw",e)}c(void 0)}))}}},33:function(e,t){e.exports=require("qrcode")},46:function(e,t,o){"use strict";o.r(t);o(1);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer",style:{zIndex:e.zIndex}},[o("div",{staticClass:"s-report-footer--keywords",class:{round:e.round},style:{backgroundColor:e.theme.keywordsBgc,color:e.theme.color},on:{click:e.lookKeywords}},[e._v(e._s(e.title))]),e.isWeixin?o("div",{staticClass:"s-report-footer--transform",class:{active:e.shareMode,"s-report-all-unlock":e.isAllUnlock}},[o("div",{staticClass:"s-report-footer--transform--item"},[o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color,info:e.allLockInfo,reverse:e.reverse},on:{click:e.onUnlock}})],1),o("div",{staticClass:"s-report-footer--transform--item"},[o("div",{staticClass:"s-report-footer--qrcode"},[o("span",{staticClass:"s-report-footer--qrcode--text"},[e._v("长按识别")]),o("img",{staticClass:"s-report-footer--qrcode--src",attrs:{src:e.qrcodeImg,alt:""}})])])]):o("div",{staticClass:"s-report-footer--h5"},[o("div",{staticClass:"s-report-footer--transform--item"},[e.isAllUnlock?o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme,on:{click:e.addNewReport}},[e._v("添加一份新报告")]):o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color,info:e.allLockInfo,reverse:e.reverse},on:{click:e.onUnlock}})],1)])])};r._withStripped=!0;o(9);var n=o(3),s=(o(15),o(33)),i=o.n(s),c=(o(26),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer--unlock--box",on:{click:function(t){return e.$emit("click")}}},[o("div",{staticClass:"s-report-footer--unlock--icon",style:{color:e.color}},[e._v("折")]),o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme},[e.reverse?e._e():o("span",[e._v(e._s(e.info))]),o("span",{staticClass:"s-report-footer--unlock--money"},[e._v("¥"+e._s(e.money))]),e.reverse?o("span",[e._v(e._s(e.info))]):e._e()])])});c._withStripped=!0;var a={props:["unlockTheme","money","color","round","info","reverse"]},l=o(0),u=Object(l.a)(a,c,[],!1,null,null,null);u.options.__file="packages/report-footer/unlock.vue";var f,d={name:"SReportFooter",components:{Unlock:u.exports},props:{title:{type:String,default:"查看八字关键词"},money:{type:[String,Number],default:"58.8"},qrcode:{type:String,default:location.href},correctLevel:{type:String,default:"L"},isAllUnlock:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{bgc:"#BA8961",color:"#782B2B",keywordsBgc:"rgba(197, 140, 94, 0.53)",boxShadowColor:"rgba(197, 140, 94, 0.53)"}}},target:{type:Element,require:!0},isWeixin:{type:Boolean,default:/MicroMessenger/i.test(navigator.userAgent.toLowerCase())},zIndex:{type:[Number,String],default:2e3},round:{type:Boolean,default:!1},allLockInfo:{type:String,default:"解锁全部付费报告"},reverse:{type:Boolean,default:!1}},watch:{qrcode:{immediate:!0,handler:(f=Object(n.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"string"==typeof t){e.next=2;break}return e.abrupt("return",console.warn("二维码地址不正确"));case 2:return e.next=4,i.a.toDataURL(t,{errorCorrectionLevel:this.correctLevel});case 4:this.qrcodeImg=e.sent;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},isAllUnlock:function(){this.checkFooter()}},computed:{unlockTheme:function(){return{backgroundColor:this.theme.bgc,boxShadow:"0px 5px 10px 0px ".concat(this.theme.boxShadowColor||this.theme.keywordsBgc)}}},data:function(){return{qrcodeImg:"",shareMode:!1}},beforeCreate:function(){var e=this;this.io=new IntersectionObserver((function(t){return e.handleCheckFooter(t[0])}),{threshold:0})},mounted:function(){this.checkFooter()},methods:{handleCheckFooter:function(e){var t=e.isIntersecting;this.shareMode=t,this.$emit("check-footer",t)},lookKeywords:function(){this.$emit("look-keywords")},addNewReport:function(){this.$emit("add-new-report")},onUnlock:function(){this.$emit("unlock")},checkFooter:function(){var e=this;this.$nextTick((function(){if(!e.isAllUnlock&&e.isWeixin){if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target),e.io.observe(e.target)}else{if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target)}}))}},beforeDestroy:function(){this.io.unobserve(this.target)}},p=Object(l.a)(d,r,[],!1,null,null,null);p.options.__file="packages/report-footer/main.vue";var v=p.exports;v.install=function(e){e.component(v.name,v)};t.default=v},9:function(e,t){e.exports=require("regenerator-runtime/runtime")}}); | ||
module.exports=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=46)}({0:function(e,t,o){"use strict";function r(e,t,o,r,n,s,i,c){var a,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=o,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=a):n&&(a=c?function(){n.call(this,this.$root.$options.shadowRoot)}:n),a)if(u.functional){u._injectStyles=a;var l=u.render;u.render=function(e,t){return a.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,a):[a]}return{exports:e,options:u}}o.d(t,"a",(function(){return r}))},1:function(e,t){e.exports=require("core-js/modules/es6.function.name")},10:function(e,t){e.exports=require("core-js/library/fn/promise")},14:function(e,t){e.exports=require("core-js/modules/es6.number.constructor")},2:function(e,t,o){e.exports=o(10)},26:function(e,t){e.exports=require("intersection-observer")},3:function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));var r=o(2),n=o.n(r);function s(e,t,o,r,s,i,c){try{var a=e[i](c),u=a.value}catch(e){return void o(e)}a.done?t(u):n.a.resolve(u).then(r,s)}function i(e){return function(){var t=this,o=arguments;return new n.a((function(r,n){var i=e.apply(t,o);function c(e){s(i,r,n,c,a,"next",e)}function a(e){s(i,r,n,c,a,"throw",e)}c(void 0)}))}}},33:function(e,t){e.exports=require("qrcode")},46:function(e,t,o){"use strict";o.r(t);o(1);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer",style:{zIndex:e.zIndex}},[o("div",{staticClass:"s-report-footer--keywords",class:{round:e.round},style:{backgroundColor:e.theme.keywordsBgc,color:e.theme.color},on:{click:e.lookKeywords}},[e._v(e._s(e.title))]),e.isWeixin?o("div",{staticClass:"s-report-footer--transform",class:{active:e.shareMode,"s-report-all-unlock":e.isAllUnlock}},[o("div",{staticClass:"s-report-footer--transform--item"},[o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color,info:e.allLockInfo,reverse:e.reverse},on:{click:e.onUnlock}})],1),o("div",{staticClass:"s-report-footer--transform--item"},[o("div",{staticClass:"s-report-footer--qrcode"},[o("span",{staticClass:"s-report-footer--qrcode--text"},[e._v("长按识别")]),o("img",{staticClass:"s-report-footer--qrcode--src",attrs:{src:e.qrcodeImg,alt:""}})])])]):o("div",{staticClass:"s-report-footer--h5"},[o("div",{staticClass:"s-report-footer--transform--item"},[e.isAllUnlock?o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme,on:{click:e.addNewReport}},[e._v("添加一份新报告")]):o("unlock",{attrs:{round:e.round,unlockTheme:e.unlockTheme,money:e.money,color:e.theme.color},on:{click:e.onUnlock}})],1)])])};r._withStripped=!0;o(9);var n=o(3),s=(o(14),o(33)),i=o.n(s),c=(o(26),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"s-report-footer--unlock--box",on:{click:function(t){return e.$emit("click")}}},[o("div",{staticClass:"s-report-footer--unlock--icon",style:{color:e.color}},[e._v("折")]),o("div",{staticClass:"s-report-footer--unlock",class:{round:e.round},style:e.unlockTheme},[e.reverse?e._e():o("span",[e._v(e._s(e.info))]),o("span",{staticClass:"s-report-footer--unlock--money"},[e._v("¥"+e._s(e.money))]),e.reverse?o("span",[e._v(e._s(e.info))]):e._e()])])});c._withStripped=!0;var a={props:["unlockTheme","money","color","round","info","reverse"]},u=o(0),l=Object(u.a)(a,c,[],!1,null,null,null);l.options.__file="packages/report-footer/unlock.vue";var f,d={name:"SReportFooter",components:{Unlock:l.exports},props:{title:{type:String,default:"查看八字关键词"},money:{type:[String,Number],default:"58.8"},qrcode:{type:String,default:location.href},correctLevel:{type:String,default:"L"},isAllUnlock:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{bgc:"#BA8961",color:"#782B2B",keywordsBgc:"rgba(197, 140, 94, 0.53)",boxShadowColor:"rgba(197, 140, 94, 0.53)"}}},target:{type:Element,require:!0},isWeixin:{type:Boolean,default:/MicroMessenger/i.test(navigator.userAgent.toLowerCase())},zIndex:{type:[Number,String],default:2e3},round:{type:Boolean,default:!1},allLockInfo:{type:String,default:"解锁全部付费报告"},reverse:{type:Boolean,default:!1}},watch:{qrcode:{immediate:!0,handler:(f=Object(n.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"string"==typeof t){e.next=2;break}return e.abrupt("return",console.warn("二维码地址不正确"));case 2:return e.next=4,i.a.toDataURL(t,{errorCorrectionLevel:this.correctLevel});case 4:this.qrcodeImg=e.sent;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},isAllUnlock:function(){this.checkFooter()}},computed:{unlockTheme:function(){return{backgroundColor:this.theme.bgc,boxShadow:"0px 5px 10px 0px ".concat(this.theme.boxShadowColor||this.theme.keywordsBgc)}}},data:function(){return{qrcodeImg:"",shareMode:!1}},beforeCreate:function(){var e=this;this.io=new IntersectionObserver((function(t){return e.handleCheckFooter(t[0])}),{threshold:0})},mounted:function(){this.checkFooter()},methods:{handleCheckFooter:function(e){var t=e.isIntersecting;this.shareMode=t,this.$emit("check-footer",t)},lookKeywords:function(){this.$emit("look-keywords")},addNewReport:function(){this.$emit("add-new-report")},onUnlock:function(){this.$emit("unlock")},checkFooter:function(){var e=this;this.$nextTick((function(){if(!e.isAllUnlock&&e.isWeixin){if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target),e.io.observe(e.target)}else{if(!e.target)return void console.warn("target 不存在");e.io&&e.io.unobserve(e.target)}}))}},beforeDestroy:function(){this.io.unobserve(this.target)}},p=Object(u.a)(d,r,[],!1,null,null,null);p.options.__file="packages/report-footer/main.vue";var h=p.exports;h.install=function(e){e.component(h.name,h)};t.default=h},9:function(e,t){e.exports=require("regenerator-runtime/runtime")}}); |
152
package.json
{ | ||
"name": "sums-components", | ||
"version": "0.6.11", | ||
"private": false, | ||
"main": "lib/sums-components.umd.min.js", | ||
"typings": "types/index.d.ts", | ||
"scripts": { | ||
"bootstrap": "yarn || npm i", | ||
"serve": "npm run build:entry && vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint --fix", | ||
"lib": "node build/build-lib.js", | ||
"test:unit": "vue-cli-service test:unit", | ||
"build:entry": "node build/build-entry.js" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"chinese-lunar_fix": "^0.1.6", | ||
"clipboard": "^2.0.4", | ||
"core-js": "^2.6.10", | ||
"html2canvas": "^1.0.0-rc.5", | ||
"intersection-observer": "^0.7.0", | ||
"qrcode": "^1.4.4", | ||
"vant": "^2.1.5" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "^3.10.0", | ||
"@vue/cli-plugin-eslint": "^3.10.0", | ||
"@vue/cli-plugin-unit-mocha": "^3.10.0", | ||
"@vue/cli-service": "^3.10.0", | ||
"@vue/eslint-config-prettier": "^5.0.0", | ||
"@vue/test-utils": "1.0.0-beta.29", | ||
"babel-eslint": "^10.0.1", | ||
"babel-plugin-component": "^1.1.1", | ||
"babel-plugin-import": "^1.12.0", | ||
"chai": "^4.1.2", | ||
"csso": "^3.5.1", | ||
"dependency-tree": "^7.0.2", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"fast-glob": "^3.0.4", | ||
"friendly-errors-webpack-plugin": "^1.7.0", | ||
"fs-extra": "^8.1.0", | ||
"highlight.js": "^9.15.10", | ||
"less": "^3.10.3", | ||
"less-loader": "^5.0.0", | ||
"lint-staged": "^8.1.5", | ||
"markdown-it-container": "^2.0.0", | ||
"markdown-it-decorate": "^1.2.2", | ||
"markdown-it-task-checkbox": "^1.0.6", | ||
"postcss": "^7.0.17", | ||
"postcss-load-config": "^2.1.0", | ||
"postcss-px-to-viewport": "^1.1.1", | ||
"shelljs": "^0.8.3", | ||
"signale": "^1.4.0", | ||
"style-resources-loader": "^1.2.1", | ||
"uppercamelcase": "^3.0.0", | ||
"vue": "^2.6.10", | ||
"vue-cli-plugin-style-resources-loader": "^0.1.3", | ||
"vue-markdown-loader": "^2.4.1", | ||
"vue-router": "^3.1.2", | ||
"vue-template-compiler": "^2.6.10", | ||
"webpack": "^4.41.2", | ||
"webpack-cli": "^3.3.7", | ||
"webpack-node-externals": "^1.7.2" | ||
}, | ||
"files": [ | ||
"lib", | ||
"types", | ||
"package.json" | ||
], | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true, | ||
"tabWidth": 4 | ||
} | ||
"name": "sums-components", | ||
"version": "0.6.12", | ||
"private": false, | ||
"main": "lib/sums-components.umd.min.js", | ||
"typings": "types/index.d.ts", | ||
"scripts": { | ||
"bootstrap": "yarn || npm i", | ||
"serve": "npm run build:entry && vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint --fix", | ||
"lib": "node build/build-lib.js", | ||
"test:unit": "vue-cli-service test:unit", | ||
"build:entry": "node build/build-entry.js" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.19.0", | ||
"chinese-lunar_fix": "^0.1.6", | ||
"clipboard": "^2.0.4", | ||
"core-js": "^2.6.10", | ||
"html2canvas": "^1.0.0-rc.5", | ||
"intersection-observer": "^0.7.0", | ||
"qrcode": "^1.4.4", | ||
"vant": "^2.1.5" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "^3.10.0", | ||
"@vue/cli-plugin-eslint": "^3.10.0", | ||
"@vue/cli-plugin-unit-mocha": "^3.10.0", | ||
"@vue/cli-service": "^3.10.0", | ||
"@vue/eslint-config-prettier": "^5.0.0", | ||
"@vue/test-utils": "1.0.0-beta.29", | ||
"babel-eslint": "^10.0.1", | ||
"babel-plugin-component": "^1.1.1", | ||
"babel-plugin-import": "^1.12.0", | ||
"chai": "^4.1.2", | ||
"csso": "^3.5.1", | ||
"dependency-tree": "^7.0.2", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"fast-glob": "^3.0.4", | ||
"friendly-errors-webpack-plugin": "^1.7.0", | ||
"fs-extra": "^8.1.0", | ||
"highlight.js": "^9.15.10", | ||
"less": "^3.10.3", | ||
"less-loader": "^5.0.0", | ||
"lint-staged": "^8.1.5", | ||
"markdown-it-container": "^2.0.0", | ||
"markdown-it-decorate": "^1.2.2", | ||
"markdown-it-task-checkbox": "^1.0.6", | ||
"postcss": "^7.0.17", | ||
"postcss-load-config": "^2.1.0", | ||
"postcss-px-to-viewport": "^1.1.1", | ||
"shelljs": "^0.8.3", | ||
"signale": "^1.4.0", | ||
"style-resources-loader": "^1.2.1", | ||
"uppercamelcase": "^3.0.0", | ||
"vue": "^2.6.10", | ||
"vue-cli-plugin-style-resources-loader": "^0.1.3", | ||
"vue-markdown-loader": "^2.4.1", | ||
"vue-router": "^3.1.2", | ||
"vue-template-compiler": "^2.6.10", | ||
"webpack": "^4.41.2", | ||
"webpack-cli": "^3.3.7", | ||
"webpack-node-externals": "^1.7.2" | ||
}, | ||
"files": [ | ||
"lib", | ||
"types", | ||
"package.json" | ||
], | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true, | ||
"tabWidth": 2 | ||
} | ||
} |
@@ -10,2 +10,3 @@ import Vue from 'vue'; | ||
export class CanvasImage extends SumsComponent {} | ||
export class Complaint extends SumsComponent {} | ||
export class FooterBar extends SumsComponent {} | ||
@@ -12,0 +13,0 @@ export class GoHome extends SumsComponent {} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1814464
69
9794
16