This commit is contained in:
parent
7631674daf
commit
8130935c20
|
|
@ -19,7 +19,7 @@ def task_history_item(
|
|||
"""
|
||||
任务历史项
|
||||
:param item: 任务历史项
|
||||
:return: Component
|
||||
:return: rx.Component
|
||||
"""
|
||||
|
||||
# 高亮
|
||||
|
|
@ -29,7 +29,7 @@ def task_history_item(
|
|||
|
||||
return rx.list.item(
|
||||
rx.hstack(
|
||||
# 任务历史项的任务描述
|
||||
# 渲染任务历史项的任务描述
|
||||
rx.text(
|
||||
item.description,
|
||||
flex=1,
|
||||
|
|
@ -38,13 +38,15 @@ def task_history_item(
|
|||
color="var(--prismui-color-2)",
|
||||
text_overflow="ellipsis",
|
||||
white_space="nowrap",
|
||||
overflow="hidden",
|
||||
cursor="inherit",
|
||||
),
|
||||
align_items="center",
|
||||
width="100%",
|
||||
margin_bottom="8px",
|
||||
cursor="pointer",
|
||||
),
|
||||
width="100%",
|
||||
cursor="pointer",
|
||||
# 点击事件:将指定任务唯一标识设置为当前任务唯一标识
|
||||
on_click=lambda: TaskState.set_task_id(item.id),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue