@vue/compiler-ssr 3.5.16 → 3.5.18
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.
- package/dist/compiler-ssr.cjs.js +14 -16
- package/package.json +3 -3
package/dist/compiler-ssr.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-ssr v3.5.
|
|
2
|
+
* @vue/compiler-ssr v3.5.18
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1086,6 +1086,17 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1086
1086
|
);
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
|
+
const processSelectChildren = (children) => {
|
|
1090
|
+
children.forEach((child) => {
|
|
1091
|
+
if (child.type === 1) {
|
|
1092
|
+
processOption(child);
|
|
1093
|
+
} else if (child.type === 11) {
|
|
1094
|
+
processSelectChildren(child.children);
|
|
1095
|
+
} else if (child.type === 9) {
|
|
1096
|
+
child.branches.forEach((b) => processSelectChildren(b.children));
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
};
|
|
1089
1100
|
function processOption(plainNode) {
|
|
1090
1101
|
if (plainNode.tag === "option") {
|
|
1091
1102
|
if (plainNode.props.findIndex((p) => p.name === "selected") === -1) {
|
|
@@ -1112,9 +1123,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1112
1123
|
);
|
|
1113
1124
|
}
|
|
1114
1125
|
} else if (plainNode.tag === "optgroup") {
|
|
1115
|
-
plainNode.children
|
|
1116
|
-
(option) => processOption(option)
|
|
1117
|
-
);
|
|
1126
|
+
processSelectChildren(plainNode.children);
|
|
1118
1127
|
}
|
|
1119
1128
|
}
|
|
1120
1129
|
if (node.tagType === 0) {
|
|
@@ -1199,18 +1208,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1199
1208
|
checkDuplicatedValue();
|
|
1200
1209
|
node.children = [compilerDom.createInterpolation(model, model.loc)];
|
|
1201
1210
|
} else if (node.tag === "select") {
|
|
1202
|
-
|
|
1203
|
-
children.forEach((child) => {
|
|
1204
|
-
if (child.type === 1) {
|
|
1205
|
-
processOption(child);
|
|
1206
|
-
} else if (child.type === 11) {
|
|
1207
|
-
processChildren(child.children);
|
|
1208
|
-
} else if (child.type === 9) {
|
|
1209
|
-
child.branches.forEach((b) => processChildren(b.children));
|
|
1210
|
-
}
|
|
1211
|
-
});
|
|
1212
|
-
};
|
|
1213
|
-
processChildren(node.children);
|
|
1211
|
+
processSelectChildren(node.children);
|
|
1214
1212
|
} else {
|
|
1215
1213
|
context.onError(
|
|
1216
1214
|
compilerDom.createDOMCompilerError(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.18",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/
|
|
32
|
-
"@vue/
|
|
31
|
+
"@vue/compiler-dom": "3.5.18",
|
|
32
|
+
"@vue/shared": "3.5.18"
|
|
33
33
|
}
|
|
34
34
|
}
|