跳到主要内容

ARC 2.0.0-beta.28 · AUP Web-only widget

auto-surface

AUP Web-only widget `auto-surface`:用途、边界、表面、fallback 与证据。

这是 AUP Web-only widget,不是 cross-device primitive,也不是 Web Device layout component。

该名称登记在 AUP_WIDGETS(packages/aup/src/aup-types.ts)。结构校验可以接受它,Web runtime(或注明的原生目标)可以实现它。它不是 18 个跨设备 AUP_PRIMITIVES 之一,不会经 fillPrimitives 进入 DeviceCaps.primitives,也不是 Web Device 主题/站点 layout component(例如 content-card 或 page-breadcrumb)。

用途

AFS 目录模式 renderer。服务端解析 source 路径,分类常见形状,并展开为可呈现树。

边界

  • 不要把该类型写成可移植 primitive。
  • 不要与 Web Device layout-component 参考页混装在 widgets/ 下。
  • parser 接受名称 ≠ 可移植性或产品就绪声明。

作者入口

AUP / DSL type: "auto-surface"。Showcase 注册页 auto-surface。

表面

交互 Web。展开后客户端 switch 映射到 renderAupView。

Fallback

无 degradation chain。展开失败须可见(服务端路径)。

证据

SourcePath
Registrationpackages/aup/src/aup-types.ts
Registryproviders/runtime/ui/src/aup-registry.ts (auto-surface)
Expansionproviders/runtime/ui/src/auto-surface.ts; aup-preview-tree.ts``
Interactive switchproviders/runtime/ui/src/web-page/core.ts case "auto-surface"``
Showcaseblocklets/showcase/.aup/pages/auto-surface.json; app.json route auto-surface``

路径相对于本文档基线所用的 Arc 仓库 checkout。

Sample

公开 sample 层面 internal / experimental。 交互 Web runtime(有时含 Web Device widget 包)存在注册与 renderer,但本站不提供 docs-safe live sample。不要仅凭类型名推断产品就绪。

相关