|
|
@@ -12,13 +12,12 @@ export function render(_ctx) {
|
|
|
`;
|
|
|
|
|
|
exports[`compiler: text transform > constant text 1`] = `
|
|
|
-"import { child as _child, template as _template } from 'vue';
|
|
|
+"import { template as _template } from 'vue';
|
|
|
const t0 = _template("<div>2 foo1 1 1 1", true)
|
|
|
|
|
|
export function render(_ctx) {
|
|
|
- const n1 = t0()
|
|
|
- const n0 = _child(n1)
|
|
|
- return n1
|
|
|
+ const n0 = t0()
|
|
|
+ return n0
|
|
|
}"
|
|
|
`;
|
|
|
|
|
|
@@ -32,3 +31,19 @@ export function render(_ctx) {
|
|
|
return n0
|
|
|
}"
|
|
|
`;
|
|
|
+
|
|
|
+exports[`compiler: text transform > slot literal interpolation 1`] = `
|
|
|
+"import { resolveComponent as _resolveComponent, createComponentWithFallback as _createComponentWithFallback, template as _template } from 'vue';
|
|
|
+const t0 = _template("Hello")
|
|
|
+
|
|
|
+export function render(_ctx) {
|
|
|
+ const _component_Comp = _resolveComponent("Comp")
|
|
|
+ const n1 = _createComponentWithFallback(_component_Comp, null, {
|
|
|
+ "default": () => {
|
|
|
+ const n0 = t0()
|
|
|
+ return n0
|
|
|
+ }
|
|
|
+ }, true)
|
|
|
+ return n1
|
|
|
+}"
|
|
|
+`;
|