如何使用 Layout 佈局中的插槽? #4459
-
如題,我想在 |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Sep 22, 2024
Replies: 1 comment 4 replies
-
There is already a demo here https://theme-hope.vuejs.press/guide/advanced/replace.html#using-slots tocBefore should be similar |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
NormalPage
is a component which you should override with alias, it's not a layout. Overriding components give you ability to apply things to whole site.If you only want to insert contents in certain pages with a new layout, extends the "Layout.js" and insert with
tocBefore
slot.