Skip to content
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

feat: support multi-page rendering by extending page property #260

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

liuhonghui
Copy link

  • Extended the page prop to support multiple formats, including single page, range, and list (e.g., "1", "1-5", "1,3,5").
  • Default to rendering all pages when the page prop is not provided.
  • Optimized the pageNums calculation logic for better readability and robustness.
  • Improved component flexibility and user experience by adapting to multi-page rendering.

- Extended the `page` prop to support multiple formats, including single page, range, and list (e.g., "1", "1-5", "1,3,5").
- Default to rendering all pages when the `page` prop is not provided.
- Optimized the `pageNums` calculation logic for better readability and robustness.
- Improved component flexibility and user experience by adapting to multi-page rendering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant