chore: annotate generated slot flag

This commit is contained in:
Evan You
2020-11-30 15:11:58 -05:00
parent 5f2a8533ac
commit e41b46c396
11 changed files with 57 additions and 42 deletions

View File

@@ -59,7 +59,7 @@ describe('ssr: components', () => {
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
}"
`)
@@ -84,7 +84,7 @@ describe('ssr: components', () => {
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
}"
`)
@@ -122,7 +122,7 @@ describe('ssr: components', () => {
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
}"
`)
@@ -140,7 +140,7 @@ describe('ssr: components', () => {
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\\",
@@ -172,7 +172,7 @@ describe('ssr: components', () => {
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,
@@ -260,7 +260,7 @@ describe('ssr: components', () => {
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
}"
`)

View File

@@ -106,7 +106,7 @@ describe('ssr: inject <style vars>', () => {
default: () => {
_push(\`<div\${_ssrRenderAttrs(_cssVars)}>ok</div>\`)
},
_: 1
_: 1 /* STABLE */
})
}"
`)

View File

@@ -45,7 +45,7 @@ describe('ssr: scopeId', () => {
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
})"
`)
@@ -75,7 +75,7 @@ describe('ssr: scopeId', () => {
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
})"
`)
@@ -110,7 +110,7 @@ describe('ssr: scopeId', () => {
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
} else {
return [
@@ -119,12 +119,12 @@ describe('ssr: scopeId', () => {
default: _withId(() => [
_createVNode(\\"span\\")
]),
_: 1
_: 1 /* STABLE */
})
]
}
}),
_: 1
_: 1 /* STABLE */
}, _parent))
})"
`)

View File

@@ -13,7 +13,7 @@ describe('ssr compile: suspense', () => {
default: () => {
_push(_ssrRenderComponent(_component_foo, null, null, _parent))
},
_: 1
_: 1 /* STABLE */
})
}"
`)
@@ -43,7 +43,7 @@ describe('ssr compile: suspense', () => {
fallback: () => {
_push(\` loading... \`)
},
_: 1
_: 1 /* STABLE */
})
}"
`)