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