refactor: migrate to Vant and set up auto-imports

- replace uni-ui drawer and icon components with Vant equivalents
- add unplugin-auto-import and unplugin-vue-components to Vite config
- update project dependencies to compatible versions
- generate auto-import and component type declaration files
- clean up deprecated imports and commented code in home page components
- fix App.vue to use lowercase router-view and script setup
This commit is contained in:
DEV_DSW
2026-05-27 09:43:29 +08:00
parent 9282b2a9c5
commit e2e5a750fb
8 changed files with 725 additions and 347 deletions

View File

@@ -11,12 +11,11 @@
"test": "node --test src/**/*.test.ts"
},
"dependencies": {
"@vitejs/plugin-vue": "^6.0.7",
"axios": "^1.16.1",
"mitt": "^3.0.1",
"pinia": "^3.0.3",
"vant": "^4.9.24",
"vue": "^3.4.21",
"vue": "^3.5.13",
"vue-i18n": "11.4.4",
"vue-router": "^4.5.1"
},
@@ -24,15 +23,19 @@
"@tailwindcss/vite": "^4.1.12",
"@tsconfig/node20": "^20.1.6",
"@types/node": "^22.13.14",
"@vitejs/plugin-legacy": "^8.0.2",
"@vitejs/plugin-vue-jsx": "^5.1.5",
"@vant/auto-import-resolver": "^1.3.0",
"@vitejs/plugin-legacy": "^6.0.1",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vue/tsconfig": "^0.7.0",
"concurrently": "^9.2.1",
"sass": "1.58.3",
"sass": "^1.70.0",
"tailwindcss": "^4.1.12",
"typescript": "^5.8.3",
"unplugin-auto-import": "^21.0.0",
"unplugin-vue-components": "^32.1.0",
"vconsole": "^3.15.1",
"vite": "5.2.8",
"vue-tsc": "^2.2.10"
"vite": "^6.1.1",
"vue-tsc": "^2.1.10"
}
}