fix: 1.接入ai_suggestion.
2. 接入合同起草功能。
This commit is contained in:
@@ -389,7 +389,7 @@ export function PdfPreview({
|
||||
>
|
||||
<i className="ri-zoom-out-line text-sm"></i>
|
||||
</button>
|
||||
{/* 页码跳转控件 */}
|
||||
{/* 页码跳转控件
|
||||
<div className="inline-flex items-center flex-shrink-0 gap-1">
|
||||
<input
|
||||
type="text"
|
||||
@@ -412,7 +412,38 @@ export function PdfPreview({
|
||||
/ {numPages}
|
||||
</span>
|
||||
)}
|
||||
</div> */}
|
||||
{/* 页码跳转控件 */}
|
||||
<div className="inline-flex items-center bg-white border border-gray-300 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-200 flex-shrink-0 overflow-hidden">
|
||||
<div className="flex items-center px-2 py-1">
|
||||
<i className="ri-file-list-line text-sm text-gray-400 mr-1.5"></i>
|
||||
<input
|
||||
type="text"
|
||||
className="w-10 h-5 px-1 text-xs text-center text-gray-700 bg-transparent border-0 outline-none focus:text-primary transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
placeholder="页码"
|
||||
value={pageInputValue}
|
||||
onChange={handlePageInputChange}
|
||||
onKeyDown={handlePageInputKeyDown}
|
||||
/>
|
||||
{numPages && (
|
||||
<span className="text-xs text-gray-400 mx-0.5">/</span>
|
||||
)}
|
||||
{numPages && (
|
||||
<span className="text-xs text-gray-500 font-medium min-w-[1.5rem] text-center">
|
||||
{numPages}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<button
|
||||
className="flex items-center justify-center h-7 px-2.5 text-white bg-primary hover:bg-primary-hover transition-colors duration-200 outline-none disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-primary border-l border-primary-hover/20"
|
||||
onClick={handlePageJump}
|
||||
disabled={!numPages}
|
||||
title="跳转"
|
||||
>
|
||||
<i className="ri-skip-forward-mini-line text-sm"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<span className="text-xs text-gray-500 hidden sm:hidden md:hidden lg:hidden xl:inline whitespace-nowrap flex-shrink-0">
|
||||
比例:{zoomLevel}%
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user