ShtukbaseStandard
包文件→ .shtukbase/packages/layout-minimal/README.md

README.md

18 行, 1.0 KB.

这段内容尚未翻译,下面是英文原文。

  1. # Minimal lens layout
  2. Install the package, then run `shtuk run lenses build`. Installation selects it when Design has an empty
  3. `layout:` field. The layout's browser assets are `design/layout-minimal/layout.css` and `layout.js`.
  4. `window.Layout.mount(root, parts)` places the sidebar, page and settings nodes provided by the lens kit.
  5. It returns the controller in the [Lens layout convention](../design-components/pages/design/conventions/layout.md).
  6. The kit provides `parts.connect` for shared sheet controls and search. The layout supplies the frame, sheet placement
  7. and an `insertLeft(panel)` callback. Lens authors use `Lens.page` and `Lens.ui`.
  8. | Controller | Use |
  9. |---|---|
  10. | `shell`, `body` | Frame and page region |
  11. | `panel()`, `mountLeft(panel)` | Get the right panel or attach an optional left panel |
  12. | `open(region, on, focus?)` | Fold or reveal a sheet and optionally move focus |
  13. | `cardHost` | Closed host for card presentation, which LAY-2 implements |
  14. Run `bun test` for the install action and layout contract checks.