From 55d44228ecd4588c9210e1bfed02fe1fc64aecb3 Mon Sep 17 00:00:00 2001 From: tianyaxiang Date: Wed, 29 Jan 2025 23:34:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/WechatEditor.tsx | 110 ++++++++------- .../editor/components/MobileToolbar.tsx | 127 +++++++----------- 2 files changed, 103 insertions(+), 134 deletions(-) diff --git a/src/components/editor/WechatEditor.tsx b/src/components/editor/WechatEditor.tsx index 3383664..20bd1e9 100644 --- a/src/components/editor/WechatEditor.tsx +++ b/src/components/editor/WechatEditor.tsx @@ -15,6 +15,8 @@ import { MobileToolbar } from './components/MobileToolbar' import { MarkdownToolbar } from './components/MarkdownToolbar' import { type PreviewSize } from './constants' import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs' +import { WechatStylePicker } from '@/components/template/WechatStylePicker' +import { Copy } from 'lucide-react' export default function WechatEditor() { const { toast } = useToast() @@ -339,62 +341,78 @@ export default function WechatEditor() { return (
- setValue(value)} - onStyleOptionsChange={setStyleOptions} - onPreviewToggle={() => setShowPreview(!showPreview)} - styleOptions={styleOptions} - /> +
+ setValue(value)} + onStyleOptionsChange={setStyleOptions} + onPreviewToggle={() => setShowPreview(!showPreview)} + styleOptions={styleOptions} + /> +
- {/* Mobile Tabs */} + {/* Mobile View */}
+
+
+ +
+ +
编辑 预览 - +
t.id === selectedTemplate)?.styles )} > - -
-