mirror of
https://github.com/youzan/vant.git
synced 2025-08-29 09:30:09 +00:00
Compare commits
8 Commits
49f8ed6656
...
0555c14618
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0555c14618 | ||
![]() |
e619e77976 | ||
![]() |
f67009976f | ||
![]() |
7d7193d227 | ||
![]() |
748e01ba64 | ||
![]() |
8f55dcb69a | ||
![]() |
945154cd1c | ||
![]() |
3841749f7f |
@@ -17,9 +17,9 @@
|
||||
"*.{ts,tsx,js,vue}": "eslint --fix"
|
||||
},
|
||||
"engines": {
|
||||
"pnpm": ">= 10.13.1"
|
||||
"pnpm": ">= 10.14.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.13.1",
|
||||
"packageManager": "pnpm@10.14.0",
|
||||
"devDependencies": {
|
||||
"@vant/cli": "workspace:*",
|
||||
"@vant/eslint-config": "workspace:*",
|
||||
@@ -29,6 +29,6 @@
|
||||
"prettier": "^3.6.2"
|
||||
},
|
||||
"overrides": {
|
||||
"esbuild": "^0.25.8"
|
||||
"esbuild": "^0.25.9"
|
||||
}
|
||||
}
|
||||
|
@@ -30,13 +30,13 @@
|
||||
"dependencies": {
|
||||
"enquirer": "2.4.1",
|
||||
"fast-glob": "^3.3.3",
|
||||
"fs-extra": "^11.3.0",
|
||||
"fs-extra": "^11.3.1",
|
||||
"picocolors": "^1.1.1",
|
||||
"rslog": "^1.2.9"
|
||||
"rslog": "^1.2.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^22.16.5",
|
||||
"@types/node": "^22.17.2",
|
||||
"rimraf": "^6.0.1",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
|
@@ -37,7 +37,7 @@
|
||||
"author": "chenjiahan",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@rslib/core": "^0.10.6",
|
||||
"@rslib/core": "^0.12.1",
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@
|
||||
"author": "chenjiahan",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@rslib/core": "^0.10.6",
|
||||
"@rslib/core": "^0.12.1",
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
|
@@ -31,26 +31,26 @@
|
||||
"release": "rm -rf ./site/node_modules && vant-cli release"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.28.0",
|
||||
"@babel/core": "^7.28.3",
|
||||
"@babel/preset-typescript": "^7.27.1",
|
||||
"@rsbuild/core": "^1.4.11",
|
||||
"@rsbuild/plugin-babel": "^1.0.5",
|
||||
"@rsbuild/plugin-less": "^1.3.2",
|
||||
"@rsbuild/plugin-sass": "^1.3.3",
|
||||
"@rsbuild/plugin-vue": "^1.1.0",
|
||||
"@rsbuild/plugin-vue-jsx": "^1.1.0",
|
||||
"@rsbuild/core": "^1.4.15",
|
||||
"@rsbuild/plugin-babel": "^1.0.6",
|
||||
"@rsbuild/plugin-less": "^1.4.0",
|
||||
"@rsbuild/plugin-sass": "^1.3.5",
|
||||
"@rsbuild/plugin-vue": "^1.1.1",
|
||||
"@rsbuild/plugin-vue-jsx": "^1.1.1",
|
||||
"@vant/eslint-config": "workspace:^",
|
||||
"@vant/touch-emulator": "workspace:^",
|
||||
"@vitejs/plugin-vue": "^5.2.4",
|
||||
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
||||
"@vue/babel-plugin-jsx": "^1.4.0",
|
||||
"@vue/babel-plugin-jsx": "^1.5.0",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"commander": "^14.0.0",
|
||||
"enquirer": "2.4.1",
|
||||
"esbuild": "^0.25.8",
|
||||
"esbuild": "^0.25.9",
|
||||
"eslint": "^8.57.1",
|
||||
"fast-glob": "^3.3.3",
|
||||
"fs-extra": "^11.3.0",
|
||||
"fs-extra": "^11.3.1",
|
||||
"hash-sum": "^2.0.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"husky": "^9.1.7",
|
||||
@@ -63,7 +63,7 @@
|
||||
"postcss": "^8.5.6",
|
||||
"postcss-load-config": "^6.0.1",
|
||||
"prettier": "^3.6.2",
|
||||
"rslog": "^1.2.9",
|
||||
"rslog": "^1.2.11",
|
||||
"rspack-plugin-virtual-module": "^1.0.1",
|
||||
"terser": "^5.43.1",
|
||||
"transliteration": "^2.3.5",
|
||||
@@ -76,7 +76,7 @@
|
||||
"@types/less": "^3.0.8",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/markdown-it": "^14.1.2",
|
||||
"@types/node": "^22.16.5",
|
||||
"@types/node": "^22.17.2",
|
||||
"rimraf": "^6.0.1",
|
||||
"vue": "^3.5.18"
|
||||
},
|
||||
|
@@ -33,7 +33,7 @@
|
||||
"author": "chenjiahan",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@rslib/core": "^0.10.6",
|
||||
"@rslib/core": "^0.12.1",
|
||||
"@vue/runtime-core": "^3.5.18",
|
||||
"typescript": "^5.8.3",
|
||||
"vant": "workspace:*",
|
||||
|
@@ -37,7 +37,7 @@
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"@rslib/core": "^0.10.6",
|
||||
"@rslib/core": "^0.12.1",
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@
|
||||
"author": "chenjiahan",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@rslib/core": "^0.10.6",
|
||||
"@rslib/core": "^0.12.1",
|
||||
"typescript": "^5.8.3",
|
||||
"vue": "^3.5.18"
|
||||
},
|
||||
|
@@ -54,7 +54,7 @@
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.16.5",
|
||||
"@types/node": "^22.17.2",
|
||||
"@vant/area-data": "workspace:*",
|
||||
"@vant/cli": "workspace:*",
|
||||
"@vant/eslint-config": "workspace:*",
|
||||
|
@@ -111,7 +111,7 @@ console.log(currentLang.value); // --> 'zh-CN'
|
||||
|
||||
### 业务代码如何实现国际化?
|
||||
|
||||
可以使用 [vue-i18n](https://github.com/kazupon/vue-i18n) 来实现。
|
||||
可以使用 [vue-i18n](https://github.com/intlify/vue-i18n) 来实现。
|
||||
|
||||
### 以 CDN 形式引入时,如何使用语言包?
|
||||
|
||||
|
@@ -56,8 +56,8 @@ const onInput = (key: ValueKeys) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const maxlegnth = current.value === 'customLength' ? 4 : 6;
|
||||
const newValue = (values.value[current.value] + key).slice(0, maxlegnth);
|
||||
const maxlength = current.value === 'customLength' ? 4 : 6;
|
||||
const newValue = (values.value[current.value] + key).slice(0, maxlength);
|
||||
|
||||
values.value[current.value] = newValue;
|
||||
|
||||
|
1593
pnpm-lock.yaml
generated
1593
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user