@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...
    • 列表节点;条目 action 缺省即不可点击。

      列表是同构条目的紧凑表达:一个节点承载全部条目,因此长列表不会吃掉节点预算。需要逐条自定义排版时 改用容器手写,代价是节点数按条目线性增长。

      参数

      • items: readonly {
            action?: {
                commandId: string;
                input?: JSONType;
                inputFrom?: Record<string, string>;
            };
            badge?: {
                text: string;
                tone?: "default"
                | "success"
                | "warning"
                | "accent"
                | "muted"
                | "danger";
            };
            current?: boolean;
            disabled?: boolean;
            disabledReason?: string;
            icon?: string;
            id: string;
            image?: string;
            imageAppearance?: "default"
            | "deemphasized";
            imageColorRole?: "content" | "semantic";
            imageFallback?: { icon?: string; source?: "app-ambient"; text?: string };
            imageFit?: "cover" | "contain";
            imageShape?: "landscape" | "square" | "circle";
            meta?: string;
            secondaryAction?: {
                action?: {
                    commandId: string;
                    input?: JSONType;
                    inputFrom?: Record<string, string>;
                };
                disabled?: boolean;
                disabledReason?: string;
                text: string;
                tone?: "default"
                | "success"
                | "warning"
                | "accent"
                | "muted"
                | "danger";
                variant?: "primary" | "secondary" | "ghost";
            };
            subtitle?: string;
            title: string;
            tone?: "default"
            | "success"
            | "warning"
            | "accent"
            | "muted"
            | "danger";
        }[]

        列表条目。

      • 可选options: ListOptions

        排版与稳定键。

      返回 ViewNode