Compare commits

...

9 Commits

Author SHA1 Message Date
neverland
af2d52f359 docs: add maintenance status table (#11315) 2022-11-26 22:51:11 +08:00
chenjiahan
c8270a1059 docs: fix publicPath 2022-11-26 22:15:38 +08:00
chenjiahan
b4339fd6f0 chore: adjust site target-folder 2022-11-26 22:13:37 +08:00
neverland
3012e7c705
docs(changelog): vant@3.6.8 (#11314) 2022-11-26 22:11:42 +08:00
chenjiahan
e9203517ee release: 3.6.8 2022-11-26 22:09:47 +08:00
chenjiahan
73469bf240 chore: fix release npm tag 2022-11-26 22:08:29 +08:00
chenjiahan
4713238b00 release: 3.6.7 2022-11-26 22:05:48 +08:00
neverland
11cc1a4932
chore: switch vant@3 npm tag to latest-v3 (#11313)
* chore: switch vant@3 npm tag to latest-v3

* chore: adjust deploy site
2022-11-26 22:04:46 +08:00
neverland
521748a5f8 fix(Field): keep selection position after updating value (#11308) 2022-11-26 20:18:16 +08:00
10 changed files with 64 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -41,7 +41,7 @@ Vant 是一个**轻量、可靠的移动端组件库**,于 2017 年开源。
- 🍭 支持主题定制,内置 700+ 个主题变量
- 🍭 支持按需引入和 Tree Shaking
- 🍭 支持无障碍访问(持续改进中)
- 🍭 支持深色模式(从 [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/zh-CN/config-provider) 开始支持)
- 🍭 支持深色模式
- 🍭 支持服务器端渲染
- 🌍 支持国际化,内置 20+ 种语言包

View File

@ -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`

View File

@ -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`

View File

@ -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` | ![](https://img.shields.io/npm/v/vant/latest?style=flat-square) | Under active development |
| Vant 3 | Vue 3 | `2020.12` | ![](https://img.shields.io/npm/v/vant/latest-v3?style=flat-square) | Bugfix only |
| Vant 2 | Vue 2 | `2019.06` | ![](https://img.shields.io/npm/v/vant/latest-v2?style=flat-square) | Bugfix only |
| Vant 1 | Vue 2 | `2018.03` | ![](https://img.shields.io/npm/v/vant/latest-v1?style=flat-square) | End of life |
## Links
### Official Ecosystem

View File

@ -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` | ![](https://img.shields.io/npm/v/vant/latest?style=flat-square) | 持续迭代新功能 |
| Vant 3 | Vue 3 | `2020.12` | ![](https://img.shields.io/npm/v/vant/latest-v3?style=flat-square) | 停止迭代新功能bug 会被处理和修复 |
| Vant 2 | Vue 2 | `2019.06` | ![](https://img.shields.io/npm/v/vant/latest-v2?style=flat-square) | 停止迭代新功能,重要 bug 会被处理和修复 |
| Vant 1 | Vue 2 | `2018.03` | ![](https://img.shields.io/npm/v/vant/latest-v1?style=flat-square) | 停止维护,不再接受 PR |
## 链接
### 官方生态

View File

@ -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"

View File

@ -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) {

View File

@ -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: {