Browse Source

build: build 2.6.3

dev
Evan You 6 years ago
parent
commit
6441eac4c6
  1. 4166
      dist/vue.common.dev.js
  2. 4
      dist/vue.common.prod.js
  3. 4180
      dist/vue.esm.browser.js
  4. 4
      dist/vue.esm.browser.min.js
  5. 4184
      dist/vue.esm.js
  6. 4166
      dist/vue.js
  7. 4
      dist/vue.min.js
  8. 4109
      dist/vue.runtime.common.dev.js
  9. 4
      dist/vue.runtime.common.prod.js
  10. 4145
      dist/vue.runtime.esm.js
  11. 4109
      dist/vue.runtime.js
  12. 4
      dist/vue.runtime.min.js
  13. 1516
      packages/vue-server-renderer/basic.js
  14. 1516
      packages/vue-server-renderer/build.dev.js
  15. 2
      packages/vue-server-renderer/build.prod.js
  16. 2
      packages/vue-server-renderer/package.json
  17. 52
      packages/vue-template-compiler/browser.js
  18. 52
      packages/vue-template-compiler/build.js
  19. 2
      packages/vue-template-compiler/package.json

4166
dist/vue.common.dev.js

File diff suppressed because it is too large

4
dist/vue.common.prod.js

File diff suppressed because one or more lines are too long

4180
dist/vue.esm.browser.js

File diff suppressed because it is too large

4
dist/vue.esm.browser.min.js

File diff suppressed because one or more lines are too long

4184
dist/vue.esm.js

File diff suppressed because it is too large

4166
dist/vue.js

File diff suppressed because it is too large

4
dist/vue.min.js

File diff suppressed because one or more lines are too long

4109
dist/vue.runtime.common.dev.js

File diff suppressed because it is too large

4
dist/vue.runtime.common.prod.js

File diff suppressed because one or more lines are too long

4145
dist/vue.runtime.esm.js

File diff suppressed because it is too large

4109
dist/vue.runtime.js

File diff suppressed because it is too large

4
dist/vue.runtime.min.js

File diff suppressed because one or more lines are too long

1516
packages/vue-server-renderer/basic.js

File diff suppressed because it is too large

1516
packages/vue-server-renderer/build.dev.js

File diff suppressed because it is too large

2
packages/vue-server-renderer/build.prod.js

File diff suppressed because one or more lines are too long

2
packages/vue-server-renderer/package.json

@ -1,6 +1,6 @@
{
"name": "vue-server-renderer",
"version": "2.6.2",
"version": "2.6.3",
"description": "server renderer for Vue 2.0",
"main": "index.js",
"types": "types/index.d.ts",

52
packages/vue-template-compiler/browser.js

@ -745,6 +745,7 @@
var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
var isPhantomJS = UA && /phantomjs/.test(UA);
var isFF = UA && UA.match(/firefox\/(\d+)/);
// Firefox has a "watch" function on Object.prototype...
var nativeWatch = ({}).watch;
@ -2747,6 +2748,8 @@
var decodeHTMLCached = cached(he.decode);
var emptySlotScopeToken = "_empty_";
// configurable state
var warn$1;
var delimiters;
@ -3359,7 +3362,7 @@
var dynamic = ref.dynamic;
el.slotTarget = name;
el.slotTargetDynamic = dynamic;
el.slotScope = slotBinding.value || "_"; // force it into a scoped slot for perf
el.slotScope = slotBinding.value || emptySlotScopeToken; // force it into a scoped slot for perf
}
} else {
// v-slot on component, denotes default slot
@ -3394,8 +3397,13 @@
var slotContainer = slots[name$1] = createASTElement('template', [], el);
slotContainer.slotTarget = name$1;
slotContainer.slotTargetDynamic = dynamic$1;
slotContainer.children = el.children.filter(function (c) { return !(c).slotScope; });
slotContainer.slotScope = slotBinding$1.value || "_";
slotContainer.children = el.children.filter(function (c) {
if (!c.slotScope) {
c.parent = slotContainer;
return true
}
});
slotContainer.slotScope = slotBinding$1.value || emptySlotScopeToken;
// remove children as they are returned from scopedSlots now
el.children = [];
// mark el non-plain so data gets generated
@ -4490,7 +4498,7 @@
}
// scoped slots
if (el.scopedSlots) {
data += (genScopedSlots(el.scopedSlots, state)) + ",";
data += (genScopedSlots(el, el.scopedSlots, state)) + ",";
}
// component v-model
if (el.model) {
@ -4561,16 +4569,34 @@
}
function genScopedSlots (
el,
slots,
state
) {
var hasDynamicKeys = Object.keys(slots).some(function (key) {
// by default scoped slots are considered "stable", this allows child
// components with only scoped slots to skip forced updates from parent.
// but in some cases we have to bail-out of this optimization
// for example if the slot contains dynamic names, has v-if or v-for on them...
var needsForceUpdate = Object.keys(slots).some(function (key) {
var slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
if (!needsForceUpdate) {
var parent = el.parent;
while (parent) {
if (parent.slotScope && parent.slotScope !== emptySlotScopeToken) {
needsForceUpdate = true;
break
}
parent = parent.parent;
}
}
return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) {
return genScopedSlot(slots[key], state)
}).join(',')) + "]" + (hasDynamicKeys ? ",true" : "") + ")")
}).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
}
function genScopedSlot (
@ -4584,7 +4610,10 @@
if (el.for && !el.forProcessed) {
return genFor(el, state, genScopedSlot)
}
var fn = "function(" + (String(el.slotScope)) + "){" +
var slotScope = el.slotScope === emptySlotScopeToken
? ""
: String(el.slotScope);
var fn = "function(" + slotScope + "){" +
"return " + (el.tag === 'template'
? el.if && isLegacySyntax
? ("(" + (el.if) + ")?" + (genChildren(el, state) || 'undefined') + ":undefined")
@ -4677,7 +4706,14 @@
var slotName = el.slotName || '"default"';
var children = genChildren(el, state);
var res = "_t(" + slotName + (children ? ("," + children) : '');
var attrs = el.attrs && ("{" + (el.attrs.map(function (a) { return ((camelize(a.name)) + ":" + (a.value)); }).join(',')) + "}");
var attrs = el.attrs || el.dynamicAttrs
? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
// slot props are camelized
name: camelize(attr.name),
value: attr.value,
dynamic: attr.dynamic
}); }))
: null;
var bind$$1 = el.attrsMap['v-bind'];
if ((attrs || bind$$1) && !children) {
res += ",null";

52
packages/vue-template-compiler/build.js

@ -703,6 +703,7 @@ var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android'
var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
var isPhantomJS = UA && /phantomjs/.test(UA);
var isFF = UA && UA.match(/firefox\/(\d+)/);
// Firefox has a "watch" function on Object.prototype...
var nativeWatch = ({}).watch;
@ -2367,6 +2368,8 @@ var invalidAttributeRE = /[\s"'<>\/=]/;
var decodeHTMLCached = cached(he.decode);
var emptySlotScopeToken = "_empty_";
// configurable state
var warn$1;
var delimiters;
@ -2979,7 +2982,7 @@ function processSlotContent (el) {
var dynamic = ref.dynamic;
el.slotTarget = name;
el.slotTargetDynamic = dynamic;
el.slotScope = slotBinding.value || "_"; // force it into a scoped slot for perf
el.slotScope = slotBinding.value || emptySlotScopeToken; // force it into a scoped slot for perf
}
} else {
// v-slot on component, denotes default slot
@ -3014,8 +3017,13 @@ function processSlotContent (el) {
var slotContainer = slots[name$1] = createASTElement('template', [], el);
slotContainer.slotTarget = name$1;
slotContainer.slotTargetDynamic = dynamic$1;
slotContainer.children = el.children.filter(function (c) { return !(c).slotScope; });
slotContainer.slotScope = slotBinding$1.value || "_";
slotContainer.children = el.children.filter(function (c) {
if (!c.slotScope) {
c.parent = slotContainer;
return true
}
});
slotContainer.slotScope = slotBinding$1.value || emptySlotScopeToken;
// remove children as they are returned from scopedSlots now
el.children = [];
// mark el non-plain so data gets generated
@ -4121,7 +4129,7 @@ function genData$2 (el, state) {
}
// scoped slots
if (el.scopedSlots) {
data += (genScopedSlots(el.scopedSlots, state)) + ",";
data += (genScopedSlots(el, el.scopedSlots, state)) + ",";
}
// component v-model
if (el.model) {
@ -4194,16 +4202,34 @@ function genInlineTemplate (el, state) {
}
function genScopedSlots (
el,
slots,
state
) {
var hasDynamicKeys = Object.keys(slots).some(function (key) {
// by default scoped slots are considered "stable", this allows child
// components with only scoped slots to skip forced updates from parent.
// but in some cases we have to bail-out of this optimization
// for example if the slot contains dynamic names, has v-if or v-for on them...
var needsForceUpdate = Object.keys(slots).some(function (key) {
var slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
if (!needsForceUpdate) {
var parent = el.parent;
while (parent) {
if (parent.slotScope && parent.slotScope !== emptySlotScopeToken) {
needsForceUpdate = true;
break
}
parent = parent.parent;
}
}
return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) {
return genScopedSlot(slots[key], state)
}).join(',')) + "]" + (hasDynamicKeys ? ",true" : "") + ")")
}).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
}
function genScopedSlot (
@ -4217,7 +4243,10 @@ function genScopedSlot (
if (el.for && !el.forProcessed) {
return genFor(el, state, genScopedSlot)
}
var fn = "function(" + (String(el.slotScope)) + "){" +
var slotScope = el.slotScope === emptySlotScopeToken
? ""
: String(el.slotScope);
var fn = "function(" + slotScope + "){" +
"return " + (el.tag === 'template'
? el.if && isLegacySyntax
? ("(" + (el.if) + ")?" + (genChildren(el, state) || 'undefined') + ":undefined")
@ -4310,7 +4339,14 @@ function genSlot (el, state) {
var slotName = el.slotName || '"default"';
var children = genChildren(el, state);
var res = "_t(" + slotName + (children ? ("," + children) : '');
var attrs = el.attrs && ("{" + (el.attrs.map(function (a) { return ((camelize(a.name)) + ":" + (a.value)); }).join(',')) + "}");
var attrs = el.attrs || el.dynamicAttrs
? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
// slot props are camelized
name: camelize(attr.name),
value: attr.value,
dynamic: attr.dynamic
}); }))
: null;
var bind$$1 = el.attrsMap['v-bind'];
if ((attrs || bind$$1) && !children) {
res += ",null";

2
packages/vue-template-compiler/package.json

@ -1,6 +1,6 @@
{
"name": "vue-template-compiler",
"version": "2.6.2",
"version": "2.6.3",
"description": "template compiler for Vue 2.0",
"main": "index.js",
"unpkg": "browser.js",

Loading…
Cancel
Save