mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-07-31 02:37:22 +08:00
feat(frontend): 新增多版本笔记功能,并做了向下兼容。
- 新增关于页面组件,介绍项目背景、功能和使用方法 - 重构笔记生成逻辑,支持多版本笔记 - 新增笔记版本选择、复制和导出功能 -优化笔记界面布局和交互 - 调整部分组件样式,提升用户体验
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
import { useState } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { ResizablePanel, ResizablePanelGroup, ResizableHandle } from '@/components/ui/resizable'
|
||||
import {ScrollArea} from "@/components/ui/scroll-area.tsx";
|
||||
|
||||
interface IProps {
|
||||
NoteForm: React.ReactNode
|
||||
@@ -47,7 +48,9 @@ const HomeLayout: FC<IProps> = ({ NoteForm, Preview, History }) => {
|
||||
</TooltipProvider>
|
||||
</div>
|
||||
</header>
|
||||
<div className="flex-1 overflow-auto p-4">{NoteForm}</div>
|
||||
<ScrollArea className="flex-1 overflow-auto">
|
||||
<div className=' p-4' >{NoteForm}</div>
|
||||
</ScrollArea>
|
||||
</aside>
|
||||
</ResizablePanel>
|
||||
|
||||
@@ -56,7 +59,9 @@ const HomeLayout: FC<IProps> = ({ NoteForm, Preview, History }) => {
|
||||
{/* 中间历史 */}
|
||||
<ResizablePanel defaultSize={16} minSize={10} maxSize={30}>
|
||||
<aside className="flex h-full flex-col overflow-hidden border-r border-neutral-200 bg-white">
|
||||
<div className="flex-1 overflow-auto p-4">{History}</div>
|
||||
<ScrollArea className="flex-1 overflow-auto">
|
||||
<div className="">{History}</div>
|
||||
</ScrollArea>
|
||||
</aside>
|
||||
</ResizablePanel>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user