f831d07864
2.新增项目更新日志页面,同步GitHub更新日志 3.新增章节内容生成时,选择本次生成人称 4.修复1 - N模式下,章节标题无法修改的问题 5.修复章节管理界面,批量生成后没有更新页面内容和状态
28 lines
723 B
TypeScript
28 lines
723 B
TypeScript
import { useState } from 'react';
|
|
import { FloatButton } from 'antd';
|
|
import { FileTextOutlined } from '@ant-design/icons';
|
|
import ChangelogModal from './ChangelogModal';
|
|
|
|
export default function ChangelogFloatingButton() {
|
|
const [showChangelog, setShowChangelog] = useState(false);
|
|
|
|
return (
|
|
<div style={{ position: 'fixed', zIndex: 9999 }}>
|
|
<FloatButton
|
|
icon={<FileTextOutlined />}
|
|
type="primary"
|
|
tooltip="查看更新日志"
|
|
style={{
|
|
right: 24,
|
|
bottom: 100,
|
|
}}
|
|
onClick={() => setShowChangelog(true)}
|
|
/>
|
|
|
|
<ChangelogModal
|
|
visible={showChangelog}
|
|
onClose={() => setShowChangelog(false)}
|
|
/>
|
|
</div>
|
|
);
|
|
} |