@vue/server-renderer 3.6.0-alpha.2 → 3.6.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/server-renderer v3.6.0-alpha.
|
|
2
|
+
* @vue/server-renderer v3.6.0-alpha.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -142,6 +142,8 @@ function ssrRenderSlotInner(slots, slotName, slotProps, fallbackRenderFn, push,
|
|
|
142
142
|
);
|
|
143
143
|
} else if (fallbackRenderFn) {
|
|
144
144
|
fallbackRenderFn();
|
|
145
|
+
} else if (transition) {
|
|
146
|
+
push(`<!---->`);
|
|
145
147
|
}
|
|
146
148
|
} else {
|
|
147
149
|
let isEmptySlot = true;
|
|
@@ -166,13 +168,19 @@ function ssrRenderSlotInner(slots, slotName, slotProps, fallbackRenderFn, push,
|
|
|
166
168
|
start++;
|
|
167
169
|
end--;
|
|
168
170
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
if (start < end) {
|
|
172
|
+
for (let i = start; i < end; i++) {
|
|
173
|
+
push(slotBuffer[i]);
|
|
174
|
+
}
|
|
175
|
+
} else if (transition) {
|
|
176
|
+
push(`<!---->`);
|
|
171
177
|
}
|
|
172
178
|
}
|
|
173
179
|
}
|
|
174
180
|
} else if (fallbackRenderFn) {
|
|
175
181
|
fallbackRenderFn();
|
|
182
|
+
} else if (transition) {
|
|
183
|
+
push(`<!---->`);
|
|
176
184
|
}
|
|
177
185
|
}
|
|
178
186
|
const commentTestRE = /^<!--[\s\S]*-->$/;
|
|
@@ -433,7 +441,7 @@ function isVNode$2(value) {
|
|
|
433
441
|
return value ? value.__v_isVNode === true : false;
|
|
434
442
|
}
|
|
435
443
|
|
|
436
|
-
const classifyRE = /(?:^|[-_])
|
|
444
|
+
const classifyRE = /(?:^|[-_])\w/g;
|
|
437
445
|
const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
|
|
438
446
|
function getComponentName(Component, includeInferred = true) {
|
|
439
447
|
return shared.isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/server-renderer v3.6.0-alpha.
|
|
2
|
+
* @vue/server-renderer v3.6.0-alpha.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -142,6 +142,8 @@ function ssrRenderSlotInner(slots, slotName, slotProps, fallbackRenderFn, push,
|
|
|
142
142
|
);
|
|
143
143
|
} else if (fallbackRenderFn) {
|
|
144
144
|
fallbackRenderFn();
|
|
145
|
+
} else if (transition) {
|
|
146
|
+
push(`<!---->`);
|
|
145
147
|
}
|
|
146
148
|
} else {
|
|
147
149
|
let isEmptySlot = true;
|
|
@@ -166,13 +168,19 @@ function ssrRenderSlotInner(slots, slotName, slotProps, fallbackRenderFn, push,
|
|
|
166
168
|
start++;
|
|
167
169
|
end--;
|
|
168
170
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
if (start < end) {
|
|
172
|
+
for (let i = start; i < end; i++) {
|
|
173
|
+
push(slotBuffer[i]);
|
|
174
|
+
}
|
|
175
|
+
} else if (transition) {
|
|
176
|
+
push(`<!---->`);
|
|
171
177
|
}
|
|
172
178
|
}
|
|
173
179
|
}
|
|
174
180
|
} else if (fallbackRenderFn) {
|
|
175
181
|
fallbackRenderFn();
|
|
182
|
+
} else if (transition) {
|
|
183
|
+
push(`<!---->`);
|
|
176
184
|
}
|
|
177
185
|
}
|
|
178
186
|
const commentTestRE = /^<!--[\s\S]*-->$/;
|