From e9d005398920a77b45f0100ed918b2992cf4b152 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 27 Aug 2025 02:56:01 +0000 Subject: [PATCH] :rotating_light: auto fix by pre-commit hooks --- zhenxun/ui/models/core/details.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zhenxun/ui/models/core/details.py b/zhenxun/ui/models/core/details.py index cfffcca0..de324234 100644 --- a/zhenxun/ui/models/core/details.py +++ b/zhenxun/ui/models/core/details.py @@ -7,12 +7,14 @@ from .base import RenderableComponent class DetailsItem(BaseModel): """描述列表中的单个项目""" + label: str = Field(..., description="项目的标签/键") value: Any = Field(..., description="项目的值") class DetailsData(RenderableComponent): """描述列表(键值对)的数据模型""" + title: str | None = Field(None, description="列表的可选标题") items: list[DetailsItem] = Field(default_factory=list, description="键值对项目列表")