From f5d654c7ddd8527fd9a0bf31134fe5d8d107388f Mon Sep 17 00:00:00 2001 From: Zhao Bin <413853119@qq.com> Date: Fri, 9 Aug 2024 17:12:29 +0800 Subject: [PATCH] =?UTF-8?q?docs(ts):=20=E6=8A=84=E5=86=99=20TypeScript=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=AB=A0=E8=8A=82=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .markdownlint.json | 1 + docs/.vuepress/theme.ts | 4 + .../theme/components/hanzi/Hanzi.vue | 2 +- .../theme/components/hanzi/Hanzi2.vue | 2 +- .../theme/components/twoslash/style.css | 4 + docs/notes/frontend/ts/README.md | 2 + docs/notes/frontend/ts/handbook/README.md | 20 + docs/notes/frontend/ts/handbook/types.md | 630 ++++++++++++++++++ .../vue/vue3/typescript/composition-api.md | 26 +- 9 files changed, 676 insertions(+), 15 deletions(-) create mode 100644 docs/notes/frontend/ts/handbook/README.md create mode 100644 docs/notes/frontend/ts/handbook/types.md diff --git a/.markdownlint.json b/.markdownlint.json index 2348c33..c9c0e81 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -10,6 +10,7 @@ "img", "sup", "em", + "mark", "Badge", "script", "IconDisplay", diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts index 6d4b4f4..7b97700 100644 --- a/docs/.vuepress/theme.ts +++ b/docs/.vuepress/theme.ts @@ -210,6 +210,10 @@ export const themeOptions: ThemeOptions = { }, transformers: [transformerTwoslash()], }, + + copyCode: { + ignoreSelector: ['.vp-copy-ignore'], + }, }, } diff --git a/docs/.vuepress/theme/components/hanzi/Hanzi.vue b/docs/.vuepress/theme/components/hanzi/Hanzi.vue index aef7770..2b997d3 100644 --- a/docs/.vuepress/theme/components/hanzi/Hanzi.vue +++ b/docs/.vuepress/theme/components/hanzi/Hanzi.vue @@ -207,7 +207,7 @@ function handleRead() {
-
+
diff --git a/docs/.vuepress/theme/components/hanzi/Hanzi2.vue b/docs/.vuepress/theme/components/hanzi/Hanzi2.vue index d4551a6..cd1fce4 100644 --- a/docs/.vuepress/theme/components/hanzi/Hanzi2.vue +++ b/docs/.vuepress/theme/components/hanzi/Hanzi2.vue @@ -200,7 +200,7 @@ function handleRead() { :height="32" />
-
+