feat: 添加 Vant 组件库支持,优化 toast 消息显示逻辑

This commit is contained in:
2026-01-22 17:47:15 +07:00
parent b8ac4bf1f2
commit 78c413a914
8 changed files with 82 additions and 54 deletions

43
pnpm-lock.yaml generated
View File

@@ -114,6 +114,9 @@ catalogs:
'@types/node':
specifier: ^24.10.2
version: 24.10.9
'@vant/auto-import-resolver':
specifier: ^1.3.0
version: 1.3.0
'@vee-validate/zod':
specifier: ^4.15.1
version: 4.15.1
@@ -216,6 +219,9 @@ catalogs:
unplugin-vue-components:
specifier: ^30.0.0
version: 30.0.0
vant:
specifier: ^4.9.22
version: 4.9.22
vconsole:
specifier: ^3.15.1
version: 3.15.1
@@ -365,6 +371,9 @@ importers:
tailwindcss:
specifier: 'catalog:'
version: 4.1.18
vant:
specifier: 'catalog:'
version: 4.9.22(vue@3.5.26(typescript@5.9.3))
vconsole:
specifier: 'catalog:'
version: 3.15.1
@@ -435,6 +444,9 @@ importers:
'@types/node':
specifier: 'catalog:'
version: 24.10.9
'@vant/auto-import-resolver':
specifier: 'catalog:'
version: 1.3.0
'@vitejs/plugin-legacy':
specifier: 'catalog:'
version: 7.2.1(terser@5.46.0)(vite@7.3.1(@types/node@24.10.9)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0)(yaml@2.8.2))
@@ -2476,6 +2488,17 @@ packages:
resolution: {integrity: sha512-LZ2NqIHFhvFwxG0qZeLL9DvdNAHPGCY5dIRwBhyYeU+LfLhcStE1ImjsuTG/WaVh3XysGaeLW8Rqq7cGkPCFvw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@vant/auto-import-resolver@1.3.0':
resolution: {integrity: sha512-lJyWtCyFizR4bHZvMiNMF3w+WTFTUWAvka1eqTnPK9ticUcKTCOx6qEmHcm8JPb3g1t3GaD2W3MnHkBp/nHamw==}
'@vant/popperjs@1.3.0':
resolution: {integrity: sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==}
'@vant/use@1.6.0':
resolution: {integrity: sha512-PHHxeAASgiOpSmMjceweIrv2AxDZIkWXyaczksMoWvKV2YAYEhoizRuk/xFnKF+emUIi46TsQ+rvlm/t2BBCfA==}
peerDependencies:
vue: ^3.0.0
'@vee-validate/zod@4.15.1':
resolution: {integrity: sha512-329Z4TDBE5Vx0FdbA8S4eR9iGCFFUNGbxjpQ20ff5b5wGueScjocUIx9JHPa79LTG06RnlUR4XogQsjN4tecKA==}
peerDependencies:
@@ -5709,6 +5732,11 @@ packages:
utrie@1.0.2:
resolution: {integrity: sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==}
vant@4.9.22:
resolution: {integrity: sha512-P2PDSj3oB6l3W1OpVlQpapeLmI6bXMSvPqPdrw5rutslC0Y6tSkrVB/iSD57weD7K92GsjGkvgDK0eZlOsXGqw==}
peerDependencies:
vue: ^3.0.0
vconsole@3.15.1:
resolution: {integrity: sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==}
@@ -8060,6 +8088,14 @@ snapshots:
'@typescript-eslint/types': 8.53.0
eslint-visitor-keys: 4.2.1
'@vant/auto-import-resolver@1.3.0': {}
'@vant/popperjs@1.3.0': {}
'@vant/use@1.6.0(vue@3.5.26(typescript@5.9.3))':
dependencies:
vue: 3.5.26(typescript@5.9.3)
'@vee-validate/zod@4.15.1(vue@3.5.26(typescript@5.9.3))(zod@3.25.76)':
dependencies:
type-fest: 4.41.0
@@ -11668,6 +11704,13 @@ snapshots:
dependencies:
base64-arraybuffer: 1.0.2
vant@4.9.22(vue@3.5.26(typescript@5.9.3)):
dependencies:
'@vant/popperjs': 1.3.0
'@vant/use': 1.6.0(vue@3.5.26(typescript@5.9.3))
'@vue/shared': 3.5.26
vue: 3.5.26(typescript@5.9.3)
vconsole@3.15.1:
dependencies:
'@babel/runtime': 7.28.6