Skip to content

Commit 4de47a0

Browse files
author
湛蓝
authored
Compatible with uni-app virtualHostClass attribute
1 parent 11afaf0 commit 4de47a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/template-handler.ts

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export function handleTemplate(rawSource: string) {
1818
if (node.attributes.class) {
1919
node.attributes.class = handleClassNameInTemplate(node.attributes.class)
2020
}
21+
22+
if (node.attributes.virtualHostClass) {
23+
node.attributes.virtualHostClass = node.attributes.class
24+
}
2125

2226
}
2327

0 commit comments

Comments
 (0)