-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slide export doesn't handle v-if
in global-top
or global-bottom
based on conditional using currentPage
, currentLayout
#1490
Comments
If you want to get the current layout, you can use
|
Thank you for the clarification. However, I'm having a few issues when trying to correct based on this information.
|
After some debugging I found this is because there is a "
This is a bug. In print mode, the |
Thank you for the very quick response! I really appreciate your help, and I'm glad to have helped identify the bugs. |
I've opened #1492 for this. However, as antfu pointed out in #1492 (comment), #1492 is currently not mergable, and the |
Now we have slide layers for this use case. You can simply migrate global layers to slide layers, which is also described in https://sli.dev/features/global-layers. |
Describe the bug
The exporter seems to fail to handle
v-if
conditionals inglobal-top
orglobal-bottom
that usecurrentPage
,currentLayout
, and other navigation composables.My global bottom is intended to only be displayed on non-
cover
slides after the first. This functions properly in browser view but fails to display properly on export.This produces a proper global bottom in browser view, but no global bottom in the exported pdf:
When I remove the conditional
v-if="currentPage.value > 1 && currentLayout !== 'cover'"
from the firstdiv
in the template, the exporter displays the global bottom correctly:Desktop
The text was updated successfully, but these errors were encountered: