From fc8f9acb8116205d23f3079b7167f49dc8e3531f Mon Sep 17 00:00:00 2001 From: xujiang Date: Sat, 10 Oct 2020 12:18:31 +0800 Subject: [PATCH] =?UTF-8?q?:new:=20=E6=B7=BB=E5=8A=A0=E4=B8=8B=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E7=9A=84=E7=A1=AE=E8=AE=A4=E6=B5=81=E7=A8=8B=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BasicShop/BasicComponents/List/schema.ts | 2 +- src/pages/editor/components/Header/index.tsx | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/BasicShop/BasicComponents/List/schema.ts b/src/components/BasicShop/BasicComponents/List/schema.ts index 8f15d7b..8b91cf7 100644 --- a/src/components/BasicShop/BasicComponents/List/schema.ts +++ b/src/components/BasicShop/BasicComponents/List/schema.ts @@ -36,7 +36,7 @@ const List: IListSchema = { }, { key: 'round', - name: '圆角', + name: '图片圆角', type: 'Number', }, { diff --git a/src/pages/editor/components/Header/index.tsx b/src/pages/editor/components/Header/index.tsx index a2a8a32..c2df07f 100644 --- a/src/pages/editor/components/Header/index.tsx +++ b/src/pages/editor/components/Header/index.tsx @@ -136,7 +136,16 @@ const HeaderComponent = memo((props: HeaderComponentProps) => { const { tid } = props.location.query || ''; req.post('/visible/preview', { tid, tpl: pointData }); }; - const handleSaveCode = () => {}; + const handleSaveCode = () => { + Modal.confirm({ + title: '确定要下载吗? 每人每天只能下载2次哦~', + okText: '确定', + cancelText: '取消', + onOk() { + // 未来的下载代码逻辑 + }, + }); + }; const { setTheme } = useContext(dooringContext); return (