mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-06 03:58:03 +08:00
fix: 解决无模块 'uview-plus' 问题,并扩展 uni.$u 类型支持
This commit is contained in:
parent
03bc0d8b22
commit
0a0f4cea13
9
src/types/uviewPlus.d.ts
vendored
Normal file
9
src/types/uviewPlus.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// 解决 无法找到模块 'uview-plus' 的声明文件,参考:https://blog.csdn.net/qq1014156094/article/details/107316969
|
||||||
|
declare module 'uview-plus';
|
||||||
|
|
||||||
|
// 为 UniApp.Uni 扩展 $u 属性
|
||||||
|
declare namespace UniNamespace {
|
||||||
|
export interface UniInterface {
|
||||||
|
$u?: any;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user