File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
packages/schema-org/runtime/components Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments