Files
marqdo/examples/web-spa-app/components/panels/list.mq.md
T
cflmy 9331af78e2 release(2.8.0): 合入 CHANGELOG/README/发版说明/skills prove 任务;CI 链接指向 doc/releases
- CHANGELOG.md:v2.8.0 条目(中英双语);
- README.md:版本行 2.7.1→2.8.0 + 愿景第 6 条(知识可证明);
- doc/releases/v2.8.0.md:双语发版说明(亮点/用法/已知限制);
- skills/marqdo-dev/index.mq.md:新增 prove 任务(路径/目录模式/
  require_lean/json;参数用 + 行声明升参,check 与 narrative-ratio 通过);
- 设计文档 §12.5 标记已合入;发版链接统一指向 doc/releases/v2.8.0.md。
2026-11-18 10:29:26 +08:00

1.3 KiB
Executable File

markup, title, import
markup title import
occlusion List panel
component table
ext/web/component/index.mq.md lib/table.mq.md

The existing list container is populated by the official bridge's structured render_list effect.

nodes

返回 类型 说明
result list Initially visible list panel with its Markdown hint

The empty native list provides id items for delegated clicks. Its actual entries come from native client records and use stable data-id attributes. The hint is ordinary Markdown and knows nothing about item data or routing. Only this parent sets the list panel's visibility; detail and editor remain separate components.

We empty = Start with no server-owned item rows and target = [Name the client-owned list container](table.put(in=None, at="id", value="items")) and list = [Describe the native unordered list](component.wrap(children=empty, kind="list", attrs=target, slot="items")). We hint = [Keep the instruction as ordinary Markdown](component.markdown(text="Click an item for detail.", slot="list-hint")) and children = [Place the hint after its list](table.concat(a=list, b=hint)).

attrs =

id hidden
view-list False

Return [Describe the visible list panel](component.wrap(children=children, kind="section", attrs=attrs, slot="list-panel")).