From e617945894a85740bf55c1dde774e9b32515edcb Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 2 May 2024 20:54:46 +0800 Subject: [PATCH] docs(changelog): vant@4.9.0 (#12849) --- .../vant/docs/markdown/changelog.en-US.md | 41 +++++++++++++++++++ .../vant/docs/markdown/changelog.zh-CN.md | 41 +++++++++++++++++++ packages/vant/src/calendar/README.md | 2 +- packages/vant/src/calendar/README.zh-CN.md | 2 +- 4 files changed, 84 insertions(+), 2 deletions(-) diff --git a/packages/vant/docs/markdown/changelog.en-US.md b/packages/vant/docs/markdown/changelog.en-US.md index 879c91bc55f..e9118945dfb 100644 --- a/packages/vant/docs/markdown/changelog.en-US.md +++ b/packages/vant/docs/markdown/changelog.en-US.md @@ -19,6 +19,47 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/). ## Details +### v4.9.0 + +`2024-05-02` + +#### New Features 🎉 + +- feat(Calendar): add switch-mode prop by [@inottn](https://github.com/inottn) in [#12836](https://github.com/youzan/vant/pull/12836) +- feat(PickerGroup): add new prop showToolbar by [@ReinoFu](https://github.com/ReinoFu) in [#12839](https://github.com/youzan/vant/pull/12839) +- feat(CLI): support for configuring Rsbuild by [@chenjiahan](https://github.com/chenjiahan) in [#12809](https://github.com/youzan/vant/pull/12809) + +#### Bug Fixes 🐞 + +- fix(cli): Vue SFC style binding failure by [@zoy-l](https://github.com/zoy-l) in [#12799](https://github.com/youzan/vant/pull/12799) +- fix(ImagePreview): swipeItem may be undefined by [@inottn](https://github.com/inottn) in [#12818](https://github.com/youzan/vant/pull/12818) +- fix(Highlight): render correctly when keywords is empty by [@Jungzl](https://github.com/Jungzl) in [#12829](https://github.com/youzan/vant/pull/12829) +- fix(IndexBar): render active anchor correctly when passing sticky & stickyOffsetTop by [@Jungzl](https://github.com/Jungzl) in [#12837](https://github.com/youzan/vant/pull/12837) + +#### Document 📖 + +- docs: remove all Gitee links by [@chenjiahan](https://github.com/chenjiahan) in [#12845](https://github.com/youzan/vant/pull/12845) +- docs: remove gzip size badge by [@chenjiahan](https://github.com/chenjiahan) in [#12847](https://github.com/youzan/vant/pull/12847) +- docs: fix Rsbuild HTML build failed by [@chenjiahan](https://github.com/chenjiahan) in [#12848](https://github.com/youzan/vant/pull/12848) + +#### Other Changes + +- chore(deps): update dependency terser to ^5.30.3 by [@renovate](https://github.com/renovate) in [#12795](https://github.com/youzan/vant/pull/12795) +- chore(deps): update dependency eslint-plugin-vue to ^9.25.0 by [@renovate](https://github.com/renovate) in [#12794](https://github.com/youzan/vant/pull/12794) +- chore(deps): update all patch dependencies by [@renovate](https://github.com/renovate) in [#12773](https://github.com/youzan/vant/pull/12773) +- chore(workflow): upgrade to pnpm v9 by [@chenjiahan](https://github.com/chenjiahan) in [#12808](https://github.com/youzan/vant/pull/12808) +- chore: bump github-pages-deploy-action[@v4](https://github.com/v4).6.0 by @chenjiahan in [#12810](https://github.com/youzan/vant/pull/12810) +- chore(deps): update dependency [@vitejs](https://github.com/vitejs)/plugin-vue to v5 by @renovate in [#12840](https://github.com/youzan/vant/pull/12840) +- chore(deps): update dependency commander to v12 by [@renovate](https://github.com/renovate) in [#12841](https://github.com/youzan/vant/pull/12841) +- chore(deps): update actions/setup-node action to v4 by [@renovate](https://github.com/renovate) in [#12814](https://github.com/youzan/vant/pull/12814) +- chore(deps): update github/issue-labeler action to v3.4 by [@renovate](https://github.com/renovate) in [#12813](https://github.com/youzan/vant/pull/12813) +- chore(deps): update codecov/codecov-action action to v4 by [@renovate](https://github.com/renovate) in [#12815](https://github.com/youzan/vant/pull/12815) +- chore(deps): update all patch dependencies by [@renovate](https://github.com/renovate) in [#12812](https://github.com/youzan/vant/pull/12812) + +#### New Contributors + +- [@ReinoFu](https://github.com/ReinoFu) made their first contribution in [#12839](https://github.com/youzan/vant/pull/12839) + ### v4.8.11 `2024-04-14` diff --git a/packages/vant/docs/markdown/changelog.zh-CN.md b/packages/vant/docs/markdown/changelog.zh-CN.md index 3f4a77cb52a..e6f2ddd66e8 100644 --- a/packages/vant/docs/markdown/changelog.zh-CN.md +++ b/packages/vant/docs/markdown/changelog.zh-CN.md @@ -19,6 +19,47 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。 ## 更新内容 +### v4.9.0 + +`2024-05-02` + +#### 新功能 🎉 + +- feat(Calendar):添加 switch-mode 属性,由[@inottn](https://github.com/inottn) 贡献,在[#12836](https://github.com/youzan/vant/pull/12836) +- feat(PickerGroup):添加新属性 showToolbar,由[@ReinoFu](https://github.com/ReinoFu) 贡献,在[#12839](https://github.com/youzan/vant/pull/12839) +- feat(CLI):支持配置 Rsbuild,由[@chenjiahan](https://github.com/chenjiahan) 贡献,在[#12809](https://github.com/youzan/vant/pull/12809) + +#### Bug 修复 🐞 + +- fix(cli):修复 Vue SFC 样式绑定失败,由[@zoy-l](https://github.com/zoy-l) 贡献,在[#12799](https://github.com/youzan/vant/pull/12799) +- fix(ImagePreview):修复 swipeItem 可能为 undefined,由[@inottn](https://github.com/inottn) 贡献,在[#12818](https://github.com/youzan/vant/pull/12818) +- fix(Highlight):当 keywords 为空时正确渲染,由[@Jungzl](https://github.com/Jungzl) 贡献,在[#12829](https://github.com/youzan/vant/pull/12829) +- fix(IndexBar):当传入 sticky & stickyOffsetTop 时正确渲染激活锚点,由[@Jungzl](https://github.com/Jungzl) 贡献,在[#12837](https://github.com/youzan/vant/pull/12837) + +#### 文档 📖 + +- docs: 移除所有 Gitee 链接,由[@chenjiahan](https://github.com/chenjiahan) 贡献,在[#12845](https://github.com/youzan/vant/pull/12845) +- docs: 移除 gzip 大小徽章,由[@chenjiahan](https://github.com/chenjiahan) 贡献,在[#12847](https://github.com/youzan/vant/pull/12847) +- docs: 修复 Rsbuild HTML 构建失败,由[@chenjiahan](https://github.com/chenjiahan) 贡献,在[#12848](https://github.com/youzan/vant/pull/12848) + +#### 其他更改 + +- chore(deps):升级依赖 terser 至 ^5.30.3,由[@renovate](https://github.com/renovate) 贡献,在[#12795](https://github.com/youzan/vant/pull/12795) +- chore(deps):升级依赖 eslint-plugin-vue 至 ^9.25.0,由[@renovate](https://github.com/renovate) 贡献,在[#12794](https://github.com/youzan/vant/pull/12794) +- chore(deps):更新所有补丁依赖,由[@renovate](https://github.com/renovate) 贡献,在[#12773](https://github.com/youzan/vant/pull/12773) +- chore(workflow):升级至 pnpm v9,由[@chenjiahan](https://github.com/chenjiahan) 贡献,在[#12808](https://github.com/youzan/vant/pull/12808) +- chore:推送 github-pages-deploy-action[@v4](https://github.com/v4).6.0,由 @chenjiahan 贡献,在[#12810](https://github.com/youzan/vant/pull/12810) +- chore(deps):升级依赖 [@vitejs](https://github.com/vitejs)/plugin-vue 至 v5,由 @renovate 贡献,在[#12840](https://github.com/youzan/vant/pull/12840) +- chore(deps):升级依赖 commander 至 v12,由[@renovate](https://github.com/renovate) 贡献,在[#12841](https://github.com/youzan/vant/pull/12841) +- chore(deps):更新 actions/setup-node 行为至 v4,由[@renovate](https://github.com/renovate) 贡献,在[#12814](https://github.com/youzan/vant/pull/12814) +- chore(deps):更新 github/issue-labeler 行为至 v3.4,由[@renovate](https://github.com/renovate) 贡献,在[#12813](https://github.com/youzan/vant/pull/12813) +- chore(deps):更新 codecov/codecov-action 行为至 v4,由[@renovate](https://github.com/renovate) 贡献,在[#12815](https://github.com/youzan/vant/pull/12815) +- chore(deps):更新所有补丁依赖,由[@renovate](https://github.com/renovate) 贡献,在[#12812](https://github.com/youzan/vant/pull/12812) + +#### 新贡献者 + +- [@ReinoFu](https://github.com/ReinoFu) 在[#12839](https://github.com/youzan/vant/pull/12839) 中首次贡献 + ### v4.8.11 `2024-04-14` diff --git a/packages/vant/src/calendar/README.md b/packages/vant/src/calendar/README.md index 0509b03b8bc..b1fdbd4af79 100644 --- a/packages/vant/src/calendar/README.md +++ b/packages/vant/src/calendar/README.md @@ -258,7 +258,7 @@ Set `poppable` to `false`, the calendar will be displayed directly on the page i | Attribute | Description | Type | Default | | --- | --- | --- | --- | | type | Type, can be set to `range` `multiple` | _string_ | `single` | -| switch-mode | Switch mode:
`none` Display all months in a tiled format without switch buttons
`month` Support switching by month, displaying buttons for previous month/next month
`year-month` Support switching by year, as well as by month, displaying buttons for previous year/next year and previous month/next month | _string_ | `none` | +| switch-mode `v4.9.0` | Switch mode:
`none` Display all months in a tiled format without switch buttons
`month` Support switching by month, displaying buttons for previous month/next month
`year-month` Support switching by year, as well as by month, displaying buttons for previous year/next year and previous month/next month | _string_ | `none` | | title | Title of calendar | _string_ | `Calendar` | | color | Color for the bottom button and selected date | _string_ | `#1989fa` | | min-date | Min date | _Date_ | When `switch-mode` is set to `none`, the default value is the today | diff --git a/packages/vant/src/calendar/README.zh-CN.md b/packages/vant/src/calendar/README.zh-CN.md index 3ecf17fab0a..b3435df46fa 100644 --- a/packages/vant/src/calendar/README.zh-CN.md +++ b/packages/vant/src/calendar/README.zh-CN.md @@ -262,7 +262,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | type | 选择类型:
`single` 表示选择单个日期,
`multiple` 表示选择多个日期,
`range` 表示选择日期区间 | _string_ | `single` | -| switch-mode | 切换模式:
`none` 平铺展示所有月份,不展示切换按钮,
`month` 支持按月切换,展示上个月/下个月按钮,
`year-month` 支持按年切换,也支持按月切换,展示上一年/下一年,上个月/下个月按钮 | _string_ | `none` | +| switch-mode `v4.9.0` | 切换模式:
`none` 平铺展示所有月份,不展示切换按钮,
`month` 支持按月切换,展示上个月/下个月按钮,
`year-month` 支持按年切换,也支持按月切换,展示上一年/下一年,上个月/下个月按钮 | _string_ | `none` | | title | 日历标题 | _string_ | `日期选择` | | color | 主题色,对底部按钮和选中日期生效 | _string_ | `#1989fa` | | min-date | 可选择的最小日期 | _Date_ | `switch-mode` 为 `none` 时为当前日期 |