diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..65a7d0588 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.vue diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 9588899a3..fb85f9f64 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -809,6 +809,7 @@ export default defineConfigWithTheme({ markdown: { theme: 'github-dark', config(md) { + // @ts-expect-error - broken type output in vitepress md.use(headerPlugin) // .use(textAdPlugin) } diff --git a/.vitepress/headerMdPlugin.ts b/.vitepress/headerMdPlugin.ts index d7e6c7ba4..2a0db5348 100644 --- a/.vitepress/headerMdPlugin.ts +++ b/.vitepress/headerMdPlugin.ts @@ -19,8 +19,6 @@ export interface AugmentedHeader extends Header { } export const headerPlugin = (md: MarkdownIt) => { - md.core.ruler.enable('text_join') - md.renderer.rules.heading_open = (tokens, i, options, env, self) => { for (const child of tokens[i + 1].children!) { if (child.type === 'text' && child.content.endsWith('*')) { diff --git a/.vitepress/theme/components/Home.vue b/.vitepress/theme/components/Home.vue index daa5ea72e..a7eeded71 100644 --- a/.vitepress/theme/components/Home.vue +++ b/.vitepress/theme/components/Home.vue @@ -1,5 +1,5 @@ diff --git a/src/examples/ExampleRepl.vue b/src/examples/ExampleRepl.vue index fc56e9922..4247fb4b3 100644 --- a/src/examples/ExampleRepl.vue +++ b/src/examples/ExampleRepl.vue @@ -2,15 +2,7 @@ import { Repl, useStore, useVueImportMap } from '@vue/repl' import CodeMirror from '@vue/repl/codemirror-editor' import { data } from './examples.data' -import { - inject, - watchEffect, - version, - Ref, - onMounted, - ref, - onUnmounted -} from 'vue' +import { inject, watchEffect, Ref, onMounted, ref, onUnmounted } from 'vue' import { resolveSFCExample, resolveNoBuildExample, diff --git a/src/guide/built-ins/transition.md b/src/guide/built-ins/transition.md index c22c6d5a5..8a06e3c72 100644 --- a/src/guide/built-ins/transition.md +++ b/src/guide/built-ins/transition.md @@ -324,7 +324,7 @@ Vue 需要附加事件监听器,以便知道过渡何时结束。可以是 `tr 2. 大多数的现代浏览器都可以在执行 `transform` 动画时利用 GPU 进行硬件加速。 -相比之下,像 `height` 或者 `margin` 这样的属性会触发 CSS 布局变动,因此执行它们的动画效果更昂贵,需要谨慎使用。我们可以在 [CSS-Triggers](https://csstriggers.com/) 这类的网站查询哪些属性会在执行动画时触发 CSS 布局变动。 +相比之下,像 `height` 或者 `margin` 这样的属性会触发 CSS 布局变动,因此执行它们的动画效果更昂贵,需要谨慎使用。 ## JavaScript 钩子 {#javascript-hooks} diff --git a/src/guide/components/slots.md b/src/guide/components/slots.md index 54538d0ba..32150caa0 100644 --- a/src/guide/components/slots.md +++ b/src/guide/components/slots.md @@ -443,34 +443,38 @@ function MyComponent(slots) { 如果你同时使用了具名插槽与默认插槽,则需要为默认插槽使用显式的 `