return (_openBlock(), _createBlock(_component_Comp, null, {
[_ctx.one]: _withCtx(({ foo }) => [_toDisplayString(foo), _toDisplayString(_ctx.bar)]),
[_ctx.two]: _withCtx(({ bar }) => [_toDisplayString(_ctx.foo), _toDisplayString(bar)]),
- _: 2
+ _: 2 /* DYNAMIC */
}, 1024 /* DYNAMIC_SLOTS */))
}"
`;
default: _withCtx(() => [
_createVNode(\\"div\\")
]),
- _: 1
+ _: 1 /* STABLE */
}))
}"
`;
return function render(_ctx, _cache) {
const _component_Comp = _resolveComponent(\\"Comp\\")
- return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 }, [
+ return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 /* DYNAMIC */ }, [
_renderList(_ctx.list, (name) => {
return {
name: name,
return function render(_ctx, _cache) {
const _component_Comp = _resolveComponent(\\"Comp\\")
- return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 }, [
+ return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 /* DYNAMIC */ }, [
(_ctx.ok)
? {
name: \\"one\\",
const _component_Comp = _resolveComponent(\\"Comp\\")
- return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 }, [
+ return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 /* DYNAMIC */ }, [
ok
? {
name: \\"one\\",
const _component_Comp = _resolveComponent(\\"Comp\\")
- return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 }, [
+ return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _: 2 /* DYNAMIC */ }, [
ok
? {
name: \\"one\\",
\\"bar\\",
_createVNode(\\"span\\")
]),
- _: 1
+ _: 1 /* STABLE */
}))
}
}"
default: _withCtx(({ foo }) => [
_createVNode(_component_Inner, null, {
default: _withCtx(({ bar }) => [_toDisplayString(foo), _toDisplayString(bar), _toDisplayString(_ctx.baz)]),
- _: 2
+ _: 2 /* DYNAMIC */
}, 1024 /* DYNAMIC_SLOTS */),
\\" \\",
_toDisplayString(foo),
_toDisplayString(_ctx.bar),
_toDisplayString(_ctx.baz)
]),
- _: 1
+ _: 1 /* STABLE */
}))
}"
`;
return (_openBlock(), _createBlock(_component_Comp, null, {
[_ctx.named]: _withCtx(({ foo }) => [_toDisplayString(foo), _toDisplayString(_ctx.bar)]),
- _: 2
+ _: 2 /* DYNAMIC */
}, 1024 /* DYNAMIC_SLOTS */))
}"
`;
return (_openBlock(), _createBlock(_component_Comp, null, {
named: _withCtx(({ foo }) => [_toDisplayString(foo), _toDisplayString(_ctx.bar)]),
- _: 1
+ _: 1 /* STABLE */
}))
}"
`;
return (_openBlock(), _createBlock(_component_Comp, null, {
default: _withCtx(({ foo }) => [_toDisplayString(foo), _toDisplayString(_ctx.bar)]),
- _: 1
+ _: 1 /* STABLE */
}))
}"
`;
return (_openBlock(), _createBlock(_component_Comp, null, {
one: _withCtx(({ foo }) => [_toDisplayString(foo), _toDisplayString(_ctx.bar)]),
two: _withCtx(({ bar }) => [_toDisplayString(_ctx.foo), _toDisplayString(bar)]),
- _: 1
+ _: 1 /* STABLE */
}))
}"
`;
} from '../utils'
import { CREATE_SLOTS, RENDER_LIST, WITH_CTX } from '../runtimeHelpers'
import { parseForExpression, createForLoopParams } from './vFor'
-import { SlotFlags } from '@vue/shared'
+import { SlotFlags, slotFlagsText } from '@vue/shared'
const defaultFallback = createSimpleExpression(`undefined`, false)
`_`,
// 2 = compiled but dynamic = can skip normalization, but must run diff
// 1 = compiled and static = can skip normalization AND diff as optimized
- createSimpleExpression('' + slotFlag, false)
+ createSimpleExpression(
+ slotFlag + (__DEV__ ? ` /* ${slotFlagsText[slotFlag]} */` : ``),
+ false
+ )
)
),
loc
]
}
}),
- _: 1
+ _: 1 /* STABLE */
}, _parent))
}"
`)
]
}
}),
- _: 1
+ _: 1 /* STABLE */
}, _parent))
}"
`)
]
}
}),
- _: 1
+ _: 1 /* STABLE */
}, _parent))
}"
`)
return function ssrRender(_ctx, _push, _parent, _attrs) {
const _component_foo = _resolveComponent(\\"foo\\")
- _push(_ssrRenderComponent(_component_foo, _attrs, _createSlots({ _: 2 }, [
+ _push(_ssrRenderComponent(_component_foo, _attrs, _createSlots({ _: 2 /* DYNAMIC */ }, [
(_ctx.ok)
? {
name: \\"named\\",
return function ssrRender(_ctx, _push, _parent, _attrs) {
const _component_foo = _resolveComponent(\\"foo\\")
- _push(_ssrRenderComponent(_component_foo, _attrs, _createSlots({ _: 2 }, [
+ _push(_ssrRenderComponent(_component_foo, _attrs, _createSlots({ _: 2 /* DYNAMIC */ }, [
_renderList(_ctx.names, (key) => {
return {
name: key,
]
}
}),
- _: 1
+ _: 1 /* STABLE */
}, _parent))
}"
`)