Skip to content

Commit 2a914e2

Browse files
committed
fix(components)!: remove renderScopedSlots prop
1 parent d5a50ad commit 2a914e2

File tree

1 file changed

+1
-8
lines changed
  • packages/schema-org/runtime/components

1 file changed

+1
-8
lines changed

packages/schema-org/runtime/components/nodes.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export const defineSchemaOrgComponent = (name: string, defineFn: (input: any) =>
3535
name,
3636
props: {
3737
as: String,
38-
renderScopedSlots: Boolean,
3938
},
4039
setup(props, { slots, attrs }) {
4140
const node = ref(null)
@@ -70,17 +69,11 @@ export const defineSchemaOrgComponent = (name: string, defineFn: (input: any) =>
7069
return () => {
7170
const data = unref(nodePartial)
7271
// renderless component
73-
if (!slots.default && !props.renderScopedSlots)
72+
if (!slots.default)
7473
return null
7574
const childSlots = []
7675
if (slots.default)
7776
childSlots.push(slots.default(data))
78-
if (props.renderScopedSlots) {
79-
for (const [key, slot] of Object.entries(slots)) {
80-
if (slot && key !== 'default')
81-
childSlots.push(slot(data))
82-
}
83-
}
8477
return h(props.as || 'div', {}, childSlots)
8578
}
8679
},

0 commit comments

Comments
 (0)