@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...

    接口 RegionOptions

    Region 的可选项。

    interface RegionOptions {
        emptyText?: string;
        errorText?: string;
        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";
        title?: string;
    }
    索引

    属性

    emptyText?: string

    覆盖宿主默认空态文案。

    errorText?: string

    覆盖宿主默认错误文案;仅用于 error Region。

    notice?: {
        dismissible?: boolean;
        id: string;
        text: string;
        tone?: "default" | "success" | "warning" | "accent" | "muted" | "danger";
    }

    顶部瞬时说明;不参与节点预算,也不引起内容重排。

    refreshing?: boolean

    已有内容正在原位刷新;仅用于 ready Region。

    retry?: {
        commandId: string;
        input?: JSONType;
        inputFrom?: Record<string, string>;
    }

    失败时的重试动作。

    retryPresentation?: "button" | "inline"

    重试动作的宿主呈现方式;inline 使用 Accent 文字动作。

    title?: string

    区域标题。