|
@@ -16,6 +16,22 @@ export function render(_ctx, _cache) {
|
|
|
}"
|
|
}"
|
|
|
`;
|
|
`;
|
|
|
|
|
|
|
|
|
|
+exports[`scopeId compiler support > should push typescript-compatible scopeId for hoisted nodes 1`] = `
|
|
|
|
|
+"import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue"
|
|
|
|
|
+
|
|
|
|
|
+const _withScopeId = (n: any) => (_pushScopeId("test"),n=n(),_popScopeId(),n)
|
|
|
|
|
+const _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("div", null, "hello", -1 /* HOISTED */))
|
|
|
|
|
+const _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("div", null, "world", -1 /* HOISTED */))
|
|
|
|
|
+
|
|
|
|
|
+export function render(_ctx: any,_cache: any) {
|
|
|
|
|
+ return (_openBlock(), _createElementBlock("div", null, [
|
|
|
|
|
+ _hoisted_1,
|
|
|
|
|
+ _createTextVNode(_toDisplayString(_ctx.foo), 1 /* TEXT */),
|
|
|
|
|
+ _hoisted_2
|
|
|
|
|
+ ]))
|
|
|
|
|
+}"
|
|
|
|
|
+`;
|
|
|
|
|
+
|
|
|
exports[`scopeId compiler support > should wrap default slot 1`] = `
|
|
exports[`scopeId compiler support > should wrap default slot 1`] = `
|
|
|
"import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
|
"import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
|
|
|
|
|