Skip to content

Commit 9565cce

Browse files
authored
Merge pull request #4070 from Tencent/develop
chore(site): manually triggered update
2 parents 80d2ecc + 986f9a8 commit 9565cce

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/components/calendar/README.en-US.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ allow-same-day | Boolean | false | `1.11.2` | N
1212
auto-close | Boolean | true | `0.34.0` | N
1313
confirm-btn | String / Object | '' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
1414
first-day-of-week | Number | 0 | \- | N
15-
format | Function | - | Typescript: `CalendarFormatType ` `type CalendarFormatType = (day: TDate) => TDate` `type TDateType = 'selected' \| 'disabled' \| 'start' \| 'centre' \| 'end' \| ''` `interface TDate { date: Date; day: number; type: TDateType; className?: string; prefix?: string; suffix?: string;}`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
15+
format | Function | - | Typescript: `CalendarFormatType ` `type CalendarFormatType = (day: TDate) => TDate` `type TDateType = 'selected' \| 'disabled' \| 'start' \| 'start-end' \|'centre' \| 'end' \| ''` `interface TDate { date: Date; day: number; type: TDateType; className?: string; prefix?: string; suffix?: string;}`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
1616
locale-text | Object | - | Typescript: `CalendarLocaleText` `interface CalendarLocaleText {title?: string; weekdays?: string[]; monthTitle?: string; months?: string[]; confirm?: string;}`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
1717
max-date | Number | - | \- | N
1818
min-date | Number | - | \- | N
@@ -61,4 +61,4 @@ Name | Default Value | Description
6161
--td-calendar-switch-mode-icon-color | @text-color-secondary | -
6262
--td-calendar-switch-mode-icon-disabled-color | @text-color-disabled | -
6363
--td-calendar-title-color | @text-color-primary | -
64-
--td-calendar-title-font-size | 18px | -
64+
--td-calendar-title-font-size | 18px | -

packages/components/calendar/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ allow-same-day | Boolean | false | `1.11.2`。是否允许区间选择日历的
7878
auto-close | Boolean | true | `0.34.0`。自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭,不需要手动设置 visible | N
7979
confirm-btn | String / Object | '' | 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
8080
first-day-of-week | Number | 0 | 第一天从星期几开始,默认 0 = 周日 | N
81-
format | Function | - | 用于格式化日期的函数。TS 类型:`CalendarFormatType ` `type CalendarFormatType = (day: TDate) => TDate` `type TDateType = 'selected' \| 'disabled' \| 'start' \| 'centre' \| 'end' \| ''` `interface TDate { date: Date; day: number; type: TDateType; className?: string; prefix?: string; suffix?: string;}`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
81+
format | Function | - | 用于格式化日期的函数。TS 类型:`CalendarFormatType ` `type CalendarFormatType = (day: TDate) => TDate` `type TDateType = 'selected' \| 'disabled' \| 'start' \| 'start-end' \|'centre' \| 'end' \| ''` `interface TDate { date: Date; day: number; type: TDateType; className?: string; prefix?: string; suffix?: string;}`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
8282
locale-text | Object | - | 国际化文案。TS 类型:`CalendarLocaleText` `interface CalendarLocaleText {title?: string; weekdays?: string[]; monthTitle?: string; months?: string[]; confirm?: string;}`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N
8383
max-date | Number | - | 最大可选的日期,不传则默认半年后 | N
8484
min-date | Number | - | 最小可选的日期,不传则默认今天 | N
@@ -127,4 +127,4 @@ title | 标题
127127
--td-calendar-switch-mode-icon-color | @text-color-secondary | -
128128
--td-calendar-switch-mode-icon-disabled-color | @text-color-disabled | -
129129
--td-calendar-title-color | @text-color-primary | -
130-
--td-calendar-title-font-size | 18px | -
130+
--td-calendar-title-font-size | 18px | -

packages/components/calendar/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export interface TdCalendarProps {
139139

140140
export type CalendarFormatType = (day: TDate) => TDate;
141141

142-
export type TDateType = 'selected' | 'disabled' | 'start' | 'centre' | 'end' | '';
142+
export type TDateType = 'selected' | 'disabled' | 'start' | 'start-end' | 'centre' | 'end' | '';
143143

144144
export interface TDate {
145145
date: Date;

packages/tdesign-miniprogram-chat/site/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spline: explain
2222
小程序已经支持使用 NPM 安装第三方包,详见 [NPM 支持](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html?search-key=npm)
2323

2424
```bash
25-
npm i tdesign-miniprogram -S --production
25+
npm i tdesign-miniprogram@beta
2626
```
2727

2828
> 安装完之后,需要在微信开发者工具中对 npm 进行构建:`工具 - 构建 npm`。(构建时若出现`NPM packages not found`字样,请到 `project.config.json` 文件补充 `packNpmManually``packNpmRelationList` 配置项,具体见[NPM 支持](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html?search-key=npm)

packages/tdesign-miniprogram/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ docClass: timeline
1212
- ⚠️ `itemHeight` 默认单位改用 `px`,避免单位转换带来的精度问题 @anlyyao ([#4052](https://github.com/Tencent/tdesign-miniprogram/pull/4052))
1313
- 新增 `visibleItemCount` 属性,可自定义可视区域 `PickerItem` 的子项个数 @anlyyao ([#4052](https://github.com/Tencent/tdesign-miniprogram/pull/4052))
1414
- 优化大量数据时列表滚动性能 @jarmywang ([#4014](https://github.com/Tencent/tdesign-miniprogram/pull/4014))
15-
- `Calendar`: 新增 `allowSameDay` 属性,允许 `type='range'` 场景的起始时间相同 @anlyyao ([#4045](https://github.com/Tencent/tdesign-miniprogram/pull/4045))
15+
- `Calendar`: 新增 `allowSameDay` 属性,允许 `type='range'` 场景的起止时间相同 @anlyyao ([#4045](https://github.com/Tencent/tdesign-miniprogram/pull/4045))
1616
- `Cascader`: 支持通过 `keys` 属性定义 `children / disabled``options` 中对应的字段别名 @anlyyao ([#4044](https://github.com/Tencent/tdesign-miniprogram/pull/4044))
1717

1818

0 commit comments

Comments
 (0)