feat(frontend): 更新设置页面按钮样式
- 为"添加新API"按钮添加 primary 样式 - 为"编辑选中行"按钮添加 primary 样式 - 为"删除选中行"按钮添加 stop 样式 - 保持"刷新数据"按钮的 secondary 样式
This commit is contained in:
parent
70b64dc3d3
commit
dc28c25c65
@ -41,7 +41,7 @@ def setting_page():
|
||||
model_id_input = gr.Textbox(label="Model ID")
|
||||
base_url_input = gr.Textbox(label="Base URL")
|
||||
api_key_input = gr.Textbox(label="API Key")
|
||||
add_button = gr.Button("添加新API")
|
||||
add_button = gr.Button("添加新API", variant="primary")
|
||||
|
||||
with gr.Column(scale=3):
|
||||
provider_table = gr.DataFrame(
|
||||
@ -54,9 +54,9 @@ def setting_page():
|
||||
)
|
||||
|
||||
with gr.Row():
|
||||
edit_button = gr.Button("编辑选中行")
|
||||
delete_button = gr.Button("删除选中行")
|
||||
refresh_button = gr.Button("刷新数据", variant="secondary")
|
||||
edit_button = gr.Button("编辑选中行", variant="primary")
|
||||
delete_button = gr.Button("删除选中行", variant="stop")
|
||||
|
||||
# 绑定刷新按钮事件
|
||||
refresh_button.click(
|
||||
|
Loading…
x
Reference in New Issue
Block a user