|
|
@@ -1,5 +1,5 @@
|
|
|
/*!
|
|
|
- * Vue.js v2.5.4
|
|
|
+ * Vue.js v2.5.5
|
|
|
* (c) 2014-2017 Evan You
|
|
|
* Released under the MIT License.
|
|
|
*/
|
|
|
@@ -4358,6 +4358,7 @@ function applyNS (vnode, ns, force) {
|
|
|
|
|
|
function initRender (vm) {
|
|
|
vm._vnode = null; // the root of the child tree
|
|
|
+ vm._staticTrees = null; // v-once cached trees
|
|
|
var options = vm.$options;
|
|
|
var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
|
|
|
var renderContext = parentVnode && parentVnode.context;
|
|
|
@@ -4863,12 +4864,13 @@ var KeepAlive = {
|
|
|
},
|
|
|
|
|
|
render: function render () {
|
|
|
- var vnode = getFirstComponentChild(this.$slots.default);
|
|
|
+ var slot = this.$slots.default;
|
|
|
+ var vnode = getFirstComponentChild(slot);
|
|
|
var componentOptions = vnode && vnode.componentOptions;
|
|
|
if (componentOptions) {
|
|
|
// check pattern
|
|
|
var name = getComponentName(componentOptions);
|
|
|
- if (name && (
|
|
|
+ if (!name || (
|
|
|
(this.exclude && matches(this.exclude, name)) ||
|
|
|
(this.include && !matches(this.include, name))
|
|
|
)) {
|
|
|
@@ -4899,7 +4901,7 @@ var KeepAlive = {
|
|
|
|
|
|
vnode.data.keepAlive = true;
|
|
|
}
|
|
|
- return vnode
|
|
|
+ return vnode || (slot && slot[0])
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -4966,7 +4968,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-Vue$3.version = '2.5.4';
|
|
|
+Vue$3.version = '2.5.5';
|
|
|
|
|
|
/* */
|
|
|
|
|
|
@@ -6673,6 +6675,7 @@ function model (
|
|
|
var modifiers = dir.modifiers;
|
|
|
var tag = el.tag;
|
|
|
var type = el.attrsMap.type;
|
|
|
+ var attrsMap = el.attrsMap;
|
|
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
// inputs with type="file" are read only and setting the input's
|
|
|
@@ -6683,6 +6686,20 @@ function model (
|
|
|
"File inputs are read only. Use a v-on:change listener instead."
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ // warn if v-bind:value conflicts with v-model
|
|
|
+ if (
|
|
|
+ (attrsMap['v-bind:value'] || attrsMap[':value']) &&
|
|
|
+ type !== 'checkbox' &&
|
|
|
+ type !== 'radio' &&
|
|
|
+ tag !== 'select'
|
|
|
+ ) {
|
|
|
+ var vBindValue = attrsMap['v-bind:value'] ? 'v-bind:value' : ':value';
|
|
|
+ warn$1(
|
|
|
+ vBindValue + " conflicts with v-model on the same element " +
|
|
|
+ 'because the latter already expands to a value binding internally'
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (el.component) {
|