From fe2fb8aba19c6473e79c6dc3173a350ee1497edb Mon Sep 17 00:00:00 2001 From: zhaoxuhui Date: Fri, 24 Aug 2018 09:52:19 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E5=A2=9E=E5=8A=A0=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E6=A8=A1=E5=BC=8F=E9=80=89=E6=8B=A9=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BA=8B=E4=BB=B6=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + src/markdown/index.vue | 44 +++++++++++++----------- src/markdown/markdown.js | 72 +++++++++++++++++++++++++++++----------- 3 files changed, 79 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 53525a1..0f67b3f 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ theme|String|代码块主题配置,共有四个值,分别为Light、Dark、O autoSave|Boolean|是否自动保存|true interval|Number|自动保存频率,单位毫秒|10000 toolbars|Object|工具栏配置,具体功能详见工具栏功能配置表 +mode|Number|初始化显示模式 1 分屏显示 2 预览详情 3 全屏编辑 ### 5.events diff --git a/src/markdown/index.vue b/src/markdown/index.vue index 890cd71..879b5df 100644 --- a/src/markdown/index.vue +++ b/src/markdown/index.vue @@ -1,5 +1,11 @@