Pārlūkot izejas kodu

feat:增加 wot 集成,参考 https://unibest.tech/base/7-ui#%E5%8D%B8%E8%BD%BD-wot-ui-%E5%BA%93 文档

YunaiV 4 mēneši atpakaļ
vecāks
revīzija
abad67d5d0
4 mainītis faili ar 16 papildinājumiem un 0 dzēšanām
  1. 1 0
      package.json
  2. 1 0
      pages.config.ts
  3. 13 0
      pnpm-lock.yaml
  4. 1 0
      tsconfig.json

+ 1 - 0
package.json

@@ -123,6 +123,7 @@
     "vue": "^3.4.21",
     "vue-i18n": "9.1.9",
     "vue-router": "4.5.1",
+    "wot-design-uni": "^1.13.0",
     "z-paging": "2.8.7"
   },
   "devDependencies": {

+ 1 - 0
pages.config.ts

@@ -15,6 +15,7 @@ export default defineUniPages({
       '^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
       '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
         'z-paging/components/z-paging$1/z-paging$1.vue',
+      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
     },
   },
   // tabbar 的配置统一在 “./src/tabbar/config.ts” 文件中

+ 13 - 0
pnpm-lock.yaml

@@ -90,6 +90,9 @@ importers:
       vue-router:
         specifier: 4.5.1
         version: 4.5.1(vue@3.4.21(typescript@5.8.3))
+      wot-design-uni:
+        specifier: ^1.13.0
+        version: 1.13.0(vue@3.4.21(typescript@5.8.3))
       z-paging:
         specifier: 2.8.7
         version: 2.8.7
@@ -6142,6 +6145,12 @@ packages:
     resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
     engines: {node: '>=0.10.0'}
 
+  wot-design-uni@1.13.0:
+    resolution: {integrity: sha512-U4ezX7n1DfSuecTvHap06UqkN7dGhSLyC5n7OfmddajYSiV6t39bPLtRIds6uTarmRZCEWERrLN8cGSdZJIHWg==}
+    engines: {HBuilderX: ^3.8.7}
+    peerDependencies:
+      vue: '>=3.2.47'
+
   wrap-ansi@7.0.0:
     resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
     engines: {node: '>=10'}
@@ -13873,6 +13882,10 @@ snapshots:
 
   word-wrap@1.2.5: {}
 
+  wot-design-uni@1.13.0(vue@3.4.21(typescript@5.8.3)):
+    dependencies:
+      vue: 3.4.21(typescript@5.8.3)
+
   wrap-ansi@7.0.0:
     dependencies:
       ansi-styles: 4.3.0

+ 1 - 0
tsconfig.json

@@ -15,6 +15,7 @@
       "@uni-helper/uni-types",
       "@uni-helper/vite-plugin-uni-pages",
       "miniprogram-api-typings",
+      "wot-design-uni/global.d.ts",
       "z-paging/types",
       "./src/types/async-component.d.ts",
       "./src/types/async-import.d.ts",