diff --git a/README.md b/README.md index 1aa484d..0a8ba9e 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,15 @@ ``` bash npm install vue-upload-component --save ``` +### Vue 2.x + +https://github.com/lian-yue/vue-upload-component/tree/2.0 + +``` bash + npm install vue-upload-component@next --save +``` + + ### CommonJS ```js var FileUpload = require('vue-upload-component'); diff --git a/dist/example.js b/dist/example.js index cc945c6..5b8d51f 100644 --- a/dist/example.js +++ b/dist/example.js @@ -170,12 +170,12 @@ /* 11 */ /***/ function(module, exports, __webpack_require__) { - // 19.1.2.14 / 15.2.3.14 Object.keys(O) - var $keys = __webpack_require__(35) - , enumBugKeys = __webpack_require__(16); - - module.exports = Object.keys || function keys(O){ - return $keys(O, enumBugKeys); + // 19.1.2.14 / 15.2.3.14 Object.keys(O) + var $keys = __webpack_require__(35) + , enumBugKeys = __webpack_require__(16); + + module.exports = Object.keys || function keys(O){ + return $keys(O, enumBugKeys); }; /***/ }, @@ -222,9 +222,9 @@ /* 16 */ /***/ function(module, exports) { - // IE 8- don't enum bug keys - module.exports = ( - 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' + // IE 8- don't enum bug keys + module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' ).split(','); /***/ }, @@ -261,10 +261,10 @@ /* 21 */ /***/ function(module, exports, __webpack_require__) { - var shared = __webpack_require__(22)('keys') - , uid = __webpack_require__(13); - module.exports = function(key){ - return shared[key] || (shared[key] = uid(key)); + var shared = __webpack_require__(22)('keys') + , uid = __webpack_require__(13); + module.exports = function(key){ + return shared[key] || (shared[key] = uid(key)); }; /***/ }, @@ -310,14 +310,14 @@ /* 25 */ /***/ function(module, exports, __webpack_require__) { - var global = __webpack_require__(1) - , core = __webpack_require__(14) - , LIBRARY = __webpack_require__(18) - , wksExt = __webpack_require__(26) - , defineProperty = __webpack_require__(6).f; - module.exports = function(name){ - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); + var global = __webpack_require__(1) + , core = __webpack_require__(14) + , LIBRARY = __webpack_require__(18) + , wksExt = __webpack_require__(26) + , defineProperty = __webpack_require__(6).f; + module.exports = function(name){ + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); + if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)}); }; /***/ }, @@ -418,8 +418,8 @@ /* 30 */ /***/ function(module, exports, __webpack_require__) { - module.exports = !__webpack_require__(4) && !__webpack_require__(9)(function(){ - return Object.defineProperty(__webpack_require__(28)('div'), 'a', {get: function(){ return 7; }}).a != 7; + module.exports = !__webpack_require__(4) && !__webpack_require__(9)(function(){ + return Object.defineProperty(__webpack_require__(28)('div'), 'a', {get: function(){ return 7; }}).a != 7; }); /***/ }, @@ -501,57 +501,59 @@ /* 32 */ /***/ function(module, exports, __webpack_require__) { - // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) - var anObject = __webpack_require__(8) - , dPs = __webpack_require__(57) - , enumBugKeys = __webpack_require__(16) - , IE_PROTO = __webpack_require__(21)('IE_PROTO') - , Empty = function(){ /* empty */ } - , PROTOTYPE = 'prototype'; - - // Create object with fake `null` prototype: use iframe Object with cleared prototype - var createDict = function(){ - // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(28)('iframe') - , i = enumBugKeys.length - , gt = '>' - , iframeDocument; - iframe.style.display = 'none'; - __webpack_require__(50).appendChild(iframe); - iframe.src = 'javascript:'; // eslint-disable-line no-script-url - // createDict = iframe.contentWindow.Object; - // html.removeChild(iframe); - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write('