From 260b6435cf0e878ccc03169d99d4eb3a3bf5eece Mon Sep 17 00:00:00 2001 From: roymondchen Date: Thu, 14 Jul 2022 19:29:07 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0editor=E6=96=B0props?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/package.json | 1 + docs/src/.vuepress/client.ts | 1 + docs/src/.vuepress/demo-block.vue | 8 ++++++-- docs/src/.vuepress/polyfills.ts | 8 ++++++++ docs/src/api/editor/editor.md | 30 ++++++++++++++++++++++++++++++ docs/src/api/editor/services.md | 4 ++-- pnpm-lock.yaml | 2 ++ 7 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 docs/src/.vuepress/polyfills.ts diff --git a/docs/package.json b/docs/package.json index a5226b31..f5bb3040 100644 --- a/docs/package.json +++ b/docs/package.json @@ -16,6 +16,7 @@ "highlight.js": "^11.2.0", "lodash": "^4.17.21", "lodash-es": "^4.17.21", + "serialize-javascript": "^6.0.0", "vue": "^3.2.0" }, "devDependencies": { diff --git a/docs/src/.vuepress/client.ts b/docs/src/.vuepress/client.ts index d4761aff..0cf72c1e 100644 --- a/docs/src/.vuepress/client.ts +++ b/docs/src/.vuepress/client.ts @@ -1,6 +1,7 @@ import 'element-plus/dist/index.css'; import 'highlight.js/styles/github.css'; +import './polyfills'; import { defineClientConfig } from '@vuepress/client'; import ElementPlus from 'element-plus'; import MagicForm from '@tmagic/form'; diff --git a/docs/src/.vuepress/demo-block.vue b/docs/src/.vuepress/demo-block.vue index e574dab5..368d2dc2 100644 --- a/docs/src/.vuepress/demo-block.vue +++ b/docs/src/.vuepress/demo-block.vue @@ -196,8 +196,9 @@ } -