fix: close (#349)

This commit is contained in:
lencx
2023-02-12 23:33:23 +08:00
parent 522f7b86b8
commit 7479ee905f
3 changed files with 43 additions and 4 deletions

View File

@@ -30,12 +30,26 @@ const PopupSearchLabel = () => {
);
};
const MainCloseLabel = () => {
return (
<span>
Close Exit{' '}
<Tooltip title="Click the close button whether to exit directly, the default minimized.">
<QuestionCircleOutlined style={{ color: '#1677ff' }} />
</Tooltip>
</span>
);
};
export default function MainWindow() {
return (
<>
<Form.Item label={<PopupSearchLabel />} name="popup_search" valuePropName="checked">
<Switch />
</Form.Item>
<Form.Item label={<MainCloseLabel />} name="main_close" valuePropName="checked">
<Switch />
</Form.Item>
<SwitchOrigin name="main" />
<Form.Item label="User Agent (Main)" name="ua_window">
<Input.TextArea