Skip to content

Commit

Permalink
✨ 添加下载全部按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
shoucandanghehe committed Oct 10, 2024
1 parent 6df032b commit a156c82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tsl_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ def timer_callback() -> None:
if table.rows:
ui.button('下载表格', on_click=lambda: ui.download(to_excel(get_user_info.result), 'test.xlsx'))
ui.button('下载头像', on_click=download_avatars)
ui.button(
'下载全部',
on_click=lambda: ui.download(to_zip(get_user_info.result, include_table=True), 'all.zip'),
)
ui.notify(data)

timer = ui.timer(0.1, callback=timer_callback)
Expand Down

0 comments on commit a156c82

Please sign in to comment.