diff --git a/src/pages/tools.tsx b/src/pages/tools.tsx index 49dc288..37b02fe 100644 --- a/src/pages/tools.tsx +++ b/src/pages/tools.tsx @@ -1,5 +1,5 @@ -import { Segmented, message } from "antd"; -import { Button, Collapse, useToast } from '@chakra-ui/react' +import { message } from "antd"; +import { Button, Collapse, useToast, Tabs, Tab, TabList } from '@chakra-ui/react' import { useCallback, useRef, useState } from "react"; import showImage from "../utils/downloadHtmlAsImage/showImage"; // import SecureWatermark from "../components/SecureWatermark"; @@ -64,8 +64,8 @@ export default function Heytea() {
蓝色输入框可编辑,点击灰色文字快速填充哦!
-
- { +
+ {/* { console.log(highLight); setStatus(parseInt(`${v}`)) @@ -74,40 +74,47 @@ export default function Heytea() { } else if (v === 1) { setHighLight(false) } - }} /> + }} /> */} + + { + setStatus(parseInt(`${v}`)) + if (v === 0) { + setHighLight(true) + } else if (v === 1) { + setHighLight(false) + } + }}> + + 编辑 + 预览 + 导出记录 + + +
-
- {/* */} +
+ {status === 0 ? - : '' + : '' } - {/* */} - {/* */} {status === 1 ?
导出选项
- - {/* */}
: '' } - {/*
*/} - {/* */} {status === 2 ? - : '' +
返回编辑
+ : '' } - {/*
*/}