From 6daf971d214bd294383e45f67061304a25ca03e4 Mon Sep 17 00:00:00 2001 From: starplatinum111 <5428527+starplatinum111@user.noreply.gitee.com> Date: Fri, 3 Jun 2022 21:00:34 +0800 Subject: [PATCH] =?UTF-8?q?ts=20=E7=89=88=E6=9C=AC=E4=BD=8E=20=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ package.json | 3 ++- src/hooks/useClickOutside.ts | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cfc28a5..e65f550 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,13 @@ See [Configuration Reference](https://cli.vuejs.org/config/). 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) >>>>>>> f315a55ae2b6830cb5c89555833792c82f65f946 + + +ERROR in src/views/Login.vue:28:27 +TS2305: Module '"../../node_modules/vue/dist/vue"' has no exported member 'ref'. + +更新 ts + "typescript": "~3.9.3", + + 文档:知乎 ts.note +链接:http://note.youdao.com/noteshare?id=f8897cd31427e47702274dd6e5808bf4&sub=233E67803B794F9CBE4C993679063650 \ No newline at end of file diff --git a/package.json b/package.json index 27362cf..e5a6693 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.0", "eslint-plugin-vue": "^7.0.0-0", - "typescript": "~3.9.3" + + "typescript": "~4.5.5" } } diff --git a/src/hooks/useClickOutside.ts b/src/hooks/useClickOutside.ts index 8b54f41..f6c8cd7 100644 --- a/src/hooks/useClickOutside.ts +++ b/src/hooks/useClickOutside.ts @@ -1,4 +1,5 @@ import { Ref, ref, onMounted, onUnmounted } from 'vue' +// import { ref, onMounted, onUnmounted } from 'vue' const outsideClick = (eleRef: Ref) => { const isOpen = ref(false) const handleClick = (e: MouseEvent) => { -- Gitee