From 3e3febf05aad77d577938b39fb9dc32f286aa596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B0=E6=99=A8?= Date: Wed, 14 Aug 2024 03:00:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=A4=87=E5=BF=98?= =?UTF-8?q?=E5=BD=95=E9=87=8C=E9=9D=A2=E5=8A=A0=E4=B8=8A=202=E4=B8=AA?= =?UTF-8?q?=E5=A4=96=E9=83=A8=E5=9B=BE=E5=BA=8A=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/MemoDrawer/compontets/FormModal.jsx | 32 ++++++++++++++++++- .../compontets/formModal.module.css | 3 ++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/pages/MemoDrawer/compontets/FormModal.jsx b/src/pages/MemoDrawer/compontets/FormModal.jsx index 40821dec..5bd0960f 100644 --- a/src/pages/MemoDrawer/compontets/FormModal.jsx +++ b/src/pages/MemoDrawer/compontets/FormModal.jsx @@ -7,6 +7,11 @@ import modalStyle from './formModal.module.css' import CommonStore from "../../../store/CommonStore"; const {TextArea} = Input; +/** 外部图片链接列表 */ +const externalImgBedList = [ + {src: 'https://playground.z.wiki/img-cloud/index.html', title: '外部图床1(可能失效,注意信息安全)'}, + {src: 'https://ycimg.pages.dev/', title: '外部图床2(加载缓慢,最大支持5M)'}, +] /** * 新增/编辑备忘录弹窗 * @@ -125,7 +130,26 @@ const FormModal = ({isOpen, setOpen, data, reList, currentMemoType}) => { } }, 100) } - + + /** 打开外部图床弹窗 */ + const openExternalImgModel = (title, src) => + modal.info({ + title, + style: {top: 20}, + wrapClassName:modalStyle.externalImgModel, + width: '100vh', + okText: '关闭', + maskClosable: true, + content: +