From 4c968a7eb1d0d7fc3801a6432dc9787f8b937764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Sat, 4 May 2024 15:22:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=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/types/i18n.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/types/i18n.d.ts diff --git a/src/types/i18n.d.ts b/src/types/i18n.d.ts new file mode 100644 index 0000000..43fb8aa --- /dev/null +++ b/src/types/i18n.d.ts @@ -0,0 +1,8 @@ +export {} + +declare module 'vue' { + interface ComponentCustomProperties { + $t: (key: string, opt?: Record) => string + $tm: (key: string, opt?: Record) => [] | { [p: string]: any } + } +}