return (openBlock(), createBlock(_component_Comp, null, {
[_ctx.one]: ({ foo }) => [toString(foo), toString(_ctx.bar)],
- [_ctx.two]: ({ bar }) => [toString(_ctx.foo), toString(bar)]
+ [_ctx.two]: ({ bar }) => [toString(_ctx.foo), toString(bar)],
+ _compiled: true
}, 256 /* DYNAMIC_SLOTS */))
}"
`;
const _component_Comp = resolveComponent(\\"Comp\\")
return (openBlock(), createBlock(_component_Comp, null, {
- default: ({ foo }) => [toString(foo), toString(_ctx.bar)]
+ default: ({ foo }) => [toString(foo), toString(_ctx.bar)],
+ _compiled: true
}))
}"
`;
return (openBlock(), createBlock(_component_Comp, null, {
default: () => [
createVNode(\\"div\\")
- ]
+ ],
+ _compiled: true
}))
}"
`;
const _ctx = this
const _component_Comp = resolveComponent(\\"Comp\\")
- return (openBlock(), createBlock(_component_Comp, null, createSlots({}, [
+ return (openBlock(), createBlock(_component_Comp, null, createSlots({ _compiled: true }, [
renderList(_ctx.list, (name) => {
return {
name: name,
const _ctx = this
const _component_Comp = resolveComponent(\\"Comp\\")
- return (openBlock(), createBlock(_component_Comp, null, createSlots({}, [
+ return (openBlock(), createBlock(_component_Comp, null, createSlots({ _compiled: true }, [
(_ctx.ok)
? {
name: \\"one\\",
const _component_Comp = _resolveComponent(\\"Comp\\")
- return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({}, [
+ return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _compiled: true }, [
ok
? {
name: \\"one\\",
const _component_Comp = _resolveComponent(\\"Comp\\")
- return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({}, [
+ return (_openBlock(), _createBlock(_component_Comp, null, _createSlots({ _compiled: true }, [
ok
? {
name: \\"one\\",
return (openBlock(), createBlock(_component_Comp, null, {
one: ({ foo }) => [toString(foo), toString(_ctx.bar)],
- two: ({ bar }) => [toString(_ctx.foo), toString(bar)]
+ two: ({ bar }) => [toString(_ctx.foo), toString(bar)],
+ _compiled: true
}))
}"
`;
return (openBlock(), createBlock(_component_Comp, null, {
default: ({ foo }) => [
createVNode(_component_Inner, null, {
- default: ({ bar }) => [toString(foo), toString(bar), toString(_ctx.baz)]
+ default: ({ bar }) => [toString(foo), toString(bar), toString(_ctx.baz)],
+ _compiled: true
}),
toString(foo),
toString(_ctx.bar),
toString(_ctx.baz)
- ]
+ ],
+ _compiled: true
}))
}"
`;
function createSlotMatcher(obj: Record<string, any>) {
return {
type: NodeTypes.JS_OBJECT_EXPRESSION,
- properties: Object.keys(obj).map(key => {
- return {
- type: NodeTypes.JS_PROPERTY,
- key: {
- type: NodeTypes.SIMPLE_EXPRESSION,
- isStatic: !/^\[/.test(key),
- content: key.replace(/^\[|\]$/g, '')
- },
- value: obj[key]
- }
- })
+ properties: Object.keys(obj)
+ .map(key => {
+ return {
+ type: NodeTypes.JS_PROPERTY,
+ key: {
+ type: NodeTypes.SIMPLE_EXPRESSION,
+ isStatic: !/^\[/.test(key),
+ content: key.replace(/^\[|\]$/g, '')
+ },
+ value: obj[key]
+ } as any
+ })
+ .concat({
+ key: { content: `_compiled` },
+ value: { content: `true` }
+ })
}
}
type: NodeTypes.JS_CALL_EXPRESSION,
callee: `_${CREATE_SLOTS}`,
arguments: [
- createObjectMatcher({}),
+ createObjectMatcher({
+ _compiled: `[true]`
+ }),
{
type: NodeTypes.JS_ARRAY_EXPRESSION,
elements: [
type: NodeTypes.JS_CALL_EXPRESSION,
callee: CREATE_SLOTS,
arguments: [
- createObjectMatcher({}),
+ createObjectMatcher({
+ _compiled: `[true]`
+ }),
{
type: NodeTypes.JS_ARRAY_EXPRESSION,
elements: [
type: NodeTypes.JS_CALL_EXPRESSION,
callee: `_${CREATE_SLOTS}`,
arguments: [
- createObjectMatcher({}),
+ createObjectMatcher({
+ _compiled: `[true]`
+ }),
{
type: NodeTypes.JS_ARRAY_EXPRESSION,
elements: [
type: NodeTypes.JS_CALL_EXPRESSION,
callee: CREATE_SLOTS,
arguments: [
- createObjectMatcher({}),
+ createObjectMatcher({
+ _compiled: `[true]`
+ }),
{
type: NodeTypes.JS_ARRAY_EXPRESSION,
elements: [