@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...
    • 构造一个内容区域。

      参数

      • id: string

        区域稳定键。

      • status: "error" | "ready" | "empty" | "loading"

        区域状态。

      • 可选nodes: readonly ViewNode[]

        ready 时的内容、loading 时的布局蓝图,或 empty/error 的可选视觉锚点。

      • 可选options: RegionOptions

        标题、刷新、错误/空态文案与重试呈现。

      返回 {
          emptyText?: string;
          errorText?: string;
          id: string;
          nodes: ViewNode[];
          notice?: {
              dismissible?: boolean;
              id: string;
              text: string;
              tone?: "default" | "success" | "warning" | "accent" | "muted" | "danger";
          };
          refreshing?: boolean;
          retry?: {
              commandId: string;
              input?: JSONType;
              inputFrom?: Record<string, string>;
          };
          retryPresentation?: "button"
          | "inline";
          status: "error" | "ready" | "empty" | "loading";
          title?: string;
      }