mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-08 23:41:06 +08:00
Compare commits
9 Commits
41cf5706fd
...
af2d52f359
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af2d52f359 | ||
|
|
c8270a1059 | ||
|
|
b4339fd6f0 | ||
|
|
3012e7c705 | ||
|
|
e9203517ee | ||
|
|
73469bf240 | ||
|
|
4713238b00 | ||
|
|
11cc1a4932 | ||
|
|
521748a5f8 |
5
.github/workflows/deploy-v3-site.yml
vendored
5
.github/workflows/deploy-v3-site.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: packages/vant/site-dist
|
||||
clean: false
|
||||
target-folder: v3
|
||||
|
||||
- name: Deploy for GitHub 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4.4.0
|
||||
@ -45,5 +45,4 @@ jobs:
|
||||
folder: packages/vant/site-dist
|
||||
token: ${{ secrets.VANT_UI_TOKEN }}
|
||||
repository-name: vant-ui/vant-ui.github.io
|
||||
target-folder: vant
|
||||
clean: false
|
||||
target-folder: vant/v3
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
- 🍭 Support Tree Shaking
|
||||
- 🍭 Support Custom Theme
|
||||
- 🍭 Support Accessibility (still improving)
|
||||
- 🍭 Support Dark Mode (Requires upgrade to [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/en-US/config-provider))
|
||||
- 🍭 Support Dark Mode
|
||||
- 🍭 Support SSR
|
||||
- 🌍 Support i18n, built-in 20+ languages
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源。
|
||||
- 🍭 支持主题定制,内置 700+ 个主题变量
|
||||
- 🍭 支持按需引入和 Tree Shaking
|
||||
- 🍭 支持无障碍访问(持续改进中)
|
||||
- 🍭 支持深色模式(从 [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/zh-CN/config-provider) 开始支持)
|
||||
- 🍭 支持深色模式
|
||||
- 🍭 支持服务器端渲染
|
||||
- 🌍 支持国际化,内置 20+ 种语言包
|
||||
|
||||
|
||||
@ -19,6 +19,20 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
## Details
|
||||
|
||||
### [v3.6.8](https://github.com/vant-ui/vant/compare/v3.6.7...v3.6.8)
|
||||
|
||||
`2022-11-26`
|
||||
|
||||
- Switch npm tag of vant@3 to `latest-v3`
|
||||
|
||||
### [v3.6.7](https://github.com/vant-ui/vant/compare/v3.6.6...v3.6.7)
|
||||
|
||||
`2022-11-26`
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Field: keep selection position after updating value [#11308](https://github.com/vant-ui/vant/issues/11308)
|
||||
|
||||
### [v3.6.6](https://github.com/vant-ui/vant/compare/v3.6.5...v3.6.6)
|
||||
|
||||
`2022-11-23`
|
||||
|
||||
@ -19,6 +19,20 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
## 更新内容
|
||||
|
||||
### [v3.6.8](https://github.com/vant-ui/vant/compare/v3.6.7...v3.6.8)
|
||||
|
||||
`2022-11-26`
|
||||
|
||||
- 将 vant@3 的 npm tag 切换至 `latest-v3`
|
||||
|
||||
### [v3.6.7](https://github.com/vant-ui/vant/compare/v3.6.6...v3.6.7)
|
||||
|
||||
`2022-11-26`
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Field: keep selection position after updating value [#11308](https://github.com/vant-ui/vant/issues/11308)
|
||||
|
||||
### [v3.6.6](https://github.com/vant-ui/vant/compare/v3.6.5...v3.6.6)
|
||||
|
||||
`2022-11-23`
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
- 🍭 Support Tree Shaking
|
||||
- 🍭 Support Custom Theme
|
||||
- 🍭 Support Accessibility (still improving)
|
||||
- 🍭 Support Dark Mode (Requires upgrade to [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/en-US/config-provider))
|
||||
- 🍭 Support Dark Mode
|
||||
- 🍭 Support SSR
|
||||
- 🌍 Support i18n, built-in 20+ languages
|
||||
|
||||
@ -33,6 +33,17 @@ Vant 2 supports modern browsers and Android >= 4.0、iOS >= 8.0.
|
||||
|
||||
Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
|
||||
|
||||
### Maintenance Status
|
||||
|
||||
The current maintenance status of each version of Vant is as follows:
|
||||
|
||||
| Name | Framework | Release | Latest Version | Status |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| Vant 4 | Vue 3 | `2022.11` |  | Under active development |
|
||||
| Vant 3 | Vue 3 | `2020.12` |  | Bugfix only |
|
||||
| Vant 2 | Vue 2 | `2019.06` |  | Bugfix only |
|
||||
| Vant 1 | Vue 2 | `2018.03` |  | End of life |
|
||||
|
||||
## Links
|
||||
|
||||
### Official Ecosystem
|
||||
|
||||
@ -25,7 +25,7 @@ Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源。
|
||||
- 🍭 支持主题定制,内置 700+ 个主题变量
|
||||
- 🍭 支持按需引入和 Tree Shaking
|
||||
- 🍭 支持无障碍访问(持续改进中)
|
||||
- 🍭 支持深色模式(从 [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/zh-CN/config-provider) 开始支持)
|
||||
- 🍭 支持深色模式
|
||||
- 🍭 支持服务器端渲染
|
||||
- 🌍 支持国际化,内置 20+ 种语言包
|
||||
|
||||
@ -43,6 +43,17 @@ Vant 2 支持现代浏览器以及 Android >= 4.0、iOS >= 8.0。
|
||||
|
||||
Vant 3/4 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致)。
|
||||
|
||||
### 维护状态
|
||||
|
||||
目前 Vant 各个版本的维护状态如下:
|
||||
|
||||
| 名称 | 框架 | 发布时间 | 最新版 | 维护状态 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| Vant 4 | Vue 3 | `2022.11` |  | 持续迭代新功能 |
|
||||
| Vant 3 | Vue 3 | `2020.12` |  | 停止迭代新功能,bug 会被处理和修复 |
|
||||
| Vant 2 | Vue 2 | `2019.06` |  | 停止迭代新功能,重要 bug 会被处理和修复 |
|
||||
| Vant 1 | Vue 2 | `2018.03` |  | 停止维护,不再接受 PR |
|
||||
|
||||
## 链接
|
||||
|
||||
### 官方生态
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vant",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.8",
|
||||
"description": "Lightweight Mobile UI Components built on Vue",
|
||||
"main": "lib/vant.cjs.js",
|
||||
"module": "es/index.mjs",
|
||||
@ -12,13 +12,16 @@
|
||||
"es",
|
||||
"lib"
|
||||
],
|
||||
"npm": {
|
||||
"tag": "latest-v3"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vant-cli dev",
|
||||
"lint": "vant-cli lint",
|
||||
"test": "vant-cli test",
|
||||
"build": "vant-cli build",
|
||||
"build:site": "vant-cli build-site",
|
||||
"release": "cp ../../README.md ./ && vant-cli release && rm ./README.md",
|
||||
"release": "cp ../../README.md ./ && vant-cli release --tag latest-v3 && rm ./README.md",
|
||||
"release:site": "pnpm build:site && npx gh-pages -d site-dist --add",
|
||||
"test:watch": "vant-cli test --watch",
|
||||
"test:coverage": "open test/coverage/index.html"
|
||||
|
||||
@ -303,7 +303,9 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (inputRef.value && inputRef.value.value !== value) {
|
||||
const { selectionStart, selectionEnd } = inputRef.value;
|
||||
inputRef.value.value = value;
|
||||
inputRef.value.setSelectionRange(selectionStart, selectionEnd);
|
||||
}
|
||||
|
||||
if (value !== props.modelValue) {
|
||||
|
||||
@ -11,7 +11,7 @@ export default {
|
||||
},
|
||||
site: {
|
||||
publicPath:
|
||||
(typeof window === 'undefined' && process.env.PUBLIC_PATH) || '/vant/',
|
||||
(typeof window === 'undefined' && process.env.PUBLIC_PATH) || '/vant/v3/',
|
||||
},
|
||||
},
|
||||
site: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user