File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
tdesign-miniprogram-chat/site/docs Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ allow-same-day | Boolean | false | `1.11.2` | N
1212auto-close | Boolean | true | ` 0.34.0 ` | N
1313confirm-btn | String / Object | '' | [ see more ts definition] ( https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts ) | N
1414first-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
1616locale-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
1717max-date | Number | - | \- | N
1818min-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 | -
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ allow-same-day | Boolean | false | `1.11.2`。是否允许区间选择日历的
7878auto-close | Boolean | true | ` 0.34.0 ` 。自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭,不需要手动设置 visible | N
7979confirm-btn | String / Object | '' | 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。[ 详细类型定义] ( https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts ) | N
8080first-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
8282locale-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
8383max-date | Number | - | 最大可选的日期,不传则默认半年后 | N
8484min-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 | -
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ export interface TdCalendarProps {
139139
140140export 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
144144export interface TDate {
145145 date : Date ;
Original file line number Diff line number Diff 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 ) )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments