vue/dist/vue.runtime.min.js

7 lines
50 KiB
JavaScript
Raw Normal View History

2016-11-05 04:47:02 +08:00
/*!
2017-01-18 01:17:11 +08:00
* Vue.js v2.1.10
2017-01-17 07:48:06 +08:00
* (c) 2014-2017 Evan You
2016-11-05 04:47:02 +08:00
* Released under the MIT License.
*/
2017-01-17 07:48:06 +08:00
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function e(t){var e=parseFloat(t);return isNaN(e)?t:e}function n(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function r(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function o(t,e){return Cn.call(t,e)}function i(t){return"string"==typeof t||"number"==typeof t}function a(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function s(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function c(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function u(t,e){for(var n in e)t[n]=e[n];return t}function l(t){return null!==t&&"object"==typeof t}function f(t){return On.call(t)===Sn}function p(t){for(var e={},n=0;n<t.length;n++)t[n]&&u(e,t[n]);return e}function d(){}function v(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}function h(t,e){var n=l(t),r=l(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}function m(t,e){for(var n=0;n<t.length;n++)if(h(t[n],e))return n;return-1}function y(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function _(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function g(t){if(!jn.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function b(t){return/native code/.test(t.toString())}function C(t){Wn.target&&Jn.push(Wn.target),Wn.target=t}function w(){Wn.target=Jn.pop()}function $(t,e){t.__proto__=e}function k(t,e,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];_(t,i,e[i])}}function A(t,e){if(l(t)){var n;return o(t,"__ob__")&&t.__ob__ instanceof Yn?n=t.__ob__:Xn.shouldConvert&&!Vn()&&(Array.isArray(t)||f(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Yn(t)),e&&n&&n.vmCount++,n}}function x(t,e,n,r){var o=new Wn,i=Object.getOwnPropertyDescriptor(t,e);if(!i||i.configurable!==!1){var a=i&&i.get,s=i&&i.set,c=A(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return Wn.target&&(o.depend(),c&&c.dep.depend(),Array.isArray(e)&&E(e)),e},set:function(e){var r=a?a.call(t):n;e===r||e!==e&&r!==r||(s?s.call(t,e):n=e,c=A(e),o.notify())}})}}function O(t,e,n){if(Array.isArray(t))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(o(t,e))return void(t[e]=n);var r=t.__ob__;if(!(t._isVue||r&&r.vmCount))return r?(x(r.value,e,n),r.dep.notify(),n):void(t[e]=n)}function S(t,e){var n=t.__ob__;t._isVue||n&&n.vmCount||o(t,e)&&(delete t[e],n&&n.dep.notify())}function E(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&E(e)}function I(t,e){if(!e)return t;for(var n,r,i,a=Object.keys(e),s=0;s<a.length;s++)n=a[s],r=t[n],i=e[n],o(t,n)?f(r)&&f(i)&&I(r,i):O(t,n,i);return t}function T(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function j(t,e){var n=Object.create(t||null);return e?u(n,e):n}function D(t){var e=t.props;if(e){var n,r,o,i={};if(Array.isArray(e))for(n=e.length;n--;)r=e[n],"string"==typeof r&&(o=$n(r),i[o]={type:null});else if(f(e))for(var a in e)r=e[a],o=$n(a),i[o]=f(r)?r:{type:r};t.props=i}}function P(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}function N(t,e,n){function r(r){var o=tr[r]||er;l[r]=o(t[r],e[r],n,r)}D(e),P(e);var i=e.extends;if(i&&(t="function"==typeof i?N(t,i.options,n):N(t,i,n)),e.mixins)for(var a=0,s=e.mixins.length;a<s;a++){var c=e.mixins[a];c.prototype instanceof Vt&&(c=c.options),t=N(t,c,n)}var u,l={};for(u in t)r(u);for(u in e)o(t,u)||r(u);return l}function L(t,e,n,r){if("string"==typeof n){var i=t[e];if(o(i,n))return i[n];var a=$n(n);if(o(i,a))return i[a
2017-01-18 01:17:11 +08:00
return Ze(e)+Ze(t[n])}))}function Ze(t){return 1e3*Number(t.slice(0,-1))}function Qe(t,e){var n=t.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Ye(t.data.transition);if(r&&!n._enterCb&&1===n.nodeType){for(var o=r.css,i=r.type,a=r.enterClass,s=r.enterToClass,c=r.enterActiveClass,u=r.appearClass,l=r.appearToClass,f=r.appearActiveClass,p=r.beforeEnter,d=r.enter,v=r.afterEnter,h=r.enterCancelled,m=r.beforeAppear,y=r.appear,_=r.afterAppear,g=r.appearCancelled,b=pr,C=pr.$vnode;C&&C.parent;)C=C.parent,b=C.context;var w=!b._isMounted||!t.isRootInsert;if(!w||y||""===y){var $=w?u:a,k=w?f:c,A=w?l:s,x=w?m||p:p,O=w&&"function"==typeof y?y:d,S=w?_||v:v,E=w?g||h:h,I=o!==!1&&!Mn,T=O&&(O._length||O.length)>1,j=n._enterCb=tn(function(){I&&(Ke(n,A),Ke(n,k)),j.cancelled?(I&&Ke(n,$),E&&E(n)):S&&S(n),n._enterCb=null});t.data.show||nt(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,j)},"transition-insert"),x&&x(n),I&&(qe(n,$),qe(n,k),ze(function(){qe(n,A),Ke(n,$),j.cancelled||T||We(n,i,j)})),t.data.show&&(e&&e(),O&&O(n,j)),I||T||j()}}}function Xe(t,e){function n(){y.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),l&&l(r),h&&(qe(r,s),qe(r,u),ze(function(){qe(r,c),Ke(r,s),y.cancelled||m||We(r,a,y)})),f&&f(r,y),h||m||y())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var o=Ye(t.data.transition);if(!o)return e();if(!r._leaveCb&&1===r.nodeType){var i=o.css,a=o.type,s=o.leaveClass,c=o.leaveToClass,u=o.leaveActiveClass,l=o.beforeLeave,f=o.leave,p=o.afterLeave,d=o.leaveCancelled,v=o.delayLeave,h=i!==!1&&!Mn,m=f&&(f._length||f.length)>1,y=r._leaveCb=tn(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),h&&(Ke(r,c),Ke(r,u)),y.cancelled?(h&&Ke(r,s),d&&d(r)):(e(),p&&p(r)),r._leaveCb=null});v?v(n):n()}}function Ye(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&u(e,ho(t.name||"v")),u(e,t),e}return"string"==typeof t?ho(t):void 0}}function tn(t){var e=!1;return function(){e||(e=!0,t())}}function en(t,e){e.data.show||Qe(e)}function nn(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],o)i=m(r,on(a))>-1,a.selected!==i&&(a.selected=i);else if(h(on(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function rn(t,e){for(var n=0,r=e.length;n<r;n++)if(h(on(e[n]),t))return!1;return!0}function on(t){return"_value"in t?t._value:t.value}function an(t){t.target.composing=!0}function sn(t){t.target.composing=!1,cn(t.target,"input")}function cn(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function un(t){return!t.componentInstance||t.data&&t.data.transition?t:un(t.componentInstance._vnode)}function ln(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ln(ct(e.children)):t}function fn(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[$n(i)]=o[i].fn;return e}function pn(t,e){return/\d-keep-alive$/.test(e.tag)?t("keep-alive"):null}function dn(t){for(;t=t.parent;)if(t.data.transition)return!0}function vn(t,e){return e.key===t.key&&e.tag===t.tag}function hn(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function mn(t){t.data.newPos=t.elm.getBoundingClientRect()}function yn(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}var _n,gn,bn=n("slot,component",!0),Cn=Object.prototype.hasOwnProperty,wn=/-(\w)/g,$n=a(function(t){return t.replace(wn,function(t,e){return e?e.toUpperCase():""})}),kn=a(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),An=/([^-])([A-Z])/g,xn=a(function(t){return t.replace(An,"$1-$2").replace(An,"$1-$2").toLowerCase()}),On=Object.prototype.toString,Sn="[object Object]",En=function(){return!1},In=function(t){return t},Tn={optionMergeStrategies:Object.create