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
-
Now the default setting is prop high priority, when prop and slot exist at the same time, only prop is obtained
e.g.
rightContentRender
display contextMy is rightContentRender by prop
Beta Was this translation helpful? Give feedback.
All reactions