You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the default setting is prop high priority, when prop and slot exist at the same time, only prop is obtained
e.g.
constMyLayout=defineComponent({setup(){return()=>(<pro-layouttitle={'My App'}rightContentRender={(<div>My is rightContentRender by prop</div>)}v-slots={{rightContentRender: ()=>(<div>My is rightContentRender by slot</div>)}}><div>context</div></pro-layout>)},});
rightContentRender display context My is rightContentRender by prop
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Now the default setting is prop high priority, when prop and slot exist at the same time, only prop is obtained
e.g.
rightContentRenderdisplay contextMy is rightContentRender by propBeta Was this translation helpful? Give feedback.
All reactions