diff --git a/docs/markdown/changelog.en-US.md b/docs/markdown/changelog.en-US.md index 25736e157..88d34e9c6 100644 --- a/docs/markdown/changelog.en-US.md +++ b/docs/markdown/changelog.en-US.md @@ -16,8 +16,8 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/). **Feature** +- Calendar: add first-day-of-week prop [#6468](https://github.com/youzan/vant/issues/6468) - DatetimePicker: add columns-order prop [#6672](https://github.com/youzan/vant/issues/6672) [#6768](https://github.com/youzan/vant/issues/6768) -- Calendar: add firstDayOfWeek prop [#6468](https://github.com/youzan/vant/issues/6468) **Bug Fixes** diff --git a/docs/markdown/changelog.zh-CN.md b/docs/markdown/changelog.zh-CN.md index dbab8c8de..7d154765c 100644 --- a/docs/markdown/changelog.zh-CN.md +++ b/docs/markdown/changelog.zh-CN.md @@ -16,8 +16,8 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。 **Feature** +- Calendar: 新增 first-day-of-week 属性 [#6468](https://github.com/youzan/vant/issues/6468) - DatetimePicker: 新增 columns-order 属性 [#6672](https://github.com/youzan/vant/issues/6672) [#6768](https://github.com/youzan/vant/issues/6768) -- Calendar: 新增 firstDayOfWeek 属性 [#6468](https://github.com/youzan/vant/issues/6468) **Bug Fixes** diff --git a/src/calendar/README.md b/src/calendar/README.md index 7756a9b31..480df2a4f 100644 --- a/src/calendar/README.md +++ b/src/calendar/README.md @@ -2,7 +2,7 @@ ### Intro -Calendar component for selecting dates or date ranges +Calendar component for selecting dates or date ranges. ### Install @@ -17,7 +17,7 @@ Vue.use(Calendar); ### Select Single Date -The `confirm` event will be triggered after the date selection is completed +The `confirm` event will be triggered after the date selection is completed. ```html @@ -108,7 +108,7 @@ Set `show-confirm` to `false` to hide the confirm button. In this case, the `con ### Custom Color -Use `color` prop to custom calendar color +Use `color` prop to custom calendar color. ```html @@ -116,7 +116,7 @@ Use `color` prop to custom calendar color ### Custom Date Range -Use `min-date` and `max-date` to custom date range +Use `min-date` and `max-date` to custom date range. ```html @@ -136,7 +136,7 @@ export default { ### Custom Confirm Text -Use `confirm-text` and `confirm-disabled-text` to custom confirm text +Use `confirm-text` and `confirm-disabled-text` to custom confirm text. ```html @@ -186,7 +186,7 @@ export default { ### Custom Position -Use `position` to custom popup position,can be set to `top`、`left`、`right` +Use `position` to custom popup position,can be set to `top`、`left`、`right`. ```html @@ -194,7 +194,7 @@ Use `position` to custom popup position,can be set to `top`、`left`、`right` ### Max Range -When selecting a date range, you can use the `max-range` prop to specify the maximum number of selectable days +When selecting a date range, you can use the `max-range` prop to specify the maximum number of selectable days. ```html @@ -243,7 +243,7 @@ Set `poppable` to `false`, the calendar will be displayed directly on the page i | show-confirm | Whether to show confirm button | _boolean_ | `true` | | confirm-text | Confirm button text | _string_ | `Confirm` | | confirm-disabled-text | Confirm button text when disabled | _string_ | `Confirm` | -| first-day-of-week | Set the start day of week | _0-6_ | `0` | +| first-day-of-week `v2.9.2` | Set the start day of week | _0-6_ | `0` | ### Poppable Props diff --git a/src/calendar/README.zh-CN.md b/src/calendar/README.zh-CN.md index f4aa46748..32ff0cfbb 100644 --- a/src/calendar/README.zh-CN.md +++ b/src/calendar/README.zh-CN.md @@ -2,7 +2,7 @@ ### 介绍 -日历组件用于选择日期或日期区间,2.4 版本开始支持此组件 +日历组件用于选择日期或日期区间,2.4 版本开始支持此组件。 ### 引入 @@ -17,7 +17,7 @@ Vue.use(Calendar); ### 选择单个日期 -下面演示了结合单元格来使用日历组件的用法,日期选择完成后会触发`confirm`事件 +下面演示了结合单元格来使用日历组件的用法,日期选择完成后会触发 `confirm` 事件。 ```html @@ -46,7 +46,7 @@ export default { ### 选择多个日期 -设置`type`为`multiple`后可以选择多个日期,此时`confirm`事件返回的 date 为数组结构,数组包含若干个选中的日期。 +设置 `type` 为 `multiple` 后可以选择多个日期,此时 `confirm` 事件返回的 date 为数组结构,数组包含若干个选中的日期。 ```html @@ -72,7 +72,7 @@ export default { ### 选择日期区间 -设置`type`为`range`后可以选择日期区间,此时`confirm`事件返回的 date 为数组结构,数组第一项为开始时间,第二项为结束时间。 +设置 `type` 为 `range` 后可以选择日期区间,此时 `confirm` 事件返回的 date 为数组结构,数组第一项为开始时间,第二项为结束时间。 ```html @@ -102,7 +102,7 @@ export default { ### 快捷选择 -将`show-confirm`设置为`false`可以隐藏确认按钮,这种情况下选择完成后会立即触发`confirm`事件 +将 `show-confirm` 设置为 `false` 可以隐藏确认按钮,这种情况下选择完成后会立即触发 `confirm` 事件。 ```html @@ -110,7 +110,7 @@ export default { ### 自定义颜色 -通过`color`属性可以自定义日历的颜色,对选中日期和底部按钮生效 +通过 `color` 属性可以自定义日历的颜色,对选中日期和底部按钮生效。 ```html @@ -118,7 +118,7 @@ export default { ### 自定义日期范围 -通过`min-date`和`max-date`定义日历的范围 +通过 `min-date` 和 `max-date` 定义日历的范围。 ```html @@ -138,7 +138,7 @@ export default { ### 自定义按钮文字 -通过`confirm-text`设置按钮文字,通过`confirm-disabled-text`设置按钮禁用时的文字 +通过 `confirm-text` 设置按钮文字,通过 `confirm-disabled-text` 设置按钮禁用时的文字。 ```html @@ -188,7 +188,7 @@ export default { ### 自定义弹出位置 -通过`position`属性自定义弹出层的弹出位置,可选值为`top`、`left`、`right` +通过 `position` 属性自定义弹出层的弹出位置,可选值为 `top`、`left`、`right`。 ```html @@ -196,7 +196,7 @@ export default { ### 日期区间最大范围 -选择日期区间时,可以通过`max-range`属性来指定最多可选天数,选择的范围超过最多可选天数时,会弹出相应的提示文案 +选择日期区间时,可以通过 `max-range` 属性来指定最多可选天数,选择的范围超过最多可选天数时,会弹出相应的提示文案。 ```html @@ -204,7 +204,7 @@ export default { ### 自定义周起始日 -通过`first-day-of-week`属性设置一周从哪天开始 +通过 `first-day-of-week` 属性设置一周从哪天开始。 ```html @@ -212,7 +212,7 @@ export default { ### 平铺展示 -将`poppable`设置为`false`,日历会直接展示在页面内,而不是以弹层的形式出现 +将 `poppable` 设置为 `false`,日历会直接展示在页面内,而不是以弹层的形式出现。 ```html