Add settings page

This commit is contained in:
2026-02-13 23:48:43 +08:00
parent 92f5073774
commit dc252af38a
10 changed files with 139 additions and 31 deletions

View File

@@ -0,0 +1,18 @@
import { Typography, Switch, FloatButton, Affix, Button } from "antd";
import { SaveTwoTone, SaveOutlined } from "@ant-design/icons";
import { useState } from "react";
const { Title } = Typography;
export default function QdSettings() {
const [container, setContainer] = useState<HTMLElement | null>(null);
return (
<div ref={setContainer}>
<Title level={2}></Title>
<Affix target={() => container}>
<Button type="primary" icon={<SaveOutlined />}></Button>
</Affix>
<FloatButton icon={<SaveTwoTone />} tooltip="保存设置" />
</div>
);
}