diff --git a/src/tsl_tools/__init__.py b/src/tsl_tools/__init__.py index 145b2d6..3decabe 100644 --- a/src/tsl_tools/__init__.py +++ b/src/tsl_tools/__init__.py @@ -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)