瀏覽代碼

add:新增uni-ui组件库

zlong 1 年之前
父節點
當前提交
7d2175d9ff
共有 4 個文件被更改,包括 407 次插入96 次删除
  1. 3 0
      package.json
  2. 7 0
      pages.config.ts
  3. 391 95
      pnpm-lock.yaml
  4. 6 1
      src/pages.json

+ 3 - 0
package.json

@@ -59,6 +59,7 @@
     "@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
     "@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
     "@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
+    "@dcloudio/uni-ui": "^1.5.7",
     "@vueuse/core": "^11.2.0",
     "vue": "~3.4.38",
     "vue-i18n": "^9.14.1"
@@ -92,6 +93,8 @@
     "miniprogram-api-typings": "^4.0.1",
     "postcss": "^8.4.49",
     "postcss-preset-env": "^10.1.0",
+    "sass": "^1.81.0",
+    "sass-loader": "10.1.1",
     "simple-git-hooks": "^2.11.1",
     "tailwind-extensions": "^0.22.1",
     "tailwindcss": "^3.4.15",

+ 7 - 0
pages.config.ts

@@ -1,6 +1,13 @@
 import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
 
 export default defineUniPages({
+  easycom: {
+    autoscan: true,
+    custom: {
+      // uni-ui 规则如下配置
+      '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
+    },
+  },
   pages: [],
   globalStyle: {
     backgroundColor: '@bgColor',

File diff suppressed because it is too large
+ 391 - 95
pnpm-lock.yaml


+ 6 - 1
src/pages.json

@@ -1,4 +1,10 @@
 {
+  "easycom": {
+    "autoscan": true,
+    "custom": {
+      "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
+    }
+  },
   "pages": [
     {
       "path": "pages/feed-plan/index",
@@ -27,6 +33,5 @@
     "navigationBarTitleText": "Vitesse-Uni",
     "navigationStyle": "custom"
   },
-  "__esModule": true,
   "subPackages": []
 }

Some files were not shown because too many files changed in this diff