From 9bb7e726adb04692f5603d53c21573f91a8bf570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Mon, 29 Jan 2024 20:29:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20i18n=20$t=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/i18n.d.ts diff --git a/src/i18n.d.ts b/src/i18n.d.ts new file mode 100644 index 0000000..e050b53 --- /dev/null +++ b/src/i18n.d.ts @@ -0,0 +1,9 @@ +/* eslint-disable no-unused-vars */ +export {} + +declare module 'vue' { + interface ComponentCustomProperties { + $t: (key: string) => string + $tm: (key: string) => [] | { [p: string]: any } + } +}