AppShellLayout: escolher as abas mobile e receber todos os módulos no moreSheet

Đang mở
#1,238 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start at the AppShellLayout component and the BottomNav it renders under src/lib, plus the stories or docs that demo the shell with several modules. The issue names no files in this repository, so first reproduce the 5-module case to see where modules and the moreSheet snippet are passed down. Then decide which of the three proposed APIs to adopt, since the proposal offers alternatives rather than one shape. Done means the chosen prop or snippet is implemented, typed, and shown in a docs/story example with more than four modules.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problema

Um painel com mais de 4 módulos não consegue controlar a navegação mobile do AppShellLayout (4.6.0):

  • as abas da BottomNav saem direto dos modules, sem como escolher quais 4 ficam na barra;
  • o snippet moreSheet recebe só rest/visibleCount, não a lista completa nem links externos.

No wi (codeatlasdev/wi) o painel tem 5 módulos e ~15 rotas, e Documentação/Status não tinham como ser acessados no celular. Para resolver, o app esconde a barra nativa por CSS (.ca-shell > .ca-bottom-nav) e monta a própria BottomNav com um módulo sentinela "Mais" (apps/web/src/lib/components/MobileNav.svelte, MoreSheet.svelte). O r2k backoffice resolveu com um moreSheet próprio que repete os grupos do mega-menu.

Proposta

  • bottomNavModules (ou mobileTabs): quais destinos ficam na barra.
  • moreSheet recebendo { modules, active, close } completos.
  • Ou um snippet mobileNav que substitui a barra inteira.
Ngôn ngữ chính
TypeScript
Star
6
Fork
3
Merge trung bình
5 giờ 21 phút
Pull request đã merge (30 ngày)
378

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codeatlasdev/ui

Tất cả issue của codeatlasdev/ui

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.