docs(web): clarify session row slots and keyboard limits
This commit is contained in:
1 parent
9dbf907f93
commit
fdf14b2bc9
11 files changed
+42
-26
No files matched your search
@@ -3,8 +3,8 @@
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write docs/subsystems/slots.md
|
||||
/web-client-slots:
|
||||
en: 7675993fd0a8eb2a
|
||||
zh: b2fb70704f2e841c
|
||||
en: 5f160332e4980284
|
||||
zh: b1ae1da451a6209e
|
||||
/web-client-slots/declaration-and-lifecycle:
|
||||
en: f2d2c0d3b8f14ec7
|
||||
zh: 441ed13ff3f81d2a
|
||||
|
||||
@@ -10,7 +10,7 @@ This page documents slot ownership, component inputs, extension APIs, and the sh
|
||||
|
||||
The plugin catalog declares `plugins.add.actions`, a root-scoped list for `MenuItemButton` rows after installation in the Add plugin menu. Its owner supplies `onDismiss()` to close the menu before starting an action. The slot follows the owning Plugins page declaration lifetime.
|
||||
|
||||
Session rows declare the root-scoped `sidebar.session.row.trailing` list for non-interactive icons beside the time and pin marker. Each entry receives `sessionId`; [ui-workspace](../../packages/client/ui-workspace/README.md) owns visibility and keyboard behavior.
|
||||
[ui-workspace](../../packages/client/ui-workspace/README.md#understand-the-implementation) documents Session-row extension positions, visibility, and keyboard behavior.
|
||||
|
||||
## Declaration and lifecycle
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ Slots 是 Web Client 的类型化 React 组合系统。[`dsh-client-ui-slots`](.
|
||||
|
||||
插件目录声明 `plugins.add.actions`,它是 root 作用域的 list,在添加插件菜单的安装项之后提供 `MenuItemButton` 行。owner 提供 `onDismiss()`,用于开始动作前关闭菜单。该 slot 遵循所属插件页面声明的生命周期。
|
||||
|
||||
Session 行声明根作用域的 `sidebar.session.row.trailing` 列表,用于时间与置顶标记旁的非交互图标。每个条目接收 `sessionId`;[ui-workspace](../../packages/client/ui-workspace/README.zh.md) 定义显示条件和键盘行为。
|
||||
[ui-workspace](../../packages/client/ui-workspace/README.zh.md#understand-the-implementation) 记录 Session 行的扩展位置、显示条件和键盘行为。
|
||||
|
||||
## 声明与生命周期
|
||||
|
||||
|
||||
Reference in new issue
Block a user