Comparing version 0.5.12 to 0.6.0
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
module.exports = factory(require("vue")); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
define(["vue"], factory); | ||
else { | ||
var a = factory(); | ||
var a = typeof exports === 'object' ? factory(require("vue")) : factory(root["Vue"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(this, function() { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -76,3 +76,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 160); | ||
/******/ return __webpack_require__(__webpack_require__.s = 164); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,13 +182,56 @@ esModule: esModule, | ||
/***/ 107: | ||
/***/ 1: | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/***/ 10: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (target) { | ||
for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
for (var i = 0; i < sources.length; i++) { | ||
var source = sources[i] || {}; | ||
for (var prop in source) { | ||
if (source.hasOwnProperty(prop)) { | ||
var value = source[prop]; | ||
if (value !== undefined) { | ||
target[prop] = value; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
; | ||
/***/ }), | ||
/***/ 109: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Component = __webpack_require__(0)( | ||
/* script */ | ||
__webpack_require__(132), | ||
__webpack_require__(135), | ||
/* template */ | ||
__webpack_require__(237), | ||
__webpack_require__(242), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -158,3 +245,3 @@ ) | ||
/***/ 132: | ||
/***/ 135: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -169,3 +256,3 @@ | ||
var _popup = __webpack_require__(41); | ||
var _popup = __webpack_require__(42); | ||
@@ -279,6 +366,7 @@ var _popup2 = _interopRequireDefault(_popup); | ||
// | ||
// | ||
/***/ }), | ||
/***/ 160: | ||
/***/ 164: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -293,3 +381,3 @@ | ||
var _actionsheet = __webpack_require__(107); | ||
var _actionsheet = __webpack_require__(109); | ||
@@ -308,4 +396,4 @@ var _actionsheet2 = _interopRequireDefault(_actionsheet); | ||
"use strict"; | ||
/* WEBPACK VAR INJECTION */(function(global) { | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -315,11 +403,17 @@ value: true | ||
var _merge = __webpack_require__(9); | ||
var _merge = __webpack_require__(10); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var context = void 0; | ||
if (window && window.popupContext) { | ||
context = window.popupContext; | ||
var _global = _vue2.default.prototype.$isServer ? global : window; | ||
if (_global && _global.popupContext) { | ||
context = _global.popupContext; | ||
} | ||
@@ -335,3 +429,3 @@ | ||
context = window.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
context = _global.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
@@ -354,6 +448,28 @@ var PopupContext = { | ||
exports.default = PopupContext; | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(53))) | ||
/***/ }), | ||
/***/ 237: | ||
/***/ 24: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Component = __webpack_require__(0)( | ||
/* script */ | ||
__webpack_require__(26), | ||
/* template */ | ||
__webpack_require__(38), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* moduleIdentifier (server only) */ | ||
null | ||
) | ||
module.exports = Component.exports | ||
/***/ }), | ||
/***/ 242: | ||
/***/ (function(module, exports) { | ||
@@ -393,4 +509,5 @@ | ||
staticClass: "van-actionsheet__list" | ||
}, _vm._l((_vm.actions), function(item) { | ||
}, _vm._l((_vm.actions), function(item, index) { | ||
return _c('li', { | ||
key: index, | ||
staticClass: "van-actionsheet__item", | ||
@@ -430,3 +547,3 @@ class: [item.className, item.loading ? 'van-actionsheet__item--loading' : ''], | ||
/***/ 24: | ||
/***/ 25: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -436,27 +553,10 @@ | ||
/* script */ | ||
__webpack_require__(26), | ||
__webpack_require__(27), | ||
/* template */ | ||
__webpack_require__(37), | ||
/* scopeId */ | ||
/* styles */ | ||
null, | ||
/* cssModules */ | ||
null | ||
) | ||
module.exports = Component.exports | ||
/***/ }), | ||
/***/ 25: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Component = __webpack_require__(0)( | ||
/* script */ | ||
__webpack_require__(27), | ||
/* template */ | ||
__webpack_require__(36), | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -584,3 +684,116 @@ ) | ||
/***/ 36: | ||
/***/ 30: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.hasClass = hasClass; | ||
exports.addClass = addClass; | ||
exports.removeClass = removeClass; | ||
var trim = function trim(string) { | ||
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); | ||
}; | ||
function hasClass(el, cls) { | ||
if (!el || !cls) return false; | ||
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); | ||
if (el.classList) { | ||
return el.classList.contains(cls); | ||
} else { | ||
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; | ||
} | ||
}; | ||
function addClass(el, cls) { | ||
if (!el) return; | ||
var curClass = el.className; | ||
var classes = (cls || '').split(' '); | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.add(clsName); | ||
} else { | ||
if (!hasClass(el, clsName)) { | ||
curClass += ' ' + clsName; | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = curClass; | ||
} | ||
}; | ||
function removeClass(el, cls) { | ||
if (!el || !cls) return; | ||
var classes = cls.split(' '); | ||
var curClass = ' ' + el.className + ' '; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.remove(clsName); | ||
} else { | ||
if (hasClass(el, clsName)) { | ||
curClass = curClass.replace(' ' + clsName + ' ', ' '); | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = trim(curClass); | ||
} | ||
}; | ||
var once = exports.once = function once(el, event, fn) { | ||
var listener = function listener() { | ||
if (fn) { | ||
fn.apply(this, arguments); | ||
} | ||
off(el, event, listener); | ||
}; | ||
on(el, event, listener); | ||
}; | ||
var on = exports.on = function () { | ||
if (document.addEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.addEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.attachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); | ||
var off = exports.off = function () { | ||
if (document.removeEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.removeEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.detachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); | ||
/***/ }), | ||
/***/ 37: | ||
/***/ (function(module, exports) { | ||
@@ -600,3 +813,3 @@ | ||
/***/ 37: | ||
/***/ 38: | ||
/***/ (function(module, exports) { | ||
@@ -616,3 +829,3 @@ | ||
/***/ 41: | ||
/***/ 42: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -627,7 +840,7 @@ | ||
var _merge = __webpack_require__(9); | ||
var _merge = __webpack_require__(10); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _popupManager = __webpack_require__(42); | ||
var _popupManager = __webpack_require__(43); | ||
@@ -707,2 +920,3 @@ var _popupManager2 = _interopRequireDefault(_popupManager); | ||
open: function open() { | ||
if (this.$isServer) return; | ||
if (this.opened) return; | ||
@@ -789,3 +1003,3 @@ | ||
/***/ 42: | ||
/***/ 43: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -800,4 +1014,8 @@ | ||
var _dom = __webpack_require__(43); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _dom = __webpack_require__(30); | ||
var _popupContext = __webpack_require__(18); | ||
@@ -810,2 +1028,3 @@ | ||
var getModal = function getModal() { | ||
if (_vue2.default.prototype.$isServer) return; | ||
var modalDom = _popupContext2.default.getContext('modalDom'); | ||
@@ -936,106 +1155,28 @@ | ||
/***/ 43: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/***/ 53: | ||
/***/ (function(module, exports) { | ||
"use strict"; | ||
var g; | ||
// This works in non-strict mode | ||
g = (function() { | ||
return this; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.hasClass = hasClass; | ||
exports.addClass = addClass; | ||
exports.removeClass = removeClass; | ||
var trim = function trim(string) { | ||
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); | ||
}; | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1,eval)("this"); | ||
} catch(e) { | ||
// This works if the window reference is available | ||
if(typeof window === "object") | ||
g = window; | ||
} | ||
function hasClass(el, cls) { | ||
if (!el || !cls) return false; | ||
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); | ||
if (el.classList) { | ||
return el.classList.contains(cls); | ||
} else { | ||
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; | ||
} | ||
}; | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
function addClass(el, cls) { | ||
if (!el) return; | ||
var curClass = el.className; | ||
var classes = (cls || '').split(' '); | ||
module.exports = g; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.add(clsName); | ||
} else { | ||
if (!hasClass(el, clsName)) { | ||
curClass += ' ' + clsName; | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = curClass; | ||
} | ||
}; | ||
function removeClass(el, cls) { | ||
if (!el || !cls) return; | ||
var classes = cls.split(' '); | ||
var curClass = ' ' + el.className + ' '; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.remove(clsName); | ||
} else { | ||
if (hasClass(el, clsName)) { | ||
curClass = curClass.replace(' ' + clsName + ' ', ' '); | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = trim(curClass); | ||
} | ||
}; | ||
/***/ }), | ||
/***/ 9: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (target) { | ||
for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
for (var i = 0; i < sources.length; i++) { | ||
var source = sources[i] || {}; | ||
for (var prop in source) { | ||
if (source.hasOwnProperty(prop)) { | ||
var value = source[prop]; | ||
if (value !== undefined) { | ||
target[prop] = value; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
; | ||
/***/ }) | ||
@@ -1042,0 +1183,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 161); | ||
/******/ return __webpack_require__(__webpack_require__.s = 165); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 108: | ||
/***/ 110: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(133), | ||
__webpack_require__(136), | ||
/* template */ | ||
__webpack_require__(228), | ||
__webpack_require__(233), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 133: | ||
/***/ 136: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -196,3 +242,3 @@ | ||
/***/ 161: | ||
/***/ 165: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -207,3 +253,3 @@ | ||
var _badgeGroup = __webpack_require__(108); | ||
var _badgeGroup = __webpack_require__(110); | ||
@@ -218,3 +264,3 @@ var _badgeGroup2 = _interopRequireDefault(_badgeGroup); | ||
/***/ 228: | ||
/***/ 233: | ||
/***/ (function(module, exports) { | ||
@@ -221,0 +267,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 162); | ||
/******/ return __webpack_require__(__webpack_require__.s = 166); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 109: | ||
/***/ 111: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(134), | ||
__webpack_require__(137), | ||
/* template */ | ||
__webpack_require__(241), | ||
__webpack_require__(246), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 134: | ||
/***/ 137: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -179,2 +225,4 @@ | ||
// | ||
// | ||
// | ||
@@ -223,3 +271,3 @@ exports.default = { | ||
/***/ 162: | ||
/***/ 166: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -234,3 +282,3 @@ | ||
var _badge = __webpack_require__(109); | ||
var _badge = __webpack_require__(111); | ||
@@ -245,3 +293,3 @@ var _badge2 = _interopRequireDefault(_badge); | ||
/***/ 241: | ||
/***/ 246: | ||
/***/ (function(module, exports) { | ||
@@ -248,0 +296,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 163); | ||
/******/ return __webpack_require__(__webpack_require__.s = 167); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 101: | ||
/***/ 103: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -257,3 +301,3 @@ | ||
/***/ 163: | ||
/***/ 167: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -268,3 +312,3 @@ | ||
var _button = __webpack_require__(101); | ||
var _button = __webpack_require__(103); | ||
@@ -286,6 +330,8 @@ var _button2 = _interopRequireDefault(_button); | ||
/* template */ | ||
__webpack_require__(36), | ||
__webpack_require__(37), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -360,3 +406,3 @@ ) | ||
/***/ 36: | ||
/***/ 37: | ||
/***/ (function(module, exports) { | ||
@@ -363,0 +409,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 164); | ||
/******/ return __webpack_require__(__webpack_require__.s = 168); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 110: | ||
/***/ 112: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(135), | ||
__webpack_require__(138), | ||
/* template */ | ||
__webpack_require__(225), | ||
__webpack_require__(230), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 135: | ||
/***/ 138: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -202,3 +248,3 @@ | ||
/***/ 164: | ||
/***/ 168: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -213,3 +259,3 @@ | ||
var _card = __webpack_require__(110); | ||
var _card = __webpack_require__(112); | ||
@@ -224,3 +270,3 @@ var _card2 = _interopRequireDefault(_card); | ||
/***/ 225: | ||
/***/ 230: | ||
/***/ (function(module, exports) { | ||
@@ -227,0 +273,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 165); | ||
/******/ return __webpack_require__(__webpack_require__.s = 169); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 111: | ||
/***/ 114: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(136), | ||
__webpack_require__(140), | ||
/* template */ | ||
__webpack_require__(248), | ||
__webpack_require__(254), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 136: | ||
/***/ 140: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -182,3 +228,3 @@ | ||
/***/ 165: | ||
/***/ 169: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -193,3 +239,3 @@ | ||
var _cellGroup = __webpack_require__(111); | ||
var _cellGroup = __webpack_require__(114); | ||
@@ -204,3 +250,3 @@ var _cellGroup2 = _interopRequireDefault(_cellGroup); | ||
/***/ 248: | ||
/***/ 254: | ||
/***/ (function(module, exports) { | ||
@@ -207,0 +253,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 68); | ||
/******/ return __webpack_require__(__webpack_require__.s = 69); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 59: | ||
/***/ 60: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(63), | ||
__webpack_require__(64), | ||
/* template */ | ||
__webpack_require__(97), | ||
__webpack_require__(99), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 63: | ||
/***/ 64: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -224,3 +270,3 @@ | ||
/***/ 68: | ||
/***/ 69: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -235,3 +281,3 @@ | ||
var _cell = __webpack_require__(59); | ||
var _cell = __webpack_require__(60); | ||
@@ -246,3 +292,3 @@ var _cell2 = _interopRequireDefault(_cell); | ||
/***/ 97: | ||
/***/ 99: | ||
/***/ (function(module, exports) { | ||
@@ -249,0 +295,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 166); | ||
/******/ return __webpack_require__(__webpack_require__.s = 171); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 112: | ||
/***/ 115: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(137), | ||
__webpack_require__(141), | ||
/* template */ | ||
__webpack_require__(221), | ||
__webpack_require__(226), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 137: | ||
/***/ 141: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -193,3 +239,3 @@ | ||
/***/ 166: | ||
/***/ 171: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -204,3 +250,3 @@ | ||
var _checkboxGroup = __webpack_require__(112); | ||
var _checkboxGroup = __webpack_require__(115); | ||
@@ -215,3 +261,3 @@ var _checkboxGroup2 = _interopRequireDefault(_checkboxGroup); | ||
/***/ 221: | ||
/***/ 226: | ||
/***/ (function(module, exports) { | ||
@@ -218,0 +264,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 167); | ||
/******/ return __webpack_require__(__webpack_require__.s = 172); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 113: | ||
/***/ 116: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(138), | ||
__webpack_require__(142), | ||
/* template */ | ||
__webpack_require__(238), | ||
__webpack_require__(243), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 138: | ||
/***/ 142: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -170,3 +216,3 @@ | ||
var _findParent = __webpack_require__(76); | ||
var _findParent = __webpack_require__(77); | ||
@@ -283,3 +329,3 @@ var _findParent2 = _interopRequireDefault(_findParent); | ||
/***/ 167: | ||
/***/ 172: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -294,3 +340,3 @@ | ||
var _checkbox = __webpack_require__(113); | ||
var _checkbox = __webpack_require__(116); | ||
@@ -305,3 +351,3 @@ var _checkbox2 = _interopRequireDefault(_checkbox); | ||
/***/ 238: | ||
/***/ 243: | ||
/***/ (function(module, exports) { | ||
@@ -333,3 +379,3 @@ | ||
on: { | ||
"change": function($event) { | ||
"__c": function($event) { | ||
var $$a = _vm.currentValue, | ||
@@ -367,3 +413,3 @@ $$el = $event.target, | ||
/***/ 76: | ||
/***/ 77: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -370,0 +416,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 168); | ||
/******/ return __webpack_require__(__webpack_require__.s = 173); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 114: | ||
/***/ 117: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(139), | ||
__webpack_require__(143), | ||
/* template */ | ||
__webpack_require__(234), | ||
__webpack_require__(239), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 139: | ||
/***/ 143: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -208,3 +254,3 @@ | ||
/***/ 168: | ||
/***/ 173: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -219,3 +265,3 @@ | ||
var _col = __webpack_require__(114); | ||
var _col = __webpack_require__(117); | ||
@@ -230,3 +276,3 @@ var _col2 = _interopRequireDefault(_col); | ||
/***/ 234: | ||
/***/ 239: | ||
/***/ (function(module, exports) { | ||
@@ -233,0 +279,0 @@ |
102
lib/field.js
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 171); | ||
/******/ return __webpack_require__(__webpack_require__.s = 176); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 116: | ||
/***/ 119: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(142), | ||
__webpack_require__(146), | ||
/* template */ | ||
__webpack_require__(239), | ||
__webpack_require__(244), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 142: | ||
/***/ 146: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -170,3 +216,3 @@ | ||
var _cell = __webpack_require__(68); | ||
var _cell = __webpack_require__(69); | ||
@@ -287,3 +333,3 @@ var _cell2 = _interopRequireDefault(_cell); | ||
/***/ 171: | ||
/***/ 176: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -298,3 +344,3 @@ | ||
var _field = __webpack_require__(116); | ||
var _field = __webpack_require__(119); | ||
@@ -309,3 +355,3 @@ var _field2 = _interopRequireDefault(_field); | ||
/***/ 239: | ||
/***/ 244: | ||
/***/ (function(module, exports) { | ||
@@ -346,3 +392,3 @@ | ||
domProps: { | ||
"value": _vm._s(_vm.currentValue) | ||
"value": (_vm.currentValue) | ||
}, | ||
@@ -377,3 +423,3 @@ on: { | ||
/***/ 59: | ||
/***/ 60: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -383,8 +429,10 @@ | ||
/* script */ | ||
__webpack_require__(63), | ||
__webpack_require__(64), | ||
/* template */ | ||
__webpack_require__(97), | ||
__webpack_require__(99), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -398,3 +446,3 @@ ) | ||
/***/ 63: | ||
/***/ 64: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -463,3 +511,3 @@ | ||
/***/ 68: | ||
/***/ 69: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -474,3 +522,3 @@ | ||
var _cell = __webpack_require__(59); | ||
var _cell = __webpack_require__(60); | ||
@@ -485,3 +533,3 @@ var _cell2 = _interopRequireDefault(_cell); | ||
/***/ 97: | ||
/***/ 99: | ||
/***/ (function(module, exports) { | ||
@@ -488,0 +536,0 @@ |
@@ -84,7 +84,13 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -117,11 +123,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -144,6 +188,8 @@ esModule: esModule, | ||
/* template */ | ||
__webpack_require__(37), | ||
__webpack_require__(38), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -210,3 +256,3 @@ ) | ||
/***/ 37: | ||
/***/ 38: | ||
/***/ (function(module, exports) { | ||
@@ -213,0 +259,0 @@ |
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
} | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_10__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -77,3 +77,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 172); | ||
/******/ return __webpack_require__(__webpack_require__.s = 177); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -140,2 +184,8 @@ esModule: esModule, | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
@@ -147,3 +197,3 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Math | ||
/***/ }), | ||
/* 2 */ | ||
/* 3 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -157,6 +207,6 @@ | ||
/***/ }), | ||
/* 3 */ | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isObject = __webpack_require__(7); | ||
var isObject = __webpack_require__(8); | ||
module.exports = function(it){ | ||
@@ -168,3 +218,3 @@ if(!isObject(it))throw TypeError(it + ' is not an object!'); | ||
/***/ }), | ||
/* 4 */ | ||
/* 5 */ | ||
/***/ (function(module, exports) { | ||
@@ -176,9 +226,9 @@ | ||
/***/ }), | ||
/* 5 */, | ||
/* 6 */ | ||
/* 6 */, | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var dP = __webpack_require__(8) | ||
, createDesc = __webpack_require__(33); | ||
module.exports = __webpack_require__(2) ? function(object, key, value){ | ||
var dP = __webpack_require__(9) | ||
, createDesc = __webpack_require__(34); | ||
module.exports = __webpack_require__(3) ? function(object, key, value){ | ||
return dP.f(object, key, createDesc(1, value)); | ||
@@ -191,3 +241,3 @@ } : function(object, key, value){ | ||
/***/ }), | ||
/* 7 */ | ||
/* 8 */ | ||
/***/ (function(module, exports) { | ||
@@ -200,6 +250,6 @@ | ||
/***/ }), | ||
/* 8 */ | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var anObject = __webpack_require__(3) | ||
var anObject = __webpack_require__(4) | ||
, IE8_DOM_DEFINE = __webpack_require__(46) | ||
@@ -209,3 +259,3 @@ , toPrimitive = __webpack_require__(52) | ||
exports.f = __webpack_require__(2) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
exports.f = __webpack_require__(3) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
anObject(O); | ||
@@ -223,3 +273,3 @@ P = toPrimitive(P, true); | ||
/***/ }), | ||
/* 9 */ | ||
/* 10 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -257,8 +307,2 @@ | ||
/***/ }), | ||
/* 10 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_10__; | ||
/***/ }), | ||
/* 11 */ | ||
@@ -298,4 +342,4 @@ /***/ (function(module, exports) { | ||
var shared = __webpack_require__(34)('keys') | ||
, uid = __webpack_require__(35); | ||
var shared = __webpack_require__(35)('keys') | ||
, uid = __webpack_require__(36); | ||
module.exports = function(key){ | ||
@@ -321,3 +365,3 @@ return shared[key] || (shared[key] = uid(key)); | ||
// to indexed object, toObject with fallback for non-array-like ES3 strings | ||
var IObject = __webpack_require__(31) | ||
var IObject = __webpack_require__(32) | ||
, defined = __webpack_require__(11); | ||
@@ -332,4 +376,4 @@ module.exports = function(it){ | ||
var isObject = __webpack_require__(7) | ||
, document = __webpack_require__(1).document | ||
var isObject = __webpack_require__(8) | ||
, document = __webpack_require__(2).document | ||
// in old IE typeof document.createElement is 'object' | ||
@@ -346,4 +390,4 @@ , is = isObject(document) && isObject(document.createElement); | ||
"use strict"; | ||
/* WEBPACK VAR INJECTION */(function(global) { | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -353,11 +397,17 @@ value: true | ||
var _merge = __webpack_require__(9); | ||
var _merge = __webpack_require__(10); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var context = void 0; | ||
if (window && window.popupContext) { | ||
context = window.popupContext; | ||
var _global = _vue2.default.prototype.$isServer ? global : window; | ||
if (_global && _global.popupContext) { | ||
context = _global.popupContext; | ||
} | ||
@@ -373,3 +423,3 @@ | ||
context = window.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
context = _global.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
@@ -392,2 +442,3 @@ var PopupContext = { | ||
exports.default = PopupContext; | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(53))) | ||
@@ -417,6 +468,6 @@ /***/ }), | ||
var global = __webpack_require__(1) | ||
, core = __webpack_require__(4) | ||
var global = __webpack_require__(2) | ||
, core = __webpack_require__(5) | ||
, ctx = __webpack_require__(23) | ||
, hide = __webpack_require__(6) | ||
, hide = __webpack_require__(7) | ||
, PROTOTYPE = 'prototype'; | ||
@@ -486,3 +537,3 @@ | ||
// optional / simple context binding | ||
var aFunction = __webpack_require__(30); | ||
var aFunction = __webpack_require__(31); | ||
module.exports = function(fn, that, length){ | ||
@@ -515,2 +566,114 @@ aFunction(fn); | ||
/* 30 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.hasClass = hasClass; | ||
exports.addClass = addClass; | ||
exports.removeClass = removeClass; | ||
var trim = function trim(string) { | ||
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); | ||
}; | ||
function hasClass(el, cls) { | ||
if (!el || !cls) return false; | ||
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); | ||
if (el.classList) { | ||
return el.classList.contains(cls); | ||
} else { | ||
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; | ||
} | ||
}; | ||
function addClass(el, cls) { | ||
if (!el) return; | ||
var curClass = el.className; | ||
var classes = (cls || '').split(' '); | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.add(clsName); | ||
} else { | ||
if (!hasClass(el, clsName)) { | ||
curClass += ' ' + clsName; | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = curClass; | ||
} | ||
}; | ||
function removeClass(el, cls) { | ||
if (!el || !cls) return; | ||
var classes = cls.split(' '); | ||
var curClass = ' ' + el.className + ' '; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.remove(clsName); | ||
} else { | ||
if (hasClass(el, clsName)) { | ||
curClass = curClass.replace(' ' + clsName + ' ', ' '); | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = trim(curClass); | ||
} | ||
}; | ||
var once = exports.once = function once(el, event, fn) { | ||
var listener = function listener() { | ||
if (fn) { | ||
fn.apply(this, arguments); | ||
} | ||
off(el, event, listener); | ||
}; | ||
on(el, event, listener); | ||
}; | ||
var on = exports.on = function () { | ||
if (document.addEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.addEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.attachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); | ||
var off = exports.off = function () { | ||
if (document.removeEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.removeEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.detachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); | ||
/***/ }), | ||
/* 31 */ | ||
/***/ (function(module, exports) { | ||
@@ -524,3 +687,3 @@ | ||
/***/ }), | ||
/* 31 */ | ||
/* 32 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -535,3 +698,3 @@ | ||
/***/ }), | ||
/* 32 */ | ||
/* 33 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -548,3 +711,3 @@ | ||
/***/ }), | ||
/* 33 */ | ||
/* 34 */ | ||
/***/ (function(module, exports) { | ||
@@ -562,6 +725,6 @@ | ||
/***/ }), | ||
/* 34 */ | ||
/* 35 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var global = __webpack_require__(1) | ||
var global = __webpack_require__(2) | ||
, SHARED = '__core-js_shared__' | ||
@@ -574,3 +737,3 @@ , store = global[SHARED] || (global[SHARED] = {}); | ||
/***/ }), | ||
/* 35 */ | ||
/* 36 */ | ||
/***/ (function(module, exports) { | ||
@@ -585,11 +748,11 @@ | ||
/***/ }), | ||
/* 36 */, | ||
/* 37 */, | ||
/* 38 */ | ||
/* 38 */, | ||
/* 39 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = __webpack_require__(1).document && document.documentElement; | ||
module.exports = __webpack_require__(2).document && document.documentElement; | ||
/***/ }), | ||
/* 39 */ | ||
/* 40 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -605,3 +768,3 @@ | ||
/***/ }), | ||
/* 40 */ | ||
/* 41 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -617,6 +780,10 @@ | ||
var _assign = __webpack_require__(78); | ||
var _assign = __webpack_require__(80); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -661,7 +828,10 @@ | ||
var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) { | ||
var isSupportRequestAnimationFrame = !_vue2.default.prototype.$isServer && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame); | ||
var isSupportCancelAnimationFrame = !_vue2.default.prototype.$isServer && (window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msCancelAnimationFrame); | ||
var requestAnimationFrame = isSupportRequestAnimationFrame || function (callback, element) { | ||
return window.setTimeout(callback, 1000 / 60); | ||
}; | ||
var cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msRequestAnimationFrame || function (id) { | ||
var cancelAnimationFrame = isSupportCancelAnimationFrame || function (id) { | ||
clearTimeout(id); | ||
@@ -692,3 +862,3 @@ }; | ||
/***/ }), | ||
/* 41 */ | ||
/* 42 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -703,7 +873,7 @@ | ||
var _merge = __webpack_require__(9); | ||
var _merge = __webpack_require__(10); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _popupManager = __webpack_require__(42); | ||
var _popupManager = __webpack_require__(43); | ||
@@ -783,2 +953,3 @@ var _popupManager2 = _interopRequireDefault(_popupManager); | ||
open: function open() { | ||
if (this.$isServer) return; | ||
if (this.opened) return; | ||
@@ -864,3 +1035,3 @@ | ||
/***/ }), | ||
/* 42 */ | ||
/* 43 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -875,4 +1046,8 @@ | ||
var _dom = __webpack_require__(43); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _dom = __webpack_require__(30); | ||
var _popupContext = __webpack_require__(18); | ||
@@ -885,2 +1060,3 @@ | ||
var getModal = function getModal() { | ||
if (_vue2.default.prototype.$isServer) return; | ||
var modalDom = _popupContext2.default.getContext('modalDom'); | ||
@@ -1010,77 +1186,6 @@ | ||
/***/ }), | ||
/* 43 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.hasClass = hasClass; | ||
exports.addClass = addClass; | ||
exports.removeClass = removeClass; | ||
var trim = function trim(string) { | ||
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); | ||
}; | ||
function hasClass(el, cls) { | ||
if (!el || !cls) return false; | ||
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); | ||
if (el.classList) { | ||
return el.classList.contains(cls); | ||
} else { | ||
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; | ||
} | ||
}; | ||
function addClass(el, cls) { | ||
if (!el) return; | ||
var curClass = el.className; | ||
var classes = (cls || '').split(' '); | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.add(clsName); | ||
} else { | ||
if (!hasClass(el, clsName)) { | ||
curClass += ' ' + clsName; | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = curClass; | ||
} | ||
}; | ||
function removeClass(el, cls) { | ||
if (!el || !cls) return; | ||
var classes = cls.split(' '); | ||
var curClass = ' ' + el.className + ' '; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.remove(clsName); | ||
} else { | ||
if (hasClass(el, clsName)) { | ||
curClass = curClass.replace(' ' + clsName + ' ', ' '); | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = trim(curClass); | ||
} | ||
}; | ||
/***/ }), | ||
/* 44 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(80), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(82), __esModule: true }; | ||
@@ -1094,3 +1199,3 @@ /***/ }), | ||
var toIObject = __webpack_require__(16) | ||
, toLength = __webpack_require__(39) | ||
, toLength = __webpack_require__(40) | ||
, toIndex = __webpack_require__(50); | ||
@@ -1118,3 +1223,3 @@ module.exports = function(IS_INCLUDES){ | ||
module.exports = !__webpack_require__(2) && !__webpack_require__(12)(function(){ | ||
module.exports = !__webpack_require__(3) && !__webpack_require__(12)(function(){ | ||
return Object.defineProperty(__webpack_require__(17)('div'), 'a', {get: function(){ return 7; }}).a != 7; | ||
@@ -1128,3 +1233,3 @@ }); | ||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | ||
var anObject = __webpack_require__(3) | ||
var anObject = __webpack_require__(4) | ||
, dPs = __webpack_require__(48) | ||
@@ -1145,3 +1250,3 @@ , enumBugKeys = __webpack_require__(20) | ||
iframe.style.display = 'none'; | ||
__webpack_require__(38).appendChild(iframe); | ||
__webpack_require__(39).appendChild(iframe); | ||
iframe.src = 'javascript:'; // eslint-disable-line no-script-url | ||
@@ -1176,7 +1281,7 @@ // createDict = iframe.contentWindow.Object; | ||
var dP = __webpack_require__(8) | ||
, anObject = __webpack_require__(3) | ||
, getKeys = __webpack_require__(32); | ||
var dP = __webpack_require__(9) | ||
, anObject = __webpack_require__(4) | ||
, getKeys = __webpack_require__(33); | ||
module.exports = __webpack_require__(2) ? Object.defineProperties : function defineProperties(O, Properties){ | ||
module.exports = __webpack_require__(3) ? Object.defineProperties : function defineProperties(O, Properties){ | ||
anObject(O); | ||
@@ -1240,3 +1345,3 @@ var keys = getKeys(Properties) | ||
// 7.1.1 ToPrimitive(input [, PreferredType]) | ||
var isObject = __webpack_require__(7); | ||
var isObject = __webpack_require__(8); | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
@@ -1254,3 +1359,29 @@ // and the second argument - flag - preferred type is a string | ||
/***/ }), | ||
/* 53 */, | ||
/* 53 */ | ||
/***/ (function(module, exports) { | ||
var g; | ||
// This works in non-strict mode | ||
g = (function() { | ||
return this; | ||
})(); | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1,eval)("this"); | ||
} catch(e) { | ||
// This works if the window reference is available | ||
if(typeof window === "object") | ||
g = window; | ||
} | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
module.exports = g; | ||
/***/ }), | ||
/* 54 */, | ||
@@ -1263,3 +1394,4 @@ /* 55 */, | ||
/* 60 */, | ||
/* 61 */ | ||
/* 61 */, | ||
/* 62 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1269,8 +1401,10 @@ | ||
/* script */ | ||
__webpack_require__(66), | ||
__webpack_require__(67), | ||
/* template */ | ||
__webpack_require__(99), | ||
__webpack_require__(101), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -1283,3 +1417,3 @@ ) | ||
/***/ }), | ||
/* 62 */ | ||
/* 63 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1289,8 +1423,10 @@ | ||
/* script */ | ||
__webpack_require__(67), | ||
__webpack_require__(68), | ||
/* template */ | ||
__webpack_require__(98), | ||
__webpack_require__(100), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -1303,6 +1439,6 @@ ) | ||
/***/ }), | ||
/* 63 */, | ||
/* 64 */, | ||
/* 65 */, | ||
/* 66 */ | ||
/* 66 */, | ||
/* 67 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1332,3 +1468,3 @@ | ||
/***/ }), | ||
/* 67 */ | ||
/* 68 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1343,11 +1479,11 @@ | ||
var _input = __webpack_require__(73); | ||
var _input = __webpack_require__(74); | ||
var _input2 = _interopRequireDefault(_input); | ||
var _scroll = __webpack_require__(74); | ||
var _scroll = __webpack_require__(75); | ||
var _scroll2 = _interopRequireDefault(_scroll); | ||
var _spring_dummy = __webpack_require__(75); | ||
var _spring_dummy = __webpack_require__(76); | ||
@@ -1429,6 +1565,6 @@ var _spring_dummy2 = _interopRequireDefault(_spring_dummy); | ||
/***/ }), | ||
/* 68 */, | ||
/* 69 */, | ||
/* 70 */, | ||
/* 71 */ | ||
/* 71 */, | ||
/* 72 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1443,3 +1579,3 @@ | ||
var _swipeItem = __webpack_require__(61); | ||
var _swipeItem = __webpack_require__(62); | ||
@@ -1453,3 +1589,3 @@ var _swipeItem2 = _interopRequireDefault(_swipeItem); | ||
/***/ }), | ||
/* 72 */ | ||
/* 73 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1464,3 +1600,3 @@ | ||
var _swipe = __webpack_require__(62); | ||
var _swipe = __webpack_require__(63); | ||
@@ -1474,3 +1610,3 @@ var _swipe2 = _interopRequireDefault(_swipe); | ||
/***/ }), | ||
/* 73 */ | ||
/* 74 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1489,4 +1625,8 @@ | ||
var _utils = __webpack_require__(40); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _utils = __webpack_require__(41); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -1518,2 +1658,3 @@ | ||
bind: function bind(host) { | ||
if (_vue2.default.prototype.$isServer) return; | ||
(0, _utils.bindEvents)(host, 'touchstart mousedown', this.onTouchStart); | ||
@@ -1597,2 +1738,3 @@ if (this.options.listenMoving) { | ||
destroy: function destroy() { | ||
if (_vue2.default.prototype.$isServer) return; | ||
(0, _utils.removeEvents)(this.host, 'touchstart mousedown', this.onTouchStart); | ||
@@ -1609,3 +1751,3 @@ if (this.options.listenMoving) { | ||
/***/ }), | ||
/* 74 */ | ||
/* 75 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1624,3 +1766,3 @@ | ||
var _utils = __webpack_require__(40); | ||
var _utils = __webpack_require__(41); | ||
@@ -1783,3 +1925,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/***/ }), | ||
/* 75 */ | ||
/* 76 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1798,3 +1940,3 @@ | ||
var _utils = __webpack_require__(40); | ||
var _utils = __webpack_require__(41); | ||
@@ -1951,22 +2093,23 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/***/ }), | ||
/* 76 */, | ||
/* 77 */, | ||
/* 78 */ | ||
/* 78 */, | ||
/* 79 */, | ||
/* 80 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(79), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(81), __esModule: true }; | ||
/***/ }), | ||
/* 79 */ | ||
/* 81 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(92); | ||
module.exports = __webpack_require__(4).Object.assign; | ||
__webpack_require__(94); | ||
module.exports = __webpack_require__(5).Object.assign; | ||
/***/ }), | ||
/* 80 */ | ||
/* 82 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(93); | ||
var $Object = __webpack_require__(4).Object; | ||
__webpack_require__(95); | ||
var $Object = __webpack_require__(5).Object; | ||
module.exports = function create(P, D){ | ||
@@ -1977,6 +2120,6 @@ return $Object.create(P, D); | ||
/***/ }), | ||
/* 81 */, | ||
/* 82 */, | ||
/* 83 */, | ||
/* 84 */ | ||
/* 84 */, | ||
/* 85 */, | ||
/* 86 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1987,7 +2130,7 @@ | ||
// 19.1.2.1 Object.assign(target, source, ...) | ||
var getKeys = __webpack_require__(32) | ||
, gOPS = __webpack_require__(85) | ||
, pIE = __webpack_require__(87) | ||
var getKeys = __webpack_require__(33) | ||
, gOPS = __webpack_require__(87) | ||
, pIE = __webpack_require__(89) | ||
, toObject = __webpack_require__(51) | ||
, IObject = __webpack_require__(31) | ||
, IObject = __webpack_require__(32) | ||
, $assign = Object.assign; | ||
@@ -2021,3 +2164,3 @@ | ||
/***/ }), | ||
/* 85 */ | ||
/* 87 */ | ||
/***/ (function(module, exports) { | ||
@@ -2028,4 +2171,4 @@ | ||
/***/ }), | ||
/* 86 */, | ||
/* 87 */ | ||
/* 88 */, | ||
/* 89 */ | ||
/***/ (function(module, exports) { | ||
@@ -2036,7 +2179,7 @@ | ||
/***/ }), | ||
/* 88 */, | ||
/* 89 */, | ||
/* 90 */, | ||
/* 91 */, | ||
/* 92 */ | ||
/* 92 */, | ||
/* 93 */, | ||
/* 94 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2047,6 +2190,6 @@ | ||
$export($export.S + $export.F, 'Object', {assign: __webpack_require__(84)}); | ||
$export($export.S + $export.F, 'Object', {assign: __webpack_require__(86)}); | ||
/***/ }), | ||
/* 93 */ | ||
/* 95 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2059,7 +2202,7 @@ | ||
/***/ }), | ||
/* 94 */, | ||
/* 95 */, | ||
/* 96 */, | ||
/* 97 */, | ||
/* 98 */ | ||
/* 98 */, | ||
/* 99 */, | ||
/* 100 */ | ||
/***/ (function(module, exports) { | ||
@@ -2074,7 +2217,8 @@ | ||
staticClass: "van-swipe__indicators" | ||
}, _vm._l((_vm.swipes.length), function(i) { | ||
}, _vm._l((_vm.swipes.length), function(item, index) { | ||
return _c('span', { | ||
key: index, | ||
staticClass: "van-swipe__indicator", | ||
class: { | ||
'van-swipe__indicator--active': _vm.currIndex === i - 1 | ||
'van-swipe__indicator--active': _vm.currIndex === index | ||
} | ||
@@ -2086,3 +2230,3 @@ }) | ||
/***/ }), | ||
/* 99 */ | ||
/* 101 */ | ||
/***/ (function(module, exports) { | ||
@@ -2097,6 +2241,6 @@ | ||
/***/ }), | ||
/* 100 */, | ||
/* 101 */, | ||
/* 102 */, | ||
/* 103 */ | ||
/* 103 */, | ||
/* 104 */, | ||
/* 105 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2111,7 +2255,7 @@ | ||
var _vue = __webpack_require__(10); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _imagePreview = __webpack_require__(219); | ||
var _imagePreview = __webpack_require__(224); | ||
@@ -2127,2 +2271,3 @@ var _imagePreview2 = _interopRequireDefault(_imagePreview); | ||
var initInstance = function initInstance() { | ||
if (_vue2.default.prototype.$isServer) return; | ||
instance = new ImagePreviewConstructor({ | ||
@@ -2134,2 +2279,3 @@ el: document.createElement('div') | ||
var ImagePreviewBox = function ImagePreviewBox(images) { | ||
if (_vue2.default.prototype.$isServer) return; | ||
if (!instance) { | ||
@@ -2154,4 +2300,2 @@ initInstance(); | ||
/***/ }), | ||
/* 104 */, | ||
/* 105 */, | ||
/* 106 */, | ||
@@ -2194,3 +2338,7 @@ /* 107 */, | ||
/* 142 */, | ||
/* 143 */ | ||
/* 143 */, | ||
/* 144 */, | ||
/* 145 */, | ||
/* 146 */, | ||
/* 147 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2205,15 +2353,15 @@ | ||
var _vue = __webpack_require__(10); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _popup = __webpack_require__(41); | ||
var _popup = __webpack_require__(42); | ||
var _popup2 = _interopRequireDefault(_popup); | ||
var _swipe = __webpack_require__(72); | ||
var _swipe = __webpack_require__(73); | ||
var _swipe2 = _interopRequireDefault(_swipe); | ||
var _swipeItem = __webpack_require__(71); | ||
var _swipeItem = __webpack_require__(72); | ||
@@ -2337,6 +2485,2 @@ var _swipeItem2 = _interopRequireDefault(_swipeItem); | ||
/***/ }), | ||
/* 144 */, | ||
/* 145 */, | ||
/* 146 */, | ||
/* 147 */, | ||
/* 148 */, | ||
@@ -2366,3 +2510,8 @@ /* 149 */, | ||
/* 171 */, | ||
/* 172 */ | ||
/* 172 */, | ||
/* 173 */, | ||
/* 174 */, | ||
/* 175 */, | ||
/* 176 */, | ||
/* 177 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2377,3 +2526,3 @@ | ||
var _imagePreview = __webpack_require__(103); | ||
var _imagePreview = __webpack_require__(105); | ||
@@ -2387,7 +2536,2 @@ var _imagePreview2 = _interopRequireDefault(_imagePreview); | ||
/***/ }), | ||
/* 173 */, | ||
/* 174 */, | ||
/* 175 */, | ||
/* 176 */, | ||
/* 177 */, | ||
/* 178 */, | ||
@@ -2434,3 +2578,8 @@ /* 179 */, | ||
/* 218 */, | ||
/* 219 */ | ||
/* 219 */, | ||
/* 220 */, | ||
/* 221 */, | ||
/* 222 */, | ||
/* 223 */, | ||
/* 224 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -2440,8 +2589,10 @@ | ||
/* script */ | ||
__webpack_require__(143), | ||
__webpack_require__(147), | ||
/* template */ | ||
__webpack_require__(240), | ||
__webpack_require__(245), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -2454,7 +2605,2 @@ ) | ||
/***/ }), | ||
/* 220 */, | ||
/* 221 */, | ||
/* 222 */, | ||
/* 223 */, | ||
/* 224 */, | ||
/* 225 */, | ||
@@ -2475,3 +2621,8 @@ /* 226 */, | ||
/* 239 */, | ||
/* 240 */ | ||
/* 240 */, | ||
/* 241 */, | ||
/* 242 */, | ||
/* 243 */, | ||
/* 244 */, | ||
/* 245 */ | ||
/***/ (function(module, exports) { | ||
@@ -2493,4 +2644,6 @@ | ||
staticClass: "van-image-preview" | ||
}, [_c('van-swipe', _vm._l((_vm.images), function(item) { | ||
return _c('van-swipe-item', [_c('img', { | ||
}, [_c('van-swipe', _vm._l((_vm.images), function(item, index) { | ||
return _c('van-swipe-item', { | ||
key: index | ||
}, [_c('img', { | ||
staticClass: "van-image-preview__image", | ||
@@ -2497,0 +2650,0 @@ attrs: { |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 173); | ||
/******/ return __webpack_require__(__webpack_require__.s = 178); | ||
/******/ }) | ||
@@ -82,3 +82,3 @@ /************************************************************************/ | ||
/***/ 106: | ||
/***/ 108: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -95,3 +95,3 @@ | ||
/***/ 173: | ||
/***/ 178: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -106,3 +106,3 @@ | ||
var _vueLazyload = __webpack_require__(106); | ||
var _vueLazyload = __webpack_require__(108); | ||
@@ -109,0 +109,0 @@ var _vueLazyload2 = _interopRequireDefault(_vueLazyload); |
@@ -84,7 +84,13 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -117,11 +123,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -144,6 +188,8 @@ esModule: esModule, | ||
/* template */ | ||
__webpack_require__(36), | ||
__webpack_require__(37), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -218,3 +264,3 @@ ) | ||
/***/ 36: | ||
/***/ 37: | ||
/***/ (function(module, exports) { | ||
@@ -221,0 +267,0 @@ |
@@ -86,2 +86,3 @@ 'use strict'; | ||
open: function open() { | ||
if (this.$isServer) return; | ||
if (this.opened) return; | ||
@@ -88,0 +89,0 @@ |
@@ -11,7 +11,13 @@ 'use strict'; | ||
var _vue = require('vue'); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var context = void 0; | ||
if (window && window.popupContext) { | ||
context = window.popupContext; | ||
var _global = _vue2.default.prototype.$isServer ? global : window; | ||
if (_global && _global.popupContext) { | ||
context = _global.popupContext; | ||
} | ||
@@ -27,3 +33,3 @@ | ||
context = window.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
context = _global.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
@@ -30,0 +36,0 @@ var PopupContext = { |
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _vue = require('vue'); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _dom = require('src/utils/dom'); | ||
@@ -17,2 +21,3 @@ | ||
var getModal = function getModal() { | ||
if (_vue2.default.prototype.$isServer) return; | ||
var modalDom = _popupContext2.default.getContext('modalDom'); | ||
@@ -19,0 +24,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 174); | ||
/******/ return __webpack_require__(__webpack_require__.s = 179); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 117: | ||
/***/ 120: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(144), | ||
__webpack_require__(148), | ||
/* template */ | ||
__webpack_require__(224), | ||
__webpack_require__(229), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 144: | ||
/***/ 148: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -199,3 +245,3 @@ | ||
/***/ 174: | ||
/***/ 179: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -210,3 +256,3 @@ | ||
var _panel = __webpack_require__(117); | ||
var _panel = __webpack_require__(120); | ||
@@ -221,3 +267,3 @@ var _panel2 = _interopRequireDefault(_panel); | ||
/***/ 224: | ||
/***/ 229: | ||
/***/ (function(module, exports) { | ||
@@ -224,0 +270,0 @@ |
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
} | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_10__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -77,3 +77,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 69); | ||
/******/ return __webpack_require__(__webpack_require__.s = 70); | ||
/******/ }) | ||
@@ -86,7 +86,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -119,11 +125,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -139,10 +183,10 @@ esModule: esModule, | ||
/***/ 10: | ||
/***/ 1: | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_10__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/***/ 60: | ||
/***/ 61: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -152,8 +196,10 @@ | ||
/* script */ | ||
__webpack_require__(65), | ||
__webpack_require__(66), | ||
/* template */ | ||
__webpack_require__(95), | ||
__webpack_require__(97), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -167,3 +213,3 @@ ) | ||
/***/ 64: | ||
/***/ 65: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -178,7 +224,7 @@ | ||
var _transition = __webpack_require__(77); | ||
var _transition = __webpack_require__(79); | ||
var _transition2 = _interopRequireDefault(_transition); | ||
var _draggable = __webpack_require__(70); | ||
var _draggable = __webpack_require__(71); | ||
@@ -203,2 +249,3 @@ var _draggable2 = _interopRequireDefault(_draggable); | ||
// | ||
// | ||
@@ -443,3 +490,3 @@ var DEFAULT_ITEM_HEIGHT = 44; | ||
/***/ 65: | ||
/***/ 66: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -454,3 +501,3 @@ | ||
var _pickerColumn = __webpack_require__(94); | ||
var _pickerColumn = __webpack_require__(96); | ||
@@ -486,2 +533,3 @@ var _pickerColumn2 = _interopRequireDefault(_pickerColumn); | ||
// | ||
// | ||
@@ -636,3 +684,3 @@ exports.default = { | ||
/***/ 69: | ||
/***/ 70: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -647,3 +695,3 @@ | ||
var _picker = __webpack_require__(60); | ||
var _picker = __webpack_require__(61); | ||
@@ -658,3 +706,3 @@ var _picker2 = _interopRequireDefault(_picker); | ||
/***/ 70: | ||
/***/ 71: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -719,3 +767,3 @@ | ||
var _vue = __webpack_require__(10); | ||
var _vue = __webpack_require__(1); | ||
@@ -734,3 +782,3 @@ var _vue2 = _interopRequireDefault(_vue); | ||
/***/ 77: | ||
/***/ 79: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -745,3 +793,3 @@ | ||
var _vue = __webpack_require__(10); | ||
var _vue = __webpack_require__(1); | ||
@@ -852,3 +900,3 @@ var _vue2 = _interopRequireDefault(_vue); | ||
/***/ 94: | ||
/***/ 96: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -858,8 +906,10 @@ | ||
/* script */ | ||
__webpack_require__(64), | ||
__webpack_require__(65), | ||
/* template */ | ||
__webpack_require__(96), | ||
__webpack_require__(98), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -873,3 +923,3 @@ ) | ||
/***/ 95: | ||
/***/ 97: | ||
/***/ (function(module, exports) { | ||
@@ -911,8 +961,3 @@ | ||
return _c('picker-column', { | ||
directives: [{ | ||
name: "model", | ||
rawName: "v-model", | ||
value: (_vm.values[index]), | ||
expression: "values[index]" | ||
}], | ||
key: index, | ||
attrs: { | ||
@@ -925,18 +970,19 @@ "values": item.values, | ||
}, | ||
domProps: { | ||
"value": (_vm.values[index]) | ||
}, | ||
on: { | ||
"columnChange": function($event) { | ||
_vm.columnValueChange(index) | ||
}, | ||
"input": function($event) { | ||
} | ||
}, | ||
model: { | ||
value: (_vm.values[index]), | ||
callback: function($$v) { | ||
var $$exp = _vm.values, | ||
$$idx = index; | ||
if (!Array.isArray($$exp)) { | ||
_vm.values[index] = $event | ||
_vm.values[index] = $$v | ||
} else { | ||
$$exp.splice($$idx, 1, $event) | ||
$$exp.splice($$idx, 1, $$v) | ||
} | ||
} | ||
}, | ||
expression: "values[index]" | ||
} | ||
@@ -955,3 +1001,3 @@ }) | ||
/***/ 96: | ||
/***/ 98: | ||
/***/ (function(module, exports) { | ||
@@ -972,4 +1018,5 @@ | ||
}) | ||
}, _vm._l((_vm.currentValues), function(item) { | ||
}, _vm._l((_vm.currentValues), function(item, index) { | ||
return _c('div', { | ||
key: index, | ||
staticClass: "van-picker-column__item", | ||
@@ -976,0 +1023,0 @@ class: { |
429
lib/popup.js
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
module.exports = factory(require("vue")); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
define(["vue"], factory); | ||
else { | ||
var a = factory(); | ||
var a = typeof exports === 'object' ? factory(require("vue")) : factory(root["Vue"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(this, function() { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -76,3 +76,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 175); | ||
/******/ return __webpack_require__(__webpack_require__.s = 180); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,13 +182,56 @@ esModule: esModule, | ||
/***/ 118: | ||
/***/ 1: | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/***/ 10: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (target) { | ||
for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
for (var i = 0; i < sources.length; i++) { | ||
var source = sources[i] || {}; | ||
for (var prop in source) { | ||
if (source.hasOwnProperty(prop)) { | ||
var value = source[prop]; | ||
if (value !== undefined) { | ||
target[prop] = value; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
; | ||
/***/ }), | ||
/***/ 121: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Component = __webpack_require__(0)( | ||
/* script */ | ||
__webpack_require__(145), | ||
__webpack_require__(149), | ||
/* template */ | ||
__webpack_require__(227), | ||
__webpack_require__(232), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -158,3 +245,3 @@ ) | ||
/***/ 145: | ||
/***/ 149: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -169,3 +256,3 @@ | ||
var _popup = __webpack_require__(41); | ||
var _popup = __webpack_require__(42); | ||
@@ -244,8 +331,8 @@ var _popup2 = _interopRequireDefault(_popup); | ||
/***/ 175: | ||
/***/ 18: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/* WEBPACK VAR INJECTION */(function(global) { | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -255,31 +342,17 @@ value: true | ||
var _popup = __webpack_require__(118); | ||
var _merge = __webpack_require__(10); | ||
var _popup2 = _interopRequireDefault(_popup); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _vue = __webpack_require__(1); | ||
exports.default = _popup2.default; | ||
var _vue2 = _interopRequireDefault(_vue); | ||
/***/ }), | ||
/***/ 18: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _merge = __webpack_require__(9); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var context = void 0; | ||
if (window && window.popupContext) { | ||
context = window.popupContext; | ||
var _global = _vue2.default.prototype.$isServer ? global : window; | ||
if (_global && _global.popupContext) { | ||
context = _global.popupContext; | ||
} | ||
@@ -295,3 +368,3 @@ | ||
context = window.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
context = _global.popupContext = (0, _merge2.default)({}, DEFAULT_CONTEXT, context); | ||
@@ -314,6 +387,27 @@ var PopupContext = { | ||
exports.default = PopupContext; | ||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(53))) | ||
/***/ }), | ||
/***/ 227: | ||
/***/ 180: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _popup = __webpack_require__(121); | ||
var _popup2 = _interopRequireDefault(_popup); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = _popup2.default; | ||
/***/ }), | ||
/***/ 232: | ||
/***/ (function(module, exports) { | ||
@@ -340,3 +434,3 @@ | ||
/***/ 41: | ||
/***/ 30: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -350,8 +444,121 @@ | ||
}); | ||
exports.hasClass = hasClass; | ||
exports.addClass = addClass; | ||
exports.removeClass = removeClass; | ||
var trim = function trim(string) { | ||
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); | ||
}; | ||
var _merge = __webpack_require__(9); | ||
function hasClass(el, cls) { | ||
if (!el || !cls) return false; | ||
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); | ||
if (el.classList) { | ||
return el.classList.contains(cls); | ||
} else { | ||
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; | ||
} | ||
}; | ||
function addClass(el, cls) { | ||
if (!el) return; | ||
var curClass = el.className; | ||
var classes = (cls || '').split(' '); | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.add(clsName); | ||
} else { | ||
if (!hasClass(el, clsName)) { | ||
curClass += ' ' + clsName; | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = curClass; | ||
} | ||
}; | ||
function removeClass(el, cls) { | ||
if (!el || !cls) return; | ||
var classes = cls.split(' '); | ||
var curClass = ' ' + el.className + ' '; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.remove(clsName); | ||
} else { | ||
if (hasClass(el, clsName)) { | ||
curClass = curClass.replace(' ' + clsName + ' ', ' '); | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = trim(curClass); | ||
} | ||
}; | ||
var once = exports.once = function once(el, event, fn) { | ||
var listener = function listener() { | ||
if (fn) { | ||
fn.apply(this, arguments); | ||
} | ||
off(el, event, listener); | ||
}; | ||
on(el, event, listener); | ||
}; | ||
var on = exports.on = function () { | ||
if (document.addEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.addEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.attachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); | ||
var off = exports.off = function () { | ||
if (document.removeEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.removeEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.detachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); | ||
/***/ }), | ||
/***/ 42: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _merge = __webpack_require__(10); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _popupManager = __webpack_require__(42); | ||
var _popupManager = __webpack_require__(43); | ||
@@ -431,2 +638,3 @@ var _popupManager2 = _interopRequireDefault(_popupManager); | ||
open: function open() { | ||
if (this.$isServer) return; | ||
if (this.opened) return; | ||
@@ -513,3 +721,3 @@ | ||
/***/ 42: | ||
/***/ 43: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -524,4 +732,8 @@ | ||
var _dom = __webpack_require__(43); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _dom = __webpack_require__(30); | ||
var _popupContext = __webpack_require__(18); | ||
@@ -534,2 +746,3 @@ | ||
var getModal = function getModal() { | ||
if (_vue2.default.prototype.$isServer) return; | ||
var modalDom = _popupContext2.default.getContext('modalDom'); | ||
@@ -660,106 +873,28 @@ | ||
/***/ 43: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/***/ 53: | ||
/***/ (function(module, exports) { | ||
"use strict"; | ||
var g; | ||
// This works in non-strict mode | ||
g = (function() { | ||
return this; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.hasClass = hasClass; | ||
exports.addClass = addClass; | ||
exports.removeClass = removeClass; | ||
var trim = function trim(string) { | ||
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); | ||
}; | ||
try { | ||
// This works if eval is allowed (see CSP) | ||
g = g || Function("return this")() || (1,eval)("this"); | ||
} catch(e) { | ||
// This works if the window reference is available | ||
if(typeof window === "object") | ||
g = window; | ||
} | ||
function hasClass(el, cls) { | ||
if (!el || !cls) return false; | ||
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); | ||
if (el.classList) { | ||
return el.classList.contains(cls); | ||
} else { | ||
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; | ||
} | ||
}; | ||
// g can still be undefined, but nothing to do about it... | ||
// We return undefined, instead of nothing here, so it's | ||
// easier to handle this case. if(!global) { ...} | ||
function addClass(el, cls) { | ||
if (!el) return; | ||
var curClass = el.className; | ||
var classes = (cls || '').split(' '); | ||
module.exports = g; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.add(clsName); | ||
} else { | ||
if (!hasClass(el, clsName)) { | ||
curClass += ' ' + clsName; | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = curClass; | ||
} | ||
}; | ||
function removeClass(el, cls) { | ||
if (!el || !cls) return; | ||
var classes = cls.split(' '); | ||
var curClass = ' ' + el.className + ' '; | ||
for (var i = 0, j = classes.length; i < j; i++) { | ||
var clsName = classes[i]; | ||
if (!clsName) continue; | ||
if (el.classList) { | ||
el.classList.remove(clsName); | ||
} else { | ||
if (hasClass(el, clsName)) { | ||
curClass = curClass.replace(' ' + clsName + ' ', ' '); | ||
} | ||
} | ||
} | ||
if (!el.classList) { | ||
el.className = trim(curClass); | ||
} | ||
}; | ||
/***/ }), | ||
/***/ 9: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (target) { | ||
for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
for (var i = 0; i < sources.length; i++) { | ||
var source = sources[i] || {}; | ||
for (var prop in source) { | ||
if (source.hasOwnProperty(prop)) { | ||
var value = source[prop]; | ||
if (value !== undefined) { | ||
target[prop] = value; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
; | ||
/***/ }) | ||
@@ -766,0 +901,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 176); | ||
/******/ return __webpack_require__(__webpack_require__.s = 181); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 119: | ||
/***/ 122: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(146), | ||
__webpack_require__(150), | ||
/* template */ | ||
__webpack_require__(233), | ||
__webpack_require__(238), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 146: | ||
/***/ 150: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -254,3 +300,3 @@ | ||
/***/ 176: | ||
/***/ 181: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -265,3 +311,3 @@ | ||
var _progress = __webpack_require__(119); | ||
var _progress = __webpack_require__(122); | ||
@@ -276,3 +322,3 @@ var _progress2 = _interopRequireDefault(_progress); | ||
/***/ 233: | ||
/***/ 238: | ||
/***/ (function(module, exports) { | ||
@@ -279,0 +325,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 177); | ||
/******/ return __webpack_require__(__webpack_require__.s = 182); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 120: | ||
/***/ 123: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(147), | ||
__webpack_require__(151), | ||
/* template */ | ||
__webpack_require__(231), | ||
__webpack_require__(236), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 147: | ||
/***/ 151: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -287,3 +333,3 @@ | ||
/***/ 177: | ||
/***/ 182: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -298,3 +344,3 @@ | ||
var _quantity = __webpack_require__(120); | ||
var _quantity = __webpack_require__(123); | ||
@@ -309,3 +355,3 @@ var _quantity2 = _interopRequireDefault(_quantity); | ||
/***/ 231: | ||
/***/ 236: | ||
/***/ (function(module, exports) { | ||
@@ -312,0 +358,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 178); | ||
/******/ return __webpack_require__(__webpack_require__.s = 183); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 121: | ||
/***/ 124: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(148), | ||
__webpack_require__(152), | ||
/* template */ | ||
__webpack_require__(245), | ||
__webpack_require__(250), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 148: | ||
/***/ 152: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -193,3 +239,3 @@ | ||
/***/ 178: | ||
/***/ 183: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -204,3 +250,3 @@ | ||
var _radioGroup = __webpack_require__(121); | ||
var _radioGroup = __webpack_require__(124); | ||
@@ -215,3 +261,3 @@ var _radioGroup2 = _interopRequireDefault(_radioGroup); | ||
/***/ 245: | ||
/***/ 250: | ||
/***/ (function(module, exports) { | ||
@@ -218,0 +264,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 179); | ||
/******/ return __webpack_require__(__webpack_require__.s = 184); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 122: | ||
/***/ 125: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(149), | ||
__webpack_require__(153), | ||
/* template */ | ||
__webpack_require__(232), | ||
__webpack_require__(237), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 149: | ||
/***/ 153: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -170,3 +216,3 @@ | ||
var _findParent = __webpack_require__(76); | ||
var _findParent = __webpack_require__(77); | ||
@@ -252,3 +298,3 @@ var _findParent2 = _interopRequireDefault(_findParent); | ||
/***/ 179: | ||
/***/ 184: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -263,3 +309,3 @@ | ||
var _radio = __webpack_require__(122); | ||
var _radio = __webpack_require__(125); | ||
@@ -274,3 +320,3 @@ var _radio2 = _interopRequireDefault(_radio); | ||
/***/ 232: | ||
/***/ 237: | ||
/***/ (function(module, exports) { | ||
@@ -306,3 +352,3 @@ | ||
on: { | ||
"change": function($event) { | ||
"__c": function($event) { | ||
_vm.currentValue = _vm.name | ||
@@ -327,3 +373,3 @@ } | ||
/***/ 76: | ||
/***/ 77: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -330,0 +376,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 180); | ||
/******/ return __webpack_require__(__webpack_require__.s = 185); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 123: | ||
/***/ 126: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(150), | ||
__webpack_require__(154), | ||
/* template */ | ||
__webpack_require__(235), | ||
__webpack_require__(240), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 150: | ||
/***/ 154: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -201,3 +247,3 @@ | ||
/***/ 180: | ||
/***/ 185: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -212,3 +258,3 @@ | ||
var _row = __webpack_require__(123); | ||
var _row = __webpack_require__(126); | ||
@@ -223,3 +269,3 @@ var _row2 = _interopRequireDefault(_row); | ||
/***/ 235: | ||
/***/ 240: | ||
/***/ (function(module, exports) { | ||
@@ -226,0 +272,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 181); | ||
/******/ return __webpack_require__(__webpack_require__.s = 186); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 124: | ||
/***/ 127: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(151), | ||
__webpack_require__(155), | ||
/* template */ | ||
__webpack_require__(229), | ||
__webpack_require__(234), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 151: | ||
/***/ 155: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -174,4 +220,30 @@ | ||
var _clickoutside = __webpack_require__(78); | ||
var _clickoutside2 = _interopRequireDefault(_clickoutside); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
exports.default = { | ||
@@ -185,3 +257,7 @@ name: 'van-search', | ||
props: { | ||
placeholder: String | ||
placeholder: String, | ||
type: { | ||
type: String, | ||
default: 'normal' | ||
} | ||
}, | ||
@@ -205,2 +281,3 @@ | ||
directives: { | ||
Clickoutside: _clickoutside2.default, | ||
refocus: { | ||
@@ -249,26 +326,13 @@ update: function update(el, state) { | ||
this.$emit('search', this.value); | ||
}, | ||
handleClickoutside: function handleClickoutside() { | ||
this.isFocus = false; | ||
this.focusStatus = false; | ||
} | ||
} | ||
}; // | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
}; | ||
/***/ }), | ||
/***/ 181: | ||
/***/ 186: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -283,3 +347,3 @@ | ||
var _search = __webpack_require__(124); | ||
var _search = __webpack_require__(127); | ||
@@ -294,3 +358,3 @@ var _search2 = _interopRequireDefault(_search); | ||
/***/ 229: | ||
/***/ 234: | ||
/***/ (function(module, exports) { | ||
@@ -300,5 +364,11 @@ | ||
return _c('div', { | ||
directives: [{ | ||
name: "clickoutside", | ||
rawName: "v-clickoutside", | ||
value: (_vm.handleClickoutside), | ||
expression: "handleClickoutside" | ||
}], | ||
staticClass: "van-search", | ||
class: { | ||
'van-search--focus': _vm.isFocus | ||
'van-search--focus': _vm.isFocus, 'van-search--showcase': _vm.type === 'showcase' | ||
} | ||
@@ -329,3 +399,3 @@ }, [_c('div', { | ||
domProps: { | ||
"value": _vm._s(_vm.value) | ||
"value": (_vm.value) | ||
}, | ||
@@ -335,3 +405,3 @@ on: { | ||
"keyup": function($event) { | ||
if (_vm._k($event.keyCode, "enter", 13)) { return; } | ||
if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13)) { return null; } | ||
_vm.handleSearch($event) | ||
@@ -361,4 +431,4 @@ }, | ||
rawName: "v-show", | ||
value: (_vm.isFocus), | ||
expression: "isFocus" | ||
value: (_vm.type !== 'showcase' && _vm.isFocus), | ||
expression: "type !== 'showcase' && isFocus" | ||
}], | ||
@@ -381,6 +451,8 @@ staticClass: "van-search__cancel", | ||
/* template */ | ||
__webpack_require__(37), | ||
__webpack_require__(38), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -447,3 +519,3 @@ ) | ||
/***/ 37: | ||
/***/ 38: | ||
/***/ (function(module, exports) { | ||
@@ -461,2 +533,51 @@ | ||
/***/ }), | ||
/***/ 78: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
/** | ||
* v-clickoutside | ||
* @desc 点击元素外面才会触发的事件 | ||
* @example | ||
* ```vue | ||
* <div v-clickoutside="handleClose"> | ||
* ``` | ||
*/ | ||
var clickoutsideContext = '@@clickoutsideContext'; | ||
exports.default = { | ||
bind: function bind(el, binding, vnode) { | ||
var documentHandler = function documentHandler(e) { | ||
if (vnode.context && !el.contains(e.target)) { | ||
vnode.context[el[clickoutsideContext].methodName](); | ||
} | ||
}; | ||
el[clickoutsideContext] = { | ||
documentHandler: documentHandler, | ||
methodName: binding.expression, | ||
arg: binding.arg || 'click' | ||
}; | ||
document.addEventListener(el[clickoutsideContext].arg, documentHandler); | ||
}, | ||
update: function update(el, binding) { | ||
el[clickoutsideContext].methodName = binding.expression; | ||
}, | ||
unbind: function unbind(el) { | ||
document.removeEventListener(el[clickoutsideContext].arg, el[clickoutsideContext].documentHandler); | ||
}, | ||
install: function install(Vue) { | ||
Vue.directive('clickoutside', { | ||
bind: this.bind, | ||
unbind: this.unbind | ||
}); | ||
} | ||
}; | ||
/***/ }) | ||
@@ -463,0 +584,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 182); | ||
/******/ return __webpack_require__(__webpack_require__.s = 187); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 125: | ||
/***/ 128: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(152), | ||
__webpack_require__(156), | ||
/* template */ | ||
__webpack_require__(223), | ||
__webpack_require__(228), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 152: | ||
/***/ 156: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -211,3 +257,3 @@ | ||
/***/ 182: | ||
/***/ 187: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -222,3 +268,3 @@ | ||
var _step = __webpack_require__(125); | ||
var _step = __webpack_require__(128); | ||
@@ -233,3 +279,3 @@ var _step2 = _interopRequireDefault(_step); | ||
/***/ 223: | ||
/***/ 228: | ||
/***/ (function(module, exports) { | ||
@@ -236,0 +282,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 183); | ||
/******/ return __webpack_require__(__webpack_require__.s = 188); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 126: | ||
/***/ 129: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(153), | ||
__webpack_require__(157), | ||
/* template */ | ||
__webpack_require__(222), | ||
__webpack_require__(227), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 153: | ||
/***/ 157: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -227,3 +273,3 @@ | ||
/***/ 183: | ||
/***/ 188: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -238,3 +284,3 @@ | ||
var _steps = __webpack_require__(126); | ||
var _steps = __webpack_require__(129); | ||
@@ -249,3 +295,3 @@ var _steps2 = _interopRequireDefault(_steps); | ||
/***/ 222: | ||
/***/ 227: | ||
/***/ (function(module, exports) { | ||
@@ -297,6 +343,8 @@ | ||
/* template */ | ||
__webpack_require__(37), | ||
__webpack_require__(38), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -363,3 +411,3 @@ ) | ||
/***/ 37: | ||
/***/ 38: | ||
/***/ (function(module, exports) { | ||
@@ -366,0 +414,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 71); | ||
/******/ return __webpack_require__(__webpack_require__.s = 72); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,14 @@ esModule: esModule, | ||
/***/ 61: | ||
/***/ 101: | ||
/***/ (function(module, exports) { | ||
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; | ||
return _c('div', { | ||
staticClass: "van-swipe-item" | ||
}, [_vm._t("default")], 2) | ||
},staticRenderFns: []} | ||
/***/ }), | ||
/***/ 62: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +199,10 @@ | ||
/* script */ | ||
__webpack_require__(66), | ||
__webpack_require__(67), | ||
/* template */ | ||
__webpack_require__(99), | ||
__webpack_require__(101), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +216,3 @@ ) | ||
/***/ 66: | ||
/***/ 67: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -186,3 +243,3 @@ | ||
/***/ 71: | ||
/***/ 72: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -197,3 +254,3 @@ | ||
var _swipeItem = __webpack_require__(61); | ||
var _swipeItem = __webpack_require__(62); | ||
@@ -206,13 +263,2 @@ var _swipeItem2 = _interopRequireDefault(_swipeItem); | ||
/***/ }), | ||
/***/ 99: | ||
/***/ (function(module, exports) { | ||
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; | ||
return _c('div', { | ||
staticClass: "van-swipe-item" | ||
}, [_vm._t("default")], 2) | ||
},staticRenderFns: []} | ||
/***/ }) | ||
@@ -219,0 +265,0 @@ |
285
lib/swipe.js
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
module.exports = factory(require("vue")); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
define(["vue"], factory); | ||
else { | ||
var a = factory(); | ||
var a = typeof exports === 'object' ? factory(require("vue")) : factory(root["Vue"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(this, function() { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -76,3 +76,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 72); | ||
/******/ return __webpack_require__(__webpack_require__.s = 73); | ||
/******/ }) | ||
@@ -84,7 +84,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -117,11 +123,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -139,2 +183,8 @@ esModule: esModule, | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
@@ -146,3 +196,3 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Math | ||
/***/ }), | ||
/* 2 */ | ||
/* 3 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -156,6 +206,6 @@ | ||
/***/ }), | ||
/* 3 */ | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var isObject = __webpack_require__(7); | ||
var isObject = __webpack_require__(8); | ||
module.exports = function(it){ | ||
@@ -167,3 +217,3 @@ if(!isObject(it))throw TypeError(it + ' is not an object!'); | ||
/***/ }), | ||
/* 4 */ | ||
/* 5 */ | ||
/***/ (function(module, exports) { | ||
@@ -175,9 +225,9 @@ | ||
/***/ }), | ||
/* 5 */, | ||
/* 6 */ | ||
/* 6 */, | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var dP = __webpack_require__(8) | ||
, createDesc = __webpack_require__(33); | ||
module.exports = __webpack_require__(2) ? function(object, key, value){ | ||
var dP = __webpack_require__(9) | ||
, createDesc = __webpack_require__(34); | ||
module.exports = __webpack_require__(3) ? function(object, key, value){ | ||
return dP.f(object, key, createDesc(1, value)); | ||
@@ -190,3 +240,3 @@ } : function(object, key, value){ | ||
/***/ }), | ||
/* 7 */ | ||
/* 8 */ | ||
/***/ (function(module, exports) { | ||
@@ -199,6 +249,6 @@ | ||
/***/ }), | ||
/* 8 */ | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var anObject = __webpack_require__(3) | ||
var anObject = __webpack_require__(4) | ||
, IE8_DOM_DEFINE = __webpack_require__(46) | ||
@@ -208,3 +258,3 @@ , toPrimitive = __webpack_require__(52) | ||
exports.f = __webpack_require__(2) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
exports.f = __webpack_require__(3) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | ||
anObject(O); | ||
@@ -222,3 +272,2 @@ P = toPrimitive(P, true); | ||
/***/ }), | ||
/* 9 */, | ||
/* 10 */, | ||
@@ -259,4 +308,4 @@ /* 11 */ | ||
var shared = __webpack_require__(34)('keys') | ||
, uid = __webpack_require__(35); | ||
var shared = __webpack_require__(35)('keys') | ||
, uid = __webpack_require__(36); | ||
module.exports = function(key){ | ||
@@ -282,3 +331,3 @@ return shared[key] || (shared[key] = uid(key)); | ||
// to indexed object, toObject with fallback for non-array-like ES3 strings | ||
var IObject = __webpack_require__(31) | ||
var IObject = __webpack_require__(32) | ||
, defined = __webpack_require__(11); | ||
@@ -293,4 +342,4 @@ module.exports = function(it){ | ||
var isObject = __webpack_require__(7) | ||
, document = __webpack_require__(1).document | ||
var isObject = __webpack_require__(8) | ||
, document = __webpack_require__(2).document | ||
// in old IE typeof document.createElement is 'object' | ||
@@ -326,6 +375,6 @@ , is = isObject(document) && isObject(document.createElement); | ||
var global = __webpack_require__(1) | ||
, core = __webpack_require__(4) | ||
var global = __webpack_require__(2) | ||
, core = __webpack_require__(5) | ||
, ctx = __webpack_require__(23) | ||
, hide = __webpack_require__(6) | ||
, hide = __webpack_require__(7) | ||
, PROTOTYPE = 'prototype'; | ||
@@ -395,3 +444,3 @@ | ||
// optional / simple context binding | ||
var aFunction = __webpack_require__(30); | ||
var aFunction = __webpack_require__(31); | ||
module.exports = function(fn, that, length){ | ||
@@ -423,3 +472,4 @@ aFunction(fn); | ||
/* 29 */, | ||
/* 30 */ | ||
/* 30 */, | ||
/* 31 */ | ||
/***/ (function(module, exports) { | ||
@@ -433,3 +483,3 @@ | ||
/***/ }), | ||
/* 31 */ | ||
/* 32 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -444,3 +494,3 @@ | ||
/***/ }), | ||
/* 32 */ | ||
/* 33 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -457,3 +507,3 @@ | ||
/***/ }), | ||
/* 33 */ | ||
/* 34 */ | ||
/***/ (function(module, exports) { | ||
@@ -471,6 +521,6 @@ | ||
/***/ }), | ||
/* 34 */ | ||
/* 35 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var global = __webpack_require__(1) | ||
var global = __webpack_require__(2) | ||
, SHARED = '__core-js_shared__' | ||
@@ -483,3 +533,3 @@ , store = global[SHARED] || (global[SHARED] = {}); | ||
/***/ }), | ||
/* 35 */ | ||
/* 36 */ | ||
/***/ (function(module, exports) { | ||
@@ -494,11 +544,11 @@ | ||
/***/ }), | ||
/* 36 */, | ||
/* 37 */, | ||
/* 38 */ | ||
/* 38 */, | ||
/* 39 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = __webpack_require__(1).document && document.documentElement; | ||
module.exports = __webpack_require__(2).document && document.documentElement; | ||
/***/ }), | ||
/* 39 */ | ||
/* 40 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -514,3 +564,3 @@ | ||
/***/ }), | ||
/* 40 */ | ||
/* 41 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -526,6 +576,10 @@ | ||
var _assign = __webpack_require__(78); | ||
var _assign = __webpack_require__(80); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -570,7 +624,10 @@ | ||
var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) { | ||
var isSupportRequestAnimationFrame = !_vue2.default.prototype.$isServer && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame); | ||
var isSupportCancelAnimationFrame = !_vue2.default.prototype.$isServer && (window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msCancelAnimationFrame); | ||
var requestAnimationFrame = isSupportRequestAnimationFrame || function (callback, element) { | ||
return window.setTimeout(callback, 1000 / 60); | ||
}; | ||
var cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msRequestAnimationFrame || function (id) { | ||
var cancelAnimationFrame = isSupportCancelAnimationFrame || function (id) { | ||
clearTimeout(id); | ||
@@ -601,3 +658,2 @@ }; | ||
/***/ }), | ||
/* 41 */, | ||
/* 42 */, | ||
@@ -608,3 +664,3 @@ /* 43 */, | ||
module.exports = { "default": __webpack_require__(80), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(82), __esModule: true }; | ||
@@ -618,3 +674,3 @@ /***/ }), | ||
var toIObject = __webpack_require__(16) | ||
, toLength = __webpack_require__(39) | ||
, toLength = __webpack_require__(40) | ||
, toIndex = __webpack_require__(50); | ||
@@ -642,3 +698,3 @@ module.exports = function(IS_INCLUDES){ | ||
module.exports = !__webpack_require__(2) && !__webpack_require__(12)(function(){ | ||
module.exports = !__webpack_require__(3) && !__webpack_require__(12)(function(){ | ||
return Object.defineProperty(__webpack_require__(17)('div'), 'a', {get: function(){ return 7; }}).a != 7; | ||
@@ -652,3 +708,3 @@ }); | ||
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | ||
var anObject = __webpack_require__(3) | ||
var anObject = __webpack_require__(4) | ||
, dPs = __webpack_require__(48) | ||
@@ -669,3 +725,3 @@ , enumBugKeys = __webpack_require__(20) | ||
iframe.style.display = 'none'; | ||
__webpack_require__(38).appendChild(iframe); | ||
__webpack_require__(39).appendChild(iframe); | ||
iframe.src = 'javascript:'; // eslint-disable-line no-script-url | ||
@@ -700,7 +756,7 @@ // createDict = iframe.contentWindow.Object; | ||
var dP = __webpack_require__(8) | ||
, anObject = __webpack_require__(3) | ||
, getKeys = __webpack_require__(32); | ||
var dP = __webpack_require__(9) | ||
, anObject = __webpack_require__(4) | ||
, getKeys = __webpack_require__(33); | ||
module.exports = __webpack_require__(2) ? Object.defineProperties : function defineProperties(O, Properties){ | ||
module.exports = __webpack_require__(3) ? Object.defineProperties : function defineProperties(O, Properties){ | ||
anObject(O); | ||
@@ -764,3 +820,3 @@ var keys = getKeys(Properties) | ||
// 7.1.1 ToPrimitive(input [, PreferredType]) | ||
var isObject = __webpack_require__(7); | ||
var isObject = __webpack_require__(8); | ||
// instead of the ES6 spec version, we didn't implement @@toPrimitive case | ||
@@ -787,3 +843,4 @@ // and the second argument - flag - preferred type is a string | ||
/* 61 */, | ||
/* 62 */ | ||
/* 62 */, | ||
/* 63 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -793,8 +850,10 @@ | ||
/* script */ | ||
__webpack_require__(67), | ||
__webpack_require__(68), | ||
/* template */ | ||
__webpack_require__(98), | ||
__webpack_require__(100), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -807,7 +866,7 @@ ) | ||
/***/ }), | ||
/* 63 */, | ||
/* 64 */, | ||
/* 65 */, | ||
/* 66 */, | ||
/* 67 */ | ||
/* 67 */, | ||
/* 68 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -822,11 +881,11 @@ | ||
var _input = __webpack_require__(73); | ||
var _input = __webpack_require__(74); | ||
var _input2 = _interopRequireDefault(_input); | ||
var _scroll = __webpack_require__(74); | ||
var _scroll = __webpack_require__(75); | ||
var _scroll2 = _interopRequireDefault(_scroll); | ||
var _spring_dummy = __webpack_require__(75); | ||
var _spring_dummy = __webpack_require__(76); | ||
@@ -908,7 +967,7 @@ var _spring_dummy2 = _interopRequireDefault(_spring_dummy); | ||
/***/ }), | ||
/* 68 */, | ||
/* 69 */, | ||
/* 70 */, | ||
/* 71 */, | ||
/* 72 */ | ||
/* 72 */, | ||
/* 73 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -923,3 +982,3 @@ | ||
var _swipe = __webpack_require__(62); | ||
var _swipe = __webpack_require__(63); | ||
@@ -933,3 +992,3 @@ var _swipe2 = _interopRequireDefault(_swipe); | ||
/***/ }), | ||
/* 73 */ | ||
/* 74 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -948,4 +1007,8 @@ | ||
var _utils = __webpack_require__(40); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _utils = __webpack_require__(41); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -977,2 +1040,3 @@ | ||
bind: function bind(host) { | ||
if (_vue2.default.prototype.$isServer) return; | ||
(0, _utils.bindEvents)(host, 'touchstart mousedown', this.onTouchStart); | ||
@@ -1056,2 +1120,3 @@ if (this.options.listenMoving) { | ||
destroy: function destroy() { | ||
if (_vue2.default.prototype.$isServer) return; | ||
(0, _utils.removeEvents)(this.host, 'touchstart mousedown', this.onTouchStart); | ||
@@ -1068,3 +1133,3 @@ if (this.options.listenMoving) { | ||
/***/ }), | ||
/* 74 */ | ||
/* 75 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1083,3 +1148,3 @@ | ||
var _utils = __webpack_require__(40); | ||
var _utils = __webpack_require__(41); | ||
@@ -1242,3 +1307,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/***/ }), | ||
/* 75 */ | ||
/* 76 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1257,3 +1322,3 @@ | ||
var _utils = __webpack_require__(40); | ||
var _utils = __webpack_require__(41); | ||
@@ -1410,22 +1475,23 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/***/ }), | ||
/* 76 */, | ||
/* 77 */, | ||
/* 78 */ | ||
/* 78 */, | ||
/* 79 */, | ||
/* 80 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = { "default": __webpack_require__(79), __esModule: true }; | ||
module.exports = { "default": __webpack_require__(81), __esModule: true }; | ||
/***/ }), | ||
/* 79 */ | ||
/* 81 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(92); | ||
module.exports = __webpack_require__(4).Object.assign; | ||
__webpack_require__(94); | ||
module.exports = __webpack_require__(5).Object.assign; | ||
/***/ }), | ||
/* 80 */ | ||
/* 82 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
__webpack_require__(93); | ||
var $Object = __webpack_require__(4).Object; | ||
__webpack_require__(95); | ||
var $Object = __webpack_require__(5).Object; | ||
module.exports = function create(P, D){ | ||
@@ -1436,6 +1502,6 @@ return $Object.create(P, D); | ||
/***/ }), | ||
/* 81 */, | ||
/* 82 */, | ||
/* 83 */, | ||
/* 84 */ | ||
/* 84 */, | ||
/* 85 */, | ||
/* 86 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1446,7 +1512,7 @@ | ||
// 19.1.2.1 Object.assign(target, source, ...) | ||
var getKeys = __webpack_require__(32) | ||
, gOPS = __webpack_require__(85) | ||
, pIE = __webpack_require__(87) | ||
var getKeys = __webpack_require__(33) | ||
, gOPS = __webpack_require__(87) | ||
, pIE = __webpack_require__(89) | ||
, toObject = __webpack_require__(51) | ||
, IObject = __webpack_require__(31) | ||
, IObject = __webpack_require__(32) | ||
, $assign = Object.assign; | ||
@@ -1480,3 +1546,3 @@ | ||
/***/ }), | ||
/* 85 */ | ||
/* 87 */ | ||
/***/ (function(module, exports) { | ||
@@ -1487,4 +1553,4 @@ | ||
/***/ }), | ||
/* 86 */, | ||
/* 87 */ | ||
/* 88 */, | ||
/* 89 */ | ||
/***/ (function(module, exports) { | ||
@@ -1495,7 +1561,7 @@ | ||
/***/ }), | ||
/* 88 */, | ||
/* 89 */, | ||
/* 90 */, | ||
/* 91 */, | ||
/* 92 */ | ||
/* 92 */, | ||
/* 93 */, | ||
/* 94 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1506,6 +1572,6 @@ | ||
$export($export.S + $export.F, 'Object', {assign: __webpack_require__(84)}); | ||
$export($export.S + $export.F, 'Object', {assign: __webpack_require__(86)}); | ||
/***/ }), | ||
/* 93 */ | ||
/* 95 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1518,7 +1584,7 @@ | ||
/***/ }), | ||
/* 94 */, | ||
/* 95 */, | ||
/* 96 */, | ||
/* 97 */, | ||
/* 98 */ | ||
/* 98 */, | ||
/* 99 */, | ||
/* 100 */ | ||
/***/ (function(module, exports) { | ||
@@ -1533,7 +1599,8 @@ | ||
staticClass: "van-swipe__indicators" | ||
}, _vm._l((_vm.swipes.length), function(i) { | ||
}, _vm._l((_vm.swipes.length), function(item, index) { | ||
return _c('span', { | ||
key: index, | ||
staticClass: "van-swipe__indicator", | ||
class: { | ||
'van-swipe__indicator--active': _vm.currIndex === i - 1 | ||
'van-swipe__indicator--active': _vm.currIndex === index | ||
} | ||
@@ -1540,0 +1607,0 @@ }) |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 184); | ||
/******/ return __webpack_require__(__webpack_require__.s = 189); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 127: | ||
/***/ 130: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(154), | ||
__webpack_require__(158), | ||
/* template */ | ||
__webpack_require__(247), | ||
__webpack_require__(253), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 154: | ||
/***/ 158: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -248,3 +294,3 @@ | ||
/***/ 184: | ||
/***/ 189: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -259,3 +305,3 @@ | ||
var _switch = __webpack_require__(127); | ||
var _switch = __webpack_require__(130); | ||
@@ -270,3 +316,24 @@ var _switch2 = _interopRequireDefault(_switch); | ||
/***/ 247: | ||
/***/ 25: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Component = __webpack_require__(0)( | ||
/* script */ | ||
__webpack_require__(27), | ||
/* template */ | ||
__webpack_require__(37), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* moduleIdentifier (server only) */ | ||
null | ||
) | ||
module.exports = Component.exports | ||
/***/ }), | ||
/***/ 253: | ||
/***/ (function(module, exports) { | ||
@@ -292,21 +359,2 @@ | ||
/***/ 25: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var Component = __webpack_require__(0)( | ||
/* script */ | ||
__webpack_require__(27), | ||
/* template */ | ||
__webpack_require__(36), | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
null | ||
) | ||
module.exports = Component.exports | ||
/***/ }), | ||
/***/ 27: | ||
@@ -373,3 +421,3 @@ /***/ (function(module, exports, __webpack_require__) { | ||
/***/ 36: | ||
/***/ 37: | ||
/***/ (function(module, exports) { | ||
@@ -376,0 +424,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 185); | ||
/******/ return __webpack_require__(__webpack_require__.s = 190); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 128: | ||
/***/ 131: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(155), | ||
__webpack_require__(159), | ||
/* template */ | ||
__webpack_require__(226), | ||
__webpack_require__(231), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 155: | ||
/***/ 159: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -208,3 +254,3 @@ | ||
/***/ 185: | ||
/***/ 190: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -219,3 +265,3 @@ | ||
var _tab = __webpack_require__(128); | ||
var _tab = __webpack_require__(131); | ||
@@ -230,3 +276,3 @@ var _tab2 = _interopRequireDefault(_tab); | ||
/***/ 226: | ||
/***/ 231: | ||
/***/ (function(module, exports) { | ||
@@ -233,0 +279,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 186); | ||
/******/ return __webpack_require__(__webpack_require__.s = 191); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 129: | ||
/***/ 132: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(156), | ||
__webpack_require__(160), | ||
/* template */ | ||
__webpack_require__(243), | ||
__webpack_require__(248), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 156: | ||
/***/ 160: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -192,2 +238,3 @@ | ||
// | ||
// | ||
@@ -281,3 +328,3 @@ exports.default = { | ||
/***/ 186: | ||
/***/ 191: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -292,3 +339,3 @@ | ||
var _tabs = __webpack_require__(129); | ||
var _tabs = __webpack_require__(132); | ||
@@ -303,3 +350,3 @@ var _tabs2 = _interopRequireDefault(_tabs); | ||
/***/ 243: | ||
/***/ 248: | ||
/***/ (function(module, exports) { | ||
@@ -319,2 +366,3 @@ | ||
return _c('div', { | ||
key: index, | ||
ref: "tabkey", | ||
@@ -321,0 +369,0 @@ refInFor: true, |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 187); | ||
/******/ return __webpack_require__(__webpack_require__.s = 192); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 130: | ||
/***/ 133: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(157), | ||
__webpack_require__(161), | ||
/* template */ | ||
__webpack_require__(242), | ||
__webpack_require__(247), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 157: | ||
/***/ 161: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -194,3 +240,3 @@ | ||
/***/ 187: | ||
/***/ 192: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -205,3 +251,3 @@ | ||
var _main = __webpack_require__(130); | ||
var _main = __webpack_require__(133); | ||
@@ -216,3 +262,3 @@ var _main2 = _interopRequireDefault(_main); | ||
/***/ 242: | ||
/***/ 247: | ||
/***/ (function(module, exports) { | ||
@@ -219,0 +265,0 @@ |
178
lib/toast.js
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
} | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_10__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -77,3 +77,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 188); | ||
/******/ return __webpack_require__(__webpack_require__.s = 193); | ||
/******/ }) | ||
@@ -86,7 +86,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -119,11 +125,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -139,10 +183,10 @@ esModule: esModule, | ||
/***/ 10: | ||
/***/ 1: | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_10__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/***/ 104: | ||
/***/ 10: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -157,7 +201,41 @@ | ||
var _vue = __webpack_require__(10); | ||
exports.default = function (target) { | ||
for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
for (var i = 0; i < sources.length; i++) { | ||
var source = sources[i] || {}; | ||
for (var prop in source) { | ||
if (source.hasOwnProperty(prop)) { | ||
var value = source[prop]; | ||
if (value !== undefined) { | ||
target[prop] = value; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
; | ||
/***/ }), | ||
/***/ 106: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
var _merge = __webpack_require__(9); | ||
var _merge = __webpack_require__(10); | ||
@@ -168,3 +246,3 @@ var _merge2 = _interopRequireDefault(_merge); | ||
var ToastConstructor = _vue2.default.extend(__webpack_require__(220)); | ||
var ToastConstructor = _vue2.default.extend(__webpack_require__(225)); | ||
var instance = void 0; | ||
@@ -248,3 +326,3 @@ | ||
/***/ 158: | ||
/***/ 162: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -346,3 +424,3 @@ | ||
/***/ 188: | ||
/***/ 193: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -357,3 +435,3 @@ | ||
var _toast = __webpack_require__(104); | ||
var _toast = __webpack_require__(106); | ||
@@ -368,3 +446,3 @@ var _toast2 = _interopRequireDefault(_toast); | ||
/***/ 220: | ||
/***/ 225: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -374,8 +452,10 @@ | ||
/* script */ | ||
__webpack_require__(158), | ||
__webpack_require__(162), | ||
/* template */ | ||
__webpack_require__(244), | ||
__webpack_require__(249), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -396,6 +476,8 @@ ) | ||
/* template */ | ||
__webpack_require__(37), | ||
__webpack_require__(38), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -409,3 +491,3 @@ ) | ||
/***/ 244: | ||
/***/ 249: | ||
/***/ (function(module, exports) { | ||
@@ -462,6 +544,8 @@ | ||
/* template */ | ||
__webpack_require__(36), | ||
__webpack_require__(37), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -589,3 +673,3 @@ ) | ||
/***/ 36: | ||
/***/ 37: | ||
/***/ (function(module, exports) { | ||
@@ -605,3 +689,3 @@ | ||
/***/ 37: | ||
/***/ 38: | ||
/***/ (function(module, exports) { | ||
@@ -619,36 +703,2 @@ | ||
/***/ }), | ||
/***/ 9: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (target) { | ||
for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
sources[_key - 1] = arguments[_key]; | ||
} | ||
for (var i = 0; i < sources.length; i++) { | ||
var source = sources[i] || {}; | ||
for (var prop in source) { | ||
if (source.hasOwnProperty(prop)) { | ||
var value = source[prop]; | ||
if (value !== undefined) { | ||
target[prop] = value; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
; | ||
/***/ }) | ||
@@ -655,0 +705,0 @@ |
@@ -76,3 +76,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 189); | ||
/******/ return __webpack_require__(__webpack_require__.s = 194); | ||
/******/ }) | ||
@@ -85,7 +85,13 @@ /************************************************************************/ | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// this module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle | ||
module.exports = function normalizeComponent ( | ||
rawScriptExports, | ||
compiledTemplate, | ||
injectStyles, | ||
scopeId, | ||
cssModules | ||
moduleIdentifier /* server only */ | ||
) { | ||
@@ -118,11 +124,49 @@ var esModule | ||
// inject cssModules | ||
if (cssModules) { | ||
var computed = options.computed || (options.computed = {}) | ||
Object.keys(cssModules).forEach(function (key) { | ||
var module = cssModules[key] | ||
computed[key] = function () { return module } | ||
}) | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = injectStyles | ||
} | ||
if (hook) { | ||
var functional = options.functional | ||
var existing = functional | ||
? options.render | ||
: options.beforeCreate | ||
if (!functional) { | ||
// inject component registration as beforeCreate hook | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} else { | ||
// register for functioal component in vue file | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return existing(h, context) | ||
} | ||
} | ||
} | ||
return { | ||
@@ -138,3 +182,3 @@ esModule: esModule, | ||
/***/ 131: | ||
/***/ 134: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -144,8 +188,10 @@ | ||
/* script */ | ||
__webpack_require__(159), | ||
__webpack_require__(163), | ||
/* template */ | ||
__webpack_require__(246), | ||
__webpack_require__(252), | ||
/* styles */ | ||
null, | ||
/* scopeId */ | ||
null, | ||
/* cssModules */ | ||
/* moduleIdentifier (server only) */ | ||
null | ||
@@ -159,3 +205,3 @@ ) | ||
/***/ 159: | ||
/***/ 163: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -231,3 +277,3 @@ | ||
/***/ 189: | ||
/***/ 194: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -242,3 +288,3 @@ | ||
var _main = __webpack_require__(131); | ||
var _main = __webpack_require__(134); | ||
@@ -253,3 +299,3 @@ var _main2 = _interopRequireDefault(_main); | ||
/***/ 246: | ||
/***/ 252: | ||
/***/ (function(module, exports) { | ||
@@ -256,0 +302,0 @@ |
@@ -65,2 +65,43 @@ 'use strict'; | ||
} | ||
}; | ||
}; | ||
var once = exports.once = function once(el, event, fn) { | ||
var listener = function listener() { | ||
if (fn) { | ||
fn.apply(this, arguments); | ||
} | ||
off(el, event, listener); | ||
}; | ||
on(el, event, listener); | ||
}; | ||
var on = exports.on = function () { | ||
if (document.addEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.addEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event && handler) { | ||
element.attachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); | ||
var off = exports.off = function () { | ||
if (document.removeEventListener) { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.removeEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function (element, event, handler) { | ||
if (element && event) { | ||
element.detachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
}(); |
@@ -6,2 +6,9 @@ 'use strict'; | ||
}); | ||
var _vue = require('vue'); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = { | ||
@@ -90,3 +97,3 @@ debounce: function debounce(func, wait, immediate) { | ||
getComputedStyle: document.defaultView.getComputedStyle.bind(document.defaultView) | ||
getComputedStyle: !_vue2.default.prototype.$isServer && document.defaultView.getComputedStyle.bind(document.defaultView) | ||
}; |
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
} | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_10__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -77,3 +77,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 190); | ||
/******/ return __webpack_require__(__webpack_require__.s = 195); | ||
/******/ }) | ||
@@ -83,10 +83,10 @@ /************************************************************************/ | ||
/***/ 10: | ||
/***/ 1: | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_10__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_1__; | ||
/***/ }), | ||
/***/ 105: | ||
/***/ 107: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -101,7 +101,7 @@ | ||
var _directive = __webpack_require__(191); | ||
var _directive = __webpack_require__(196); | ||
var _directive2 = _interopRequireDefault(_directive); | ||
var _vue = __webpack_require__(10); | ||
var _vue = __webpack_require__(1); | ||
@@ -126,3 +126,3 @@ var _vue2 = _interopRequireDefault(_vue); | ||
/***/ 190: | ||
/***/ 195: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -137,3 +137,3 @@ | ||
var _main = __webpack_require__(105); | ||
var _main = __webpack_require__(107); | ||
@@ -148,3 +148,3 @@ var _main2 = _interopRequireDefault(_main); | ||
/***/ 191: | ||
/***/ 196: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -184,3 +184,3 @@ | ||
var _scroll = __webpack_require__(192); | ||
var _scroll = __webpack_require__(197); | ||
@@ -285,3 +285,3 @@ var _scroll2 = _interopRequireDefault(_scroll); | ||
/***/ 192: | ||
/***/ 197: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -295,2 +295,9 @@ | ||
}); | ||
var _vue = __webpack_require__(1); | ||
var _vue2 = _interopRequireDefault(_vue); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = { | ||
@@ -379,3 +386,3 @@ debounce: function debounce(func, wait, immediate) { | ||
getComputedStyle: document.defaultView.getComputedStyle.bind(document.defaultView) | ||
getComputedStyle: !_vue2.default.prototype.$isServer && document.defaultView.getComputedStyle.bind(document.defaultView) | ||
}; | ||
@@ -382,0 +389,0 @@ |
{ | ||
"name": "vant", | ||
"version": "0.5.12", | ||
"version": "0.6.0", | ||
"description": "有赞vue wap组件库", | ||
@@ -49,7 +49,7 @@ "main": "lib/vant.js", | ||
"peerDependencies": { | ||
"vue": "2.1.8" | ||
"vue": "2.3.4" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^6.7.5", | ||
"avoriaz": "^1.11.1", | ||
"avoriaz": "^2.0.0", | ||
"babel-cli": "^6.14.0", | ||
@@ -82,2 +82,3 @@ "babel-core": "^6.17.0", | ||
"file-save": "^0.2.0", | ||
"friendly-errors-webpack-plugin": "^1.6.1", | ||
"gh-pages": "^0.12.0", | ||
@@ -125,10 +126,10 @@ "gulp": "^3.9.1", | ||
"url-loader": "^0.5.7", | ||
"vue": "2.1.8", | ||
"vue-hot-reload-api": "^1.3.3", | ||
"vue-html-loader": "^1.2.3", | ||
"vue-loader": "^10.3.0", | ||
"vue-markdown-loader": "^0.6.1", | ||
"vue-router": "^2.0.0", | ||
"vue-style-loader": "^1.0.0", | ||
"vue-template-compiler": "2.1.8", | ||
"vue": "2.3.4", | ||
"vue-hot-reload-api": "^2.1.0", | ||
"vue-html-loader": "^1.2.4", | ||
"vue-loader": "^12.0.0", | ||
"vue-markdown-loader": "^1.0.0", | ||
"vue-router": "^2.5.0", | ||
"vue-style-loader": "^3.0.0", | ||
"vue-template-compiler": "2.3.4", | ||
"vue-template-es2015-compiler": "^1.4.2", | ||
@@ -135,0 +136,0 @@ "webpack": "^2.2.1", |
@@ -9,2 +9,3 @@ import Vue from 'vue'; | ||
const initInstance = () => { | ||
if (Vue.prototype.$isServer) return; | ||
instance = new ImagePreviewConstructor({ | ||
@@ -16,2 +17,3 @@ el: document.createElement('div') | ||
var ImagePreviewBox = images => { | ||
if (Vue.prototype.$isServer) return; | ||
if (!instance) { | ||
@@ -18,0 +20,0 @@ initInstance(); |
@@ -0,1 +1,2 @@ | ||
import Vue from 'vue'; | ||
import { EventEmitter, extend, bindEvents, removeEvents } from './utils'; | ||
@@ -27,2 +28,3 @@ | ||
bind: function(host) { | ||
if (Vue.prototype.$isServer) return; | ||
bindEvents(host, 'touchstart mousedown', this.onTouchStart); | ||
@@ -108,2 +110,3 @@ if (this.options.listenMoving) { | ||
destroy: function() { | ||
if (Vue.prototype.$isServer) return; | ||
removeEvents(this.host, 'touchstart mousedown', this.onTouchStart); | ||
@@ -110,0 +113,0 @@ if (this.options.listenMoving) { |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
import Vue from 'vue'; | ||
@@ -40,14 +40,21 @@ var extend = Object.assign.bind(Object); | ||
const requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || | ||
window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || | ||
function(callback, element) { | ||
return window.setTimeout(callback, 1000 / 60); | ||
}; | ||
const isSupportRequestAnimationFrame = !Vue.prototype.$isServer && | ||
(window.requestAnimationFrame || | ||
window.mozRequestAnimationFrame || | ||
window.webkitRequestAnimationFrame || | ||
window.msRequestAnimationFrame); | ||
const isSupportCancelAnimationFrame = !Vue.prototype.$isServer && | ||
(window.cancelAnimationFrame || | ||
window.mozCancelAnimationFrame || | ||
window.webkitCancelAnimationFrame || | ||
window.msCancelAnimationFrame); | ||
const cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame || | ||
window.webkitCancelAnimationFrame || window.msRequestAnimationFrame || | ||
function(id) { | ||
clearTimeout(id); | ||
}; | ||
const requestAnimationFrame = isSupportRequestAnimationFrame || function(callback, element) { | ||
return window.setTimeout(callback, 1000 / 60); | ||
}; | ||
const cancelAnimationFrame = isSupportCancelAnimationFrame || function(id) { | ||
clearTimeout(id); | ||
}; | ||
const bindEvents = (elem, eventNames, fn) => { | ||
@@ -54,0 +61,0 @@ eventNames = eventNames.split(/\s+/); |
{ | ||
"name": "vant-css", | ||
"version": "0.5.12", | ||
"version": "0.6.0", | ||
"description": "vant css.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.css", |
@@ -8,2 +8,3 @@ import Button from '../packages/button/index.js'; | ||
import CellGroup from '../packages/cell-group/index.js'; | ||
import CellSwipe from '../packages/cell-swipe/index.js'; | ||
import Popup from '../packages/popup/index.js'; | ||
@@ -51,2 +52,3 @@ import Dialog from '../packages/dialog/index.js'; | ||
Vue.component(CellGroup.name, CellGroup); | ||
Vue.component(CellSwipe.name, CellSwipe); | ||
Vue.component(Popup.name, Popup); | ||
@@ -86,3 +88,3 @@ Vue.component(Picker.name, Picker); | ||
install, | ||
version: '0.5.12', | ||
version: '0.6.0', | ||
Button, | ||
@@ -95,2 +97,3 @@ Switch, | ||
CellGroup, | ||
CellSwipe, | ||
Popup, | ||
@@ -97,0 +100,0 @@ Dialog, |
@@ -70,2 +70,3 @@ import merge from 'src/utils/merge'; | ||
open() { | ||
if (this.$isServer) return; | ||
if (this.opened) return; | ||
@@ -72,0 +73,0 @@ |
import merge from 'src/utils/merge'; | ||
import Vue from 'vue'; | ||
let context; | ||
if (window && window.popupContext) { | ||
context = window.popupContext; | ||
const _global = Vue.prototype.$isServer ? global : window; | ||
if (_global && _global.popupContext) { | ||
context = _global.popupContext; | ||
} | ||
@@ -16,3 +19,3 @@ | ||
context = window.popupContext = merge({}, DEFAULT_CONTEXT, context); | ||
context = _global.popupContext = merge({}, DEFAULT_CONTEXT, context); | ||
@@ -19,0 +22,0 @@ const PopupContext = { |
@@ -0,1 +1,2 @@ | ||
import Vue from 'vue'; | ||
import { addClass } from 'src/utils/dom'; | ||
@@ -5,2 +6,3 @@ import PopupContext from './popup-context'; | ||
const getModal = function() { | ||
if (Vue.prototype.$isServer) return; | ||
let modalDom = PopupContext.getContext('modalDom'); | ||
@@ -7,0 +9,0 @@ |
@@ -58,1 +58,42 @@ const trim = function(string) { | ||
}; | ||
export const once = function(el, event, fn) { | ||
var listener = function() { | ||
if (fn) { | ||
fn.apply(this, arguments); | ||
} | ||
off(el, event, listener); | ||
}; | ||
on(el, event, listener); | ||
}; | ||
export const on = (function() { | ||
if (document.addEventListener) { | ||
return function(element, event, handler) { | ||
if (element && event && handler) { | ||
element.addEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function(element, event, handler) { | ||
if (element && event && handler) { | ||
element.attachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
})(); | ||
export const off = (function() { | ||
if (document.removeEventListener) { | ||
return function(element, event, handler) { | ||
if (element && event) { | ||
element.removeEventListener(event, handler, false); | ||
} | ||
}; | ||
} else { | ||
return function(element, event, handler) { | ||
if (element && event) { | ||
element.detachEvent('on' + event, handler); | ||
} | ||
}; | ||
} | ||
})(); |
@@ -0,1 +1,3 @@ | ||
import Vue from 'vue'; | ||
export default { | ||
@@ -79,3 +81,3 @@ debounce(func, wait, immediate) { | ||
getComputedStyle: document.defaultView.getComputedStyle.bind(document.defaultView) | ||
getComputedStyle: !Vue.prototype.$isServer && document.defaultView.getComputedStyle.bind(document.defaultView) | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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 not supported yet
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 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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1406551
328
32236
86
21