list( 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 参数
- 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
列表节点;条目
action缺省即不可点击。列表是同构条目的紧凑表达:一个节点承载全部条目,因此长列表不会吃掉节点预算。需要逐条自定义排版时 改用容器手写,代价是节点数按条目线性增长。