This commit is contained in:
hackrobot
2024-05-22 20:36:26 +08:00
parent 3d36632dc7
commit e0a1ab50cf
2 changed files with 110 additions and 85 deletions

View File

@@ -1,6 +1,6 @@
import { Component, useRef } from 'react';
import { Input } from 'antd';
import { Button, Flex } from 'antd';
import { Button, Flex,Modal, Space } from 'antd';
// import Taro from "@tarojs/taro";
// import {
// View,
@@ -182,7 +182,6 @@ renderer.blockquote = function (quote) {
//  
// return `<span style="white-space:pre;" class="blockquote">\t 👉${content}</span><br/> `
return `<div style="white-space:pre;" class="blockquote">\t 👉${content}</div>\n`;
;
};
renderer.table = function (header, body) {
@@ -290,7 +289,6 @@ const Index = () => {
const htmlContent = divRef.current.innerText;
// const htmlContent = divRef.current.textContent;
navigator.clipboard
.writeText(htmlContent)
.then(() => {
@@ -302,11 +300,26 @@ const Index = () => {
}
};
const info = () => {
Modal.info({
title: 'This is a notification message',
content: (
<div>
<p>some messages...some messages...</p>
<p>some messages...some messages...</p>
</div>
),
onOk() {},
});
};
return (
<div className={styles.index}>
<div className={styles.up}>
<div className={styles.upLeft}>
{/* <button onClick={copyToClipboard}>Copy to Clipboardl</button> */}
{/* <Button type="text" danger>
公众号: 异度世界
</Button> */}
</div>
<div className={styles.upRight}>
{/* <button onClick={copyToClipboard}>Copy to Clipboarrd</button> */}