Просмотр исходного кода

fix: Vscode中wot等类型提示问题

frank 1 год назад
Родитель
Сommit
9bf391c4cf
4 измененных файлов с 333 добавлено и 444 удалено
  1. 6 8
      README.md
  2. 3 2
      package.json
  3. 317 432
      pnpm-lock.yaml
  4. 7 2
      tsconfig.json

+ 6 - 8
README.md

@@ -1,11 +1,11 @@
 <p align="center">
-  <a href="https://github.com/codercup2/unibest">
+  <a href="https://github.com/codercup/unibest">
     <img width="160" src="./src/static/logo.svg">
   </a>
 </p>
 
 <h1 align="center">
-  <a href="https://github.com/codercup2/unibest" target="_blank">unibest - 最好的 uniapp 开发框架</a>
+  <a href="https://github.com/codercup/unibest" target="_blank">unibest - 最好的 uniapp 开发框架</a>
 </h1>
 
 <div align="center">
@@ -28,19 +28,17 @@
 ![](https://raw.githubusercontent.com/andreasbm/readme/master/screenshots/lines/rainbow.png)
 
 <p align="center">
-  <a href="https://codercup2.github.io/unibest-docs/" target="_blank">📖 文档地址</a>
+  <a href="https://codercup.github.io/unibest-docs/" target="_blank">📖 文档地址</a>
   <span style="margin:0 10px;">|</span>
-  <a href="https://codercup2.github.io/hello-unibest/" target="_blank">📱 DEMO 地址</a>
+  <a href="https://codercup.github.io/hello-unibest/" target="_blank">📱 DEMO 地址</a>
 </p>
 
----
-
-注意旧的地址 [codercup](https://github.com/codercup/unibest) 我进不去了,使用新的 [codercup2](https://github.com/codercup2/unibest)。PR和 issue 也请使用新地址,否则无法合并。
-
 ## ⚙️ 环境
 
 - node>=18
 - pnpm>=7.30
+- Vue Official<=2.1.6
+- TypeScript<=5.5.4
 
 ## &#x1F4C2; 快速开始
 

+ 3 - 2
package.json

@@ -93,7 +93,7 @@
     "pinia-plugin-persistedstate": "3.2.1",
     "qs": "6.5.3",
     "vue": "3.4.21",
-    "wot-design-uni": "^1.3.9",
+    "wot-design-uni": "^1.3.10",
     "z-paging": "^2.7.10"
   },
   "devDependencies": {
@@ -112,6 +112,7 @@
     "@types/wechat-miniprogram": "^3.4.7",
     "@typescript-eslint/eslint-plugin": "^6.21.0",
     "@typescript-eslint/parser": "^6.21.0",
+    "@uni-helper/uni-types": "1.0.0-alpha.3",
     "@uni-helper/vite-plugin-uni-layouts": "^0.1.10",
     "@uni-helper/vite-plugin-uni-manifest": "^0.2.6",
     "@uni-helper/vite-plugin-uni-pages": "0.2.20",
@@ -144,7 +145,7 @@
     "stylelint-config-recommended-vue": "^1.5.0",
     "stylelint-prettier": "^5.0.0",
     "terser": "^5.31.1",
-    "typescript": "^4.9.5",
+    "typescript": "^5.5.4",
     "unocss": "^0.58.9",
     "unocss-applet": "^0.7.8",
     "unplugin-auto-import": "^0.17.6",

Разница между файлами не показана из-за своего большого размера
+ 317 - 432
pnpm-lock.yaml


+ 7 - 2
tsconfig.json

@@ -15,11 +15,16 @@
     },
     "outDir": "dist",
     "lib": ["esnext", "dom"],
-    "types": ["@dcloudio/types", "@types/wechat-miniprogram", "wot-design-uni/global.d.ts"]
+    "types": [
+      "@dcloudio/types",
+      "@uni-helper/uni-types",
+      "@types/wechat-miniprogram",
+      "wot-design-uni/global.d.ts"
+    ]
   },
   "vueCompilerOptions": {
     "target": 3,
-    "nativeTags": ["block", "template", "component", "slot"]
+    "plugins": ["@uni-helper/uni-types/volar-plugin"]
   },
   "exclude": ["node_modules"],
   "include": [