diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index 8103482b..5cec4ab7 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -423,23 +423,28 @@ module.exports = { // Translation maintainers: Please include the link below to the English documentation { text: 'English', - link: 'https://v3.vuejs.org/' + link: 'https://v3.vuejs.org/', + isTranslation: true }, { text: '中文', - link: 'https://v3.cn.vuejs.org/' + link: 'https://v3.cn.vuejs.org/', + isTranslation: true }, { text: '한국어', - link: 'https://v3.ko.vuejs.org/' + link: 'https://v3.ko.vuejs.org/', + isTranslation: true }, // { - // text: '日本語', - // link: 'https://v3.ja.vuejs.org/' + // text: '日本語', + // link: 'https://v3.ja.vuejs.org/', + // isTranslation: true // }, { text: 'Русский', - link: 'https://v3.ru.vuejs.org/' + link: 'https://v3.ru.vuejs.org/ru/', + isTranslation: true }, { text: 'その他の翻訳', diff --git a/src/.vuepress/theme/components/NavLink.vue b/src/.vuepress/theme/components/NavLink.vue index 4ccd13d8..3f4754f4 100644 --- a/src/.vuepress/theme/components/NavLink.vue +++ b/src/.vuepress/theme/components/NavLink.vue @@ -22,8 +22,26 @@ diff --git a/src/.vuepress/theme/layouts/404.vue b/src/.vuepress/theme/layouts/404.vue index 2cbfa0f1..915deb1d 100644 --- a/src/.vuepress/theme/layouts/404.vue +++ b/src/.vuepress/theme/layouts/404.vue @@ -3,7 +3,13 @@

404

-
{{ getMsg() }}
+
+

Whoops! This page doesn't exist.

+
+ +

+ New pages are added to the documentation all the time. This page might not be included in all of the translations yet. +

Take me home. @@ -13,17 +19,22 @@ +``` + +ご覧のように、`evt` 引数に正しくアノテーションをつけないと、その `` 要素の値にアクセスしようとしたときに、TypeScript はエラーを出してしまいます。解決策はイベントターゲットを正しい型にキャストすることです: + +```ts +const handleChange = (evt: Event) => { + console.log((evt.target as HTMLInputElement).value) +} +```