diff --git a/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml b/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml index 348374560..4a12389b5 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml @@ -1,5 +1,5 @@ name: 反馈 Bug -description: 通过 github 模板进行 Bug 反馈。 +description: 通过 GitHub 模板进行 Bug 反馈。 title: "[组件名称] 描述问题的标题" labels: [🐞 bug, 🧐 unconfirmed] body: @@ -11,13 +11,13 @@ body: 在发布一个 Issue 前,请确保: - 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign-miniprogram/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正) - - 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。 + - 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 Issue。 - type: input id: version attributes: label: tdesign-miniprogram 版本 - description: 请检查在最新项目版本中能否重现此 issue。 + description: 请检查在最新项目版本中能否重现此 Issue。 placeholder: 请填写 validations: required: true diff --git a/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml b/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml index 8376f4eed..ddd636529 100644 --- a/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml +++ b/.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml @@ -1,5 +1,5 @@ name: 反馈新功能 -description: 通过 github 模板进行新功能反馈。 +description: 通过 GitHub 模板进行新功能反馈。 title: "[组件名称] 描述问题的标题" labels: [💪🏻 enhancement, 🧐 unconfirmed] body: @@ -11,7 +11,7 @@ body: 在发布一个 Issue 前,请确保: - 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign-miniprogram/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正) - - 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。 + - 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 Issue。 - type: textarea id: functionContent diff --git a/.github/workflows/tag-push.yml b/.github/workflows/tag-push.yml index 016df8b09..634f6ad74 100644 --- a/.github/workflows/tag-push.yml +++ b/.github/workflows/tag-push.yml @@ -5,6 +5,9 @@ on: create jobs: TAG_PUSH: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write if: github.event.ref_type == 'tag' steps: - uses: actions/checkout@v4 @@ -24,12 +27,14 @@ jobs: env: MINI_APP_ID: ${{ secrets.TDESIGN_APP_ID }} MINI_APP_PRIVATE_KEY: ${{ secrets.TDESIGN_MINI_KEY }} + + - run: sudo npm install -g npm@latest + - id: publish name: publish NPM uses: JS-DevTools/npm-publish@v4 with: package: packages/tdesign-miniprogram - token: ${{ secrets.TDESIGN_NPM_TOKEN }} tag: ${{ contains(github.ref_name, 'beta') && 'beta' || 'latest' }} - if: steps.publish.outputs.type != 'none' run: | diff --git a/.vscode/settings.json b/.vscode/settings.json index fc72d6b94..130dfdf9d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -46,5 +46,5 @@ "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, - "cSpell.words": ["stylelint"] + "cSpell.words": ["stylelint", "cascader"] } diff --git a/packages/components/action-sheet/README.en-US.md b/packages/components/action-sheet/README.en-US.md index 62fba1c2a..89cf387d2 100644 --- a/packages/components/action-sheet/README.en-US.md +++ b/packages/components/action-sheet/README.en-US.md @@ -29,6 +29,12 @@ cancel | \- | \- close | `(trigger: ActionSheetTriggerSource)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/action-sheet/type.ts)。
`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `
selected | `(selected: ActionSheetItem \| string, index: number)` | \- +### ActionSheet Slots + +name | Description +-- | -- +\- | \- + ### ActionSheet External Classes className | Description diff --git a/packages/components/action-sheet/README.md b/packages/components/action-sheet/README.md index 856e59eb2..2b63d2151 100644 --- a/packages/components/action-sheet/README.md +++ b/packages/components/action-sheet/README.md @@ -117,6 +117,12 @@ cancel | \- | 点击取消按钮时触发 close | `(trigger: ActionSheetTriggerSource)` | 关闭时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/action-sheet/type.ts)。
`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `
selected | `(selected: ActionSheetItem \| string, index: number)` | 选择菜单项时触发 +### ActionSheet Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### ActionSheet External Classes 类名 | 描述 diff --git a/packages/components/action-sheet/action-sheet.ts b/packages/components/action-sheet/action-sheet.ts index 267cb1cd0..2cbe55fe0 100644 --- a/packages/components/action-sheet/action-sheet.ts +++ b/packages/components/action-sheet/action-sheet.ts @@ -37,8 +37,13 @@ export default class ActionSheet extends SuperComponent { ]; observers = { - 'visible, items'(visible: boolean) { - if (!visible) return; + items() { + this.splitGridThemeActions(); + }, + }; + + lifetimes = { + ready() { this.init(); }, }; diff --git a/packages/components/avatar/README.en-US.md b/packages/components/avatar/README.en-US.md index 7b506236a..fabefcf92 100644 --- a/packages/components/avatar/README.en-US.md +++ b/packages/components/avatar/README.en-US.md @@ -24,6 +24,12 @@ name | params | description -- | -- | -- error | - | trigger on image load failed +### Avatar Slots + +name | Description +-- | -- +\- | \- + ### Avatar External Classes className | Description @@ -42,7 +48,7 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N cascading | String | 'left-up' | multiple images cascading。options: left-up/right-up。Typescript:`CascadingValue` `type CascadingValue = 'left-up' \| 'right-up'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/avatar-group/type.ts) | N -collapse-avatar | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +collapse-avatar | String | - | \- | N max | Number | - | \- | N shape | String | - | shape。options: circle/round。Typescript:`ShapeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N size | String | - | size | N @@ -53,6 +59,13 @@ name | params | description -- | -- | -- collapsed-item-click | - | \- +### AvatarGroup Slots + +name | Description +-- | -- +\- | \- +collapse-avatar | \- + ### AvatarGroup External Classes className | Description diff --git a/packages/components/avatar/README.md b/packages/components/avatar/README.md index a2d989c1b..70596b307 100644 --- a/packages/components/avatar/README.md +++ b/packages/components/avatar/README.md @@ -84,6 +84,12 @@ size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等。优 -- | -- | -- error | - | 图片加载失败时触发 +### Avatar Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### Avatar External Classes 类名 | 描述 @@ -102,7 +108,7 @@ t-class-image | 图片样式类 style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N cascading | String | 'left-up' | 图片之间的层叠关系,可选值:左侧图片在上和右侧图片在上。可选项:left-up/right-up。TS 类型:`CascadingValue` `type CascadingValue = 'left-up' \| 'right-up'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/avatar-group/type.ts) | N -collapse-avatar | String / Slot | - | 头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +collapse-avatar | String | - | 头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多` | N max | Number | - | 能够同时显示的最多头像数量 | N shape | String | - | 形状。优先级低于 Avatar.shape。可选项:circle/round。TS 类型:`ShapeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等。优先级低于 Avatar.size | N @@ -113,6 +119,13 @@ size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等。优 -- | -- | -- collapsed-item-click | - | 点击头像折叠元素触发 +### AvatarGroup Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +collapse-avatar | 自定义 `collapse-avatar` 显示内容 + ### AvatarGroup External Classes 类名 | 描述 diff --git a/packages/components/back-top/README.en-US.md b/packages/components/back-top/README.en-US.md index 8f2cfdf9c..e5edbe792 100644 --- a/packages/components/back-top/README.en-US.md +++ b/packages/components/back-top/README.en-US.md @@ -9,7 +9,7 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N fixed | Boolean | true | \- | N -icon | String / Boolean / Object / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Boolean / Object | true | \- | N scroll-top | Number | 0 | \- | N text | String | '' | \- | N theme | String | round | options: round/half-round/round-dark/half-round-dark | N @@ -21,6 +21,13 @@ name | params | description -- | -- | -- to-top | \- | \- +### BackTop Slots + +name | Description +-- | -- +\- | \- +icon | \- + ### BackTop External Classes className | Description diff --git a/packages/components/back-top/README.md b/packages/components/back-top/README.md index 24fb26dc0..6365863fb 100644 --- a/packages/components/back-top/README.md +++ b/packages/components/back-top/README.md @@ -40,7 +40,7 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N fixed | Boolean | true | 是否绝对定位固定到屏幕右下方 | N -icon | String / Boolean / Object / Slot | true | 图标。值为 `false` 表示不显示图标。不传表示使用默认图标 `'backtop'`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Boolean / Object | true | 图标。值为 `false` 表示不显示图标。不传表示使用默认图标 `'backtop'` | N scroll-top | Number | 0 | 页面滚动距离 | N text | String | '' | 文案 | N theme | String | round | 预设的样式类型。可选项:round/half-round/round-dark/half-round-dark | N @@ -52,6 +52,13 @@ visibility-height | Number | 200 | 滚动高度达到此参数值才出现 | N -- | -- | -- to-top | \- | 点击触发 +### BackTop Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +icon | 自定义图标内容 + ### BackTop External Classes 类名 | 描述 diff --git a/packages/components/badge/README.en-US.md b/packages/components/badge/README.en-US.md index f540f8e12..e17408513 100644 --- a/packages/components/badge/README.en-US.md +++ b/packages/components/badge/README.en-US.md @@ -10,7 +10,7 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N color | String | - | \- | N content | String | - | \- | N -count | String / Number / Slot | 0 | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +count | String / Number | 0 | \- | N dot | Boolean | false | \- | N max-count | Number | 99 | \- | N offset | Array | - | Typescript:`Array` | N @@ -18,6 +18,13 @@ shape | String | circle | options: circle/square/bubble/ribbon | N show-zero | Boolean | false | \- | N size | String | medium | options: medium/large | N +### Badge Slots + +name | Description +-- | -- +\- | \- +count | \- + ### Badge External Classes className | Description diff --git a/packages/components/badge/README.md b/packages/components/badge/README.md index 73dcf5c0b..4dc7326f5 100644 --- a/packages/components/badge/README.md +++ b/packages/components/badge/README.md @@ -51,7 +51,7 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N color | String | - | 颜色 | N content | String | - | 徽标内容,示例:`content='自定义内容'`。也可以使用默认插槽定义 | N -count | String / Number / Slot | 0 | 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +count | String / Number | 0 | 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染 | N dot | Boolean | false | 是否为红点 | N max-count | Number | 99 | 封顶的数字值 | N offset | Array | - | 设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']。TS 类型:`Array` | N @@ -59,6 +59,13 @@ shape | String | circle | 形状。可选项:circle/square/bubble/ribbon | N show-zero | Boolean | false | 当数值为 0 时,是否展示徽标 | N size | String | medium | 尺寸。可选项:medium/large | N +### Badge Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +count | 徽标右上角内容 + ### Badge External Classes 类名 | 描述 diff --git a/packages/components/button/README.en-US.md b/packages/components/button/README.en-US.md index 6334a030b..b5abed29d 100644 --- a/packages/components/button/README.en-US.md +++ b/packages/components/button/README.en-US.md @@ -75,7 +75,7 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N app-parameter | String | - | \- | N block | Boolean | false | make button to be a block-level element | N -content | String / Slot | - | button's children elements。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | button's children elements | N custom-dataset | any | - | \- | N disabled | Boolean | undefined | disable the button, make it can not be clicked | N ghost | Boolean | false | make background-color to be transparent | N @@ -96,7 +96,6 @@ session-from | String | - | \- | N shape | String | rectangle | button shape。options: rectangle/square/round/circle | N show-message-card | Boolean | false | \- | N size | String | medium | a button has four size。options: extra-small/small/medium/large | N -suffix | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N t-id | String | - | id | N theme | String | default | button theme。options: default/primary/danger/light | N type | String | - | type of button element, same as formType of Miniprogram。options: submit/reset | N @@ -119,6 +118,14 @@ launchapp | \- | \- opensetting | \- | \- tap | `event` | \- +### Button Slots + +name | Description +-- | -- +\- | \- +content | button's children elements +suffix | \- + ### Button External Classes className | Description diff --git a/packages/components/button/README.md b/packages/components/button/README.md index 0528f756f..34dc7eea4 100644 --- a/packages/components/button/README.md +++ b/packages/components/button/README.md @@ -77,7 +77,7 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N app-parameter | String | - | 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 | N block | Boolean | false | 是否为块级元素 | N -content | String / Slot | - | 按钮内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 按钮内容 | N custom-dataset | any | - | 自定义 dataset,可通过 event.currentTarget.dataset.custom 获取 | N disabled | Boolean | undefined | 禁用状态。优先级:Button.disabled > Form.disabled | N ghost | Boolean | false | 是否为幽灵按钮(镂空按钮) | N @@ -98,7 +98,6 @@ session-from | String | - | 会话来源,open-type="contact"时有效 | N shape | String | rectangle | 按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形。可选项:rectangle/square/round/circle | N show-message-card | Boolean | false | 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,open-type="contact"时有效 | N size | String | medium | 组件尺寸。可选项:extra-small/small/medium/large | N -suffix | Slot | - | 右侧内容,可用于定义右侧图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N t-id | String | - | 按钮标签id | N theme | String | default | 组件风格,依次为品牌色、危险色。可选项:default/primary/danger/light | N type | String | - | 同小程序的 formType。可选项:submit/reset | N @@ -121,6 +120,14 @@ launchapp | \- | 打开 APP 成功的回调,`open-type=launchApp` 时有效 opensetting | \- | 原生按钮属性,在打开授权设置页后回调,open-type=openSetting时有效 tap | `event` | 点击按钮,当按钮不为加载或禁用状态时触发 +### Button Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +content | 自定义 `content` 显示内容 +suffix | 右侧内容,可用于定义右侧图标 + ### Button External Classes 类名 | 描述 diff --git a/packages/components/calendar/README.en-US.md b/packages/components/calendar/README.en-US.md index 020cc2172..f40175b8d 100644 --- a/packages/components/calendar/README.en-US.md +++ b/packages/components/calendar/README.en-US.md @@ -9,7 +9,7 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N auto-close | Boolean | true | `0.34.0` | N -confirm-btn | String / Object / Slot | '' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N +confirm-btn | String / Object | '' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N first-day-of-week | Number | 0 | \- | N 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 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 @@ -17,7 +17,7 @@ max-date | Number | - | \- | N min-date | Number | - | \- | N readonly | Boolean | - | `1.9.7` | N switch-mode | String | none | `1.8.2`。options: none/month/year-month | N -title | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | \- | N type | String | 'single' | options: single/multiple/range | N use-popup | Boolean | true | `0.32.0` | N using-custom-navbar | Boolean | false | \- | N @@ -36,6 +36,13 @@ panel-change | `(detail: { year: number, month: number })` | `1.8.4` scroll | `({scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY})` | `1.4.6`。triggered when scrolling select | `(value: timestamp)` | `0.28.0` +### Calendar Slots + +name | Description +-- | -- +confirm-btn | \- +title | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/calendar/README.md b/packages/components/calendar/README.md index 13eb1e5b4..734e21496 100644 --- a/packages/components/calendar/README.md +++ b/packages/components/calendar/README.md @@ -75,7 +75,7 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N auto-close | Boolean | true | `0.34.0`。自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭,不需要手动设置 visible | N -confirm-btn | String / Object / Slot | '' | 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N +confirm-btn | String / Object | '' | 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/calendar/type.ts) | N first-day-of-week | Number | 0 | 第一天从星期几开始,默认 0 = 周日 | N 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 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 @@ -83,7 +83,7 @@ max-date | Number | - | 最大可选的日期,不传则默认半年后 | N min-date | Number | - | 最小可选的日期,不传则默认今天 | N readonly | Boolean | - | `1.9.7`。是否只读,只读状态下不能选择日期 | N switch-mode | String | none | `1.8.2`。切换模式。 `none` 表示平铺展示所有月份; `month` 表示支持按月切换, `year-month` 表示既按年切换,也支持按月切换。可选项:none/month/year-month | N -title | String / Slot | - | 标题,不传默认为“请选择日期”。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | 标题,不传默认为“请选择日期” | N type | String | 'single' | 日历的选择类型,single = 单选;multiple = 多选; range = 区间选择。可选项:single/multiple/range | N use-popup | Boolean | true | `0.32.0`。是否使用弹出层包裹日历 | N using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N @@ -102,6 +102,13 @@ panel-change | `(detail: { year: number, month: number })` | `1.8.4`。切换月 scroll | `({scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY})` | `1.4.6`。滚动时触发 select | `(value: timestamp)` | `0.28.0`。点击日期时触发 +### Calendar Slots + +名称 | 描述 +-- | -- +confirm-btn | 确认按钮 +title | 标题 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/calendar/calendar.ts b/packages/components/calendar/calendar.ts index 28abdfa20..46db08e15 100644 --- a/packages/components/calendar/calendar.ts +++ b/packages/components/calendar/calendar.ts @@ -104,7 +104,7 @@ export default class Calendar extends SuperComponent { value(v) { this.base.value = v; this.calcMonths(); - this.updateCurrentMonth(v); + this.updateCurrentMonth(Array.isArray(v) ? v[0] : v); }, visible(v) { diff --git a/packages/components/cascader/README.en-US.md b/packages/components/cascader/README.en-US.md index a8f54be14..f204e1dee 100644 --- a/packages/components/cascader/README.en-US.md +++ b/packages/components/cascader/README.en-US.md @@ -9,15 +9,13 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N check-strictly | Boolean | false | \- | N -close-btn | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header | Slot | - | `1.9.1`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +close-btn | Boolean | true | \- | N keys | Object | - | Typescript:`KeysType`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -middle-content | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N options | Array | [] | Typescript:`Array` | N placeholder | String | 选择选项 | \- | N sub-titles | Array | [] | Typescript:`Array` | N theme | String | step | options: step/tab | N -title | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | \- | N value | String / Number | null | \- | N default-value | String / Number | undefined | uncontrolled property | N visible | Boolean | false | \- | N @@ -30,6 +28,15 @@ change | `(value: string \| number, selectedOptions: string[])` | `1.0.1` close | `(trigger: CascaderTriggerSource)` | `1.0.1`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/cascader/type.ts)。
`type CascaderTriggerSource = 'overlay' \| 'close-btn' \| 'finish'`
pick | `(value: string \| number, label: string, index: number, level: number)` | `1.0.1` +### Cascader Slots + +name | Description +-- | -- +close-btn | \- +header | `1.9.1` +middle-content | \- +title | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. @@ -48,4 +55,4 @@ Name | Default Value | Description --td-cascader-title-color | @text-color-primary | - --td-cascader-title-height | 26rpx | - --td-cascader-title-padding | @spacer-2 | - ---td-cascder-title-font-size | 36rpx | - \ No newline at end of file +--td-cascader-title-font-size | 36rpx | - \ No newline at end of file diff --git a/packages/components/cascader/README.md b/packages/components/cascader/README.md index be7704a78..65ea276fb 100644 --- a/packages/components/cascader/README.md +++ b/packages/components/cascader/README.md @@ -66,15 +66,13 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N check-strictly | Boolean | false | 父子节点选中状态不再关联,可各自选中或取消 | N -close-btn | Boolean / Slot | true | 关闭按钮。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header | Slot | - | `1.9.1`。头部。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +close-btn | Boolean | true | 关闭按钮 | N keys | Object | - | 用来定义 value / label 在 `options` 中对应的字段别名。TS 类型:`KeysType`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -middle-content | Slot | - | 中间内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N options | Array | [] | 可选项数据源。TS 类型:`Array` | N placeholder | String | 选择选项 | 未选中时的提示文案 | N sub-titles | Array | [] | 每级展示的次标题。TS 类型:`Array` | N theme | String | step | 展示风格。可选项:step/tab | N -title | String / Slot | - | 标题。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | 标题 | N value | String / Number | null | 选项值 | N default-value | String / Number | undefined | 选项值。非受控属性 | N visible | Boolean | false | 是否展示 | N @@ -87,6 +85,15 @@ change | `(value: string \| number, selectedOptions: string[])` | `1.0.1`。值 close | `(trigger: CascaderTriggerSource)` | `1.0.1`。关闭时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/cascader/type.ts)。
`type CascaderTriggerSource = 'overlay' \| 'close-btn' \| 'finish'`
pick | `(value: string \| number, label: string, index: number, level: number)` | `1.0.1`。选择后触发 +### Cascader Slots + +名称 | 描述 +-- | -- +close-btn | 自定义 `close-btn` 显示内容 +header | `1.9.1`。头部 +middle-content | 中间内容 +title | 自定义 `title` 显示内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 @@ -105,4 +112,4 @@ pick | `(value: string \| number, label: string, index: number, level: number)` --td-cascader-title-color | @text-color-primary | - --td-cascader-title-height | 26rpx | - --td-cascader-title-padding | @spacer-2 | - ---td-cascder-title-font-size | 36rpx | - \ No newline at end of file +--td-cascader-title-font-size | 36rpx | - \ No newline at end of file diff --git a/packages/components/cascader/cascader.less b/packages/components/cascader/cascader.less index f77b8df5d..cb536d6e4 100644 --- a/packages/components/cascader/cascader.less +++ b/packages/components/cascader/cascader.less @@ -8,7 +8,7 @@ @cascader-title-color: var(--td-cascader-title-color, @text-color-primary); @cascader-title-height: var(--td-cascader-title-height, 26rpx); @cascader-title-padding: var(--td-cascader-title-padding, @spacer-2); -@cascder-title-font-size: var(--td-cascder-title-font-size, 36rpx); +@cascader-title-font-size: var(--td-cascader-title-font-size, 36rpx); @cascader-options-title-color: var(--td-cascader-options-title-color, @text-color-placeholder); @cascader-border-color: var(--td-cascader-border-color, @component-stroke); @cascader-content-height: var(--td-cascader-content-height, 78vh); @@ -40,7 +40,7 @@ text-align: center; line-height: @cascader-title-height; padding: @cascader-title-padding; - font-size: @cascder-title-font-size; + font-size: @cascader-title-font-size; } &__content { diff --git a/packages/components/cell/README.en-US.md b/packages/components/cell/README.en-US.md index ad62e9fca..e9d68a5ac 100644 --- a/packages/components/cell/README.en-US.md +++ b/packages/components/cell/README.en-US.md @@ -11,22 +11,33 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v align | String | middle | options: top/middle/bottom | N arrow | Boolean / Object | false | \- | N bordered | Boolean | true | \- | N -description | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | \- | N hover | Boolean | - | \- | N -image | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | \- | N jump-type | String | navigateTo | options: switchTab/reLaunch/redirectTo/navigateTo | N -left-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -note | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +left-icon | String / Object | - | \- | N +note | String | - | \- | N required | Boolean | false | \- | N -right-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -title | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +right-icon | String / Object | - | \- | N +title | String | - | \- | N url | String | - | \- | N ### Cell Events name | params | description -- | -- | -- -click | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +click | - | \- + +### Cell Slots + +name | Description +-- | -- +description | \- +image | \- +left-icon | \- +note | \- +right-icon | \- +title | \- ### Cell External Classes @@ -55,6 +66,12 @@ bordered | Boolean | false | \- | N theme | String | default | options: default/card | N title | String | - | \- | N +### CellGroup Slots + +name | Description +-- | -- +\- | \- + ### CellGroup External Classes className | Description diff --git a/packages/components/cell/README.md b/packages/components/cell/README.md index 9a409ede4..dfd2d98f7 100644 --- a/packages/components/cell/README.md +++ b/packages/components/cell/README.md @@ -56,22 +56,33 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场 align | String | middle | 右侧内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N arrow | Boolean / Object | false | 是否显示右侧箭头 | N bordered | Boolean | true | 是否显示下边框 | N -description | String / Slot | - | 下方内容描述。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | 下方内容描述 | N hover | Boolean | - | 是否开启点击反馈 | N -image | String / Slot | - | 主图。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | 主图 | N jump-type | String | navigateTo | 链接跳转类型。可选项:switchTab/reLaunch/redirectTo/navigateTo | N -left-icon | String / Object / Slot | - | 左侧图标,出现在单元格标题的左侧。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -note | String / Slot | - | 和标题同行的说明文字。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +left-icon | String / Object | - | 左侧图标,出现在单元格标题的左侧 | N +note | String | - | 和标题同行的说明文字 | N required | Boolean | false | 是否显示表单必填星号 | N -right-icon | String / Object / Slot | - | 最右侧图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -title | String / Slot | - | 标题。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +right-icon | String / Object | - | 最右侧图标 | N +title | String | - | 标题 | N url | String | - | 点击后跳转链接地址。如果值为空,则表示不需要跳转 | N ### Cell Events 名称 | 参数 | 描述 -- | -- | -- -click | - | 右侧内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +click | - | 右侧内容 + +### Cell Slots + +名称 | 描述 +-- | -- +description | 自定义 `description` 显示内容 +image | 自定义 `image` 显示内容 +left-icon | 自定义 `left-icon` 显示内容 +note | 自定义 `note` 显示内容 +right-icon | 自定义 `right-icon` 显示内容 +title | 自定义 `title` 显示内容 ### Cell External Classes @@ -100,6 +111,12 @@ bordered | Boolean | false | 是否显示组边框 | N theme | String | default | 单元格组风格。可选项:default/card | N title | String | - | 单元格组标题 | N +### CellGroup Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### CellGroup External Classes 类名 | 描述 diff --git a/packages/components/checkbox-group/checkbox-group.ts b/packages/components/checkbox-group/checkbox-group.ts index 2249463f6..12e95684b 100644 --- a/packages/components/checkbox-group/checkbox-group.ts +++ b/packages/components/checkbox-group/checkbox-group.ts @@ -8,6 +8,8 @@ const name = `${prefix}-checkbox-group`; export default class CheckBoxGroup extends SuperComponent { externalClasses = [`${prefix}-class`]; + behaviors = ['wx://form-field']; + relations: RelationsOptions = { '../checkbox/checkbox': { type: 'descendant', diff --git a/packages/components/checkbox/README.en-US.md b/packages/components/checkbox/README.en-US.md index 7d4e56110..afbbba130 100644 --- a/packages/components/checkbox/README.en-US.md +++ b/packages/components/checkbox/README.en-US.md @@ -13,12 +13,12 @@ borderless | Boolean | undefined | \- | N check-all | Boolean | false | \- | N checked | Boolean | false | \- | N default-checked | Boolean | undefined | uncontrolled property | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | \- | N content-disabled | Boolean | - | \- | N disabled | Boolean | undefined | \- | N icon | String / Array | 'circle' | Typescript:`'circle' \| 'line' \| 'rectangle' \| string[]` | N indeterminate | Boolean | false | \- | N -label | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String | - | \- | N max-content-row | Number | 5 | \- | N max-label-row | Number | 3 | \- | N name | String | - | \- | N @@ -32,6 +32,14 @@ name | params | description -- | -- | -- change | `(checked: boolean, context: { value: boolean\|number\|string, label: boolean\|number\|string })` | \- +### Checkbox Slots + +name | Description +-- | -- +\- | \- +content | \- +label | \- + ### Checkbox External Classes className | Description @@ -65,6 +73,12 @@ name | params | description -- | -- | -- change | `(value: CheckboxGroupValue, context: { value: boolean\|number\|string, label: boolean\|number\|string })` | \- +### CheckboxGroup Slots + +name | Description +-- | -- +\- | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/checkbox/README.md b/packages/components/checkbox/README.md index 9c468aec2..2ee22b76d 100644 --- a/packages/components/checkbox/README.md +++ b/packages/components/checkbox/README.md @@ -78,12 +78,12 @@ borderless | Boolean | undefined | 是否开启无边框模式 | N check-all | Boolean | false | 用于标识是否为「全选选项」。单独使用无效,需在 CheckboxGroup 中使用 | N checked | Boolean | false | 是否选中 | N default-checked | Boolean | undefined | 是否选中。非受控属性 | N -content | String / Slot | - | 多选框内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 多选框内容 | N content-disabled | Boolean | - | 是否禁用组件内容(content)触发选中 | N disabled | Boolean | undefined | 是否禁用组件。如果父组件存在 CheckboxGroup,默认值由 CheckboxGroup.disabled 控制。优先级:Checkbox.disabled > CheckboxGroup.disabled > Form.disabled | N icon | String / Array | 'circle' | 自定义选中图标和非选中图标。使用 Array 时表示:`[选中态图标,非选中态图标,半选中态图标]`。使用 String 时,值为 circle 表示填充圆形图标、值为 line 表示描边型图标、值为 rectangle 表示填充矩形图标。TS 类型:`'circle' \| 'line' \| 'rectangle' \| string[]` | N indeterminate | Boolean | false | 是否为半选 | N -label | String / Slot | - | 主文案。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String | - | 主文案 | N max-content-row | Number | 5 | 内容最大行数限制 | N max-label-row | Number | 3 | 主文案最大行数限制 | N name | String | - | HTML 元素原生属性 | N @@ -97,6 +97,14 @@ value | String / Number / Boolean | - | 多选框的值。TS 类型:`string \| -- | -- | -- change | `(checked: boolean, context: { value: boolean\|number\|string, label: boolean\|number\|string })` | 值变化时触发。`context` 表示当前点击项内容 +### Checkbox Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,主文案 +content | 自定义 `content` 显示内容 +label | 自定义 `label` 显示内容 + ### Checkbox External Classes 类名 | 描述 @@ -130,6 +138,12 @@ default-value | Array | undefined | 选中值。非受控属性。TS 类型:`T -- | -- | -- change | `(value: CheckboxGroupValue, context: { value: boolean\|number\|string, label: boolean\|number\|string })` | 值变化时触发。`context` 表示当前点击项内容 +### CheckboxGroup Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,多选框组内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/collapse/README.en-US.md b/packages/components/collapse/README.en-US.md index 5f4cbad34..35f2df726 100644 --- a/packages/components/collapse/README.en-US.md +++ b/packages/components/collapse/README.en-US.md @@ -22,6 +22,12 @@ name | params | description -- | -- | -- change | `(value: CollapseValue)` | \- +### Collapse Slots + +name | Description +-- | -- +\- | \- + ### CollapsePanel Props @@ -29,15 +35,26 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | \- | N disabled | Boolean | undefined | \- | N -expand-icon | Boolean / Slot | undefined | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header-left-icon | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header-right-content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +expand-icon | Boolean | undefined | \- | N +header | String | - | \- | N +header-left-icon | String | - | \- | N +header-right-content | String | - | \- | N placement | String | bottom | `0.34.0`。options: bottom/top | N value | String / Number | - | \- | N +### CollapsePanel Slots + +name | Description +-- | -- +\- | \- +content | \- +expand-icon | \- +header | \- +header-left-icon | \- +header-right-content | \- + ### CollapsePanel External Classes className | Description diff --git a/packages/components/collapse/README.md b/packages/components/collapse/README.md index d4168c29c..674191b68 100644 --- a/packages/components/collapse/README.md +++ b/packages/components/collapse/README.md @@ -76,6 +76,12 @@ default-value | Array | undefined | 展开的面板集合。非受控属性。TS -- | -- | -- change | `(value: CollapseValue)` | 切换面板时触发,返回变化的值 +### Collapse Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### CollapsePanel Props @@ -83,15 +89,26 @@ change | `(value: CollapseValue)` | 切换面板时触发,返回变化的值 -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -content | String / Slot | - | 折叠面板内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 折叠面板内容 | N disabled | Boolean | undefined | 禁止当前面板展开,优先级大于 Collapse 的同名属性 | N -expand-icon | Boolean / Slot | undefined | 当前折叠面板展开图标,优先级大于 Collapse 的同名属性。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header | String / Slot | - | 面板头内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header-left-icon | String / Slot | - | 面板头左侧图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header-right-content | String / Slot | - | 面板头的右侧区域,一般用于呈现面板操作。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +expand-icon | Boolean | undefined | 当前折叠面板展开图标,优先级大于 Collapse 的同名属性 | N +header | String | - | 面板头内容 | N +header-left-icon | String | - | 面板头左侧图标 | N +header-right-content | String | - | 面板头的右侧区域,一般用于呈现面板操作 | N placement | String | bottom | `0.34.0`。选项卡内容的位置。可选项:bottom/top | N value | String / Number | - | 当前面板唯一标识,如果值为空则取当前面下标兜底作为唯一标识 | N +### CollapsePanel Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +content | 自定义 `content` 显示内容 +expand-icon | 自定义 `expand-icon` 显示内容 +header | 自定义 `header` 显示内容 +header-left-icon | 自定义 `header-left-icon` 显示内容 +header-right-content | 自定义 `header-right-content` 显示内容 + ### CollapsePanel External Classes 类名 | 描述 diff --git a/packages/components/color-picker/README.en-US.md b/packages/components/color-picker/README.en-US.md index 86404a2f0..cf1036eda 100644 --- a/packages/components/color-picker/README.en-US.md +++ b/packages/components/color-picker/README.en-US.md @@ -9,11 +9,11 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N auto-close | Boolean | true | \- | N +color-modes | String / Array | "monochrome" | Typescript:`colorModesEnum \| colorModesEnum[] ` `type colorModesEnum = 'monochrome' \| 'linear-gradient'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts) | N enable-alpha | Boolean | false | \- | N +enable-multiple-gradient | Boolean | true | \- | N fixed | Boolean | false | `1.8.5` | N -footer | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N format | String | RGB | When `enableAlpha` is true, `HEX8/RGBA/HSLA/HSVA` are valid。options: HEX/HEX8/RGB/RGBA/HSL/HSLA/HSV/HSVA/CMYK/CSS | N -header | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N popup-props | Object | {} | Typescript:`PopupProps`,[Popup API Documents](./popup?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts) | N swatch-colors | Array | undefined | swatch colors。Typescript:`Array \| null \| undefined` | N type | String | base | options: base/multiple。Typescript:`TypeEnum ` `type TypeEnum = 'base' \| 'multiple'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts) | N @@ -30,6 +30,13 @@ change | `(value: string, context: { color: ColorObject; trigger: ColorPickerCha close | `(trigger: ColorPickerTrigger)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts)。
`type ColorPickerTrigger = 'overlay'`
palette-bar-change | `(detail: { color: ColorObject })` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts)。
`interface ColorObject { alpha: number; css: string; hex: string; hex8: string; hsl: string; hsla: string; hsv: string; hsva: string; rgb: string; rgba: string; value: number;}`
+### ColorPicker Slots + +name | Description +-- | -- +footer | \- +header | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/color-picker/README.md b/packages/components/color-picker/README.md index 4182dba2c..1492c8101 100644 --- a/packages/components/color-picker/README.md +++ b/packages/components/color-picker/README.md @@ -59,11 +59,11 @@ onScroll(e) { style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N auto-close | Boolean | true | 自动关闭。在点击遮罩层时自动关闭,不需要手动设置 visible | N +color-modes | String / Array | "monochrome" | 颜色模式选择。同时支持单色和渐变两种模式,可仅使用单色或者渐变其中一种模式,也可以同时使用。`monochrome` 表示单色,`linear-gradient` 表示渐变色。TS 类型:`colorModesEnum \| colorModesEnum[] ` `type colorModesEnum = 'monochrome' \| 'linear-gradient'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts) | N enable-alpha | Boolean | false | 是否开启透明通道 | N +enable-multiple-gradient | Boolean | true | 是否允许开启通过点击渐变轴增加渐变梯度,默认开启,关闭时只会存在起始和结束两个颜色 | N fixed | Boolean | false | `1.8.5`。如果 color-picker 是在一个 `position:fixed` 的区域,需要显式指定属性 fixed 为 true | N -footer | Slot | - | 底部插槽,仅在 `usePopup` 为 `true` 时有效。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N format | String | RGB | 格式化色值。`enableAlpha` 为真时,`HEX8/RGBA/HSLA/HSVA` 有效。可选项:HEX/HEX8/RGB/RGBA/HSL/HSLA/HSV/HSVA/CMYK/CSS | N -header | Slot | - | 顶部插槽,仅在 `usePopup` 为 `true` 时有效。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N popup-props | Object | {} | 透传 Popup 组件全部属性。TS 类型:`PopupProps`,[Popup API Documents](./popup?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts) | N swatch-colors | Array | undefined | 系统预设的颜色样例,值为 `null` 或 `[]` 则不显示系统色,值为 `undefined` 会显示组件内置的系统默认色。TS 类型:`Array \| null \| undefined` | N type | String | base | 颜色选择器类型。(base 表示仅展示系统预设内容; multiple 表示展示色板和系统预设内容。可选项:base/multiple。TS 类型:`TypeEnum ` `type TypeEnum = 'base' \| 'multiple'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts) | N @@ -80,6 +80,13 @@ change | `(value: string, context: { color: ColorObject; trigger: ColorPickerCha close | `(trigger: ColorPickerTrigger)` | 关闭按钮时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts)。
`type ColorPickerTrigger = 'overlay'`
palette-bar-change | `(detail: { color: ColorObject })` | 调色板控制器的值变化时触发,`context.color` 指调色板控制器的值。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/color-picker/type.ts)。
`interface ColorObject { alpha: number; css: string; hex: string; hex8: string; hsl: string; hsla: string; hsv: string; hsva: string; rgb: string; rgba: string; value: number;}`
+### ColorPicker Slots + +名称 | 描述 +-- | -- +footer | 底部插槽,仅在 `usePopup` 为 `true` 时有效 +header | 顶部插槽,仅在 `usePopup` 为 `true` 时有效 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/color-picker/props.ts b/packages/components/color-picker/props.ts index 709137bea..0db99c3dd 100644 --- a/packages/components/color-picker/props.ts +++ b/packages/components/color-picker/props.ts @@ -11,11 +11,21 @@ const props: TdColorPickerProps = { type: Boolean, value: true, }, + /** 颜色模式选择。同时支持单色和渐变两种模式,可仅使用单色或者渐变其中一种模式,也可以同时使用。`monochrome` 表示单色,`linear-gradient` 表示渐变色 */ + colorModes: { + type: null, + value: 'monochrome', + }, /** 是否开启透明通道 */ enableAlpha: { type: Boolean, value: false, }, + /** 是否允许开启通过点击渐变轴增加渐变梯度,默认开启,关闭时只会存在起始和结束两个颜色 */ + enableMultipleGradient: { + type: Boolean, + value: true, + }, /** 如果 color-picker 是在一个 `position:fixed` 的区域,需要显式指定属性 fixed 为 true */ fixed: { type: Boolean, diff --git a/packages/components/color-picker/type.ts b/packages/components/color-picker/type.ts index 23a059b69..7eb87e72b 100644 --- a/packages/components/color-picker/type.ts +++ b/packages/components/color-picker/type.ts @@ -15,6 +15,14 @@ export interface TdColorPickerProps { type: BooleanConstructor; value?: boolean; }; + /** + * 颜色模式选择。同时支持单色和渐变两种模式,可仅使用单色或者渐变其中一种模式,也可以同时使用。`monochrome` 表示单色,`linear-gradient` 表示渐变色 + * @default "monochrome" + */ + colorModes?: { + type: null; + value?: colorModesEnum | colorModesEnum[]; + }; /** * 是否开启透明通道 * @default false @@ -23,6 +31,14 @@ export interface TdColorPickerProps { type: BooleanConstructor; value?: boolean; }; + /** + * 是否允许开启通过点击渐变轴增加渐变梯度,默认开启,关闭时只会存在起始和结束两个颜色 + * @default true + */ + enableMultipleGradient?: { + type: BooleanConstructor; + value?: boolean; + }; /** * 如果 color-picker 是在一个 `position:fixed` 的区域,需要显式指定属性 fixed 为 true * @default false @@ -96,4 +112,6 @@ export interface TdColorPickerProps { }; } +export type colorModesEnum = 'monochrome' | 'linear-gradient'; + export type TypeEnum = 'base' | 'multiple'; diff --git a/packages/components/common/common.ts b/packages/components/common/common.ts index 5b7463d32..64fbedc6e 100644 --- a/packages/components/common/common.ts +++ b/packages/components/common/common.ts @@ -6,9 +6,6 @@ export interface Styles { export type ImageEvent = any; -/** - * 通用全局类型 - * */ export type PlainObject = { [key: string]: any }; export type OptionData = { @@ -28,6 +25,9 @@ export type TreeOptionData = { content?: string; } & PlainObject; +/** + * 通用全局类型 + * */ export type SizeEnum = 'small' | 'medium' | 'large'; export type ShapeEnum = 'circle' | 'round'; diff --git a/packages/components/common/src/instantiationDecorator.ts b/packages/components/common/src/instantiationDecorator.ts index 995d1694f..b2441bc23 100644 --- a/packages/components/common/src/instantiationDecorator.ts +++ b/packages/components/common/src/instantiationDecorator.ts @@ -34,7 +34,7 @@ export const toComponent = function toComponent(options: Record) { if (options.properties) { Object.keys(options.properties).forEach((k) => { let opt = options.properties[k]; - // 如何不是 Object 类型,则默认指定 type = options.properties[k]; + // 如果不是 Object 类型,则默认指定 type = options.properties[k]; if (!isPlainObject(opt)) { opt = { type: opt }; } diff --git a/packages/components/common/validator.ts b/packages/components/common/validator.ts index 0dfcc2790..67209a5d9 100644 --- a/packages/components/common/validator.ts +++ b/packages/components/common/validator.ts @@ -16,8 +16,8 @@ export function isDef(value: unknown): boolean { return !isUndefined(value) && !isNull(value); } -export function isNumber(value: string) { - return /^\d+(\.\d+)?$/.test(value); +export function isNumber(value: string | number): boolean { + return typeof value === 'number' || /^-?\d+(\.\d+)?$/.test(value); } export function isBoolean(value: unknown): value is boolean { diff --git a/packages/components/count-down/README.en-US.md b/packages/components/count-down/README.en-US.md index 19caec711..ae3f0868f 100644 --- a/packages/components/count-down/README.en-US.md +++ b/packages/components/count-down/README.en-US.md @@ -9,7 +9,7 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N auto-start | Boolean | true | \- | N -content | String / Slot | 'default' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | 'default' | \- | N format | String | HH:mm:ss | \- | N millisecond | Boolean | false | \- | N size | String | 'medium' | `0.5.1`。options: small/medium/large | N @@ -24,6 +24,13 @@ name | params | description change | `(time: TimeData)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/count-down/type.ts)。
`interface TimeData { days: number; hours: number; minutes: number; seconds: number; milliseconds: number }`
finish | \- | \- +### CountDown Slots + +name | Description +-- | -- +\- | \- +content | \- + ### CountDown External Classes className | Description diff --git a/packages/components/count-down/README.md b/packages/components/count-down/README.md index 1711418a8..e9187b670 100644 --- a/packages/components/count-down/README.md +++ b/packages/components/count-down/README.md @@ -45,7 +45,7 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N auto-start | Boolean | true | 是否自动开始倒计时 | N -content | String / Slot | 'default' | 最终倒计时的展示内容,值为'default'时使用默认的格式,否则使用自定义样式插槽。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | 'default' | 最终倒计时的展示内容,值为'default'时使用默认的格式,否则使用自定义样式插槽 | N format | String | HH:mm:ss | 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 | N millisecond | Boolean | false | 是否开启毫秒级渲染 | N size | String | 'medium' | `0.5.1`。倒计时尺寸。可选项:small/medium/large | N @@ -60,6 +60,13 @@ time | Number | 0 | 必需。倒计时时长,单位毫秒 | Y change | `(time: TimeData)` | 时间变化时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/count-down/type.ts)。
`interface TimeData { days: number; hours: number; minutes: number; seconds: number; milliseconds: number }`
finish | \- | 倒计时结束时触发 +### CountDown Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +content | 自定义 `content` 显示内容 + ### CountDown External Classes 类名 | 描述 diff --git a/packages/components/date-time-picker/README.en-US.md b/packages/components/date-time-picker/README.en-US.md index 0a86a3efb..eca74c95f 100644 --- a/packages/components/date-time-picker/README.en-US.md +++ b/packages/components/date-time-picker/README.en-US.md @@ -14,10 +14,9 @@ confirm-btn | String | - | \- | N custom-locale | String | zh | \- | N end | String / Number | - | \- | N filter | Function | - | Typescript:`(type: TimeModeValues, columns: DateTimePickerColumn) => DateTimePickerColumn` `type DateTimePickerColumn = DateTimePickerColumnItem[]` `interface DateTimePickerColumnItem { label: string,value: string}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N -footer | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N format | String | 'YYYY-MM-DD HH:mm:ss' | \- | N formatter | Function | - | Typescript:`(option: DateTimePickerColumnItem, columnIndex: number) => DateTimePickerColumnItem` | N -header | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +header | Boolean | true | \- | N mode | String / Array | 'date' | Typescript:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues \| Array ` `type TimeModeValues = 'year' \| 'month' \| 'date' \| 'hour' \| 'minute' \| 'second'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N popup-props | Object | {} | popup properties。Typescript:`PopupProps`,[Popup API Documents](./popup?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N show-week | Boolean | false | `1.9.0` | N @@ -39,6 +38,13 @@ close | `(trigger: TriggerSource)` | `1.0.1`。[see more ts definition](https:// confirm | `(value: DateValue)` | `1.0.1` pick | `(value: DateValue)` | \- +### DateTimePicker Slots + +name | Description +-- | -- +footer | \- +header | \- + ### DateTimePicker External Classes className | Description diff --git a/packages/components/date-time-picker/README.md b/packages/components/date-time-picker/README.md index 94fc17ce3..fa5f18a97 100644 --- a/packages/components/date-time-picker/README.md +++ b/packages/components/date-time-picker/README.md @@ -68,10 +68,9 @@ confirm-btn | String | - | 确定按钮文字 | N custom-locale | String | zh | 组件国际化语言,目前支持: 简体中文(zh)、(tc)、英文(en)、日语(ja)、韩语(ko)、俄语(ru)等六种语言 | N end | String / Number | - | 选择器的最大可选时间,默认为当前时间+10年 | N filter | Function | - | 列选项过滤函数,支持自定义列内容。(type 值可为: year, month, date, hour, minute, second)。TS 类型:`(type: TimeModeValues, columns: DateTimePickerColumn) => DateTimePickerColumn` `type DateTimePickerColumn = DateTimePickerColumnItem[]` `interface DateTimePickerColumnItem { label: string,value: string}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N -footer | Slot | - | 底部内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N format | String | 'YYYY-MM-DD HH:mm:ss' | 用于格式化 pick、change、confirm 事件返回的值,[详细文档](https://day.js.org/docs/en/display/format) | N formatter | Function | - | 格式化标签。TS 类型:`(option: DateTimePickerColumnItem, columnIndex: number) => DateTimePickerColumnItem` | N -header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +header | Boolean | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容 | N mode | String / Array | 'date' | year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒。TS 类型:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues \| Array ` `type TimeModeValues = 'year' \| 'month' \| 'date' \| 'hour' \| 'minute' \| 'second'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N popup-props | Object | {} | 透传 Popup 组件全部属性。TS 类型:`PopupProps`,[Popup API Documents](./popup?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N show-week | Boolean | false | `1.9.0`。是否在日期旁边显示周几(如周一,周二,周日等) | N @@ -93,6 +92,13 @@ close | `(trigger: TriggerSource)` | `1.0.1`。关闭时触发。[详细类型 confirm | `(value: DateValue)` | `1.0.1`。确认按钮点击时触发 pick | `(value: DateValue)` | 选中值发生变化时触发 +### DateTimePicker Slots + +名称 | 描述 +-- | -- +footer | 底部内容 +header | 自定义 `header` 显示内容 + ### DateTimePicker External Classes 类名 | 描述 diff --git a/packages/components/dialog/README.en-US.md b/packages/components/dialog/README.en-US.md index 01534da8b..0d6edc0e5 100644 --- a/packages/components/dialog/README.en-US.md +++ b/packages/components/dialog/README.en-US.md @@ -8,19 +8,17 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -actions | Array / Slot | - | Typescript:`Array`,[Button API Documents](./button?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N +actions | Array | - | Typescript:`Array`,[Button API Documents](./button?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N button-layout | String | horizontal | options: horizontal/vertical | N -cancel-btn | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N +cancel-btn | String / Object | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N close-btn | Boolean / Object | false | `0.31.0`。Typescript:`boolean \| ButtonProps \| null`,[Button API Documents](./button?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N close-on-overlay-click | Boolean | false | \- | N -confirm-btn | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -middle | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +confirm-btn | String / Object | - | \- | N +content | String | - | \- | N overlay-props | Object | {} | Typescript:`OverlayProps`,[Overlay API Documents](./overlay?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N prevent-scroll-through | Boolean | true | \- | N show-overlay | Boolean | true | \- | N -title | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -top | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | \- | N using-custom-navbar | Boolean | false | \- | N visible | Boolean | - | \- | N z-index | Number | 11500 | \- | N @@ -34,6 +32,18 @@ close | `(trigger: DialogEventSource)` | [see more ts definition](https://github confirm | - | \- overlay-click | - | \- +### Dialog Slots + +name | Description +-- | -- +actions | \- +cancel-btn | \- +confirm-btn | \- +content | \- +middle | \- +title | \- +top | \- + ### Dialog External Classes className | Description diff --git a/packages/components/dialog/README.md b/packages/components/dialog/README.md index 3f413feb7..5fe1290ed 100644 --- a/packages/components/dialog/README.md +++ b/packages/components/dialog/README.md @@ -69,19 +69,17 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -actions | Array / Slot | - | 操作栏。TS 类型:`Array`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N +actions | Array | - | 操作栏。TS 类型:`Array`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N button-layout | String | horizontal | 多按钮排列方式。可选项:horizontal/vertical | N -cancel-btn | String / Object / Slot | - | 取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 Slot 自定义按钮时,需自行控制取消事件。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N +cancel-btn | String / Object | - | 取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 Slot 自定义按钮时,需自行控制取消事件。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N close-btn | Boolean / Object | false | `0.31.0`。是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;使用 Object 时透传至图标组件。TS 类型:`boolean \| ButtonProps \| null`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N close-on-overlay-click | Boolean | false | 点击蒙层时是否触发关闭事件 | N -confirm-btn | String / Object / Slot | - | 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 Slot 自定义按钮时,需自行控制确认事件。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -content | String / Slot | - | 内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -middle | Slot | - | 中间自定义内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +confirm-btn | String / Object | - | 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 Slot 自定义按钮时,需自行控制确认事件 | N +content | String | - | 内容 | N overlay-props | Object | {} | 透传至 Overlay 组件。TS 类型:`OverlayProps`,[Overlay API Documents](./overlay?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/dialog/type.ts) | N prevent-scroll-through | Boolean | true | 防止滚动穿透 | N show-overlay | Boolean | true | 是否显示遮罩层 | N -title | String / Slot | - | 标题。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -top | Slot | - | 顶部自定义内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | 标题 | N using-custom-navbar | Boolean | false | 是否使用了自定义导航栏 | N visible | Boolean | - | 控制对话框是否显示 | N z-index | Number | 11500 | 对话框层级,Web 侧样式默认为 2500,移动端样式默认 2500,小程序样式默认为 11500 | N @@ -95,6 +93,18 @@ close | `(trigger: DialogEventSource)` | 关闭事件,点击 取消按钮 或 confirm | - | 如果“确认”按钮存在,则点击“确认”按钮时触发 overlay-click | - | 如果蒙层存在,点击蒙层时触发 +### Dialog Slots + +名称 | 描述 +-- | -- +actions | 自定义 `actions` 显示内容 +cancel-btn | 自定义 `cancel-btn` 显示内容 +confirm-btn | 自定义 `confirm-btn` 显示内容 +content | 自定义 `content` 显示内容 +middle | 中间自定义内容 +title | 自定义 `title` 显示内容 +top | 顶部自定义内容 + ### Dialog External Classes 类名 | 描述 diff --git a/packages/components/divider/README.en-US.md b/packages/components/divider/README.en-US.md index 2a85bc4cc..9958eb0b4 100644 --- a/packages/components/divider/README.en-US.md +++ b/packages/components/divider/README.en-US.md @@ -9,10 +9,16 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N align | String | center | options: left/right/center | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | \- | N dashed | Boolean | false | \- | N layout | String | horizontal | options: horizontal/vertical | N +### Divider Slots + +name | Description +-- | -- +content | \- + ### Divider External Classes className | Description diff --git a/packages/components/divider/README.md b/packages/components/divider/README.md index d4dc55733..b434558d8 100644 --- a/packages/components/divider/README.md +++ b/packages/components/divider/README.md @@ -45,10 +45,16 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N align | String | center | 文本位置(仅在水平分割线有效)。可选项:left/right/center | N -content | String / Slot | - | 子元素。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 子元素 | N dashed | Boolean | false | 是否虚线(仅在水平分割线有效) | N layout | String | horizontal | 分隔线类型有两种:水平和垂直。可选项:horizontal/vertical | N +### Divider Slots + +名称 | 描述 +-- | -- +content | 自定义 `content` 显示内容 + ### Divider External Classes 类名 | 描述 diff --git a/packages/components/drawer/README.en-US.md b/packages/components/drawer/README.en-US.md index b47489897..026bba9ca 100644 --- a/packages/components/drawer/README.en-US.md +++ b/packages/components/drawer/README.en-US.md @@ -10,7 +10,6 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N close-on-overlay-click | Boolean | true | \- | N destroy-on-close | Boolean | false | \- | N - items | Array | - | Typescript:`DrawerItem[]` `interface DrawerItem { title: string; icon: string; }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/drawer/type.ts) | N overlay-props | Object | {} | Typescript:`OverlayProps`,[Overlay API Documents](./overlay?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/drawer/type.ts) | N placement | String | right | options: left/right | N @@ -35,6 +34,14 @@ close | `(trigger: DrawerTriggerSource)` | [see more ts definition](https://gith item-click | `(index: number; item: DrawerItem)` | \- overlay-click | \- | \- +### Drawer Slots + +name | Description +-- | -- +\- | \- +footer | `0.29.0` +title | `0.29.0` + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/drawer/README.md b/packages/components/drawer/README.md index 470cfe06e..917c577d2 100644 --- a/packages/components/drawer/README.md +++ b/packages/components/drawer/README.md @@ -53,7 +53,6 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N close-on-overlay-click | Boolean | true | 点击蒙层时是否触发抽屉关闭事件 | N destroy-on-close | Boolean | false | 抽屉关闭时是否销毁节点 | N - items | Array | - | 抽屉里的列表项。TS 类型:`DrawerItem[]` `interface DrawerItem { title: string; icon: string; }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/drawer/type.ts) | N overlay-props | Object | {} | 遮罩层的属性,透传至 overlay。TS 类型:`OverlayProps`,[Overlay API Documents](./overlay?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/drawer/type.ts) | N placement | String | right | 抽屉方向。可选项:left/right | N @@ -78,6 +77,14 @@ close | `(trigger: DrawerTriggerSource)` | 关闭时触发。。[详细类型定 item-click | `(index: number; item: DrawerItem)` | 点击抽屉里的列表项 overlay-click | \- | 如果蒙层存在,点击蒙层时触发 +### Drawer Slots + +名称 | 描述 +-- | -- +\- | 自定义抽屉的底部 +footer | `0.29.0`。抽屉的底部 +title | `0.29.0`。自定义 `title` 显示内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/dropdown-menu/README.en-US.md b/packages/components/dropdown-menu/README.en-US.md index 84a5fcf7b..fae9ffd2a 100644 --- a/packages/components/dropdown-menu/README.en-US.md +++ b/packages/components/dropdown-menu/README.en-US.md @@ -21,6 +21,12 @@ name | params | description close | \- | \- open | \- | \- +### DropdownMenu Slots + +name | Description +-- | -- +\- | \- + ### DropdownMenu External Classes className | Description @@ -38,7 +44,6 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N disabled | Boolean | false | \- | N -footer | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N keys | Object | - | Typescript:`KeysType`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N label | String | - | \- | N multiple | Boolean | false | \- | N @@ -58,6 +63,13 @@ close | \- | \- confirm | `(value: DropdownValue)` | \- reset | \- | \- +### DropdownItem Slots + +name | Description +-- | -- +\- | \- +footer | \- + ### DropdownItem External Classes className | Description diff --git a/packages/components/dropdown-menu/README.md b/packages/components/dropdown-menu/README.md index 04a1de89c..01b515f26 100644 --- a/packages/components/dropdown-menu/README.md +++ b/packages/components/dropdown-menu/README.md @@ -68,6 +68,12 @@ z-index | Number | 11600 | 菜单栏 z-index 层级 | N close | \- | 菜单关闭时触发 open | \- | 菜单展开时触发 +### DropdownMenu Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### DropdownMenu External Classes 类名 | 描述 @@ -85,7 +91,6 @@ t-class-label | 标签样式类 style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N disabled | Boolean | false | 是否禁用操作项 | N -footer | Slot | - | 底部。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N keys | Object | - | 用来定义 value / label / disabled 在 `options` 中对应的字段别名。TS 类型:`KeysType`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N label | String | - | 标题 | N multiple | Boolean | false | 是否多选 | N @@ -105,6 +110,13 @@ close | \- | 关闭时触发 confirm | `(value: DropdownValue)` | 点击确认时触发 reset | \- | 点击重置时触发 +### DropdownItem Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +footer | 底部 + ### DropdownItem External Classes 类名 | 描述 diff --git a/packages/components/empty/README.en-US.md b/packages/components/empty/README.en-US.md index dd109558c..21a1c959f 100644 --- a/packages/components/empty/README.en-US.md +++ b/packages/components/empty/README.en-US.md @@ -8,10 +8,17 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -action | Slot | - | action block。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -description | String / Slot | - | empty component description。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | empty component description | N icon | String / Object | - | \- | N -image | String / Slot | - | image url, or Image component props, or custom any node you need。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | image url, or Image component props, or custom any node you need | N + +### Empty Slots + +name | Description +-- | -- +action | action block +description | empty component description +image | image url, or Image component props, or custom any node you need ### Empty External Classes diff --git a/packages/components/empty/README.md b/packages/components/empty/README.md index 879e8b08e..8580e5292 100644 --- a/packages/components/empty/README.md +++ b/packages/components/empty/README.md @@ -48,10 +48,17 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -action | Slot | - | 操作按钮。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -description | String / Slot | - | 描述文字。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | 描述文字 | N icon | String / Object | - | 图标名称。值为字符串表示图标名称,值为 `Object` 类型,表示透传至 `icon` | N -image | String / Slot | - | 图片地址。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | 图片地址 | N + +### Empty Slots + +名称 | 描述 +-- | -- +action | 操作按钮 +description | 自定义 `description` 显示内容 +image | 自定义 `image` 显示内容 ### Empty External Classes diff --git a/packages/components/fab/README.en-US.md b/packages/components/fab/README.en-US.md index b95dc503c..8ead4a105 100644 --- a/packages/components/fab/README.en-US.md +++ b/packages/components/fab/README.en-US.md @@ -23,6 +23,12 @@ click | `(detail: {e: Event})` | \- drag-end | `(detail: { e: TouchEvent })` | \- drag-start | `(detail: { e: TouchEvent })` | \- +### Fab Slots + +name | Description +-- | -- +\- | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/fab/README.md b/packages/components/fab/README.md index 68c14b073..10662b0a3 100644 --- a/packages/components/fab/README.md +++ b/packages/components/fab/README.md @@ -85,6 +85,12 @@ click | `(detail: {e: Event})` | 悬浮按钮点击事件 drag-end | `(detail: { e: TouchEvent })` | 结束拖拽时触发 drag-start | `(detail: { e: TouchEvent })` | 开始拖拽时触发 +### Fab Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,按钮内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/grid/README.en-US.md b/packages/components/grid/README.en-US.md index 8a650ee80..7c7c17826 100644 --- a/packages/components/grid/README.en-US.md +++ b/packages/components/grid/README.en-US.md @@ -15,6 +15,12 @@ gutter | Number | - | \- | N hover | Boolean | false | \- | N theme | String | default | options: default/card | N +### Grid Slots + +name | Description +-- | -- +\- | \- + ### Grid External Classes className | Description @@ -29,20 +35,29 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N badge-props | Object | null | Typescript:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/grid-item/type.ts) | N -description | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | \- | N icon | String / Object | - | \- | N -image | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | \- | N image-props | Object | - | Typescript:`ImageProps`,[Image API Documents](./image?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/grid-item/type.ts) | N jump-type | String | navigate-to | options: redirect-to/switch-tab/relaunch/navigate-to | N layout | String | vertical | options: vertical/horizontal | N -text | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +text | String | - | \- | N url | String | - | \- | N ### GridItem Events name | params | description -- | -- | -- -click | \- | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +click | \- | \- + +### GridItem Slots + +name | Description +-- | -- +\- | \- +description | \- +image | \- +text | \- ### GridItem External Classes diff --git a/packages/components/grid/README.md b/packages/components/grid/README.md index 8c03a0cd3..c2c08f8f6 100644 --- a/packages/components/grid/README.md +++ b/packages/components/grid/README.md @@ -76,6 +76,12 @@ gutter | Number | - | 间隔大小 | N hover | Boolean | false | 是否开启点击反馈 | N theme | String | default | 宫格的风格。可选项:default/card | N +### Grid Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### Grid External Classes 类名 | 描述 @@ -90,20 +96,29 @@ t-class | 根节点样式类 style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N badge-props | Object | null | 透传至 Badge 属性。TS 类型:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/grid-item/type.ts) | N -description | String / Slot | - | 文本以外的更多描述,辅助信息。可以通过 Props 传入文本,也可以自定义标题节点。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | 文本以外的更多描述,辅助信息。可以通过 Props 传入文本,也可以自定义标题节点 | N icon | String / Object | - | 图标名称。值为字符串表示图标名称,值为 `Object` 类型,表示透传至 `icon` | N -image | String / Slot | - | 图片,可以是图片地址,也可以自定义图片节点,值为 slot 的时候才能使用插槽。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | 图片,可以是图片地址,也可以自定义图片节点,值为 slot 的时候才能使用插槽 | N image-props | Object | - | 透传至 Image 组件。TS 类型:`ImageProps`,[Image API Documents](./image?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/grid-item/type.ts) | N jump-type | String | navigate-to | 链接跳转类型。可选项:redirect-to/switch-tab/relaunch/navigate-to | N layout | String | vertical | 内容布局方式。可选项:vertical/horizontal | N -text | String / Slot | - | 文本,可以通过 Props 传入文本,也可以自定义标题节点。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +text | String | - | 文本,可以通过 Props 传入文本,也可以自定义标题节点 | N url | String | - | 点击后的跳转链接 | N ### GridItem Events 名称 | 参数 | 描述 -- | -- | -- -click | \- | 点击子项后触发。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +click | \- | 点击子项后触发 + +### GridItem Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +description | 自定义 `description` 模块内容 +image | 自定义 `image` 模块内容 +text | 自定义 `text` 模块内容 ### GridItem External Classes diff --git a/packages/components/image-viewer/README.en-US.md b/packages/components/image-viewer/README.en-US.md index 58e9afba3..5eee69b62 100644 --- a/packages/components/image-viewer/README.en-US.md +++ b/packages/components/image-viewer/README.en-US.md @@ -9,8 +9,8 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N background-color | String | - | \- | N -close-btn | String / Boolean / Object / Slot | false | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -delete-btn | String / Boolean / Object / Slot | false | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +close-btn | String / Boolean / Object | false | \- | N +delete-btn | String / Boolean / Object | false | \- | N images | Array | [] | Typescript:`Array` | N initial-index | Number | 0 | Typescript:`Number` | N lazy | Boolean | true | `1.9.4` | N @@ -27,6 +27,13 @@ change | `(index: number)` | \- close | `(trigger: 'overlay' \| 'button', visible: Boolean, index: Number)` | \- delete | `(index: number)` | \- +### ImageViewer Slots + +name | Description +-- | -- +close-btn | \- +delete-btn | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/image-viewer/README.md b/packages/components/image-viewer/README.md index c2b2b0309..05ddf3173 100644 --- a/packages/components/image-viewer/README.md +++ b/packages/components/image-viewer/README.md @@ -55,8 +55,8 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N background-color | String | - | 遮罩的背景颜色 | N -close-btn | String / Boolean / Object / Slot | false | 是否显示关闭操作,前提需要开启页码。值为字符串表示图标名称,值为 `true` 表示使用默认图标 `close`,值为 `Object` 类型,表示透传至 `icon` ,不传表示不显示图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -delete-btn | String / Boolean / Object / Slot | false | 是否显示删除操作,前提需要开启页码。值为字符串表示图标名称,值为 `true` 表示使用默认图标 `delete`,值为 `Object` 类型,表示透传至 `icon`,不传表示不显示图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +close-btn | String / Boolean / Object | false | 是否显示关闭操作,前提需要开启页码。值为字符串表示图标名称,值为 `true` 表示使用默认图标 `close`,值为 `Object` 类型,表示透传至 `icon` ,不传表示不显示图标 | N +delete-btn | String / Boolean / Object | false | 是否显示删除操作,前提需要开启页码。值为字符串表示图标名称,值为 `true` 表示使用默认图标 `delete`,值为 `Object` 类型,表示透传至 `icon`,不传表示不显示图标 | N images | Array | [] | 图片数组。TS 类型:`Array` | N initial-index | Number | 0 | 初始化页码。TS 类型:`Number` | N lazy | Boolean | true | `1.9.4`。是否开启图片懒加载。开启后会预加载当前图片、相邻图片 | N @@ -73,6 +73,13 @@ change | `(index: number)` | 翻页时回调 close | `(trigger: 'overlay' \| 'button', visible: Boolean, index: Number)` | 点击操作按钮button或者overlay时触发 delete | `(index: number)` | 点击删除操作按钮时触发 +### ImageViewer Slots + +名称 | 描述 +-- | -- +close-btn | 关闭操作 +delete-btn | 删除操作 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/image/README.en-US.md b/packages/components/image/README.en-US.md index 90e23b654..b07468335 100644 --- a/packages/components/image/README.en-US.md +++ b/packages/components/image/README.en-US.md @@ -8,10 +8,10 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -error | String / Slot | 'default' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +error | String | 'default' | \- | N height | String / Number | - | \- | N lazy | Boolean | false | \- | N -loading | String / Slot | 'default' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +loading | String | 'default' | \- | N mode | String | scaleToFill | options: scaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right | N shape | String | square | options: circle/round/square | N show-menu-by-longpress | Boolean | false | \- | N @@ -24,8 +24,15 @@ width | String / Number | - | \- | N name | params | description -- | -- | -- -error | - | trigger on image load failed -load | - | trigger on image loaded +error | - | trigger on image load failed。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +load | - | trigger on image loaded。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) + +### Image Slots + +name | Description +-- | -- +error | \- +loading | \- ### Image External Classes diff --git a/packages/components/image/README.md b/packages/components/image/README.md index 5d96592d9..0268090d1 100644 --- a/packages/components/image/README.md +++ b/packages/components/image/README.md @@ -53,10 +53,10 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -error | String / Slot | 'default' | 加载失败时显示的内容。值为 `default` 则表示使用默认加载失败风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `error`;值为其他则表示普通文本内容,如“加载失败”。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +error | String | 'default' | 加载失败时显示的内容。值为 `default` 则表示使用默认加载失败风格;值为空或者 `slot` 表示使用插槽渲染,插槽名称为 `error`;值为其他则表示普通文本内容,如“加载失败” | N height | String / Number | - | 高度,默认单位为`px` | N lazy | Boolean | false | 是否开启图片懒加载 | N -loading | String / Slot | 'default' | 加载态内容。值为 `default` 则表示使用默认加载中风格;值为其他则表示普通文本内容,如“加载中”。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +loading | String | 'default' | 加载态内容。值为 `default` 则表示使用默认加载中风格;值为其他则表示普通文本内容,如“加载中” | N mode | String | scaleToFill | 图片裁剪、缩放的模式;[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/image.html)。可选项:scaleToFill/aspectFit/aspectFill/widthFix/heightFix/top/bottom/center/left/right/top left/top right/bottom left/bottom right | N shape | String | square | 图片圆角类型。可选项:circle/round/square | N show-menu-by-longpress | Boolean | false | 长按图片显示发送给朋友、收藏、保存图片、搜一搜、打开名片/前往群聊/打开小程序(若图片中包含对应二维码或小程序码)的菜单 | N @@ -69,8 +69,15 @@ width | String / Number | - | 宽度,默认单位为`px` | N 名称 | 参数 | 描述 -- | -- | -- -error | - | 图片加载失败时触发 -load | - | 图片加载完成时触发 +error | - | 图片加载失败时触发。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +load | - | 图片加载完成时触发。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) + +### Image Slots + +名称 | 描述 +-- | -- +error | 自定义 `error` 显示内容 +loading | 自定义 `loading` 显示内容 ### Image External Classes diff --git a/packages/components/indexes/README.en-US.md b/packages/components/indexes/README.en-US.md index 812d2e355..09d48d7d6 100644 --- a/packages/components/indexes/README.en-US.md +++ b/packages/components/indexes/README.en-US.md @@ -22,6 +22,12 @@ name | params | description change | `(index: string \| number)` | `0.34.0` select | `(index: string \| number)` | \- +### Indexes Slots + +name | Description +-- | -- +\- | \- + ### IndexesAnchor Props @@ -31,6 +37,12 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N index | String / Number | - | \- | N +### IndexesAnchor Slots + +name | Description +-- | -- +\- | \- + ### IndexesAnchor External Classes className | Description diff --git a/packages/components/indexes/README.md b/packages/components/indexes/README.md index b69d0b6d6..815f53964 100644 --- a/packages/components/indexes/README.md +++ b/packages/components/indexes/README.md @@ -71,6 +71,12 @@ sticky-offset | Number | 0 | `1.0.0`。锚点吸顶时与顶部的距离 | N change | `(index: string \| number)` | `0.34.0`。索引发生变更时触发事件 select | `(index: string \| number)` | 点击侧边栏时触发事件 +### Indexes Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### IndexesAnchor Props @@ -80,6 +86,12 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N index | String / Number | - | 索引字符 | N +### IndexesAnchor Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### IndexesAnchor External Classes 类名 | 描述 diff --git a/packages/components/input/README.en-US.md b/packages/components/input/README.en-US.md index 855c6b960..c3f1ee9c3 100644 --- a/packages/components/input/README.en-US.md +++ b/packages/components/input/README.en-US.md @@ -23,11 +23,10 @@ cursor-color | String | #0052d9 | \- | N cursor-spacing | Number | 0 | \- | N disabled | Boolean | undefined | make input to be disabled | N error-message | String | - | `deprecated` | N -extra | Slot | - | `1.9.1`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N focus | Boolean | false | \- | N format | Function | - | input value formatter, `type=number` does not work. if you need to format number, `InputNumber` Component might be better。Typescript:`InputFormatType` `type InputFormatType = (value: InputValue) => string`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/input/type.ts) | N hold-keyboard | Boolean | false | \- | N -label | String / Slot | - | text on the left of input。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String | - | text on the left of input | N layout | String | horizontal | options: vertical/horizontal | N maxcharacter | Number | - | \- | N maxlength | Number | -1 | \- | N @@ -35,7 +34,7 @@ password | Boolean | false | `deprecated` | N placeholder | String | undefined | \- | N placeholder-class | String | input-placeholder | \- | N placeholder-style | String | - | required | Y -prefix-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +prefix-icon | String / Object | - | \- | N readonly | Boolean | undefined | `1.7.1` | N safe-password-cert-path | String | - | \- | N safe-password-custom-hash | String | - | \- | N @@ -47,9 +46,9 @@ selection-end | Number | -1 | \- | N selection-start | Number | -1 | \- | N size | String | medium | `deprecated`。options: small/medium。Typescript:`'medium' \| 'small'` | N status | String | default | options: default/success/warning/error | N -suffix | String / Slot | - | suffix content before suffixIcon。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -suffix-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -tips | String / Slot | - | tips on the bottom of input, different `status` can make tips to be different color。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +suffix | String | - | suffix content before suffixIcon | N +suffix-icon | String / Object | - | \- | N +tips | String | - | tips on the bottom of input, different `status` can make tips to be different color | N type | String | text | options: text/number/idcard/digit/safe-password/password/nickname | N value | String / Number | - | input value。Typescript:`InputValue` `type InputValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/input/type.ts) | N default-value | String / Number | undefined | input value。uncontrolled property。Typescript:`InputValue` `type InputValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/input/type.ts) | N @@ -68,6 +67,17 @@ keyboardheightchange | `(height: number, duration: number)` | \- nicknamereview | `(pass: boolean, timeout: boolean)` | \- validate | `(detail: { error?: 'exceed-maximum' \| 'below-minimum' })` | trigger on text length being over max length or max character +### Input Slots + +name | Description +-- | -- +extra | `1.9.1` +label | text on the left of input +prefix-icon | \- +suffix | suffix content before suffixIcon +suffix-icon | \- +tips | \- + ### Input External Classes className | Description diff --git a/packages/components/input/README.md b/packages/components/input/README.md index 71f542316..a28f708b7 100644 --- a/packages/components/input/README.md +++ b/packages/components/input/README.md @@ -102,11 +102,10 @@ cursor-color | String | #0052d9 | 光标颜色。iOS 下的格式为十六进制 cursor-spacing | Number | 0 | 指定光标与键盘的距离,取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 | N disabled | Boolean | undefined | 是否禁用输入框 | N error-message | String | - | 已废弃。错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips) | N -extra | Slot | - | `1.9.1`。右侧额外内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N focus | Boolean | false | 获取焦点 | N format | Function | - | 指定输入框展示值的格式。TS 类型:`InputFormatType` `type InputFormatType = (value: InputValue) => string`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/input/type.ts) | N hold-keyboard | Boolean | false | focus时,点击页面的时候不收起键盘 | N -label | String / Slot | - | 左侧文本。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String | - | 左侧文本 | N layout | String | horizontal | 标题输入框布局方式。可选项:vertical/horizontal | N maxcharacter | Number | - | 用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用 | N maxlength | Number | -1 | 用户最多可以输入的文本长度,一个中文等于一个计数长度。默认为 -1,不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用 | N @@ -114,7 +113,7 @@ password | Boolean | false | 已废弃。是否是密码类型(已废弃,请 placeholder | String | undefined | 占位符 | N placeholder-class | String | input-placeholder | 指定 placeholder 的样式类 | N placeholder-style | String | - | 必需。指定 placeholder 的样式 | Y -prefix-icon | String / Object / Slot | - | 组件前置图标。值为字符串表示图标名称,值为 `Object` 类型,表示透传至 `icon`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +prefix-icon | String / Object | - | 组件前置图标。值为字符串表示图标名称,值为 `Object` 类型,表示透传至 `icon` | N readonly | Boolean | undefined | `1.7.1`。只读状态 | N safe-password-cert-path | String | - | 安全键盘加密公钥的路径,只支持包内路径 | N safe-password-custom-hash | String | - | 安全键盘计算 hash 的算法表达式,如 `md5(sha1('foo' + sha256(sm3(password + 'bar'))))` | N @@ -126,9 +125,9 @@ selection-end | Number | -1 | 光标结束位置,自动聚集时有效,需 selection-start | Number | -1 | 光标起始位置,自动聚集时有效,需与 selection-end 搭配使用 | N size | String | medium | 已废弃。输入框尺寸。可选项:small/medium。TS 类型:`'medium' \| 'small'` | N status | String | default | 输入框状态。可选项:default/success/warning/error | N -suffix | String / Slot | - | 后置图标前的后置内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -suffix-icon | String / Object / Slot | - | 后置文本内容。值为字符串则表示图标名称,值为 `Object` 类型,表示透传至 `icon`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -tips | String / Slot | - | 输入框下方提示文本,会根据不同的 `status` 呈现不同的样式。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +suffix | String | - | 后置图标前的后置内容 | N +suffix-icon | String / Object | - | 后置文本内容。值为字符串则表示图标名称,值为 `Object` 类型,表示透传至 `icon` | N +tips | String | - | 输入框下方提示文本,会根据不同的 `status` 呈现不同的样式 | N type | String | text | 输入框类型。可选项:text/number/idcard/digit/safe-password/password/nickname | N value | String / Number | - | 输入框的值。TS 类型:`InputValue` `type InputValue = string \| number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/input/type.ts) | N default-value | String / Number | undefined | 输入框的值。非受控属性。TS 类型:`InputValue` `type InputValue = string \| number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/input/type.ts) | N @@ -147,6 +146,17 @@ keyboardheightchange | `(height: number, duration: number)` | 键盘高度发生 nicknamereview | `(pass: boolean, timeout: boolean)` | 用户昵称审核完毕后触发,仅在 type 为 "nickname" 时有效 validate | `(detail: { error?: 'exceed-maximum' \| 'below-minimum' })` | 字数超出限制时触发 +### Input Slots + +名称 | 描述 +-- | -- +extra | `1.9.1`。右侧额外内容 +label | 自定义 `label` 显示内容 +prefix-icon | 组件前置图标 +suffix | 自定义 `suffix` 显示内容 +suffix-icon | 后置文本图标 +tips | 输入框下方提示内容 + ### Input External Classes 类名 | 描述 diff --git a/packages/components/layout/README.en-US.md b/packages/components/layout/README.en-US.md index 21db08ae6..36aa37ac6 100644 --- a/packages/components/layout/README.en-US.md +++ b/packages/components/layout/README.en-US.md @@ -10,6 +10,12 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N gutter | String / Number | - | \- | N +### Row Slots + +name | Description +-- | -- +\- | \- + ### Col Props @@ -19,3 +25,9 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N offset | String / Number | - | \- | N span | String / Number | - | \- | N + +### Col Slots + +name | Description +-- | -- +\- | \- diff --git a/packages/components/layout/README.md b/packages/components/layout/README.md index a626134dd..9c0b8cf50 100644 --- a/packages/components/layout/README.md +++ b/packages/components/layout/README.md @@ -10,6 +10,12 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N gutter | String / Number | - | 列之间的间距(默认单位px) | N +### Row Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,行内容 + ### Col Props @@ -19,3 +25,9 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N offset | String / Number | - | 列的偏移量(默认单位px) | N span | String / Number | - | 列的宽度(默认单位px) | N + +### Col Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,列内容 diff --git a/packages/components/link/README.en-US.md b/packages/components/link/README.en-US.md index 926745747..c8d5ec52c 100644 --- a/packages/components/link/README.en-US.md +++ b/packages/components/link/README.en-US.md @@ -8,14 +8,14 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | \- | N disabled | Boolean | false | make link to be disabled | N hover | Boolean | - | \- | N navigator-props | Object | - | \- | N -prefix-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +prefix-icon | String / Object | - | \- | N size | String | medium | options: small/medium/large。Typescript:`SizeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N status | String | normal | `deprecated`。options: normal/active/disabled | N -suffix-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +suffix-icon | String / Object | - | \- | N theme | String | default | options: default/primary/danger/warning/success | N underline | Boolean | - | \- | N @@ -27,6 +27,15 @@ complete | \- | \- fail | \- | \- success | \- | \- +### Link Slots + +name | Description +-- | -- +\- | \- +content | \- +prefix-icon | \- +suffix-icon | \- + ### Link External Classes className | Description diff --git a/packages/components/link/README.md b/packages/components/link/README.md index 04669126d..e03b5b234 100644 --- a/packages/components/link/README.md +++ b/packages/components/link/README.md @@ -73,14 +73,14 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -content | String / Slot | - | 链接内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 链接内容 | N disabled | Boolean | false | 是否为禁用态 | N hover | Boolean | - | 是否开启点击反馈 | N navigator-props | Object | - | 与 navigator 原生组件属性保持一致,具体使用参考:[微信开放文档](https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html)。使用时请将形如 `open-type` 风格的属性名改为 `openType` 风格 | N -prefix-icon | String / Object / Slot | - | 前置图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +prefix-icon | String / Object | - | 前置图标 | N size | String | medium | 尺寸。可选项:small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N status | String | normal | 已废弃。组件状态。可选项:normal/active/disabled | N -suffix-icon | String / Object / Slot | - | 后置图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +suffix-icon | String / Object | - | 后置图标 | N theme | String | default | 组件风格,依次为默认色、品牌色、危险色、警告色、成功色。可选项:default/primary/danger/warning/success | N underline | Boolean | - | 是否显示链接下划线 | N @@ -92,6 +92,15 @@ complete | \- | 页面链接执行完成后触发(失败或成功均会触发 fail | \- | 页面链接跳转失败后触发 success | \- | 页面链接跳转成功后触发 +### Link Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +content | 自定义 `content` 显示内容 +prefix-icon | 自定义 `prefix-icon` 显示内容 +suffix-icon | 自定义 `suffix-icon` 显示内容 + ### Link External Classes 类名 | 描述 diff --git a/packages/components/loading/README.en-US.md b/packages/components/loading/README.en-US.md index 42b599ec2..17eb74566 100644 --- a/packages/components/loading/README.en-US.md +++ b/packages/components/loading/README.en-US.md @@ -11,7 +11,7 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v delay | Number | 0 | \- | N duration | Number | 800 | \- | N fullscreen | Boolean | false | `1.8.5` | N -indicator | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +indicator | Boolean | true | \- | N inherit-color | Boolean | false | \- | N layout | String | horizontal | options: horizontal/vertical | N loading | Boolean | true | \- | N @@ -19,9 +19,17 @@ pause | Boolean | false | \- | N progress | Number | - | \- | N reverse | Boolean | - | \- | N size | String | '20px' | \- | N -text | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +text | String | - | \- | N theme | String | circular | options: circular/spinner/dots | N +### Loading Slots + +name | Description +-- | -- +\- | \- +indicator | \- +text | \- + ### Loading External Classes className | Description diff --git a/packages/components/loading/README.md b/packages/components/loading/README.md index 0d2213ae9..a82148079 100644 --- a/packages/components/loading/README.md +++ b/packages/components/loading/README.md @@ -67,7 +67,7 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场 delay | Number | 0 | 延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒 | N duration | Number | 800 | 加载动画执行完成一次的时间,单位:毫秒 | N fullscreen | Boolean | false | `1.8.5`。是否显示为全屏加载 | N -indicator | Boolean / Slot | true | 加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +indicator | Boolean | true | 加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符 | N inherit-color | Boolean | false | 是否继承父元素颜色 | N layout | String | horizontal | 对齐方式。可选项:horizontal/vertical | N loading | Boolean | true | 是否处于加载状态 | N @@ -75,9 +75,17 @@ pause | Boolean | false | 是否暂停动画 | N progress | Number | - | 加载进度 | N reverse | Boolean | - | 加载动画是否反向 | N size | String | '20px' | 尺寸,示例:20px | N -text | String / Slot | - | 加载提示文案。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +text | String | - | 加载提示文案 | N theme | String | circular | 加载组件类型。可选项:circular/spinner/dots | N +### Loading Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `text` 插槽 +indicator | 自定义 `indicator` 显示内容 +text | 自定义 `text` 显示内容 + ### Loading External Classes 类名 | 描述 diff --git a/packages/components/message/README.en-US.md b/packages/components/message/README.en-US.md index 0ede3de4a..d2adb8eda 100644 --- a/packages/components/message/README.en-US.md +++ b/packages/components/message/README.en-US.md @@ -8,14 +8,14 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -action | String / Slot | - | `deprecated`。operation。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +action | String | - | `deprecated`。operation | N align | String | left | options: left/center。Typescript:`MessageAlignType` `type MessageAlignType = 'left' \| 'center'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/message/type.ts) | N -close-btn | String / Boolean / Object / Slot | false | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +close-btn | String / Boolean / Object | false | \- | N +content | String | - | \- | N duration | Number | 3000 | \- | N gap | String / Number / Boolean | 12 | \- | N -icon | String / Boolean / Object / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -link | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Boolean / Object | true | \- | N +link | String / Object | - | \- | N marquee | Boolean / Object | false | Typescript:`boolean \| MessageMarquee` `interface MessageMarquee { speed?: number; loop?: number; delay?: number }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/message/type.ts) | N offset | Array | - | Typescript:`Array` | N single | Boolean | true | \- | N @@ -33,6 +33,17 @@ close-btn-click | - | \- duration-end | \- | \- link-click | - | \- +### Message Slots + +name | Description +-- | -- +\- | \- +action | `deprecated`。operation +close-btn | \- +content | \- +icon | \- +link | \- + ### Message External Classes className | Description diff --git a/packages/components/message/README.md b/packages/components/message/README.md index 2bc8983a3..ec51832d1 100644 --- a/packages/components/message/README.md +++ b/packages/components/message/README.md @@ -54,14 +54,14 @@ import Message from 'tdesign-miniprogram/message/index'; -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -action | String / Slot | - | 已废弃。操作。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +action | String | - | 已废弃。操作 | N align | String | left | 文本对齐方式。可选项:left/center。TS 类型:`MessageAlignType` `type MessageAlignType = 'left' \| 'center'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/message/type.ts) | N -close-btn | String / Boolean / Object / Slot | false | 关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string ,如:'user',则显示组件内置图标。值类型为 object ,则会透传至 icon 组件。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -content | String / Slot | - | 用于自定义消息弹出内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +close-btn | String / Boolean / Object | false | 关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string ,如:'user',则显示组件内置图标。值类型为 object ,则会透传至 icon 组件 | N +content | String | - | 用于自定义消息弹出内容 | N duration | Number | 3000 | 消息内置计时器,计时到达时会触发 duration-end 事件。单位:毫秒。值为 0 则表示没有计时器 | N gap | String / Number / Boolean | 12 | 两条 `message` 之间的间距 | N -icon | String / Boolean / Object / Slot | true | 消息提醒前面的图标,可以自定义。值为 true 则根据 theme 显示对应的图标,值为 false 则不显示图标。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string ,如:'info',则显示组件内置图标。值类型为 object ,则会透传至 icon 组件。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -link | String / Object / Slot | - | 链接名称。值为字符串表示链接名称,值为 `Object` 类型,表示透传至 `Link`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Boolean / Object | true | 消息提醒前面的图标,可以自定义。值为 true 则根据 theme 显示对应的图标,值为 false 则不显示图标。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string ,如:'info',则显示组件内置图标。值类型为 object ,则会透传至 icon 组件 | N +link | String / Object | - | 链接名称。值为字符串表示链接名称,值为 `Object` 类型,表示透传至 `Link` | N marquee | Boolean / Object | false | 跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放。TS 类型:`boolean \| MessageMarquee` `interface MessageMarquee { speed?: number; loop?: number; delay?: number }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/message/type.ts) | N offset | Array | - | 相对于 placement 的偏移量,默认单位 rpx。示例:[-10, 20] 或 ['10rpx', '8rpx']。TS 类型:`Array` | N single | Boolean | true | 是否保持仅显示一条信息 | N @@ -79,6 +79,17 @@ close-btn-click | - | 当关闭按钮存在时,用户点击关闭按钮触发 duration-end | \- | 计时结束后触发 link-click | - | 当`link`链接存在时,点击链接文本时触发 +### Message Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +action | 已废弃。自定义 `action` 显示内容 +close-btn | 关闭按钮 +content | 自定义消息弹出内容 +icon | 消息提醒前面的图标 +link | 链接名称 + ### Message External Classes 类名 | 描述 diff --git a/packages/components/navbar/README.en-US.md b/packages/components/navbar/README.en-US.md index 29a2b70cb..b6317ae2d 100644 --- a/packages/components/navbar/README.en-US.md +++ b/packages/components/navbar/README.en-US.md @@ -10,15 +10,13 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N animation | Boolean | true | \- | N background | String | - | `deprecated`。background | N -capsule | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N delta | Number | 1 | \- | N fixed | Boolean | true | \- | N home-icon | String | - | `deprecated`。homeIcon | N -left | Slot | - | `0.26.0`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N left-arrow | Boolean | false | `0.26.0` | N left-icon | String | - | `deprecated` | N safe-area-inset-top | Boolean | true | \- | N -title | String / Slot | - | page title。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | page title | N title-max-length | Number | - | \- | N visible | Boolean | true | \- | N @@ -32,6 +30,14 @@ go-back | \- | \- go-home | \- | `deprecated` success | \- | \- +### Navbar Slots + +name | Description +-- | -- +capsule | \- +left | `0.26.0` +title | page title + ### Navbar External Classes className | Description diff --git a/packages/components/navbar/README.md b/packages/components/navbar/README.md index fd9df7820..b0ae540b8 100644 --- a/packages/components/navbar/README.md +++ b/packages/components/navbar/README.md @@ -59,15 +59,13 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N animation | Boolean | true | 是否添加动画效果 | N background | String | - | 已废弃。背景 | N -capsule | Slot | - | 左侧胶囊区域。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N delta | Number | 1 | 后退按钮后退层数,含义参考 [wx.navigateBack](https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateBack.html),特殊的,传入 0 不会发生执行 wx.navigateBack | N fixed | Boolean | true | 是否固定在顶部 | N home-icon | String | - | 已废弃。首页图标地址。值为 '' 或者 undefined 则表示不显示返回图标,值为 'circle' 表示显示默认图标,值为 'slot' 表示使用插槽渲染,值为其他则表示图标地址 | N -left | Slot | - | `0.26.0`。左侧内容区域。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N left-arrow | Boolean | false | `0.26.0`。是否展示左侧箭头 | N left-icon | String | - | 已废弃。左侧图标地址,值为 '' 或者 undefined 则表示不显示返回图标,值为 'arrow-left' 表示显示返回图标,值为 'slot' 表示使用插槽渲染,值为其他则表示图标地址 | N safe-area-inset-top | Boolean | true | 是否开启顶部安全区适配 | N -title | String / Slot | - | 页面标题。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | - | 页面标题 | N title-max-length | Number | - | 标题文字最大长度,超出的范围使用 `...` 表示 | N visible | Boolean | true | 是否显示 | N @@ -81,6 +79,14 @@ go-back | \- | 点击左侧箭头时触发 go-home | \- | 已废弃。点击 Home 触发 success | \- | navigateBack 执行成功后触发 +### Navbar Slots + +名称 | 描述 +-- | -- +capsule | 左侧胶囊区域 +left | `0.26.0`。左侧内容区域 +title | 自定义 `title` 显示内容 + ### Navbar External Classes 类名 | 描述 diff --git a/packages/components/notice-bar/README.en-US.md b/packages/components/notice-bar/README.en-US.md index c07b9b623..3026d0a48 100644 --- a/packages/components/notice-bar/README.en-US.md +++ b/packages/components/notice-bar/README.en-US.md @@ -8,13 +8,13 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -content | String / Array / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String / Array | - | \- | N direction | String | horizontal | options: horizontal/vertical | N interval | Number | 2000 | \- | N marquee | Boolean / Object | false | Typescript:`boolean \| NoticeBarMarquee` `interface NoticeBarMarquee { speed?: number; loop?: number; delay?: number }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/notice-bar/type.ts) | N -operation | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -prefix-icon | String / Boolean / Object / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -suffix-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +operation | String | - | \- | N +prefix-icon | String / Boolean / Object | true | \- | N +suffix-icon | String / Object | - | \- | N theme | String | info | options: info/success/warning/error | N visible | Boolean | false | \- | N default-visible | Boolean | undefined | uncontrolled property | N @@ -26,6 +26,15 @@ name | params | description change | `(current: number, source: '' \| 'autoplay' \| 'touch')` | \- click | `(trigger: NoticeBarTrigger)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/notice-bar/type.ts)。
`type NoticeBarTrigger = 'prefix-icon' \| 'content' \| 'operation' \| 'suffix-icon';`
+### NoticeBar Slots + +name | Description +-- | -- +content | \- +operation | \- +prefix-icon | \- +suffix-icon | \- + ### NoticeBar External Classes className | Description diff --git a/packages/components/notice-bar/README.md b/packages/components/notice-bar/README.md index 867a9f818..487cd5258 100644 --- a/packages/components/notice-bar/README.md +++ b/packages/components/notice-bar/README.md @@ -79,13 +79,13 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -content | String / Array / Slot | - | 文本内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String / Array | - | 文本内容 | N direction | String | horizontal | 滚动方向。可选项:horizontal/vertical | N interval | Number | 2000 | 间隔时间【仅在 direction='vertical' 有效】 | N marquee | Boolean / Object | false | 跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放【仅在 direction='horizontal' 有效】。TS 类型:`boolean \| NoticeBarMarquee` `interface NoticeBarMarquee { speed?: number; loop?: number; delay?: number }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/notice-bar/type.ts) | N -operation | String / Slot | - | 右侧额外信息。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -prefix-icon | String / Boolean / Object / Slot | true | 前缀图标。值为字符串表示图标名称,值为 `false` 表示不显示前缀图标,值为 `Object` 类型,表示透传至 `icon`,不传表示使用主题图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -suffix-icon | String / Object / Slot | - | 后缀图标。值为字符串表示图标名称。值为 `Object` 类型,表示透传至 `icon`,不传表示不显示后缀图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +operation | String | - | 右侧额外信息 | N +prefix-icon | String / Boolean / Object | true | 前缀图标。值为字符串表示图标名称,值为 `false` 表示不显示前缀图标,值为 `Object` 类型,表示透传至 `icon`,不传表示使用主题图标 | N +suffix-icon | String / Object | - | 后缀图标。值为字符串表示图标名称。值为 `Object` 类型,表示透传至 `icon`,不传表示不显示后缀图标 | N theme | String | info | 内置主题。可选项:info/success/warning/error | N visible | Boolean | false | 显示/隐藏 | N default-visible | Boolean | undefined | 显示/隐藏。非受控属性 | N @@ -97,6 +97,15 @@ default-visible | Boolean | undefined | 显示/隐藏。非受控属性 | N change | `(current: number, source: '' \| 'autoplay' \| 'touch')` | 当 `direction="vertical"` 时轮播切换时触发 click | `(trigger: NoticeBarTrigger)` | 点击事件。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/notice-bar/type.ts)。
`type NoticeBarTrigger = 'prefix-icon' \| 'content' \| 'operation' \| 'suffix-icon';`
+### NoticeBar Slots + +名称 | 描述 +-- | -- +content | 文本内容 +operation | 自定义 `operation` 显示内容 +prefix-icon | 前缀图标 +suffix-icon | 后缀图标 + ### NoticeBar External Classes 类名 | 描述 diff --git a/packages/components/overlay/README.en-US.md b/packages/components/overlay/README.en-US.md index 959d92686..0410d57b6 100644 --- a/packages/components/overlay/README.en-US.md +++ b/packages/components/overlay/README.en-US.md @@ -20,6 +20,12 @@ name | params | description -- | -- | -- click | `({ visible: boolean })` | \- +### Overlay Slots + +name | Description +-- | -- +\- | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/overlay/README.md b/packages/components/overlay/README.md index 75fdb9ca4..f81a837c4 100644 --- a/packages/components/overlay/README.md +++ b/packages/components/overlay/README.md @@ -57,6 +57,12 @@ z-index | Number | 11000 | 遮罩层级 | N -- | -- | -- click | `({ visible: boolean })` | 点击遮罩时触发 +### Overlay Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/picker/README.en-US.md b/packages/components/picker/README.en-US.md index a89efff89..8f47b8bc0 100644 --- a/packages/components/picker/README.en-US.md +++ b/packages/components/picker/README.en-US.md @@ -11,8 +11,7 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v auto-close | Boolean | true | \- | N cancel-btn | String / Boolean | true | Typescript:`boolean \| string` | N confirm-btn | String / Boolean | true | Typescript:`boolean \| string` | N -footer | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +header | Boolean | true | \- | N item-height | Number | 80 | \- | N keys | Object | - | Typescript:`KeysType`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N popup-props | Object | {} | popup properties。Typescript:`PopupProps`,[Popup API Documents](./popup?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/picker/type.ts) | N @@ -33,6 +32,15 @@ close | `(trigger: TriggerSource)` | `1.0.1`。[see more ts definition](https:// confirm | `(value: Array, label: string, columns: Array<{ column: number; index: number; disabled?: boolean; }> )` | \- pick | `(value: Array, label: string, column: number, index: number)` | \- +### Picker Slots + +name | Description +-- | -- +\- | \- +content | \- +footer | \- +header | \- + ### PickerItem Props @@ -43,6 +51,12 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v format | Function | - | Typescript:`(option: PickerItemOption, columnIndex: number) => PickerItemOption` | N options | Array | [] | Typescript:`PickerItemOption[]` `interface PickerItemOption { label: string; value: string \| number; icon?: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/picker-item/type.ts) | N +### PickerItem Slots + +name | Description +-- | -- +label-suffix-index | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/picker/README.md b/packages/components/picker/README.md index 61ac25614..3f2f43d16 100644 --- a/packages/components/picker/README.md +++ b/packages/components/picker/README.md @@ -56,8 +56,7 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场 auto-close | Boolean | true | 自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible | N cancel-btn | String / Boolean | true | 取消按钮文字。TS 类型:`boolean \| string` | N confirm-btn | String / Boolean | true | 确定按钮文字。TS 类型:`boolean \| string` | N -footer | Slot | - | 底部内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +header | Boolean | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容 | N item-height | Number | 80 | PickerItem 的子项高度,单位 rpx | N keys | Object | - | 用来定义 value / label / icon 在 `options` 中对应的字段别名。TS 类型:`KeysType`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N popup-props | Object | {} | 透传 Popup 组件全部属性。TS 类型:`PopupProps`,[Popup API Documents](./popup?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/picker/type.ts) | N @@ -78,6 +77,15 @@ close | `(trigger: TriggerSource)` | `1.0.1`。关闭时触发。[详细类型 confirm | `(value: Array, label: string, columns: Array<{ column: number; index: number; disabled?: boolean; }> )` | 点击确认按钮时触发 pick | `(value: Array, label: string, column: number, index: number)` | 任何一列选中都会触发,不同的列参数不同。`column` 表示第几列变化,`index` 表示变化那一列的选中项下标 +### Picker Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容 +content | 中间内容,介于头部跟内容之间 +footer | 底部内容 +header | 自定义 `header` 显示内容 + ### PickerItem Props @@ -88,6 +96,12 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场 format | Function | - | 格式化标签。TS 类型:`(option: PickerItemOption, columnIndex: number) => PickerItemOption` | N options | Array | [] | 数据源。TS 类型:`PickerItemOption[]` `interface PickerItemOption { label: string; value: string \| number; icon?: string }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/picker-item/type.ts) | N +### PickerItem Slots + +名称 | 描述 +-- | -- +label-suffix-index | 列表子项后置插槽,用于自定义标签文本之后的内容。 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/picker/picker.wxml b/packages/components/picker/picker.wxml index 23aa3559e..deb2084f1 100644 --- a/packages/components/picker/picker.wxml +++ b/packages/components/picker/picker.wxml @@ -3,6 +3,7 @@ `type PopupSource = 'close-btn' \| 'overlay'`
+### Popup Slots + +name | Description +-- | -- +\- | \- +close-btn | \- +content | \- + ### Popup External Classes className | Description diff --git a/packages/components/popup/README.md b/packages/components/popup/README.md index ba4ac946d..79e334947 100644 --- a/packages/components/popup/README.md +++ b/packages/components/popup/README.md @@ -47,9 +47,9 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -close-btn | Boolean / Slot | - | 关闭按钮,值类型为 Boolean 时表示是否显示关闭按钮。也可以自定义关闭按钮。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +close-btn | Boolean | - | 关闭按钮,值类型为 Boolean 时表示是否显示关闭按钮。也可以自定义关闭按钮 | N close-on-overlay-click | Boolean | true | 点击遮罩层是否关闭 | N -content | String / Slot | - | 浮层里面的内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 浮层里面的内容 | N duration | Number | 240 | 动画过渡时间 | N overlay-props | Object | {} | 遮罩层的属性,透传至 overlay。TS 类型:`OverlayProps`,[Overlay API Documents](./overlay?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/popup/type.ts) | N placement | String | top | 浮层出现位置。可选项:top/left/right/bottom/center | N @@ -66,6 +66,14 @@ z-index | Number | 11500 | 组件层级,Web 侧样式默认为 5500,移动 -- | -- | -- visible-change | `(visible: boolean, trigger: PopupSource) ` | 当浮层隐藏或显示时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/popup/type.ts)。
`type PopupSource = 'close-btn' \| 'overlay'`
+### Popup Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +close-btn | 自定义 `close-btn` 显示内容 +content | 自定义 `content` 显示内容 + ### Popup External Classes 类名 | 描述 diff --git a/packages/components/progress/README.en-US.md b/packages/components/progress/README.en-US.md index 36f3a3705..d0b7634b8 100644 --- a/packages/components/progress/README.en-US.md +++ b/packages/components/progress/README.en-US.md @@ -9,7 +9,7 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N color | String / Object / Array | '' | Typescript:`string \| Array \| Record` | N -label | String / Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String / Boolean | true | \- | N percentage | Number | 0 | \- | N size | String / Number | 'default' | \- | N status | String | - | options: success/error/warning/active。Typescript:`ProgressStatus` `type ProgressStatus = 'success' \| 'error' \| 'warning' \| 'active'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/progress/type.ts) | N @@ -17,6 +17,12 @@ stroke-width | String / Number | - | \- | N theme | String | line | options: line/plump/circle。Typescript:`ProgressTheme` `type ProgressTheme = 'line' \| 'plump' \| 'circle'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/progress/type.ts) | N track-color | String | '' | \- | N +### Progress Slots + +name | Description +-- | -- +label | \- + ### Progress External Classes className | Description diff --git a/packages/components/progress/README.md b/packages/components/progress/README.md index 309a900b2..328745cc4 100644 --- a/packages/components/progress/README.md +++ b/packages/components/progress/README.md @@ -61,7 +61,7 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N color | String / Object / Array | '' | 进度条颜色。示例:'#ED7B2F' 或 'orange' 或 `['#f00', '#0ff', '#f0f']` 或 `{ '0%': '#f00', '100%': '#0ff' }` 或 `{ from: '#000', to: '#000' }` 等。TS 类型:`string \| Array \| Record` | N -label | String / Boolean / Slot | true | 进度百分比,可自定义。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String / Boolean | true | 进度百分比,可自定义 | N percentage | Number | 0 | 进度条百分比 | N size | String / Number | 'default' | 进度条尺寸,仅对环形进度条有效。可选值:default/micro。default 值为 112; micro 值为 24 | N status | String | - | 进度条状态。可选项:success/error/warning/active。TS 类型:`ProgressStatus` `type ProgressStatus = 'success' \| 'error' \| 'warning' \| 'active'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/progress/type.ts) | N @@ -69,6 +69,12 @@ stroke-width | String / Number | - | 进度条线宽,默认单位 `px` | N theme | String | line | 进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间。可选项:line/plump/circle。TS 类型:`ProgressTheme` `type ProgressTheme = 'line' \| 'plump' \| 'circle'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/progress/type.ts) | N track-color | String | '' | 进度条未完成部分颜色 | N +### Progress Slots + +名称 | 描述 +-- | -- +label | 进度百分比 + ### Progress External Classes 类名 | 描述 diff --git a/packages/components/pull-down-refresh/README.en-US.md b/packages/components/pull-down-refresh/README.en-US.md index e2e4d9530..4132642ef 100644 --- a/packages/components/pull-down-refresh/README.en-US.md +++ b/packages/components/pull-down-refresh/README.en-US.md @@ -11,7 +11,6 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v disabled | Boolean | false | disabled pull down refresh | N enable-back-to-top | Boolean | true | `1.1.5` | N enable-passive | Boolean | false | `1.1.5` | N -header | Slot | - | `1.2.10`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N loading-bar-height | String / Number | 50 | \- | N loading-props | Object | - | Typescript:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/pull-down-refresh/type.ts) | N loading-texts | Array | [] | Typescript:`string[]` | N @@ -38,6 +37,13 @@ refresh | \- | \- scrolltolower | \- | \- timeout | \- | \- +### PullDownRefresh Slots + +name | Description +-- | -- +\- | \- +header | `1.2.10` + ### PullDownRefresh External Classes className | Description diff --git a/packages/components/pull-down-refresh/README.md b/packages/components/pull-down-refresh/README.md index 0da731486..f206c3dcb 100644 --- a/packages/components/pull-down-refresh/README.md +++ b/packages/components/pull-down-refresh/README.md @@ -44,7 +44,6 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场 disabled | Boolean | false | 是否禁用下拉刷新 | N enable-back-to-top | Boolean | true | `1.1.5`。iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向。自 2.27.3 版本开始,若非显式设置为 false,则在显示尺寸大于屏幕 90% 时自动开启 | N enable-passive | Boolean | false | `1.1.5`。开启 passive 特性,能优化一定的滚动性能 | N -header | Slot | - | `1.2.10`。头部。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N loading-bar-height | String / Number | 50 | 加载中下拉高度,如果值为数字则单位是:'px' | N loading-props | Object | - | 加载loading样式。TS 类型:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/pull-down-refresh/type.ts) | N loading-texts | Array | [] | 提示语,组件内部默认值为 ['下拉刷新', '松手刷新', '正在刷新', '刷新完成']。TS 类型:`string[]` | N @@ -71,6 +70,13 @@ refresh | \- | 结束下拉时触发 scrolltolower | \- | 滚动到页面底部时触发 timeout | \- | 刷新超时触发 +### PullDownRefresh Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +header | `1.2.10`。头部 + ### PullDownRefresh External Classes 类名 | 描述 diff --git a/packages/components/qrcode/README.en-US.md b/packages/components/qrcode/README.en-US.md index 8eb23a5df..5f67dedd4 100644 --- a/packages/components/qrcode/README.en-US.md +++ b/packages/components/qrcode/README.en-US.md @@ -16,7 +16,6 @@ icon-size | Number / Object | 40 | The size of the picture in the QR code。Type level | String | M | QR code error correction level。options: L/M/Q/H | N size | Number | 160 | QR code size | N status | String | active | QR code status。options: active/expired/loading/scanned。Typescript:`QRStatus` `type QRStatus = "active" \| "expired" \| "loading" \| "scanned"`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/qrcode/type.ts) | N -status-render | Slot | - | Custom state renderer。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/qrcode/type.ts) | N value | String | - | scanned text | N ### QRCode Events @@ -25,6 +24,12 @@ name | params | description -- | -- | -- refresh | \- | Click the "Click to refresh" callback +### QRCode Slots + +name | Description +-- | -- +status-render | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/qrcode/README.md b/packages/components/qrcode/README.md index 8440f5ec9..6cecc1667 100644 --- a/packages/components/qrcode/README.md +++ b/packages/components/qrcode/README.md @@ -84,7 +84,6 @@ icon-size | Number / Object | 40 | 二维码中图片的大小。TS 类型:`nu level | String | M | 二维码纠错等级。可选项:L/M/Q/H | N size | Number | 160 | 二维码大小 | N status | String | active | 二维码状态。可选项:active/expired/loading/scanned。TS 类型:`QRStatus` `type QRStatus = "active" \| "expired" \| "loading" \| "scanned"`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/qrcode/type.ts) | N -status-render | Slot | - | 自定义状态渲染器。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/qrcode/type.ts) | N value | String | - | 扫描后的文本 | N ### QRCode Events @@ -93,6 +92,12 @@ value | String | - | 扫描后的文本 | N -- | -- | -- refresh | \- | 点击"点击刷新"的回调 +### QRCode Slots + +名称 | 描述 +-- | -- +status-render | 自定义状态渲染器 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/radio/README.en-US.md b/packages/components/radio/README.en-US.md index 36feef3d1..6e37bda5f 100644 --- a/packages/components/radio/README.en-US.md +++ b/packages/components/radio/README.en-US.md @@ -12,11 +12,11 @@ allow-uncheck | Boolean | false | \- | N block | Boolean | true | \- | N checked | Boolean | false | \- | N default-checked | Boolean | undefined | uncontrolled property | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | \- | N content-disabled | Boolean | false | \- | N disabled | Boolean | undefined | \- | N -icon | String / Array / Slot | 'circle' | Typescript:`'circle' \| 'line' \| 'dot' \| Array` | N -label | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Array | 'circle' | Typescript:`'circle' \| 'line' \| 'dot' \| Array` | N +label | String | - | \- | N max-content-row | Number | 5 | \- | N max-label-row | Number | 3 | \- | N name | String | - | \- | N @@ -30,6 +30,15 @@ name | params | description -- | -- | -- change | `(checked: boolean)` | \- +### Radio Slots + +name | Description +-- | -- +\- | \- +content | \- +icon | \- +label | \- + ### Radio External Classes className | Description @@ -65,6 +74,12 @@ name | params | description -- | -- | -- change | `(value: RadioValue)` | \- +### RadioGroup Slots + +name | Description +-- | -- +\- | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/radio/README.md b/packages/components/radio/README.md index 68cd6baf7..852bef528 100644 --- a/packages/components/radio/README.md +++ b/packages/components/radio/README.md @@ -66,11 +66,11 @@ allow-uncheck | Boolean | false | 是否允许取消选中 | N block | Boolean | true | 是否为块级元素 | N checked | Boolean | false | 是否选中 | N default-checked | Boolean | undefined | 是否选中。非受控属性 | N -content | String / Slot | - | 单选内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 单选内容 | N content-disabled | Boolean | false | 是否禁用组件内容(content)触发选中 | N disabled | Boolean | undefined | 是否为禁用态 | N -icon | String / Array / Slot | 'circle' | 自定义选中图标和非选中图标。使用 Array 时表示:`[选中态图标,非选中态图标]`。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标,值为 slot 时使用插槽。TS 类型:`'circle' \| 'line' \| 'dot' \| Array` | N -label | String / Slot | - | 主文案。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Array | 'circle' | 自定义选中图标和非选中图标。使用 Array 时表示:`[选中态图标,非选中态图标]`。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标,值为 slot 时使用插槽。TS 类型:`'circle' \| 'line' \| 'dot' \| Array` | N +label | String | - | 主文案 | N max-content-row | Number | 5 | 内容最大行数限制 | N max-label-row | Number | 3 | 主文案最大行数限制 | N name | String | - | HTML 元素原生属性 | N @@ -84,6 +84,15 @@ value | String / Number / Boolean | false | 单选按钮的值。TS 类型:`T` -- | -- | -- change | `(checked: boolean)` | 值变化时触发 +### Radio Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,主文案 +content | 自定义 `content` 显示内容 +icon | 自定义选中图标和非选中图标 +label | 自定义 `label` 显示内容 + ### Radio External Classes 类名 | 描述 @@ -119,6 +128,12 @@ default-value | String / Number / Boolean | undefined | 选中的值。非受控 -- | -- | -- change | `(value: RadioValue)` | 选中值发生变化时触发 +### RadioGroup Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,单选框组内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/result/README.en-US.md b/packages/components/result/README.en-US.md index d6362906e..f3287678c 100644 --- a/packages/components/result/README.en-US.md +++ b/packages/components/result/README.en-US.md @@ -8,11 +8,19 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -description | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | \- | N icon | String / Boolean / Object | true | \- | N -image | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | \- | N theme | String | default | options: default/success/warning/error | N -title | String / Slot | '' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | '' | \- | N + +### Result Slots + +name | Description +-- | -- +description | \- +image | \- +title | \- ### Result External Classes diff --git a/packages/components/result/README.md b/packages/components/result/README.md index e85a10f65..7ce91b781 100644 --- a/packages/components/result/README.md +++ b/packages/components/result/README.md @@ -66,11 +66,19 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -description | String / Slot | - | 描述文字。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +description | String | - | 描述文字 | N icon | String / Boolean / Object | true | 图标名称。值为字符串表示图标名称,值为 `false` 表示不显示图标,值为 `Object` 类型,表示透传至 `icon`,不传表示使用主题图标 | N -image | String / Slot | - | 图片地址。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +image | String | - | 图片地址 | N theme | String | default | 内置主题。可选项:default/success/warning/error | N -title | String / Slot | '' | 标题。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | '' | 标题 | N + +### Result Slots + +名称 | 描述 +-- | -- +description | 自定义 `description` 显示内容 +image | 自定义 `image` 显示内容 +title | 自定义 `title` 显示内容 ### Result External Classes diff --git a/packages/components/search/README.en-US.md b/packages/components/search/README.en-US.md index b286559b6..cb514a249 100644 --- a/packages/components/search/README.en-US.md +++ b/packages/components/search/README.en-US.md @@ -7,7 +7,7 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -action | String / Slot | '' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +action | String | '' | \- | N adjust-position | Boolean | true | \- | N always-embed | Boolean | false | \- | N center | Boolean | false | \- | N @@ -21,7 +21,7 @@ disabled | Boolean | false | \- | N focus | Boolean | false | \- | N hold-keyboard | Boolean | false | \- | N label | String | '' | `deprecated` | N -left-icon | String / Slot | 'search' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +left-icon | String | 'search' | \- | N maxcharacter | Number | - | The maximum number of characters that the user can enter. One Chinese character represents two characters in length. Use either `maxcharacter` or `maxlength` | N maxlength | Number | -1 | \- | N placeholder | String | '' | \- | N @@ -29,7 +29,7 @@ placeholder-class | String | input-placeholder | \- | N placeholder-style | String | - | required | Y readonly | Boolean | undefined | \- | N result-list | Array | [] | Typescript:`Array` | N -right-icon | String / Slot | 'close-circle-filled' | `deprecated`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +right-icon | String | 'close-circle-filled' | `deprecated` | N selection-end | Number | -1 | \- | N selection-start | Number | -1 | \- | N shape | String | 'square' | options: square/round | N @@ -47,6 +47,14 @@ clear | `({ value: string })` | \- focus | `({ value: string })` | \- submit | `({ value: string })` | \- +### Search Slots + +name | Description +-- | -- +action | \- +left-icon | \- +right-icon | `deprecated` + ### Search External Classes className | Description diff --git a/packages/components/search/README.md b/packages/components/search/README.md index 42226b00e..afb47b1f8 100644 --- a/packages/components/search/README.md +++ b/packages/components/search/README.md @@ -55,7 +55,7 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -action | String / Slot | '' | 自定义右侧操作按钮文字。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +action | String | '' | 自定义右侧操作按钮文字 | N adjust-position | Boolean | true | 键盘弹起时,是否自动上推页面 | N always-embed | Boolean | false | 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效) | N center | Boolean | false | 是否居中 | N @@ -69,7 +69,7 @@ disabled | Boolean | false | 是否禁用 | N focus | Boolean | false | 是否聚焦 | N hold-keyboard | Boolean | false | focus时,点击页面的时候不收起键盘 | N label | String | '' | 已废弃。左侧文本 | N -left-icon | String / Slot | 'search' | 左侧图标。如果需要使用 `Slot` 进行自定义,必须将该值设置为假值。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +left-icon | String | 'search' | 左侧图标。如果需要使用 `Slot` 进行自定义,必须将该值设置为假值 | N maxcharacter | Number | - | 用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用 | N maxlength | Number | -1 | 用户最多可以输入的文本长度,一个中文等于一个计数长度。默认为 -1,不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用 | N placeholder | String | '' | 占位符 | N @@ -77,7 +77,7 @@ placeholder-class | String | input-placeholder | 指定 placeholder 的样式类 placeholder-style | String | - | 必需。指定 placeholder 的样式 | Y readonly | Boolean | undefined | 只读状态 | N result-list | Array | [] | 预览结果列表。TS 类型:`Array` | N -right-icon | String / Slot | 'close-circle-filled' | 已废弃。右侧图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +right-icon | String | 'close-circle-filled' | 已废弃。右侧图标 | N selection-end | Number | -1 | 光标结束位置,自动聚集时有效,需与 selection-start 搭配使用 | N selection-start | Number | -1 | 光标起始位置,自动聚集时有效,需与 selection-end 搭配使用 | N shape | String | 'square' | 搜索框形状。可选项:square/round | N @@ -95,6 +95,14 @@ clear | `({ value: string })` | 点击清除时触发 focus | `({ value: string })` | 聚焦时触发 submit | `({ value: string })` | 提交时触发 +### Search Slots + +名称 | 描述 +-- | -- +action | 自定义 `action` 显示内容 +left-icon | 左侧图标 +right-icon | 已废弃。自定义 `right-icon` 显示内容 + ### Search External Classes 类名 | 描述 diff --git a/packages/components/side-bar/README.en-US.md b/packages/components/side-bar/README.en-US.md index 5ba00c11d..831b99582 100644 --- a/packages/components/side-bar/README.en-US.md +++ b/packages/components/side-bar/README.en-US.md @@ -18,6 +18,12 @@ name | params | description change | `(value: number \| string, label: string)` | \- click | `(value: number \| string, label: string)` | \- +### SideBar Slots + +name | Description +-- | -- +\- | \- + ### SideBarItem Props @@ -31,6 +37,12 @@ icon | String / Object | - | \- | N label | String | - | \- | N value | String / Number | - | \- | N +### SideBarItem Slots + +name | Description +-- | -- +\- | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/side-bar/README.md b/packages/components/side-bar/README.md index bbf19c0bb..2496fff32 100644 --- a/packages/components/side-bar/README.md +++ b/packages/components/side-bar/README.md @@ -68,6 +68,12 @@ default-value | String / Number | undefined | 选项值。非受控属性 | N change | `(value: number \| string, label: string)` | 选项值发生变化时触发 click | `(value: number \| string, label: string)` | 点击选项时触发 +### SideBar Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义侧边导航栏内容 + ### SideBarItem Props @@ -81,6 +87,12 @@ icon | String / Object | - | 图标,传对象则透传至 Icon | N label | String | - | 展示的标签 | N value | String / Number | - | 当前选项的值 | N +### SideBarItem Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义侧边导航项内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/skeleton/README.en-US.md b/packages/components/skeleton/README.en-US.md index bf0c48104..d23d29b13 100644 --- a/packages/components/skeleton/README.en-US.md +++ b/packages/components/skeleton/README.en-US.md @@ -14,6 +14,12 @@ loading | Boolean | true | \- | N row-col | Array | - | Typescript:`SkeletonRowCol` `type SkeletonRowCol = Array>` `interface SkeletonRowColObj { width?: string; size?: string;height?: string; marginRight?: string; marginLeft?: string; margin?: string; type?: 'rect' \| 'circle' \| 'text';}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/skeleton/type.ts) | N theme | String | text | options: avatar/image/text/paragraph | N +### Skeleton Slots + +name | Description +-- | -- +\- | \- + ### Skeleton External Classes className | Description diff --git a/packages/components/skeleton/README.md b/packages/components/skeleton/README.md index cd5a33421..0bce7b42b 100644 --- a/packages/components/skeleton/README.md +++ b/packages/components/skeleton/README.md @@ -62,6 +62,12 @@ loading | Boolean | true | 是否为加载状态,如果是则显示骨架图 row-col | Array | - | 高级设置,用于自定义行列数量、宽度高度、间距等。【示例一】,`[1, 1, 2]` 表示输出三行骨架图,第一行一列,第二行一列,第三行两列。【示例二】,`[1, 1, { width: '100px' }]` 表示自定义第三行的宽度为 `100px`。【示例三】,`[1, 2, [{ width, height }, { width, height, marginLeft }]]` 表示第三行有两列,且自定义宽度、高度、尺寸(圆形或方形使用)、间距、内容等。TS 类型:`SkeletonRowCol` `type SkeletonRowCol = Array>` `interface SkeletonRowColObj { width?: string; size?: string;height?: string; marginRight?: string; marginLeft?: string; margin?: string; type?: 'rect' \| 'circle' \| 'text';}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/skeleton/type.ts) | N theme | String | text | 骨架图风格,有基础、头像组合等两大类。可选项:avatar/image/text/paragraph | N +### Skeleton Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 + ### Skeleton External Classes 类名 | 描述 diff --git a/packages/components/steps/README.en-US.md b/packages/components/steps/README.en-US.md index aac0fd82f..d871812e4 100644 --- a/packages/components/steps/README.en-US.md +++ b/packages/components/steps/README.en-US.md @@ -22,6 +22,12 @@ name | params | description -- | -- | -- change | `({current: string \| number, previous: string \| number})` | \- +### Steps Slots + +name | Description +-- | -- +\- | \- + ### Steps External Classes className | Description @@ -35,12 +41,22 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -content | String / Slot | '' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -extra | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -icon | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | '' | \- | N +extra | String | - | \- | N +icon | String | - | \- | N status | String | default | options: default/process/finish/error。Typescript:`StepStatus` `type StepStatus = 'default' \| 'process' \| 'finish' \| 'error'`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/step-item/type.ts) | N sub-step-items | Array | [] | `deprecated`。Typescript:`SubStepItem[]` `interface SubStepItem { status: StepStatus, title: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/step-item/type.ts) | N -title | String / Slot | '' | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | '' | \- | N + +### StepItem Slots + +name | Description +-- | -- +\- | \- +content | \- +extra | \- +icon | \- +title | \- ### StepItem External Classes diff --git a/packages/components/steps/README.md b/packages/components/steps/README.md index 3a03cedb8..6ae773df2 100644 --- a/packages/components/steps/README.md +++ b/packages/components/steps/README.md @@ -82,6 +82,12 @@ theme | String | default | 步骤条风格。可选项:default/dot | N -- | -- | -- change | `({current: string \| number, previous: string \| number})` | 当前步骤发生变化时触发 +### Steps Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义步骤条内容 + ### Steps External Classes 类名 | 描述 @@ -95,12 +101,22 @@ t-class | 根节点样式类 -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -content | String / Slot | '' | 步骤描述。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -extra | String / Slot | - | 步骤条自定义内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N -icon | String / Slot | - | 图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | '' | 步骤描述 | N +extra | String | - | 步骤条自定义内容 | N +icon | String | - | 图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标 | N status | String | default | 当前步骤的状态:默认状态(未开始)、进行中状态、完成状态、错误状态。可选项:default/process/finish/error。TS 类型:`StepStatus` `type StepStatus = 'default' \| 'process' \| 'finish' \| 'error'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/step-item/type.ts) | N sub-step-items | Array | [] | 已废弃。子步骤条,仅支持 layout = 'vertical' 时。TS 类型:`SubStepItem[]` `interface SubStepItem { status: StepStatus, title: string }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/step-item/type.ts) | N -title | String / Slot | '' | 标题。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +title | String | '' | 标题 | N + +### StepItem Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义步骤内容 +content | 自定义 `content` 显示内容 +extra | 自定义 `extra` 显示内容 +icon | 自定义 `icon` 显示内容 +title | 自定义 `title` 显示内容 ### StepItem External Classes diff --git a/packages/components/sticky/README.en-US.md b/packages/components/sticky/README.en-US.md index 28bef705a..136cca970 100644 --- a/packages/components/sticky/README.en-US.md +++ b/packages/components/sticky/README.en-US.md @@ -17,7 +17,13 @@ z-index | Number | 99 | \- | N name | params | description -- | -- | -- -scroll | `(detail: { scrollTop: number, isFixed: boolean })` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +scroll | `(detail: { scrollTop: number, isFixed: boolean })` | \- + +### Sticky Slots + +name | Description +-- | -- +\- | \- ### Sticky External Classes diff --git a/packages/components/sticky/README.md b/packages/components/sticky/README.md index 4b0fb129c..a7275194e 100644 --- a/packages/components/sticky/README.md +++ b/packages/components/sticky/README.md @@ -61,7 +61,13 @@ z-index | Number | 99 | 吸顶时的 z-index | N 名称 | 参数 | 描述 -- | -- | -- -scroll | `(detail: { scrollTop: number, isFixed: boolean })` | 滚动时触发,scrollTop: 距离顶部位置,isFixed: 是否吸顶。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) +scroll | `(detail: { scrollTop: number, isFixed: boolean })` | 滚动时触发,scrollTop: 距离顶部位置,isFixed: 是否吸顶 + +### Sticky Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 ### Sticky External Classes diff --git a/packages/components/swipe-cell/README.en-US.md b/packages/components/swipe-cell/README.en-US.md index 8017f415e..9334f3d22 100644 --- a/packages/components/swipe-cell/README.en-US.md +++ b/packages/components/swipe-cell/README.en-US.md @@ -9,9 +9,9 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N disabled | Boolean | - | \- | N -left | Array / Slot | - | Typescript:`Array` | N +left | Array | - | Typescript:`Array` | N opened | Boolean / Array | false | Typescript:`boolean \| Array` | N -right | Array / Slot | - | Typescript:`Array` `interface SwipeActionItem {text?: string; icon?: string \| object, className?: string; style?: string; onClick?: () => void; [key: string]: any }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swipe-cell/type.ts) | N +right | Array | - | Typescript:`Array` `interface SwipeActionItem {text?: string; icon?: string \| object, className?: string; style?: string; onClick?: () => void; [key: string]: any }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swipe-cell/type.ts) | N ### SwipeCell Events @@ -20,3 +20,11 @@ name | params | description click | `(action: SwipeActionItem, source: SwipeSource)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swipe-cell/type.ts)。
`type SwipeSource = 'left' \| 'right'`
dragend | \- | \- dragstart | \- | \- + +### SwipeCell Slots + +name | Description +-- | -- +\- | \- +left | \- +right | \- diff --git a/packages/components/swipe-cell/README.md b/packages/components/swipe-cell/README.md index fa7b2b254..37de7887a 100644 --- a/packages/components/swipe-cell/README.md +++ b/packages/components/swipe-cell/README.md @@ -56,9 +56,9 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N disabled | Boolean | - | 是否禁用滑动 | N -left | Array / Slot | - | 左侧滑动操作项。所有行为同 `right`。TS 类型:`Array` | N +left | Array | - | 左侧滑动操作项。所有行为同 `right`。TS 类型:`Array` | N opened | Boolean / Array | false | 操作项是否呈现为打开态,值为数组时表示分别控制左右滑动的展开和收起状态。TS 类型:`boolean \| Array` | N -right | Array / Slot | - | 右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', icon: 'delete', style: 'background-color: red', onClick: () => {} }]`。TS 类型:`Array` `interface SwipeActionItem {text?: string; icon?: string \| object, className?: string; style?: string; onClick?: () => void; [key: string]: any }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swipe-cell/type.ts) | N +right | Array | - | 右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', icon: 'delete', style: 'background-color: red', onClick: () => {} }]`。TS 类型:`Array` `interface SwipeActionItem {text?: string; icon?: string \| object, className?: string; style?: string; onClick?: () => void; [key: string]: any }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swipe-cell/type.ts) | N ### SwipeCell Events @@ -67,3 +67,11 @@ right | Array / Slot | - | 右侧滑动操作项。有两种定义方式,一 click | `(action: SwipeActionItem, source: SwipeSource)` | 操作项点击时触发(插槽写法组件不触发,业务侧自定义内容和事件)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swipe-cell/type.ts)。
`type SwipeSource = 'left' \| 'right'`
dragend | \- | 滑动结束事件 dragstart | \- | 滑动开始事件 + +### SwipeCell Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +left | 左侧滑动操作项 +right | 右侧滑动操作项 diff --git a/packages/components/swiper/README.en-US.md b/packages/components/swiper/README.en-US.md index 5d34ad964..9281d070f 100644 --- a/packages/components/swiper/README.en-US.md +++ b/packages/components/swiper/README.en-US.md @@ -19,7 +19,7 @@ image-props | Object | - | `0.34.0` | N interval | Number | 5000 | \- | N list | Array | - | `0.32.0`。Typescript:`string[] \| SwiperList[]` `interface SwiperList { value: string, ariaLabel: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swiper/type.ts) | N loop | Boolean | true | \- | N -navigation | Boolean / Object / Slot | true | Typescript:`SwiperNavProps \| boolean`,[SwiperNav API Documents](./swiper-nav?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swiper/type.ts) | N +navigation | Boolean / Object | true | Typescript:`SwiperNavProps \| boolean`,[SwiperNav API Documents](./swiper-nav?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swiper/type.ts) | N next-margin | String / Number | 0 | `0.32.0` | N pagination-position | String | bottom | options: top-left/top/top-right/bottom-left/bottom/bottom-right | N previous-margin | String / Number | 0 | `0.32.0` | N @@ -34,6 +34,12 @@ change | `(current: number, source: SwiperChangeSource)` | [see more ts definiti click | `(index: number)` | `0.34.0` image-load | `(index: number)` | `1.1.4` +### Swiper Slots + +name | Description +-- | -- +navigation | \- + ### Swiper External Classes className | Description diff --git a/packages/components/swiper/README.md b/packages/components/swiper/README.md index d18869347..9d9cce045 100644 --- a/packages/components/swiper/README.md +++ b/packages/components/swiper/README.md @@ -81,7 +81,7 @@ image-props | Object | - | `0.34.0`。透传至 Image 组件 | N interval | Number | 5000 | 轮播间隔时间 | N list | Array | - | `0.32.0`。图片列表。TS 类型:`string[] \| SwiperList[]` `interface SwiperList { value: string, ariaLabel: string }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swiper/type.ts) | N loop | Boolean | true | 是否循环播放 | N -navigation | Boolean / Object / Slot | true | 导航器全部配置,true 的话使用默认配置。TS 类型:`SwiperNavProps \| boolean`,[SwiperNav API Documents](./swiper-nav?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swiper/type.ts) | N +navigation | Boolean / Object | true | 导航器全部配置,true 的话使用默认配置。TS 类型:`SwiperNavProps \| boolean`,[SwiperNav API Documents](./swiper-nav?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/swiper/type.ts) | N next-margin | String / Number | 0 | `0.32.0`。后边距,可用于露出后一项的一小部分。默认单位 `px` | N pagination-position | String | bottom | 页码信息展示位置。可选项:top-left/top/top-right/bottom-left/bottom/bottom-right | N previous-margin | String / Number | 0 | `0.32.0`。前边距,可用于露出前一项的一小部分。默认单位 `px` | N @@ -96,6 +96,12 @@ change | `(current: number, source: SwiperChangeSource)` | 轮播切换时触发 click | `(index: number)` | `0.34.0`。点击轮播项时触发 image-load | `(index: number)` | `1.1.4`。图片加载时触发 +### Swiper Slots + +名称 | 描述 +-- | -- +navigation | 导航器全部配置 + ### Swiper External Classes 类名 | 描述 diff --git a/packages/components/tab-bar-item/tab-bar-item.less b/packages/components/tab-bar-item/tab-bar-item.less index 746f1b45c..6aeb3003d 100644 --- a/packages/components/tab-bar-item/tab-bar-item.less +++ b/packages/components/tab-bar-item/tab-bar-item.less @@ -23,7 +23,6 @@ user-select: none; position: relative; margin: 16rpx 0; - background-color: @tab-bar-bg-color; padding: 0 24rpx; &--text-only { diff --git a/packages/components/tab-bar/README.en-US.md b/packages/components/tab-bar/README.en-US.md index a88b032c2..3dc48761b 100644 --- a/packages/components/tab-bar/README.en-US.md +++ b/packages/components/tab-bar/README.en-US.md @@ -37,10 +37,16 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N badge-props | Object | - | Typescript:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tab-bar-item/type.ts) | N -icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Object | - | \- | N sub-tab-bar | Array | - | Typescript:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tab-bar-item/type.ts) | N value | String / Number | - | \- | N +### TabBarItem Slots + +name | Description +-- | -- +icon | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/tab-bar/README.md b/packages/components/tab-bar/README.md index e1dc78080..e553b4d44 100644 --- a/packages/components/tab-bar/README.md +++ b/packages/components/tab-bar/README.md @@ -94,10 +94,16 @@ t-class | 根节点样式类 style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N badge-props | Object | - | 图标右上角提示信息。TS 类型:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tab-bar-item/type.ts) | N -icon | String / Object / Slot | - | 图标名称。传入对象时透传至 Icon 组件。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Object | - | 图标名称。传入对象时透传至 Icon 组件 | N sub-tab-bar | Array | - | 二级菜单。TS 类型:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tab-bar-item/type.ts) | N value | String / Number | - | 标识符 | N +### TabBarItem Slots + +名称 | 描述 +-- | -- +icon | 图标插槽,用于自定义图标区域内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/tabs/README.en-US.md b/packages/components/tabs/README.en-US.md index 48fb97b39..f081226c4 100644 --- a/packages/components/tabs/README.en-US.md +++ b/packages/components/tabs/README.en-US.md @@ -10,7 +10,6 @@ style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N animation | Object | - | Typescript:`TabAnimation` `type TabAnimation = { duration: number } & Record`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tabs/type.ts) | N bottom-line-mode | String | fixed | options: fixed/auto/full | N -middle | Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N show-bottom-line | Boolean | true | \- | N space-evenly | Boolean | true | \- | N split | Boolean | true | \- | N @@ -29,6 +28,13 @@ change | `(value: TabValue, label: string)` | \- click | `(value: TabValue, label: string)` | \- scroll | `(scrollTop: number, isFixed: boolean)` | \- +### Tabs Slots + +name | Description +-- | -- +\- | \- +middle | \- + ### Tabs External Classes className | Description @@ -51,9 +57,16 @@ disabled | Boolean | false | \- | N icon | String / Object | - | \- | N label | String | - | \- | N lazy | Boolean | false | Enable tab lazy loading | N -panel | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +panel | String | - | \- | N value | String / Number | - | Typescript:`TabValue`,[Tabs API Documents](./tabs?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tab-panel/type.ts) | N +### TabPanel Slots + +name | Description +-- | -- +\- | \- +panel | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/tabs/README.md b/packages/components/tabs/README.md index 6d90a84a7..9983abf15 100644 --- a/packages/components/tabs/README.md +++ b/packages/components/tabs/README.md @@ -123,7 +123,6 @@ style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N animation | Object | - | 动画效果设置。其中 duration 表示动画时长。(单位:秒)。TS 类型:`TabAnimation` `type TabAnimation = { duration: number } & Record`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tabs/type.ts) | N bottom-line-mode | String | fixed | 激活下划线的模式。可选项:fixed/auto/full | N -middle | Slot | - | 中间内容,介于头部和内容之间。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N show-bottom-line | Boolean | true | 是否展示底部激活线条 | N space-evenly | Boolean | true | 选项卡头部空间是否均分 | N split | Boolean | true | `1.1.10`。是否展示分割线 | N @@ -142,6 +141,13 @@ change | `(value: TabValue, label: string)` | 激活的选项卡发生变化时 click | `(value: TabValue, label: string)` | 点击选项卡时触发 scroll | `(scrollTop: number, isFixed: boolean)` | 页面滚动时触发 +### Tabs Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义选项卡内容 +middle | 中间内容,介于头部和内容之间 + ### Tabs External Classes 类名 | 描述 @@ -164,9 +170,16 @@ disabled | Boolean | false | 是否禁用当前选项卡 | N icon | String / Object | - | `1.0.0-rc.1`。图标,传对象则透传至 Icon | N label | String | - | 选项卡名称 | N lazy | Boolean | false | 是否启用选项卡懒加载 | N -panel | String / Slot | - | 用于自定义选项卡面板内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +panel | String | - | 用于自定义选项卡面板内容 | N value | String / Number | - | 选项卡的值,唯一标识。TS 类型:`TabValue`,[Tabs API Documents](./tabs?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/tab-panel/type.ts) | N +### TabPanel Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义选项卡面板内容 +panel | 自定义 `panel` 显示内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/tag/README.en-US.md b/packages/components/tag/README.en-US.md index 901547566..42bd65273 100644 --- a/packages/components/tag/README.en-US.md +++ b/packages/components/tag/README.en-US.md @@ -8,9 +8,9 @@ name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N -closable | Boolean / Object / Slot | false | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +closable | Boolean / Object | false | \- | N disabled | Boolean | false | \- | N -icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Object | - | \- | N max-width | String / Number | - | \- | N shape | String | square | options: square/round/mark | N size | String | medium | options: small/medium/large/extra-large | N @@ -24,6 +24,14 @@ name | params | description click | - | \- close | - | \- +### Tag Slots + +name | Description +-- | -- +\- | \- +closable | \- +icon | \- + ### Tag External Classes className | Description @@ -40,9 +48,9 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v checked | Boolean | - | \- | N default-checked | Boolean | undefined | uncontrolled property | N closable | Boolean | false | \- | N -content | String / Number / Array / Slot | - | Typescript:`string \| number \| string[]` | N +content | String / Number / Array | - | Typescript:`string \| number \| string[]` | N disabled | Boolean | false | \- | N -icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Object | - | \- | N shape | String | square | options: square/round/mark | N size | String | medium | options: small/medium/large。Typescript:`SizeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N variant | String | dark | `0.26.0`。options: dark/light/outline/light-outline | N @@ -55,6 +63,14 @@ change | `(checked: boolean)` | \- click | - | \- close | \- | \- +### CheckTag Slots + +name | Description +-- | -- +\- | \- +content | \- +icon | \- + ### CheckTag External Classes className | Description diff --git a/packages/components/tag/README.md b/packages/components/tag/README.md index 234eac72b..c632c8ed5 100644 --- a/packages/components/tag/README.md +++ b/packages/components/tag/README.md @@ -56,9 +56,9 @@ isComponent: true -- | -- | -- | -- | -- style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N -closable | Boolean / Object / Slot | false | 标签是否可关闭。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +closable | Boolean / Object | false | 标签是否可关闭 | N disabled | Boolean | false | 标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态 | N -icon | String / Object / Slot | - | 标签中的图标,可自定义图标呈现。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Object | - | 标签中的图标,可自定义图标呈现 | N max-width | String / Number | - | 标签最大宽度,宽度超出后会出现省略号。示例:'50px' / 80 | N shape | String | square | 标签类型,有三种:方形、圆角方形、标记型。可选项:square/round/mark | N size | String | medium | 标签尺寸。可选项:small/medium/large/extra-large | N @@ -72,6 +72,14 @@ variant | String | dark | 标签风格变体。可选项:dark/light/outline/li click | - | 点击时触发 close | - | 如果关闭按钮存在,点击关闭按钮时触发 +### Tag Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,自定义内容区域内容 +closable | 标签可关闭内容区域 +icon | 标签中的图标 + ### Tag External Classes 类名 | 描述 @@ -88,9 +96,9 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场 checked | Boolean | - | 标签选中的状态,默认风格(theme=default)才有选中态 | N default-checked | Boolean | undefined | 标签选中的状态,默认风格(theme=default)才有选中态。非受控属性 | N closable | Boolean | false | 标签是否可关闭 | N -content | String / Number / Array / Slot | - | 组件子元素;传入数组时:[选中内容,非选中内容]。TS 类型:`string \| number \| string[]` | N +content | String / Number / Array | - | 组件子元素;传入数组时:[选中内容,非选中内容]。TS 类型:`string \| number \| string[]` | N disabled | Boolean | false | 标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态 | N -icon | String / Object / Slot | - | 标签图标。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +icon | String / Object | - | 标签图标 | N shape | String | square | 标签类型,有三种:方形、圆角方形、标记型。可选项:square/round/mark | N size | String | medium | 标签尺寸。可选项:small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N variant | String | dark | `0.26.0`。标签风格变体。可选项:dark/light/outline/light-outline | N @@ -103,6 +111,14 @@ change | `(checked: boolean)` | 状态切换时触发 click | - | 点击标签时触发 close | \- | 如果关闭按钮存在,点击关闭按钮时触发 +### CheckTag Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +content | 自定义内容区域 +icon | 标签区域 + ### CheckTag External Classes 类名 | 描述 diff --git a/packages/components/textarea/README.en-US.md b/packages/components/textarea/README.en-US.md index 498dcddc9..4542942bc 100644 --- a/packages/components/textarea/README.en-US.md +++ b/packages/components/textarea/README.en-US.md @@ -24,7 +24,7 @@ fixed | Boolean | false | \- | N focus | Boolean | false | \- | N hold-keyboard | Boolean | false | \- | N indicator | Boolean | false | \- | N -label | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String | - | \- | N maxcharacter | Number | - | \- | N maxlength | Number | -1 | \- | N placeholder | String | undefined | \- | N @@ -48,6 +48,12 @@ focus | `(value: TextareaValue)` | \- keyboardheightchange | `(height: number, duration: number)` | \- line-change | `(value: TextareaValue)` | \- +### Textarea Slots + +name | Description +-- | -- +label | \- + ### Textarea External Classes className | Description diff --git a/packages/components/textarea/README.md b/packages/components/textarea/README.md index 4f2fb14bd..e8ffe0351 100644 --- a/packages/components/textarea/README.md +++ b/packages/components/textarea/README.md @@ -87,7 +87,7 @@ fixed | Boolean | false | 如果 textarea 是在一个 `position:fixed` 的区 focus | Boolean | false | 自动聚焦 | N hold-keyboard | Boolean | false | focus时,点击页面的时候不收起键盘 | N indicator | Boolean | false | 显示文本计数器,如 0/140。当 `maxlength < 0 && maxcharacter < 0` 成立时, indicator无效 | N -label | String / Slot | - | 左侧文本。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +label | String | - | 左侧文本 | N maxcharacter | Number | - | 用户最多可以输入的字符个数,一个中文汉字表示两个字符长度 | N maxlength | Number | -1 | 用户最多可以输入的字符个数,值为 -1 的时候不限制最大长度 | N placeholder | String | undefined | 占位符 | N @@ -111,6 +111,12 @@ focus | `(value: TextareaValue)` | 获得焦点时触发 keyboardheightchange | `(height: number, duration: number)` | 键盘高度发生变化的时候触发此事件 line-change | `(value: TextareaValue)` | 行高发生变化时触发 +### Textarea Slots + +名称 | 描述 +-- | -- +label | 自定义 `label` 显示内容 + ### Textarea External Classes 类名 | 描述 diff --git a/packages/components/toast/toast.less b/packages/components/toast/toast.less index d8566dff7..25ae77135 100644 --- a/packages/components/toast/toast.less +++ b/packages/components/toast/toast.less @@ -2,8 +2,8 @@ @toast-color: var(--td-toast-color, @text-color-anti); @toast-bg-color: var(--td-toast-bg-color, @mask-active); -@toast-max-width: var(--td-toast-max-width, 374rpx); -@toast-radius: var(--td-toast-radius, 8rpx); +@toast-max-width: var(--td-toast-max-width, 370rpx); +@toast-radius: var(--td-toast-radius, @radius-default); @toast-row-icon-size: var(--td-toast-row-icon-size, 48rpx); @toast-column-icon-size: var(--td-toast-column-icon-size, 64rpx); diff --git a/packages/components/upload/README.en-US.md b/packages/components/upload/README.en-US.md index d19f7f723..f9095d41b 100644 --- a/packages/components/upload/README.en-US.md +++ b/packages/components/upload/README.en-US.md @@ -9,7 +9,7 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N add-btn | Boolean | true | \- | N -add-content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +add-content | String | - | \- | N allow-upload-duplicate-file | Boolean | false | `暂不支持`。allow to upload duplicate name files | N config | Object | - | Typescript:`UploadMpConfig` `type UploadMpConfig = ImageConfig \| VideoConfig` `interface ImageConfig { count?: number; sizeType?: Array; sourceType?: Array }` `type SizeTypeValues = 'original' \| 'compressed'` `type SourceTypeValues = 'album' \| 'camera'` `interface VideoConfig { sourceType?: Array; compressed?: boolean; maxDuration?: number; camera?: 'back' \| 'front' }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/upload/type.ts) | N disabled | Boolean | undefined | make upload to be disabled | N @@ -41,6 +41,12 @@ remove | `(index: number; file: UploadFile)` | \- select-change | `(files: MediaContext[]; currentSelectedFiles: MediaContext[])` | \- success | `(files: MediaContext)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/upload/type.ts)。
`type MediaContext = VideoContext[] \| ImageContext[]`

`interface VideoContext { name?: string; type?: string; url?: string; duration?: number; size?: number; width?: number; height?: number; thumb: string; progress: number }`

`interface ImageContext { name: string; type: string; url: string; size: number; width: number; height: number; progress: number }`
+### Upload Slots + +name | Description +-- | -- +add-content | \- + ### CSS Variables The component provides the following CSS variables, which can be used to customize styles. diff --git a/packages/components/upload/README.md b/packages/components/upload/README.md index daf2c5e12..8c07264b3 100644 --- a/packages/components/upload/README.md +++ b/packages/components/upload/README.md @@ -72,7 +72,7 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N add-btn | Boolean | true | 添加按钮 | N -add-content | String / Slot | - | 添加按钮内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +add-content | String | - | 添加按钮内容 | N allow-upload-duplicate-file | Boolean | false | `暂不支持`。是否允许重复上传相同文件名的文件 | N config | Object | - | 图片上传配置,视频上传配置,文件上传配置等,包含图片尺寸、图片来源、视频来源、视频拍摄最长时间等。更多细节查看小程序官网。[图片上传](https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html)。[视频上传](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseVideo.html)。TS 类型:`UploadMpConfig` `type UploadMpConfig = ImageConfig \| VideoConfig` `interface ImageConfig { count?: number; sizeType?: Array; sourceType?: Array }` `type SizeTypeValues = 'original' \| 'compressed'` `type SourceTypeValues = 'album' \| 'camera'` `interface VideoConfig { sourceType?: Array; compressed?: boolean; maxDuration?: number; camera?: 'back' \| 'front' }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/upload/type.ts) | N disabled | Boolean | undefined | 是否禁用组件 | N @@ -104,6 +104,12 @@ remove | `(index: number; file: UploadFile)` | 移除文件时触发 select-change | `(files: MediaContext[]; currentSelectedFiles: MediaContext[])` | 选择文件或图片之后,上传之前,触发该事件。
`files` 表示之前已经上传完成的文件列表。
`currentSelectedFiles` 表示本次上传选中的文件列表 success | `(files: MediaContext)` | 上传成功后触发,包含所有上传的文件;`url` 表示选定视频的临时文件路径 (本地路径)。`duration` 表示选定视频的时间长度。`size`选定视频的数据量大小。更多描述参考 wx.chooseMedia 小程序官网描述。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/upload/type.ts)。
`type MediaContext = VideoContext[] \| ImageContext[]`

`interface VideoContext { name?: string; type?: string; url?: string; duration?: number; size?: number; width?: number; height?: number; thumb: string; progress: number }`

`interface ImageContext { name: string; type: string; url: string; size: number; width: number; height: number; progress: number }`
+### Upload Slots + +名称 | 描述 +-- | -- +add-content | 自定义 `add-content` 显示内容 + ### CSS Variables 组件提供了下列 CSS 变量,可用于自定义样式。 diff --git a/packages/components/upload/upload.ts b/packages/components/upload/upload.ts index 50ed8dc77..bda526aed 100644 --- a/packages/components/upload/upload.ts +++ b/packages/components/upload/upload.ts @@ -132,9 +132,26 @@ export default class Upload extends SuperComponent { }); } + /** + * 重置拖拽布局状态 + */ + resetDragLayout() { + this.setData({ + dragBaseData: {}, + dragWrapStyle: '', + dragLayout: false, + }); + } + initDragLayout() { const { draggable, disabled } = this.properties; - if (!draggable || disabled) return; + const { customFiles } = this.data; + + if (!draggable || disabled || customFiles.length === 0) { + this.resetDragLayout(); + return; + } + this.initDragList(); this.initDragBaseData(); } @@ -170,15 +187,7 @@ export default class Upload extends SuperComponent { } initDragBaseData() { - const { classPrefix, rows, column, customFiles } = this.data; - if (customFiles.length === 0) { - this.setData({ - dragBaseData: {}, - dragWrapStyle: '', - dragLayout: false, - }); - return; - } + const { classPrefix, rows, column } = this.data; const query = this.createSelectorQuery(); const selectorGridItem = `.${classPrefix} >>> .t-grid-item`; const selectorGrid = `.${classPrefix} >>> .t-grid`; diff --git a/packages/components/watermark/README.en-US.md b/packages/components/watermark/README.en-US.md index 34029a314..2ba43a959 100644 --- a/packages/components/watermark/README.en-US.md +++ b/packages/components/watermark/README.en-US.md @@ -9,7 +9,7 @@ name | type | default | description | required style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N alpha | Number | 1 | \- | N -content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | \- | N height | Number | - | \- | N is-repeat | Boolean | true | \- | N layout | String | rectangular | options: rectangular/hexagonal | N @@ -25,6 +25,13 @@ x | Number | - | \- | N y | Number | - | \- | N z-index | Number | - | \- | N +### Watermark Slots + +name | Description +-- | -- +\- | \- +content | \- + ### WatermarkText name | type | default | description | required diff --git a/packages/components/watermark/README.md b/packages/components/watermark/README.md index 736c65040..6d7cae19b 100644 --- a/packages/components/watermark/README.md +++ b/packages/components/watermark/README.md @@ -70,7 +70,7 @@ isComponent: true style | Object | - | 样式 | N custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N alpha | Number | 1 | 水印整体透明度,取值范围 [0-1] | N -content | String / Slot | - | 水印所覆盖的内容节点。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N +content | String | - | 水印所覆盖的内容节点 | N height | Number | - | 水印高度 | N is-repeat | Boolean | true | 水印是否重复出现 | N layout | String | rectangular | 水印的布局方式,rectangular:矩形,即横平竖直的水印;hexagonal:六边形,即错位的水印。可选项:rectangular/hexagonal | N @@ -86,6 +86,13 @@ x | Number | - | 水印之间的水平间距 | N y | Number | - | 水印之间的垂直间距 | N z-index | Number | - | 水印元素的 `z-index`,默认值写在 CSS 中 | N +### Watermark Slots + +名称 | 描述 +-- | -- +\- | 默认插槽,作用同 `content` 插槽 +content | 自定义 `content` 显示内容 + ### WatermarkText 名称 | 类型 | 默认值 | 描述 | 必传 diff --git a/packages/tdesign-miniprogram-chat/CHANGELOG.md b/packages/tdesign-miniprogram-chat/CHANGELOG.md index 28d1f0e96..a0e10dcfc 100644 --- a/packages/tdesign-miniprogram-chat/CHANGELOG.md +++ b/packages/tdesign-miniprogram-chat/CHANGELOG.md @@ -1,11 +1,22 @@ ---- -title: 更新日志 -spline: explain -toc: false -docClass: timeline ---- - - +--- +title: 更新日志 +spline: explain +toc: false +docClass: timeline +--- + + +## 🌈 1.11.1 `2025-11-06` +### 🐞 Bug Fixes +- `Calendar`: 修复 `value[]` 结合 `swich-mode` 时,初始化错误 @anlyyao ([#4005](https://github.com/Tencent/tdesign-miniprogram/pull/4005)) +- `CheckboxGroup`: 修复无法在 `form` 中获取数据的问题 @Boomkaa ([#4017](https://github.com/Tencent/tdesign-miniprogram/pull/4017)) +- `TabBar`: 修复子项背景色叠加的问题 @Boomkaa ([#4019](https://github.com/Tencent/tdesign-miniprogram/pull/4019)) +- `ActionSheet`: 修复组件初始化数据重复修改导致异常的问题 @betavs ([#4013](https://github.com/Tencent/tdesign-miniprogram/pull/4013)) +- `Toast`: 修复圆角样式错误 @anlyyao ([#4031](https://github.com/Tencent/tdesign-miniprogram/pull/4031)) +- `Upload`: 修复 `draggable` 值变换时组件显示错误 @anlyyao ([#4030](https://github.com/Tencent/tdesign-miniprogram/pull/4030)) +- `Picker`: 修复 `autoClose` 为 `false` 时,点击遮罩层会重置选项为拨动前选项值的问题 @composable-tu ([#3874](https://github.com/Tencent/tdesign-miniprogram/pull/3874)) + + ## 🌈 1.11.0 `2025-10-20` ### 🚀 Features - `Watermark`: 新增 `Watermark` 水印组件 @Wesley-0808 ([#3799](https://github.com/Tencent/tdesign-miniprogram/pull/3799)) @@ -35,7 +46,7 @@ docClass: timeline - `SideBar`: 修复禁用态颜色错误 @novlan1 ([#3982](https://github.com/Tencent/tdesign-miniprogram/pull/3982)) - `Calendar`: 修复翻页按钮状态错误 @anlyyao ([#3996](https://github.com/Tencent/tdesign-miniprogram/pull/3996)) - `ImageViewer`: 修复背景色错误问题 @novlan1 ([#3881](https://github.com/Tencent/tdesign-miniprogram/pull/3881)) -- `QRCode`: 修复中心二维码位置偏移 @SinzoL ([#3899](https://github.com/Tencent/tdesign-miniprogram/pull/3899)) - - -## 🌈 首发 +- `QRCode`: 修复中心二维码位置偏移 @SinzoL ([#3899](https://github.com/Tencent/tdesign-miniprogram/pull/3899)) + + +## 🌈 首发 diff --git a/packages/tdesign-miniprogram/CHANGELOG.md b/packages/tdesign-miniprogram/CHANGELOG.md index 90b999f6d..cb31723d1 100644 --- a/packages/tdesign-miniprogram/CHANGELOG.md +++ b/packages/tdesign-miniprogram/CHANGELOG.md @@ -1,11 +1,22 @@ ---- -title: 更新日志 -spline: explain -toc: false -docClass: timeline ---- - - +--- +title: 更新日志 +spline: explain +toc: false +docClass: timeline +--- + + +## 🌈 1.11.1 `2025-11-06` +### 🐞 Bug Fixes +- `Calendar`: 修复 `value[]` 结合 `swich-mode` 时,初始化错误 @anlyyao ([#4005](https://github.com/Tencent/tdesign-miniprogram/pull/4005)) +- `CheckboxGroup`: 修复无法在 `form` 中获取数据的问题 @Boomkaa ([#4017](https://github.com/Tencent/tdesign-miniprogram/pull/4017)) +- `TabBar`: 修复子项背景色叠加的问题 @Boomkaa ([#4019](https://github.com/Tencent/tdesign-miniprogram/pull/4019)) +- `ActionSheet`: 修复组件初始化数据重复修改导致异常的问题 @betavs ([#4013](https://github.com/Tencent/tdesign-miniprogram/pull/4013)) +- `Toast`: 修复圆角样式错误 @anlyyao ([#4031](https://github.com/Tencent/tdesign-miniprogram/pull/4031)) +- `Upload`: 修复 `draggable` 值变换时组件显示错误 @anlyyao ([#4030](https://github.com/Tencent/tdesign-miniprogram/pull/4030)) +- `Picker`: 修复 `autoClose` 为 `false` 时,点击遮罩层会重置选项为拨动前选项值的问题 @composable-tu ([#3874](https://github.com/Tencent/tdesign-miniprogram/pull/3874)) + + ## 🌈 1.11.0 `2025-10-20` ### 🚀 Features - `Watermark`: 新增 `Watermark` 水印组件 @Wesley-0808 ([#3799](https://github.com/Tencent/tdesign-miniprogram/pull/3799)) @@ -35,1117 +46,1117 @@ docClass: timeline - `SideBar`: 修复禁用态颜色错误 @novlan1 ([#3982](https://github.com/Tencent/tdesign-miniprogram/pull/3982)) - `Calendar`: 修复翻页按钮状态错误 @anlyyao ([#3996](https://github.com/Tencent/tdesign-miniprogram/pull/3996)) - `ImageViewer`: 修复背景色错误问题 @novlan1 ([#3881](https://github.com/Tencent/tdesign-miniprogram/pull/3881)) -- `QRCode`: 修复中心二维码位置偏移 @SinzoL ([#3899](https://github.com/Tencent/tdesign-miniprogram/pull/3899)) - - -## 🌈 1.10.1 `2025-08-22` -### 🚀 Features -- `Textarea`: 新增 `cursorColor` 属性,仅在 `Skyline` 下有效 @anlyyao ([#3832](https://github.com/Tencent/tdesign-miniprogram/pull/3832)) -- `Button`: - - 新增 `getrealtimephonenumber` 事件 @novlan1 ([#3845](https://github.com/Tencent/tdesign-miniprogram/pull/3845)) - - 新增 `createliveactivity` 事件 @anlyyao ([#3845](https://github.com/Tencent/tdesign-miniprogram/pull/3845)) -### 🐞 Bug Fixes -- `ImageViewer`: 移除 `backgroundColor` 属性默认值,导航背景色固定为 `#000`,遮罩背景色使用 `@mask-active` @anlyyao ([#3843](https://github.com/Tencent/tdesign-miniprogram/pull/3843)) -- `Toast`: 修复即将关闭时再次触发显示导致之后的触发无效的问题 @betavs ([#3841](https://github.com/Tencent/tdesign-miniprogram/pull/3841)) -- `Stepper`: 结合 `dialog` 组件使用时,输入值后键盘弹起状态下点击弹窗确认按钮关闭弹窗后 `change` 事件才触发的问题 @betavs ([#3804](https://github.com/Tencent/tdesign-miniprogram/pull/3804)) -- `Collapse`: 修复 `--td-collapse-border-color` 无效的问题 @SinzoL ([#3862](https://github.com/Tencent/tdesign-miniprogram/pull/3862)) -- `PullDownRefresh`: 处理容器隐藏状态下高度计算异常的问题 @betavs ([#3863](https://github.com/Tencent/tdesign-miniprogram/pull/3863)) -- `Skeleton`: 骨架屏动画`animation-delay` 属性修改为 `0s` @anlyyao ([#3853](https://github.com/Tencent/tdesign-miniprogram/pull/3853)) -### 🚧 Others -- `Cell`: 组件边框样式新增 `.t-cell--bordered` 移除 `.t-cell--borderless` 类名 @SinzoL ([#3862](https://github.com/Tencent/tdesign-miniprogram/pull/3862)) - - -## 🌈 1.10.0 `2025-08-01` -### 🚀 Features -- `QRCode`: 新增`QRCode`组件 @SinzoL ([#3780](https://github.com/Tencent/tdesign-miniprogram/pull/3780)) ⚡ -### 🐞 Bug Fixes -- `Calendar`: 修复 `value` 更新后翻页模式日历面板数据不更新的问题 @anlyyao ([#3800](https://github.com/Tencent/tdesign-miniprogram/pull/3800)) -- `Skeleton`: 修复 `delay` 设置较大时组件未按预期消失的问题 @betavs ([#3793](https://github.com/Tencent/tdesign-miniprogram/pull/3793)) -- `Switch`: 修复 `loading` 颜色、`dot` 滑块禁用态/深色模式背景色错误 @anlyyao ([#3802](https://github.com/Tencent/tdesign-miniprogram/pull/3802)) -- `ActionSheet`: 修复页面跳转返回后再点击不显示问题 @Boomkaa ([#3796](https://github.com/Tencent/tdesign-miniprogram/pull/3796)) -- `Toast`: 修复 `Toast` 已隐藏,页面无法点击问题 @Boomkaa ([#3796](https://github.com/Tencent/tdesign-miniprogram/pull/3796)) -- `NoticeBar`: 修正警告主题图标 @liweijie0812 ([#3812](https://github.com/Tencent/tdesign-miniprogram/pull/3812)) -### 🚧 Others -- `CSS`: 重命名圆角与字体部分 `CSS Vars` ,如 `--td-radius-extra-large` 变更为 `--td-radius-extraLarge` @anlyyao ([#3809](https://github.com/Tencent/tdesign-miniprogram/pull/3809)) - - -## 🌈 1.9.7 `2025-07-10` -### 🚀 Features -- `Calendar`: 新增 `readonly` 属性 @anlyyao ([#3752](https://github.com/Tencent/tdesign-miniprogram/pull/3752)) -- `Indexes`: - - 新增 `current` 属性,支持非受控模式,用于自定义索引列表激活项 @anlyyao ([#3761](https://github.com/Tencent/tdesign-miniprogram/pull/3761)) - - 丰富组件 `CSS Variables` @anlyyao ([#3760](https://github.com/Tencent/tdesign-miniprogram/pull/3760)) -- `Popup`: 新增 `--td-popup-transition` 样式变量 @betavs ([#3775](https://github.com/Tencent/tdesign-miniprogram/pull/3775)) -- `Navbar`: 新增 `--td-navbar-background` 样式变量 @anlyyao ([#3764](https://github.com/Tencent/tdesign-miniprogram/pull/3764)) -### 🐞 Bug Fixes -- `PickerItem`: 解决 `options` 数据源更新后点击确认按钮 `Picker` 组件的 `change` 事件返回值不正确 @anlyyao ([#3759](https://github.com/Tencent/tdesign-miniprogram/pull/3759)) -- `Calendar`: 修复因 `class` 关键字导致在 `Mpx` 框架中编译报错 @anlyyao ([#3781](https://github.com/Tencent/tdesign-miniprogram/pull/3781)) -### 🚧 Others -- `site`: 修复官网组件预览二维码路径错误 @anlyyao ([#3751](https://github.com/Tencent/tdesign-miniprogram/pull/3751)) - - -## 🌈 1.9.6 `2025-06-25` -### 🚀 Features -- `Upload`: 支持视频预览 @anlyyao ([#3741](https://github.com/Tencent/tdesign-miniprogram/pull/3741)) -- `Icon`: 自定义 `icon`名称支持使用下划线 @zhonghuipro ([#3744](https://github.com/Tencent/tdesign-miniprogram/pull/3744)) -### 🐞 Bug Fixes -- `CollapsePanel`: 修复部分 `css` 变量无效的问题 @betavs ([#3731](https://github.com/Tencent/tdesign-miniprogram/pull/3731)) -- `Grid`: 修复 `GridItem` 项数是 `columns` 列数的非整数倍时边框样式错误 @anlyyao ([#3740](https://github.com/Tencent/tdesign-miniprogram/pull/3740)) -### 🚧 Others -- `build`: 修复 `1.9.0` 版本在 `Windows` 环境下 `WXSS` 文件编译错误 @anlyyao ([#3719](https://github.com/Tencent/tdesign-miniprogram/pull/3719)) -- `site`: 官网支持单组件 `Changelog` @RylanBot ([#3725](https://github.com/Tencent/tdesign-miniprogram/pull/3725)) - - -## 🌈 1.9.5 `2025-06-13` -### 🚀 Features -- `Picker`: - - 新增 `content` 插槽,用于处理空数据场景 @anlyyao ([#3711](https://github.com/Tencent/tdesign-miniprogram/pull/3711)) - - 支持点击选中 @anlyyao ([#3712](https://github.com/Tencent/tdesign-miniprogram/pull/3712)) -- `Fab`: 未显示传入 `icon` 和 `text` 时将启用默认插槽,用于自定义悬浮按钮内容,此时 `buttonProps` 将失效 @novlan1 ([#3684](https://github.com/Tencent/tdesign-miniprogram/pull/3684)) -- `Upload`: 新增 `preview` 属性,用于关闭/开启图片预览 @anlyyao ([#3714](https://github.com/Tencent/tdesign-miniprogram/pull/3714)) -### 🐞 Bug Fixes -- `Toast`: 使用 `flex` 替换 `fit-content`,兼容 `skyline` 场景 @anlyyao ([#3710](https://github.com/Tencent/tdesign-miniprogram/pull/3710)) -- `TreeSelect`: 修复传入非标准 `options` 数据源时组件控制台报错 @anlyyao ([#3708](https://github.com/Tencent/tdesign-miniprogram/pull/3708)) -- `Rate`: 修复点选全星时弹框不显示 @Boomkaa ([#3715](https://github.com/Tencent/tdesign-miniprogram/pull/3715)) - -## 🌈 1.9.4 `2025-05-29` -### 🚀 Features -- `Input`: `cursor` 属性默认值取 `-1`,确保光标在 `value` 值末尾 @anlyyao ([#3672](https://github.com/Tencent/tdesign-miniprogram/pull/3672)) -- `Search`: `cursor` 属性默认值取 `-1`,确保光标在 `value` 值末尾 @anlyyao ([#3672](https://github.com/Tencent/tdesign-miniprogram/pull/3672)) -- `TreeSelect`: 允许 `options` 的 `children` 未定义,同时增强 `keys` 属性,支持为 `disabled / children` 字段自定义别名 @anlyyao ([#3671](https://github.com/Tencent/tdesign-miniprogram/pull/3671)) -### 🐞 Bug Fixes -- `Calendar`: 修复当 `switchMode !== 'none'` 时,重置空值后选中的状态未更新的问题 @betavs ([#3676](https://github.com/Tencent/tdesign-miniprogram/pull/3676)) -- `Tabs`: 修复 `1.8.8` 中 `bottomLineMode` 为 `auto/full` 时线宽计算错误 @anlyyao ([#3668](https://github.com/Tencent/tdesign-miniprogram/pull/3668)) -- `ImageViewer`: 修复图片懒加载无效 。同时新增 `lazy` 属性,开启后会预加载当前图片、相邻图片 @anlyyao ([#3674](https://github.com/Tencent/tdesign-miniprogram/pull/3674)) -- `Upload`: 修复 `max = 0` 时上传数量仍受限,以及 `max = 0 和 source="messageFile"` 时无法上传的问题 @anlyyao ([#3679](https://github.com/Tencent/tdesign-miniprogram/pull/3679)) - -## 🌈 1.9.3 `2025-05-23` -### 🐞 Bug Fixes -- `Slider`: 修复设置 `min` 值后 `marks` 刻度对应位置错误的问题 @betavs ([#3653](https://github.com/Tencent/tdesign-miniprogram/pull/3653)) -- `DateTimePicker`: 修复勾选 `SWC` 编译脚本文件时组件功能异常 @Boomkaa ([#3654](https://github.com/Tencent/tdesign-miniprogram/pull/3654)) -- `ColorPicker`: 修复勾选 `SWC` 编译脚本文件时组件功能异常 @betavs ([#3654](https://github.com/Tencent/tdesign-miniprogram/pull/3654)) -- `Link`: 修复在 `navigatorProps` 中只指定 `appId` 或者 `shortLink` 且 `target="miniProgram"` 时样式为禁用状态的问题 @CrazyOrr @betavs ([#3643](https://github.com/Tencent/tdesign-miniprogram/pull/3643)) -- `TreeSelect`: 修复 `customValue` 为空数组时多选报错 @anlyyao ([#3662](https://github.com/Tencent/tdesign-miniprogram/pull/3662)) -### 🚧 Others -- `fix`: 修复 `1.9.0` 导致的组件类型丢失问题 @anlyyao ([#3661](https://github.com/Tencent/tdesign-miniprogram/pull/3661)) - -## 🌈 1.9.2 `2025-05-09` -### 🐞 Bug Fixes -- `PullDownRefresh`: 修复配置 `scroll-into-view` 不生效问题 @Boomkaa ([#3633](https://github.com/Tencent/tdesign-miniprogram/pull/3633)) -- `DropdownItem`: 修复 `1.9.1` 带来的高度塌陷问题 @betavs ([#3635](https://github.com/Tencent/tdesign-miniprogram/pull/3635)) -- `Dialog`: 修复命令式调用时`wxml` 模版中组件属性不生效 @Boomkaa ([#3622](https://github.com/Tencent/tdesign-miniprogram/pull/3622)) - -## 🌈 1.9.1 `2025-04-27` -### 🚀 Features -- `Icon`: 新增 `logo-miniprogram`、`logo-cnb`、`seal`、`quote` 图标 @taowensheng1997 @uyarn ([#3608](https://github.com/Tencent/tdesign-miniprogram/pull/3608)) -- `Input`: 新增 `extra` 插槽,用于自定义右侧额外的信息 @Boomkaa ([#3614](https://github.com/Tencent/tdesign-miniprogram/pull/3614)) -- `Cascader`: 新增 `header` 插槽,用于自定义内容头部 @anlyyao ([#3617](https://github.com/Tencent/tdesign-miniprogram/pull/3617)) -### 🐞 Bug Fixes -- `Icon`: 优化多个文件相关图标的绘制效果,修复 `gesture-right-slip` 的绘制问题 @uyarn([#3608](https://github.com/Tencent/tdesign-miniprogram/pull/3608)) -- `DropdownItem`: 修复动态修改 `disabled` 属性样式未更新 @Boomkaa ([#3612](https://github.com/Tencent/tdesign-miniprogram/pull/3612)) - -## 🌈 1.9.0 `2025-04-23` -### 🚀 Features -- `DateTimePicker`: 支持 `showWeek` 属性 @anlyyao ([#3565](https://github.com/Tencent/tdesign-miniprogram/pull/3565) [#3570](https://github.com/Tencent/tdesign-miniprogram/pull/3570)) -- `Dialog`: 命令式调用返回触发器数据 @betavs ([#3579](https://github.com/Tencent/tdesign-miniprogram/pull/3579)) -- `Progress`: 新增 `size` 属性,支持自定义环形进度条尺寸 @anlyyao ([#3604](https://github.com/Tencent/tdesign-miniprogram/pull/3604)) -- `Divider`: 丰富 `css vars`,支持自定义分割线高度 @anlyyao ([#3603](https://github.com/Tencent/tdesign-miniprogram/pull/3603)) -- `Upload`: 组件新增 `addBtn` 和 `removeBtn` 属性,并支持在文件中设置单个图片的 `removeBtn` 属性 @anlyyao ([#3605](https://github.com/Tencent/tdesign-miniprogram/pull/3605)) -### 🐞 Bug Fixes -- `RadioGroup`: 修复无法在 `form` 中获取数据的问题 @Boomkaa ([#3558](https://github.com/Tencent/tdesign-miniprogram/pull/3558)) -- `Switch`: 修复深色模式下禁用态背景色错误 @anlyyao ([#3564](https://github.com/Tencent/tdesign-miniprogram/pull/3564)) -- `CountDown`: 异步获取 `time` 导致触发 `finish` 事件 @anlyyao ([#3580](https://github.com/Tencent/tdesign-miniprogram/pull/3580)) -- `Steps`: 修复 `theme` 和 `sequence` 属性值动态更新后组件未重新渲染的问题 @betavs ([#3584](https://github.com/Tencent/tdesign-miniprogram/pull/3584)) -- `Picker`: 修复 `keys` 属性无效的问题 @anlyyao ([#3585](https://github.com/Tencent/tdesign-miniprogram/pull/3585)) -- `Popup`: 当 `placement` 为 `'left' | 'right'` 配合 `usingCustomNavbar` 时,容器高度溢出的问题 @betavs ([#3586](https://github.com/Tencent/tdesign-miniprogram/pull/3586)) -- `DateTimePicker`: 修复 `start` 和 `end` 属性默认值错误,以系统当前时间为基准 @anlyyao ([#3594](https://github.com/Tencent/tdesign-miniprogram/pull/3594)) -- `PullDownRefresh`: 动态设置容器最大高度错误的问题 @betavs ([#3592](https://github.com/Tencent/tdesign-miniprogram/pull/3592)) -- `TreeSelect`: 修复多选场景下跨分支点选时选中值不完整 @anlyyao ([#3600](https://github.com/Tencent/tdesign-miniprogram/pull/3600)) -### 🚧 Others -- `chore`: 移除组件对 `lodash` 的依赖,调整样式引入方式,编译产物移除 `md` 文档并加入文件压缩 @anlyyao ([#3555](https://github.com/Tencent/tdesign-miniprogram/pull/3555)) -- `site`: 站点接入主题生成器 @RylanBot ([#3527](https://github.com/Tencent/tdesign-miniprogram/pull/3527)) - -## 🌈 1.8.8 `2025-03-23` -### 🐞 Bug Fixes -- `StepItem`: 移除页面中多余的字符内容 @runoob-coder ([#3528](https://github.com/Tencent/tdesign-miniprogram/pull/3528)) -- `Tabs`: 优化指示器初始显示 @jarmywang ([#3525](https://github.com/Tencent/tdesign-miniprogram/pull/3525)) -- `Picker`: 修复 `API` 文档错误,`confirmBtn` 和 `cancelBtn` 属性仅支持 `string` 和 `boolean` 类型 @anlyyao ([#3540](https://github.com/Tencent/tdesign-miniprogram/pull/3540)) -- `Cascader`: 允许 `children` 为空数组,便于支持数据异步场景 @liuffff ([#3542](https://github.com/Tencent/tdesign-miniprogram/pull/3542)) -### 🚧 Others -- `other(theme)`: 补充 `--td-brand-color-x` 系列色板 @anlyyao ([#3531](https://github.com/Tencent/tdesign-miniprogram/pull/3531)) - -## 🌈 1.8.7 `2025-03-14` -### 🚀 Features -- `Link`: 支持 `disabled` 动态变更 @anlyyao ([#3496](https://github.com/Tencent/tdesign-miniprogram/pull/3496)) -- `DateTimePicker`: 新增 `formatter` 属性 @anlyyao ([#3500](https://github.com/Tencent/tdesign-miniprogram/pull/3500)) -- `Tabs`: 新增 `bottomLineMode` 属性;`TabPanel` 新增 `lazy` 属性 @SkylerXie ([#3428](https://github.com/Tencent/tdesign-miniprogram/pull/3428)) -### 🐞 Bug Fixes -- `Radio`: 修复横向单选框样式错误 @anlyyao ([#3497](https://github.com/Tencent/tdesign-miniprogram/pull/3497)) -- `Guide`: 修复多个场景组件定位错误 @anlyyao ([#3499](https://github.com/Tencent/tdesign-miniprogram/pull/3499)) -- `Picker`: 修复 `format` 属性无效 @anlyyao ([#3500](https://github.com/Tencent/tdesign-miniprogram/pull/3500)) -- `StepItem`: 修复 `title` 插槽在 `skyline` 渲染下展示偏右的问题 @runoob-coder ([#3519](https://github.com/Tencent/tdesign-miniprogram/pull/3519)) -- `Toast`: 新增 `warning` 主题类型 @theEfrain08 ([#3517](https://github.com/Tencent/tdesign-miniprogram/pull/3517)) -### 🚧 Others -- `other`: 修复因 `button` 模版带来的控制台告警 @anlyyao ([#3523](https://github.com/Tencent/tdesign-miniprogram/pull/3523)) - -## 🌈 1.8.6 `2025-02-21` -### 🚀 Features -- `Textarea`: - - 新增 `placeholderClass` 属性 @anlyyao ([#3468](https://github.com/Tencent/tdesign-miniprogram/pull/3468)) - - 新增 `readonly` 与 `allowInputOverMax` 属性 @richardji202 ([#3474](https://github.com/Tencent/tdesign-miniprogram/pull/3474)) -- `Input`: 新增 `allowInputOverMax` 属性 @yangbai1991 ([#3473](https://github.com/Tencent/tdesign-miniprogram/pull/3473)) -- `RadioGroup`: 新增 `readonly` 属性 @yangbai1991 ([#3470](https://github.com/Tencent/tdesign-miniprogram/pull/3470)) -### 🐞 Bug Fixes -- `Dialog`: 修复圆角样式错误,并新增 `--td-dialog-border-radius` @anlyyao ([#3469](https://github.com/Tencent/tdesign-miniprogram/pull/3469)) -- `Calendar`: 修复 `confirm-btn` 透传缺失部分参数的问题 @betavs ([#3464](https://github.com/Tencent/tdesign-miniprogram/pull/3464)) -- `Cell`: 修复部分样式错误,并更新 `align` 属性描述 @anlyyao ([#3466](https://github.com/Tencent/tdesign-miniprogram/pull/3466)) -- `Input`: 移除 `--td-input-border-radius` @betavs ([#3463](https://github.com/Tencent/tdesign-miniprogram/pull/3463)) -### 🚧 Others -- `WXS`: 所有 `wxs` 文件模块命名 `this` 改为 `_this` @jarmywang ([#3488](https://github.com/Tencent/tdesign-miniprogram/pull/3488)) - -## 🌈 1.8.5 `2025-01-16` -### 🚀 Features -- `TreeSelect`: 新增 `customValue` 属性,自定义选中值,用于弥补 `value` 为空数组场景 @anlyyao ([#3400](https://github.com/Tencent/tdesign-miniprogram/pull/3400)) -- `Loading`: 新增 `fullscreen` 属性,支持全屏加载 @TeacherDingTing ([#3427](https://github.com/Tencent/tdesign-miniprogram/pull/3427)) -- `ColorPicker`: 新增 `fixed` 属性, @anlyyao ([#3426](https://github.com/Tencent/tdesign-miniprogram/pull/3426)) -- `Guide`: 支持自定义计数器 @demoadminjie ([#3439](https://github.com/Tencent/tdesign-miniprogram/pull/3439)) -- `Icon`: 新增 `logo-alipay`、`logo-behance-filled` 等图标,修改 `logo-wecom` 图标,移除不合理的 `logo-wecom-filled` 图标 @anlyyao ([#3434](https://github.com/Tencent/tdesign-miniprogram/pull/3434)) -### 🐞 Bug Fixes -- `Guide`: 修正返回按钮出现时机,并新增 `hideBack` 属性 @anlyyao ([#3403](https://github.com/Tencent/tdesign-miniprogram/pull/3403)) -- `Message`: `link` 参数类型申明缺失的问题 @betavs ([#3412](https://github.com/Tencent/tdesign-miniprogram/pull/3412)) -- `SwipeCell`: 修复在 `iOS` 手机中导致 `scroll-view` 无法滚动问题 @jarmywang ([#3425](https://github.com/Tencent/tdesign-miniprogram/pull/3425)) -- `Tabs`: 修复徽标激活态颜色错误 @anlyyao ([#3429](https://github.com/Tencent/tdesign-miniprogram/pull/3429)) -- `TabBar`: 修复子项数量大于 3 时子项未按预期调整内边距 @anlyyao ([#3436](https://github.com/Tencent/tdesign-miniprogram/pull/3436)) -- `Search`: 修复禁用态样式错误 @anlyyao ([#3437](https://github.com/Tencent/tdesign-miniprogram/pull/3437)) -- `Image`: 未正确触发组件数据更新的问题 @betavs ([#3443](https://github.com/Tencent/tdesign-miniprogram/pull/3443)) -- `Picker`: - - 修复 `PickerItem` 项 `label` 超出未省略问题 @anlyyao ([#3415](https://github.com/Tencent/tdesign-miniprogram/pull/3415)) - - 规避 Skyline render 下深/浅模式透明色渲染不一致问题 @betavs ([#3449](https://github.com/Tencent/tdesign-miniprogram/pull/3449)) -- `Stepper`: 修复 `Skyline` 中增加和减少按钮动态更新时禁用态样式错误 @anlyyao ([#3454](https://github.com/Tencent/tdesign-miniprogram/pull/3454)) -- `ActionSheet`: 数据更新后未更新视图的问题 @betavs ([#3438](https://github.com/Tencent/tdesign-miniprogram/pull/3438)) -- `Calendar`: 修复 `value` 不在 `[minDate, maxDate ]` 内时带翻页功能的日历面板空白问题 @anlyyao ([#3457](https://github.com/Tencent/tdesign-miniprogram/pull/3457)) -- `Input`: `cursorColor` 属性默认值设 `#0052d9`,修复安卓在 Skyline 下光标消失的问题 @anlyyao ([#3453](https://github.com/Tencent/tdesign-miniprogram/pull/3453)) -- `ColorPicker`: 修复动态设置 `value` 值无效的问题 @anlyyao ([#3426](https://github.com/Tencent/tdesign-miniprogram/pull/3426)) -### 🚧 Others -- `Mpx`: 修复在 `Mpx` 框架中编译报错问题 @anlyyao ([#3416](https://github.com/Tencent/tdesign-miniprogram/pull/3416)) - -## 🌈 1.8.4 `2024-12-25` -### 🚀 Features -- `Calendar`: 新增 `panel-change` 事件,切换月或年时触发(`switch-mode` 不为 `none` 时有效) @anlyyao ([#3385](https://github.com/Tencent/tdesign-miniprogram/pull/3385)) -- `Avatar`: `size` 属性支持 `rpx` 单位 @anlyyao ([#3387](https://github.com/Tencent/tdesign-miniprogram/pull/3387)) -- `Fab`: 新增 `dragStart` 和 `dragEnd` 事件 @anlyyao ([#3388](https://github.com/Tencent/tdesign-miniprogram/pull/3388)) -### 🐞 Bug Fixes -- `ColorPicker`: 修复 `alpha` 滑轨精度丢失的问题 @novlan1 ([#3390](https://github.com/Tencent/tdesign-miniprogram/pull/3390)) -- `Calendar`: 修复使用 `glass-easel` 渲染框架后,组件年月日起不显示 @anlyyao ([#3392](https://github.com/Tencent/tdesign-miniprogram/pull/3392)) -- `SwipeCell`: 解决 `PullDownRefresh` 包裹 `SwipeCell` 时手势冲突 @jarmywang ([#3393](https://github.com/Tencent/tdesign-miniprogram/pull/3393)) -- `PullDownRefresh`: 新增 `usingCustomNavbar` 属性,修复与 `Navbar` 同用遮挡底部问题 @jarmywang ([#3394](https://github.com/Tencent/tdesign-miniprogram/pull/3394)) -- `TreeSelect`: 修复 `value` 为空数组时组件未渲染,同时补齐外部样式类 @anlyyao ([#3395](https://github.com/Tencent/tdesign-miniprogram/pull/3395)) - -## 🌈 1.8.3 `2024-12-19` -### 🚀 Features -- `TreeSelect`: 优化组件交互,支持首次渲染时滚动到选中项位置 @anlyyao ([#3364](https://github.com/Tencent/tdesign-miniprogram/pull/3364)) -### 🐞 Bug Fixes -- `Dialog`: 部分参数类型声明缺失 @betavs ([#3357](https://github.com/Tencent/tdesign-miniprogram/pull/3357)) -- `SideBar`: 修复激活项图标/文本色值错误 @anlyyao ([#3364](https://github.com/Tencent/tdesign-miniprogram/pull/3364)) -- `Calendar`: 修复 `switchMode` 和 `maxDate` 同时使用时,翻页按钮状态错误 @anlyyao ([#3366](https://github.com/Tencent/tdesign-miniprogram/pull/3366)) -- `Icon`: 补充异常捕获,修复开发工具控制台报错 @anlyyao ([#3370](https://github.com/Tencent/tdesign-miniprogram/pull/3370)) -- `Guide`: 修复 `hideSkip` 属性无效 @anlyyao ([#3371](https://github.com/Tencent/tdesign-miniprogram/pull/3371)) - -## 🌈 1.8.2 `2024-12-11` -### 🚀 Features -- `DropdownItem`: 新增 `placement` 属性,用于调整复选框和内容相对位置,仅单选菜单栏有效 @anlyyao ([#3327](https://github.com/Tencent/tdesign-miniprogram/pull/3327)) -- `Cascader`: 新增 `checkStrictly` 属性,父子节点选中状态不再关联,可各自选中或取消 @hkaikai ([#3333](https://github.com/Tencent/tdesign-miniprogram/pull/3333)) -- `Calendar`: 支持 `switchMode` 属性,支持按年/月翻页 @anlyyao ([#3326](https://github.com/Tencent/tdesign-miniprogram/pull/3326)) -### 🐞 Bug Fixes -- `DropdownMenu`: 修复部分 `css vars` 命名错误 @anlyyao ([#3338](https://github.com/Tencent/tdesign-miniprogram/pull/3338)) -- `TabBar`: 修复文本 + 徽标使用场景时,文本被挤压问题 @anlyyao ([#3340](https://github.com/Tencent/tdesign-miniprogram/pull/3340)) -- `Rate`: 修复禁用态下组件无法向上冒泡的问题 @anlyyao ([#3329](https://github.com/Tencent/tdesign-miniprogram/pull/3329)) -- `Popup`: 处理`Skyline` 模式下微信开发者工具控制台报错 @betavs ([#3315](https://github.com/Tencent/tdesign-miniprogram/pull/3315)) -- `Picker`: 在 `Skyline` 模式下样式异常 @betavs ([#3317](https://github.com/Tencent/tdesign-miniprogram/pull/3317)) -- `NoticeBar`: 修复重复进入页面时出现非预期动画 @anlyyao ([#3346](https://github.com/Tencent/tdesign-miniprogram/pull/3346)) - -## 🌈 1.8.1 `2024-11-29` -### 🚀 Features -- `Progress`: 新增环形进度条相关的 `css vars` @betavs ([#3301](https://github.com/Tencent/tdesign-miniprogram/pull/3301)) -- `Input`: 新增 `--td-input-align-items` 变量,支持自定义组件内容对齐方式 @anlyyao ([#3308](https://github.com/Tencent/tdesign-miniprogram/pull/3308)) -- `ColorPicker`: 新增 `header` 和 `footer` 插槽,仅在 `usePopup` 为 `true` 时有效 @anlyyao ([#3310](https://github.com/Tencent/tdesign-miniprogram/pull/3310)) -### 🐞 Bug Fixes -- `DropdownItem`: 修复默认插槽无效,并补充 `footer` 具名插槽 @anlyyao ([#3309](https://github.com/Tencent/tdesign-miniprogram/pull/3309)) -- `Navbar`: 修复 `getRect` 耗时过长导致 `navbar` 位置不准确问题,并兼容部分机型因精度问题导致的翻译功能完成后标题仍然隐藏的问题 @jarmywang @anlyyao @betavs ([#3286](https://github.com/Tencent/tdesign-miniprogram/pull/3286)) - -## 🌈 1.8.0 `2024-11-13` -### 🚀 Features -- `Icon`: 新增 907 个新图标⚡ 另外: `blockchain` 重命名为 `transform-1` , `gesture-pray-1` 重命名为 `gesture-open` , `gesture-ranslation-1` 重命名为 `wave-bye` , `gesture-up-1` 重命名为 `gesture-typing` , `gesture-up-2` 重命名为 `gesture-right-slip` , `logo-wechat` 重命名为 `logo-wechat-stroke-filled` ; 移除`tree-list`、`logo-adobe-photoshop-1` 图标 @anlyyao ([#3279](https://github.com/Tencent/tdesign-miniprogram/pull/3279)) -- `TabPanel`: 面板高度仅由其内容决定 @anlyyao ([#3280](https://github.com/Tencent/tdesign-miniprogram/pull/3280)) -- `Calendar`: 新增 `localText` 属性,支持组件国际化 @anlyyao ([#3278](https://github.com/Tencent/tdesign-miniprogram/pull/3278)) -### 🐞 Bug Fixes -- `Input`: 修复 `cursorColor` 属性无默认值的问题 @anlyyao ([#3272](https://github.com/Tencent/tdesign-miniprogram/pull/3272)) -- `Progress`: 修复在 `skyline` 中标签右侧间距错误 @anlyyao ([#3283](https://github.com/Tencent/tdesign-miniprogram/pull/3283)) -### 🚧 Others -- `other`: `getWindowInfo` 、 `getAppBaseInfo` 、 `getDeviceInfo` 等方法兼容单页模式使用 @anlyyao ([#3281](https://github.com/Tencent/tdesign-miniprogram/pull/3281)) - -## 🌈 1.7.1 `2024-11-08` -### 🚀 Features -- `Stepper`: 新增 `integer` 属性,支持输入小数 @anlyyao ([#3230](https://github.com/Tencent/tdesign-miniprogram/pull/3230)) -- `DropdownItem`: 优化组件样式,当 `option` 为空时选项区域不占位 @anlyyao ([#3235](https://github.com/Tencent/tdesign-miniprogram/pull/3235)) -- `Input`: 支持 `readonly` 属性 @anlyyao ([#3255](https://github.com/Tencent/tdesign-miniprogram/pull/3255)) -- `ColorPicker`: 新增 `usePopup`、`visible`、`autoClose`、`style` 与 `customStyle` 等属性,新增 `close` 事件 @anlyyao ([#3260](https://github.com/Tencent/tdesign-miniprogram/pull/3260)) -- `DateTimePicker`: 新增 `autoClose` 属性 @anlyyao ([#3263](https://github.com/Tencent/tdesign-miniprogram/pull/3263)) -### 🐞 Bug Fixes -- `Icon`: 修复动态计算图片高度异常 @betavs ([#3228](https://github.com/Tencent/tdesign-miniprogram/pull/3228)) -- `ActionSheet`: 为 `cancelText` 补充默认值 @anlyyao ([#3231](https://github.com/Tencent/tdesign-miniprogram/pull/3231)) -- `Stepper`: 增加输入校验,修复使用第三方键盘时带来的格式问题,并修复禁用输入框样式 @anlyyao ([#3230](https://github.com/Tencent/tdesign-miniprogram/pull/3230)) -- `Search`: 修复外部样式类 `t-class-clear` 及 `t-class-left` 无法修改图标大小的问题,并丰富 `css vars` @anlyyao ([#3238](https://github.com/Tencent/tdesign-miniprogram/pull/3238)) ([#3264](https://github.com/Tencent/tdesign-miniprogram/pull/3264)) -- `Cascader`: 修复动态设置 `value` 而选项内容未更新问题 @jarmywang ([#3242](https://github.com/Tencent/tdesign-miniprogram/pull/3242)) -- `PullDownRefresh`: 修复在 `iOS` 部分低系统中(如15.4、14.2、14.1等 ),提示语隐藏不完整的问题 @anlyyao ([#3239](https://github.com/Tencent/tdesign-miniprogram/pull/3239)) -- `DateTimePicker`: 支持通过 `popupProps` 透传 `usingCustomNavbar` 属性,避免遮罩层挡住自定义导航栏 @anlyyao ([#3254](https://github.com/Tencent/tdesign-miniprogram/pull/3254)) -- `Button`: 修复 `danger` + `disable` 时,文本颜色错误 @anlyyao ([#3261](https://github.com/Tencent/tdesign-miniprogram/pull/3261)) -- `Rate`: 修复 `gap` 单位处理异常 @jarmywang ([#3259](https://github.com/Tencent/tdesign-miniprogram/pull/3259)) - -## 🌈 1.7.0 `2024-10-25` -### 🚀 Features -- `ColorPicker`: 新增 `ColorPicker` 组件 @novlan1 ([#3176](https://github.com/Tencent/tdesign-miniprogram/pull/3176))⚡ -- `Fab`: 新增默认插槽 @anlyyao ([#3204](https://github.com/Tencent/tdesign-miniprogram/pull/3204)) -- `Input`: - - 新增 `cursorColor` 属性 @anlyyao ([#3211](https://github.com/Tencent/tdesign-miniprogram/pull/3211)) - - 支持 `format` 属性 @anlyyao ([#3213](https://github.com/Tencent/tdesign-miniprogram/pull/3213)) -- `DateTimePicker`: 新增 `filter` 属性,支持自定义列选项内容 @anlyyao ([#3220](https://github.com/Tencent/tdesign-miniprogram/pull/3220)) -- `Indexeds`: 优化交互样式,索引仅展示首字符,气泡支持展示索引内容 @anlyyao ([#3222](https://github.com/Tencent/tdesign-miniprogram/pull/3222)) -- `Cascader`: `pick` 事件补充 `label` 参数 @anlyyao ([#3223](https://github.com/Tencent/tdesign-miniprogram/pull/3223)) -### 🐞 Bug Fixes -- `Button`: 修复深色模式的默认幽灵按钮的边框色错误 @anlyyao ([#3200](https://github.com/Tencent/tdesign-miniprogram/pull/3200)) -- `Icon`: 修复使用图片链接时偶发性出现字体图标的问题 @anlyyao ([#3216](https://github.com/Tencent/tdesign-miniprogram/pull/3216)) -- `Upload`: 修复 `loading` 内容未居中问题 @anlyyao ([#3219](https://github.com/Tencent/tdesign-miniprogram/pull/3219)) -- `Navbar`: 修复安卓中因精度带来的标题宽度计算错误,并优化标题左侧间距 @anlyyao ([#3217](https://github.com/Tencent/tdesign-miniprogram/pull/3217)) -### 📝 Documentation -- `Fab`: 文档补充 `FAQ` 部分 @anlyyao ([#3215](https://github.com/Tencent/tdesign-miniprogram/pull/3215)) -### 🚧 Others -- `WX`: 更新部分不在维护的`wx`接口,并兼容低版本 @anlyyao ([#3192](https://github.com/Tencent/tdesign-miniprogram/pull/3192)) - -## 🌈 1.6.2 `2024-10-12` -### 🚀 Features -- `Checkbox`: 新增keys可配置options的value和label的别名 @huxinhai ([#3154](https://github.com/Tencent/tdesign-miniprogram/pull/3154)) -### 🐞 Bug Fixes -- `Button`: 修复文字按钮样式错误 @anlyyao ([#3163](https://github.com/Tencent/tdesign-miniprogram/pull/3163)) -- `Checkbox`: 修复 `change` 事件中参数缺失的问题 @betavs ([#3157](https://github.com/Tencent/tdesign-miniprogram/pull/3157)) -- `Dialog`: 修复更新按钮属性 `openType` 未重置问题 @jarmywang ([#3178](https://github.com/Tencent/tdesign-miniprogram/pull/3178)) -- `Tabs`: - - 修复开启 `animation` 时导致的面板滚动位置不准确问题 @anlyyao ([#3188](https://github.com/Tencent/tdesign-miniprogram/pull/3188)) - - 修复在 `skyline` 中无法滚动的问题 @anlyyao ([#3187](https://github.com/Tencent/tdesign-miniprogram/pull/3187)) -- `Collapse`: 修复禁用+面板展开场景下面板展开态不正确,并处理多个样式问题 @anlyyao ([#3186](https://github.com/Tencent/tdesign-miniprogram/pull/3186)) -- `Cell`: 修复 `arrow` 动态变更无效的问题 @anlyyao ([#3184](https://github.com/Tencent/tdesign-miniprogram/pull/3184)) -- `Switch`: 修复深色模式下文本颜色错误 @anlyyao ([#3183](https://github.com/Tencent/tdesign-miniprogram/pull/3183)) -- `PullDownRefresh`: 修复禁用下拉刷新导致的滑动事件无效 @anlyyao ([#3182](https://github.com/Tencent/tdesign-miniprogram/pull/3182)) - -## 🌈 1.6.1 `2024-09-14` -### 🚀 Features -- `Fab`: 新增 `yEdge` 属性,支持设置垂直方向边界限制 @anlyyao ([#3125](https://github.com/Tencent/tdesign-miniprogram/pull/3125)) -- `PickerItem`: 支持插槽,自定义 `label` 后缀内容 @anlyyao ([#3127](https://github.com/Tencent/tdesign-miniprogram/pull/3127)) -- `AvatarGroup`: 新增 `shape` 属性,新增 `collapsed-item-click` 事件 @anlyyao ([#3134](https://github.com/Tencent/tdesign-miniprogram/pull/3134)) -- `RadioGroup`: 新增 `allowUncheck` 属性 @anlyyao ([#3140](https://github.com/Tencent/tdesign-miniprogram/pull/3140)) -### 🐞 Bug Fixes -- `Slider`: `dragend` 事件增加返回 `value` @jarmywang ([#3112](https://github.com/Tencent/tdesign-miniprogram/pull/3112)) -- `ImageViewer`: - - 修复 `images` 长度更新导致 `index` 显示异常 @jarmywang ([#3111](https://github.com/Tencent/tdesign-miniprogram/pull/3111)) - - 修复滚动穿透问题 @dadtakesmefly ([#3146](https://github.com/Tencent/tdesign-miniprogram/pull/3146)) -- `Tabs`: 使用 `hidden` 隐藏后显示仍能够正常显示指示器;移除文档中未实现的 `destroyOnHide` 属性 @jarmywang ([#3132](https://github.com/Tencent/tdesign-miniprogram/pull/3132)) -- `AvatarGroup`: 修复 `size` 属性无效的问题,优化 `zIndex` 处理 @anlyyao ([#3134](https://github.com/Tencent/tdesign-miniprogram/pull/3134)) -- `Image`: 修复图片在 `loading` 态时,加载错位 @huxinhai ([#3128](https://github.com/Tencent/tdesign-miniprogram/pull/3128)) -- `Progress`: 修复环形进度条首次加载时,`strokeWidth` 线宽延迟显示的问题 @huxinhai ([#3139](https://github.com/Tencent/tdesign-miniprogram/pull/3139)) -- `Radio`: 修复 `allowUncheck` 属性无效 @anlyyao ([#3140](https://github.com/Tencent/tdesign-miniprogram/pull/3140)) -- `Badge`: 修复 `skyline` 下角标样式异常,`ribbon` 类型徽标改用伪元素实现 @anlyyao ([#3144](https://github.com/Tencent/tdesign-miniprogram/pull/3144)) -- `Cascader`: 修复 `value` 动态变更时,`options ` 选项内容未更新的问题 @huxinhai ([#3142](https://github.com/Tencent/tdesign-miniprogram/pull/3142)) -- `CollapsePanel`: 修复 `expandIcon` 属性不生效问题,并支持动态设置 `disabled` 属性 @blankqwq ([#3093](https://github.com/Tencent/tdesign-miniprogram/pull/3093)) - -## 🌈 1.6.0 `2024-08-23` -### 🚀 Features -- `DropdownMenu`: 新增 `--td-dropdown-menu-height` @anlyyao ([#3094](https://github.com/Tencent/tdesign-miniprogram/pull/3094)) -### 🐞 Bug Fixes -- `Badge`: 修复角标样式溢出,移除`t-badge__ribbon--before`元素与`t-badge__ribbon--after`元素,改用`clip-path`样式实现 @jby0107 ([#3074](https://github.com/Tencent/tdesign-miniprogram/pull/3074)) -- `Dialog`: 修复命令行调用`closeOnOverlayClick`无效问题 @jarmywang ([#3066](https://github.com/Tencent/tdesign-miniprogram/pull/3066)) -- `Checkbox`: 修复选中态和未选中态直径/边长大小不一致问题 @anlyyao ([#3069](https://github.com/Tencent/tdesign-miniprogram/pull/3069)) -- `Dialog`: `close` 方法参数类型定义异常 @betavs ([#3071](https://github.com/Tencent/tdesign-miniprogram/pull/3071)) -- `Picker`: 兼容 `Skyline` 在深色模式下遮罩显示 @jarmywang ([#3077](https://github.com/Tencent/tdesign-miniprogram/pull/3077)) -- `Progress`: 修复 `label` 插槽重复 @anlyyao ([#3080](https://github.com/Tencent/tdesign-miniprogram/pull/3080)) -- `Slider`: 修复 `hidden` 为 `false` 场景下,调用 `init()` 函数更新组件时点位置错误 @jby0107 ([#3085](https://github.com/Tencent/tdesign-miniprogram/pull/3085)) - -## 🌈 1.5.1 `2024-08-09` -### 🚀 Features -- `Input`: 新增 `--td-input-placeholder-text-font-size` 变量 @betavs ([#3018](https://github.com/Tencent/tdesign-miniprogram/pull/3018)) -- `Popup`: 新增 `--td-popup-close-btn-color` @anlyyao ([#3035](https://github.com/Tencent/tdesign-miniprogram/pull/3035)) -- `Message`: 支持组件通过 `visible` 属性调用 @novlan1 ([#3058](https://github.com/Tencent/tdesign-miniprogram/pull/3058)) -### 🐞 Bug Fixes -- `NoticeBar`: 修复 `content` 插槽内容的底边距异常 @anlyyao ([#3025](https://github.com/Tencent/tdesign-miniprogram/pull/3025)) -- `Cascader`: 修复组件高度设置错误,交互有调整 @anlyyao ([#3027](https://github.com/Tencent/tdesign-miniprogram/pull/3027)) -- `Image`: 修复懒加载无效的问题 @huxinhai ([#3036](https://github.com/Tencent/tdesign-miniprogram/pull/3036)) -- `Message`: 修复 `duration-end` 事件未回调 @jarmywang ([#3051](https://github.com/Tencent/tdesign-miniprogram/pull/3051)) -- `Tabs`: - - 修复 `card` 主题下`label` 显示不全 @anlyyao ([#3059](https://github.com/Tencent/tdesign-miniprogram/pull/3059)) - - 修复 `TabPanel`面板内容快速滚动时,点击tab切换出现偶发性页面空白 @hkaikai ([#3055](https://github.com/Tencent/tdesign-miniprogram/pull/3055)) -- `PullDownRefresh`: 修复 `skyline` 下提示语占位高度计算错误 @richardji202 ([#3014](https://github.com/Tencent/tdesign-miniprogram/pull/3014)) - -## 🌈 1.5.0 `2024-07-26` -### 🚀 Features -- `Guide`: 新增`Guide`组件 @hkaikai ([#2998](https://github.com/Tencent/tdesign-miniprogram/pull/2998)) ⚡ -- `Icon`: 新增 `list-numbered`、`lock-off-filled`、`lock-on-filled` 等 3 个图标 @anlyyao ([#2962](https://github.com/Tencent/tdesign-miniprogram/pull/2962)) -- `Calendar`: 新增 `scroll` 事件 @jarmywang ([#2974](https://github.com/Tencent/tdesign-miniprogram/pull/2974)) -- `Rate`: `placement` 属性可选项新增 `''`,表示不显示评分弹窗 @anlyyao ([#2980](https://github.com/Tencent/tdesign-miniprogram/pull/2980)) -### 🐞 Bug Fixes -- `Icon`: 修复图标 `chart-column` 的命名错误问题 @anlyyao ([#2962](https://github.com/Tencent/tdesign-miniprogram/pull/2962)) -- `Cell`: 修复动态添加 `cell` 时底部 `border` 不显示的问题 @jarmywang ([#2977](https://github.com/Tencent/tdesign-miniprogram/pull/2977)) -- `Button`: 修复`skyline`渲染模式下 `hover` 态失效 @jarmywang ([#2973](https://github.com/Tencent/tdesign-miniprogram/pull/2973)) -- `Grid`: 监听数据变化后未更新子组件样式 @betavs ([#2991](https://github.com/Tencent/tdesign-miniprogram/pull/2991)) -- `Input`: 修复占位符禁用态样式错误 @anlyyao ([#3005](https://github.com/Tencent/tdesign-miniprogram/pull/3005)) -- `Noticebar`: 移除未依赖的组件引用,修复代码质量告警 @anlyyao ([#3006](https://github.com/Tencent/tdesign-miniprogram/pull/3006)) -- `Indexes`: 修复位置错乱和滑动卡顿 @jarmywang ([#3000](https://github.com/Tencent/tdesign-miniprogram/pull/3000)) -### 🚧 Others -- `site`: 项目案例更新 @anlyyao ([#2964](https://github.com/Tencent/tdesign-miniprogram/pull/2964)) -- `TabBarItem`: `wx:key` 从 `index` 更换为`value`属性值作为标识符 @jarmywang ([#3002](https://github.com/Tencent/tdesign-miniprogram/pull/3002)) -- `Search`: `skyline` 适配 @byq1213 ([#2971](https://github.com/Tencent/tdesign-miniprogram/pull/2971)) -- `Switch`: `skyline` 适配 @byq1213 ([#2967](https://github.com/Tencent/tdesign-miniprogram/pull/2967)) - -## 🌈 1.4.5 `2024-07-05` -### 🚀 Features -- `Progress`: `circle` 风格进度条支持自定义起始角度 @jarmywang ([#2903](https://github.com/Tencent/tdesign-miniprogram/pull/2903)) -- `SwipeCell`: 新增 `dragstart` 和 `dragend` 事件 @Lyan-u ([#2904](https://github.com/Tencent/tdesign-miniprogram/pull/2904)) -- `PullDownRefresh`: 新增 `disabled` 属性 @Lyan-u ([#2904](https://github.com/Tencent/tdesign-miniprogram/pull/2904)) -- `Search`: 新增 `resultList` 属性,支持预览列表 @byq1213 @anlyyao ([#2520](https://github.com/Tencent/tdesign-miniprogram/pull/2520)) -- `Picker`: 新增 `itemHeight` 属性,支持自定义 `PickerItem` 子项高度 @anlyyao ([#2953](https://github.com/Tencent/tdesign-miniprogram/pull/2953)) -### 🐞 Bug Fixes -- `Popup`: 修复右侧弹层未适配自定义标题栏高度 @jarmywang ([#2921](https://github.com/Tencent/tdesign-miniprogram/pull/2921)) -- `Navbar`: 组件内部适配 `wx.onMenuButtonBoundingClientRectWeightChange()` @jby0107 ([#2922](https://github.com/Tencent/tdesign-miniprogram/pull/2922)) -- `Input`: 修复`Skyline`下点击清除图标时页面上 `bindtap` 无效 @anlyyao ([#2946](https://github.com/Tencent/tdesign-miniprogram/pull/2946)) -### 🚧 Others -- `site`: 全量组件补充示例代码片段,支持导入开发者工具预览 @anlyyao ([#2939](https://github.com/Tencent/tdesign-miniprogram/pull/2939)) -- `Picker`: 废弃无实际意义的 `--td-picker-item-height` @anlyyao ([#2953](https://github.com/Tencent/tdesign-miniprogram/pull/2953)) - -## 🌈 1.4.4 `2024-06-24` -### 🐞 Bug Fixes -- `Overlay`: 修复遮罩失效 @anlyyao ([#2887](https://github.com/Tencent/tdesign-miniprogram/pull/2887)) - -## 🌈 1.4.3 `2024-06-21` -### 🚀 Features -- `TabPanel`: 支持动态 `label` @anlyyao ([#2872](https://github.com/Tencent/tdesign-miniprogram/pull/2872)) -### 🐞 Bug Fixes -- `Calendar`: 优化 `title` 默认值 @anlyyao ([#2858](https://github.com/Tencent/tdesign-miniprogram/pull/2858)) -- `Swiper`: 修复 `navigation` 插槽无效的问题 @jarmywang ([#2859](https://github.com/Tencent/tdesign-miniprogram/pull/2859)) -- `TabBar`: 修复自定义 `tabbar` 中深色模式颜色错误 @anlyyao ([#2861](https://github.com/Tencent/tdesign-miniprogram/pull/2861)) -- `CheckTag`: 更正组件内部 `checked`属性类型 @anlyyao ([#2871](https://github.com/Tencent/tdesign-miniprogram/pull/2871)) -- `Navbar`: 修复占位区高度错误 @jby0107 ([#2877](https://github.com/Tencent/tdesign-miniprogram/pull/2877)) -- `Radio`: 修复禁用态样式错误 @anlyyao ([#2875](https://github.com/Tencent/tdesign-miniprogram/pull/2875)) -- `Dialog`: `close-on-overlay-click`属性默认值从 `undefined` 改为 `false` @jarmywang ([#2874](https://github.com/Tencent/tdesign-miniprogram/pull/2874)) -- `Cascader`: 优化组件性能,支持4级地址 @novlan1 ([#2866](https://github.com/Tencent/tdesign-miniprogram/pull/2866)) -### 🚧 Others -- `site(Button)`: 支持示例代码导入开发者工具 @anlyyao ([#2883](https://github.com/Tencent/tdesign-miniprogram/pull/2883)) - -## 🌈 1.4.2 `2024-06-07` -### 🐞 Bug Fixes -- `Skeleton`: 修复深色模式渐变动画颜色错误 @anlyyao ([#2818](https://github.com/Tencent/tdesign-miniprogram/pull/2818)) -- `Slider`: 修复禁用态样式错误 @anlyyao ([#2814](https://github.com/Tencent/tdesign-miniprogram/pull/2814)) -- `TabBar`: 修复 `icon` 插槽不显示问题 @jarmywang ([#2821](https://github.com/Tencent/tdesign-miniprogram/pull/2821)) -- `Tabs`: - - 修复当改变文本大小时下划线滑动位置错误 @anlyyao ([#2822](https://github.com/Tencent/tdesign-miniprogram/pull/2822)) - - 修复部分 `css` 变量无效 @betavs ([#2843](https://github.com/Tencent/tdesign-miniprogram/pull/2843)) -- `ActionSheet`: 修复控制台告警 @anlyyao ([#2838](https://github.com/Tencent/tdesign-miniprogram/pull/2838)) -### 🚧 Others -- `CountDown`: 示例添加 `TCloudNumber` 字体的 `Base64` 转码 @ArcticFoxPro ([#2836](https://github.com/Tencent/tdesign-miniprogram/pull/2836)) -- `Message`: 修复官网 `Message` 组件示例页面白屏 @anlyyao ([#2841](https://github.com/Tencent/tdesign-miniprogram/pull/2841)) - -## 🌈 1.4.1 `2024-05-28` -### 🚀 Features -- `Picker`: 新增 `use-popup` 属性 @anlyyao ([#2770](https://github.com/Tencent/tdesign-miniprogram/pull/2770)) -- `DateTimePicker`: 新增 `use-popup` 属性 @anlyyao ([#2770](https://github.com/Tencent/tdesign-miniprogram/pull/2770)) - -### 🐞 Bug Fixes -- `Calendar`: 修复页面层无法修改组件样式的问题 @anlyyao ([#2767](https://github.com/Tencent/tdesign-miniprogram/pull/2767)) -- `Layout`: 支持拆行 @anlyyao ([#2773](https://github.com/Tencent/tdesign-miniprogram/pull/2773)) -- `Navbar`: 为适配右侧胶囊尺寸,恢复使用 `px` 单位 @anlyyao ([#2781](https://github.com/Tencent/tdesign-miniprogram/pull/2781)) -- `Picker`: 修复子项文本尺寸自适应问题 @anlyyao ([#2782](https://github.com/Tencent/tdesign-miniprogram/pull/2782)) -- `Tabs`: - - 修复在 `Skyline` 模式下组件不能正常使用的问题 @narukeu ([#2788](https://github.com/Tencent/tdesign-miniprogram/pull/2788)) - - 修复示例文案错误 @ArcticFoxPro ([#2801](https://github.com/Tencent/tdesign-miniprogram/pull/2801)) -- `CellGroup`: 修复深色模式下外边框颜色错误 @anlyyao ([#2790](https://github.com/Tencent/tdesign-miniprogram/pull/2790)) -- `Slider`: - - 优化垂直方向胶囊滑轨样式 @anlyyao ([#2796](https://github.com/Tencent/tdesign-miniprogram/pull/2796))、 - - 示例增加边距,避免与手势返回冲突 @novlan1 ([#2807](https://github.com/Tencent/tdesign-miniprogram/pull/2807)) -- `Progress`: 修复环状进度条深色模式颜色错误 @anlyyao ([#2794](https://github.com/Tencent/tdesign-miniprogram/pull/2794)) -- `Icon`: 修复图片资源无法正常显示的问题 @betavs ([#2806](https://github.com/Tencent/tdesign-miniprogram/pull/2806)) -- `CountDown`: 改用 `TCloudNumber` 字体 @anlyyao ([#2765](https://github.com/Tencent/tdesign-miniprogram/pull/2765)) -- `Button`: 更新示例,对齐视觉 @anlyyao ([#2811](https://github.com/Tencent/tdesign-miniprogram/pull/2811)) -### 🚧 Others -- `site`: 修复预览窗口内部切换时不更随颜色模式问题 @zuiaiwanqian ([#2768](https://github.com/Tencent/tdesign-miniprogram/pull/2768)) - -## 🌈 1.4.0 `2024-05-09` -### 🚀 Features -- `TDesign`: Button、Fab等 33 个组件完成 Skyline 适配,并新增 Skyline Page 示例页 @jin0209 @anlyyao @jarmywang ([#2659](https://github.com/Tencent/tdesign-miniprogram/pull/2659)) -- `Input`: 新增 `default-value` 属性 @betavs ([#2738](https://github.com/Tencent/tdesign-miniprogram/pull/2738)) -- `Textarea`: 新增 `default-value` 属性 @betavs ([#2737](https://github.com/Tencent/tdesign-miniprogram/pull/2737)) -### 🐞 Bug Fixes -- `Layout`: 修复 `Col` 和 `Row` 的 `style` 与 `customStyle` 属性无效的问题 @anlyyao ([#2745](https://github.com/Tencent/tdesign-miniprogram/pull/2745)) - -## 🌈 1.3.1 `2024-04-29` -### 🚀 Features -- `Fab`: 新增 `using-custom-navbar` 属性 @anlyyao ([#2725](https://github.com/Tencent/tdesign-miniprogram/pull/2725)) -### 🐞 Bug Fixes -- `Message`: 修复 `message` 重复进入位置异常并修正 `single` 属性值默认取 `true` @jarmywang ([#2719](https://github.com/Tencent/tdesign-miniprogram/pull/2719)) -- `MessageItem`: 逻辑容错异常处理 @betavs ([#2704](https://github.com/Tencent/tdesign-miniprogram/pull/2704)) -- `Skeleton`: 修复 `loading` 属性默认值无效的问题 @anlyyao ([#2714](https://github.com/Tencent/tdesign-miniprogram/pull/2714)) -- `Progress`: 修复 `circle` 主题背景色缺失的问题 @anlyyao ([#2722](https://github.com/Tencent/tdesign-miniprogram/pull/2722)) -- `BackTop`: 修复 `round/half-round` 主题文本和背景 `design token` 错误 @anlyyao ([#2722](https://github.com/Tencent/tdesign-miniprogram/pull/2722)) -- `CheckboxGroup`: `options` 对象中 `value` 不支持 `number` 类型 @betavs ([#2731](https://github.com/Tencent/tdesign-miniprogram/pull/2731)) -### 🚧 Others -- `chore`: `styleIsolation` 配置项从 `options` 迁移到 `JSON` @anlyyao ([#2718](https://github.com/Tencent/tdesign-miniprogram/pull/2718)) -- `chore`: 修正包名 @betavs ([#2734](https://github.com/Tencent/tdesign-miniprogram/pull/2734)) - -## 🌈 1.3.0 `2024-04-19` -### 🚀 Features -- `TDesign` 微信小程序组件库提供原生深色模式适配 @zuiaiwanqian ([#2636](https://github.com/Tencent/tdesign-miniprogram/pull/2636)) -- `PullDownRefresh`: - - 新增 `header` 插槽 @betavs ([#2652](https://github.com/Tencent/tdesign-miniprogram/pull/2652)) - - 新增 `drag` 等事件 @betavs ([#2649](https://github.com/Tencent/tdesign-miniprogram/pull/2649)) -- `Picker`: 新增 `footer` 插槽 @anlyyao ([#2632](https://github.com/Tencent/tdesign-miniprogram/pull/2632)) -- `DateTimePicker`: 新增 `footer` 插槽 @anlyyao ([#2632](https://github.com/Tencent/tdesign-miniprogram/pull/2632)) -- `CheckTag`: 新增 `shape` 和 `closable` 属性 @betavs ([#2365](https://github.com/Tencent/tdesign-miniprogram/pull/2365)) -- `Image`: 新增 `t-id` 属性 @catiwang ([#2658](https://github.com/Tencent/tdesign-miniprogram/pull/2658)) -- `upload`: 支持自定义上传图片后的略缩图 @dexterBo ([#2690](https://github.com/Tencent/tdesign-miniprogram/pull/2690)) -- `Skeleton`: 新增 `delay` 属性 @anlyyao ([#2698](https://github.com/Tencent/tdesign-miniprogram/pull/2698)) -- `Message`: 支持同时显示多条消息并自动垂直排版 @zh-huan ([#2639](https://github.com/Tencent/tdesign-miniprogram/pull/2639)) -### 🐞 Bug Fixes -- `RadioGroup`: 修复 `disabled` 动态修改无效 @catiwang ([#2643](https://github.com/Tencent/tdesign-miniprogram/pull/2643)) -- `Calendar`: 动态设置 `format` 无效 @betavs ([#2670](https://github.com/Tencent/tdesign-miniprogram/pull/2670)) -- `CheckboxGroup`: 处理 `disabled` 动态修改无效的问题 @betavs ([#2647](https://github.com/Tencent/tdesign-miniprogram/pull/2647)) -- `Slider`: 修复组件宽度失效 @anlyyao ([#2699](https://github.com/Tencent/tdesign-miniprogram/pull/2699)) -- `Drawer`: 修复 `--td-drawer-item-icon-color` 名称错误 @anlyyao ([#2697](https://github.com/Tencent/tdesign-miniprogram/pull/2697)) -- `TabBarItem`: 当 `tab-bar` 组件 `split` 属性为真时,样式异常 @betavs ([#2696](https://github.com/Tencent/tdesign-miniprogram/pull/2696)) -### 🚧 Others -- `Footer`: 同步 `API` 文档 @liweijie0812 ([#2683](https://github.com/Tencent/tdesign-miniprogram/pull/2683)) -- `Tag`: 同步 `API` 文档 @liweijie0812 ([#2684](https://github.com/Tencent/tdesign-miniprogram/pull/2684)) -- `Result`: 同步 `API` 文档 @liweijie0812 ([#2685](https://github.com/Tencent/tdesign-miniprogram/pull/2685)) - -## 🌈 1.2.9 `2024-03-07` -### 🚀 Features -- `Cascader`: 新增 `placeholder` 属性,支持自定义未选中时的提示文案 @anlyyao ([#2597](https://github.com/Tencent/tdesign-miniprogram/pull/2597)) -### 🐞 Bug Fixes -- `DropdownMenu`: 修复菜单栏展开状态向上滚动时菜单栏和内容面板分离的问题 @maureenwanmy ([#2606](https://github.com/Tencent/tdesign-miniprogram/pull/2606)) -- `Swiper`: 修复意外的高频左右抖动 @betavs ([#2603](https://github.com/Tencent/tdesign-miniprogram/pull/2603)) -- `Layout`: 改用 `flex` 布局,修复 `col` 高度塌陷问题 @dexterBo ([#2616](https://github.com/Tencent/tdesign-miniprogram/pull/2616)) -- `Slider`: - - 修复 `slider` 在多点触控时无法滑动的问题 @xieyushansun ([#2619](https://github.com/Tencent/tdesign-miniprogram/pull/2619)) - - 修复滑块点击偏移和点击位置定位不准确的问题 @dexterBo ([#2627](https://github.com/Tencent/tdesign-miniprogram/pull/2627)) -- `Fab`: 修复拖拽模式点击不触发 @jarmywang ([#2631](https://github.com/Tencent/tdesign-miniprogram/pull/2631)) -- `Navbar`: `px` 转 `rpx` 换算错误 @betavs ([#2626](https://github.com/Tencent/tdesign-miniprogram/pull/2626)) -### 🚧 Others -- `TabBar`: 移除重复样式类 @Moonofweisheng ([#2630](https://github.com/Tencent/tdesign-miniprogram/pull/2630)) -- `DropdownItem`: 采用 [BEM](http://getbem.com/) 命名规范优化类名 @betavs ([#2611](https://github.com/Tencent/tdesign-miniprogram/pull/2611)) - -## 🌈 1.2.8 `2024-02-06` -### 🚀 Features -- `Slider`: 新增 `vertical`属性 @zuiaiwanqian ([#2592](https://github.com/Tencent/tdesign-miniprogram/pull/2592)) -- `Tag`: `closable` 属性补充支持 `Object` 和 `Slot`类型 @anlyyao ([#2590](https://github.com/Tencent/tdesign-miniprogram/pull/2590)) -- `Cell`: `leftIcon`、 `rightIcon` 和 `arrow` 属性补充支持 `Object` 类型 @anlyyao ([#2589](https://github.com/Tencent/tdesign-miniprogram/pull/2589)) -### 🐞 Bug Fixes -- `Search`: 处理 `slot` 互斥问题 @betavs ([#2569](https://github.com/Tencent/tdesign-miniprogram/pull/2569)) -- `ImageViewer`: 修复图片未设置宽高时,图片预览被截断的问题 @azx1573 ([#2575](https://github.com/Tencent/tdesign-miniprogram/pull/2575)) -- `Cascader`: 修复 `value` 无法响应更新的问题 @catiwang ([#2578](https://github.com/Tencent/tdesign-miniprogram/pull/2578)) -- `PullDownRefresh`: 修复快速滚动时 `scrollTop` 不准确的问题 @yangbai1991 ([#2472](https://github.com/Tencent/tdesign-miniprogram/pull/2472)) -- `Dialog`: 处理基础调试库在 `3.3.3` ~ `3.3.4` 版本时控制台报错 @anlyyao ([#2587](https://github.com/Tencent/tdesign-miniprogram/pull/2587)) -### 🚧 Others -- `NoticeBar`: 声明 `NoticeBarTrigger` 类型 @betavs ([#2567](https://github.com/Tencent/tdesign-miniprogram/pull/2567)) - -## 🌈 1.2.7 `2024-01-17` -### 🚀 Features -- `Upload`: 支持拖拽排序 @zuiaiwanqian ([#2527](https://github.com/Tencent/tdesign-miniprogram/pull/2527)) -- `Textarea`: `change` 事件新增 `cursor` 参数 @betavs ([#2533](https://github.com/Tencent/tdesign-miniprogram/pull/2533)) -### 🐞 Bug Fixes -- `Swiper`: 修复当前项动态变化时,外部样式类 `t-class-prev-image` 和 `t-class-next-image` 无效的问题 @hkaikai ([#2540](https://github.com/Tencent/tdesign-miniprogram/pull/2540)) -- `Tabs`: - - `showBottomLine` 为 `false` 时,支持内容自动向中间滑动 @hkaikai ([#2550](https://github.com/Tencent/tdesign-miniprogram/pull/2550)) - - 修复最后一项 `disabled` 时卡死问题 @byq1213 ([#2523](https://github.com/Tencent/tdesign-miniprogram/pull/2523)) -- `Fab`: 修复滚动事件穿透的问题 @anlyyao ([#2553](https://github.com/Tencent/tdesign-miniprogram/pull/2553)) -- `Navbar`: 修复大屏适配问题 @anlyyao ([#2554](https://github.com/Tencent/tdesign-miniprogram/pull/2554)) -- `Calendar`: 处理 `use-popup` 值为 `false` 时,动态设置 `value` 未重新渲染的问题 @delgithub ([#2552](https://github.com/Tencent/tdesign-miniprogram/pull/2552)) -### 🚧 Others -- `Button`: 处理控制台警告的问题 @IronManman ([#2521](https://github.com/Tencent/tdesign-miniprogram/pull/2521)) -- `ActionSheet`: 文档更新 @jin0209 ([#2541](https://github.com/Tencent/tdesign-miniprogram/pull/2541)) - -## 🌈 1.2.6 `2023-12-22` -### 🚀 Features -- `Upload`: 新增 `disabled` 属性,首页补充服务声明 @anlyyao ([#2489](https://github.com/Tencent/tdesign-miniprogram/pull/2489)) -- `NoticeBar`: 新增 `change` 事件,仅在 `direction` 为 `vertical` 时有效 @betavs ([#2492](https://github.com/Tencent/tdesign-miniprogram/pull/2492)) -- `Fab`: 悬浮按钮支持拖拽 @hkaikai ([#2478](https://github.com/Tencent/tdesign-miniprogram/pull/2478)) -- `Checkbox`: `change` 事件新增参数 `context`,返回当前点击项内容 @gjl-0810 ([#2469](https://github.com/Tencent/tdesign-miniprogram/pull/2469)) -### 🐞 Bug Fixes -- `Calender`: 兼容 `glass-easel` 框架真机环境 `` 节点上不支持 `wx:` 指令 @jarmywang ([#2491](https://github.com/Tencent/tdesign-miniprogram/pull/2491)) -- `Step`: 修复 `status` 属性变更后子项未及时更新的问题 @betavs ([#2480](https://github.com/Tencent/tdesign-miniprogram/pull/2480)) -- `NoticeBar`: 处理基础库为 `3.x.x` 时控制台报错的问题 @betavs ([#2470](https://github.com/Tencent/tdesign-miniprogram/pull/2470)) -- `Input`: 修复 `type` 为 `digit`、`number`时,`maxlength` 和 `maxcharacter` 属性无效的问题 @zyqq ([#2497](https://github.com/Tencent/tdesign-miniprogram/pull/2497)) -- `Grid`: 修复 `hover` 属性无效的问题 @betavs ([#2508](https://github.com/Tencent/tdesign-miniprogram/pull/2508)) -- `TabBar`: 修复徽标遮挡底部内容的问题 @yangbai1991 ([#2456](https://github.com/Tencent/tdesign-miniprogram/pull/2456)) -### 🚧 Others -- `Icon`: 弃用 `wx.setClipboardData` 防止收集用户信息。 @anlyyao ([#2498](https://github.com/Tencent/tdesign-miniprogram/pull/2498)) -- `Textarea`: 更新文档默认值 @betavs ([#2507](https://github.com/Tencent/tdesign-miniprogram/pull/2507)) - -## 🌈 1.2.5 `2023-12-08` -### 🚀 Features -- `Cell`: 新增外部样式类 `t-class-center` @anlyyao ([#2439](https://github.com/Tencent/tdesign-miniprogram/pull/2439)) -- `Input`: 新增 `clearTrigger` 属性 @betavs ([#2372](https://github.com/Tencent/tdesign-miniprogram/pull/2372)) -### 🐞 Bug Fixes -- `Calendar`: 修复 `use-popup` 为 `false` 时,组件未适应父容器宽度的问题 @yangbai1991 ([#2458](https://github.com/Tencent/tdesign-miniprogram/pull/2458)) -- `Checkbox`: 修复 `checked` 属性无效的问题 @Nightmare1664 ([#2455](https://github.com/Tencent/tdesign-miniprogram/pull/2455)) -- `Upload`: 处理关闭按钮溢出问题 @betavs ([#2449](https://github.com/Tencent/tdesign-miniprogram/pull/2449)) -- `DateTimePicker`: 组件支持国际化。目前支持简体中文(zh)、 (tc)、 英文(en)、日语(ja)、 韩语(ko)、俄语(ru) 等六种语言 @eric-lua ([#2464](https://github.com/Tencent/tdesign-miniprogram/pull/2464)) -### 🚧 Others -- `Textarea`: 修复文档 `confirm-type` 属性默认值描述错误 @betavs ([#2475](https://github.com/Tencent/tdesign-miniprogram/pull/2475)) -- `BackTop`: 返回顶部按钮,增加 `iphone` 底部安全区 @leozeli ([#2457](https://github.com/Tencent/tdesign-miniprogram/pull/2457)) - -## 🌈 1.2.4 `2023-11-15` -### 🚀 Features -- `Rate`: 新增 `placement` 属性 @betavs ([#2359](https://github.com/Tencent/tdesign-miniprogram/pull/2359)) -- `DropdownMenu`: 新增 `open` 和 `close` 事件 @betavs ([#2361](https://github.com/Tencent/tdesign-miniprogram/pull/2361)) -- `Cell`: 新增css变量 `--td-cell-border-width` @betavs ([#2399](https://github.com/Tencent/tdesign-miniprogram/pull/2399)) -- `BackTop`: 新增 `scrollTop` 和 `visibilityHeight` 属性 @betavs ([#2177](https://github.com/Tencent/tdesign-miniprogram/pull/2177)) -### 🐞 Bug Fixes -- `Search`: 修复因 `input` 未设置最小高度导致异常的问题 @betavs ([#2340](https://github.com/Tencent/tdesign-miniprogram/pull/2340)) -- `Picker`: 兼容 `keys` 为 `null` 的情况 @betavs ([#2358](https://github.com/Tencent/tdesign-miniprogram/pull/2358)) -- `Image`: 优化组件内部函数重复执行的问题 @betavs ([#2362](https://github.com/Tencent/tdesign-miniprogram/pull/2362)) -- `Checkbox`: 移除未使用的组件 `Cell` @eehhh ([#2404](https://github.com/Tencent/tdesign-miniprogram/pull/2404)) -- `Radio`: 移除未使用的组件 `Cell` @eehhh ([#2405](https://github.com/Tencent/tdesign-miniprogram/pull/2405)) -- `Link`: 修复跳转方式为返回或退出时链接样式为禁用的问题 @qianxuu ([#2226](https://github.com/Tencent/tdesign-miniprogram/pull/2226)) -- `SideBar`: 修复子项激活态时 `prefix`与`suffix` 内容遮挡相邻项的点击热区问题 @Moonofweisheng ([#2431](https://github.com/Tencent/tdesign-miniprogram/pull/2431)) -### 🚧 Others -- `Tabs`: 更新示例 @Xcyq ([#2386](https://github.com/Tencent/tdesign-miniprogram/pull/2386)) - -## 🌈 1.2.3 `2023-09-14` -### 🚀 Features -- `ImageViewer`:支持无障碍访问 -### 🐞 Bug Fixes -- `Button`: `t-id`属性没有默认值导致控制台警告问题 @betavs ([#2337](https://github.com/Tencent/tdesign-miniprogram/pull/2337)) -- `Dialog`: 修复隐私协议接口 bindagreeprivacyauthorization 回调信息丢失问题 @ElanYoung ([#2342](https://github.com/Tencent/tdesign-miniprogram/pull/2342)) - -## 🌈 1.2.2 `2023-08-29` -### 🚀 Features -- `Rate`: 支持第三方图标 @lixingdecai ([#2328](https://github.com/Tencent/tdesign-miniprogram/pull/2328)) -- `Button`: - - 新增 `t-id` 属性,相等于 `id` @HellyW ([#2320](https://github.com/Tencent/tdesign-miniprogram/pull/2320)) - - 属性 `open-type` 新增支持 `agreePrivacyAuthorization` @HellyW ([#2320](https://github.com/Tencent/tdesign-miniprogram/pull/2320)) -### 🐞 Bug Fixes -- `Stepper`: - - 修复无法输出小数的问题 @LeeJim ([#2314](https://github.com/Tencent/tdesign-miniprogram/pull/2314)) - - 修复输入小数后增减的精度问题 @LeeJim ([#2314](https://github.com/Tencent/tdesign-miniprogram/pull/2314)) -- `TreeSelect`: - - 解决异步 `options` 导致无法渲染的问题 @LeeJim ([#2315](https://github.com/Tencent/tdesign-miniprogram/pull/2315)) - - 解决异步数据导致的报错问题 @LeeJim ([#2315](https://github.com/Tencent/tdesign-miniprogram/pull/2315)) -- `ActionSheet`: 移除未使用的组件 @betavs ([#2318](https://github.com/Tencent/tdesign-miniprogram/pull/2318)) -- `SideBar`: 修复示例滚动问题 @betavs ([#2325](https://github.com/Tencent/tdesign-miniprogram/pull/2325)) - -## 🌈 1.2.1 `2023-08-22` -### 🚀 Features -- `Radio`: 新增 `readonly` 属性 @betavs ([#2292](https://github.com/Tencent/tdesign-miniprogram/pull/2292)) -### 🐞 Bug Fixes -- `CellGroup`: 修复 `updateLastChid` 事件被多次触发的问题 @anlyyao ([#2302](https://github.com/Tencent/tdesign-miniprogram/pull/2302)) -- `Popup`: 修复 `visibleChange` 事件参数错误的问题 @anlyyao ([#2303](https://github.com/Tencent/tdesign-miniprogram/pull/2303)) -- `Rate`: 修复 `value = 0` 且半选时图标错误的问题 @betavs ([#2307](https://github.com/Tencent/tdesign-miniprogram/pull/2307)) -- `Radio`: 修复 `tap` 事件无法冒泡的问题 @LeeJim ([#2309](https://github.com/Tencent/tdesign-miniprogram/pull/2309)) -- `Checkbox`: 修复 `tap` 事件无法冒泡的问题 @LeeJim ([#2309](https://github.com/Tencent/tdesign-miniprogram/pull/2309)) - -## 🌈 1.2.0 `2023-08-16` -### 🚀 Features -- `Search`: 支持透传更多 `Input` 的属性 @betavs ([#2229](https://github.com/Tencent/tdesign-miniprogram/pull/2229)) -- `Icon`: 图标更新,新增 `960` 个图标 @anlyyao ([#2254](https://github.com/Tencent/tdesign-miniprogram/pull/2254)) -- `Input`: 新增 `--td-input-label-max-width` 和 `--td-input-label-min-width` 两个样式变量 @anlyyao ([#2259](https://github.com/Tencent/tdesign-miniprogram/pull/2259)) -- `Loading`: 新增 `CSS Variable` 用于调整加载提示文案颜色 @ElanYoung ([#2273](https://github.com/Tencent/tdesign-miniprogram/pull/2273)) -### 🐞 Bug Fixes -- `Swiper`: 修复图片加载中/加载错误占位符未居中的问题 @anlyyao ([#2246](https://github.com/Tencent/tdesign-miniprogram/pull/2246)) -- `TabBar`: 修复示例代码展示错误 @anlyyao ([#2257](https://github.com/Tencent/tdesign-miniprogram/pull/2257)) -- `Input`: 修复 `t-class-label` 外部样式类无法修改 `label` 宽度 @anlyyao ([#2259](https://github.com/Tencent/tdesign-miniprogram/pull/2259)) -- `GridItem`: 修复无效的css变量 @betavs ([#2253](https://github.com/Tencent/tdesign-miniprogram/pull/2253)) -- `Radio`: 修复调整 placement 之后的渲染抖动的问题 @LeeJim ([#2271](https://github.com/Tencent/tdesign-miniprogram/pull/2271)) -- `SwipeCell`: - - 阻止默认的垂直滚动,优化交互体验 @LeeJim ([#2281](https://github.com/Tencent/tdesign-miniprogram/pull/2281)) - - 使用 hidden 隐藏后显示仍能够正常使用 @LeeJim ([#2283](https://github.com/Tencent/tdesign-miniprogram/pull/2283)) -- `Collapse`: 修复默认展开全部时,无法正常收起的问题 @LeeJim ([#2280](https://github.com/Tencent/tdesign-miniprogram/pull/2280)) -- `Checkbox`: 修复 `icon` 无法使用插槽的问题 @LeeJim ([#2285](https://github.com/Tencent/tdesign-miniprogram/pull/2285)) -- `Popup`: 修复滚动穿透的问题 @LeeJim ([#2290](https://github.com/Tencent/tdesign-miniprogram/pull/2290)) -### 🚧 Others -- `Swiper`: - - 修复示例错误 @anlyyao ([#2246](https://github.com/Tencent/tdesign-miniprogram/pull/2246)) - - 补充外部样式类信息 @LeeJim ([#2256](https://github.com/Tencent/tdesign-miniprogram/pull/2256)) -- `Icon`: 更新图标展示UI组件至 0.2.0 版本 @uyarn ([#2269](https://github.com/Tencent/tdesign-miniprogram/pull/2269)) - -## 🌈 1.1.15 `2023-08-01` -### 🚀 Features -- `DropdownMenu`: 支持自定义箭头图标 @LeeJim ([#2240](https://github.com/Tencent/tdesign-miniprogram/pull/2240)) -### 🐞 Bug Fixes -- `ActionSheet`: 修复宫格模式下无法调整选项颜色的问题 @LeeJim ([#2231](https://github.com/Tencent/tdesign-miniprogram/pull/2231)) -- `SwipeCell`: 修复 `left`、`right` 没有动态响应的问题 @LeeJim ([#2239](https://github.com/Tencent/tdesign-miniprogram/pull/2239)) -### 🚧 Others -- `Link`: 补充使用说明,修复文档中句号导致的链接跳转错误 @qianxuu ([#2227](https://github.com/Tencent/tdesign-miniprogram/pull/2227)) - -## 🌈 1.1.14 `2023-07-25` -### 🚀 Features -- `ActionSheet`: 新增 `suffixIcon`,仅在 `theme = list` 时展示 @LeeJim ([#2210](https://github.com/Tencent/tdesign-miniprogram/pull/2210)) -- `TreeSelect`: `label` 内容支持文本超长省略 @anlyyao ([#2208](https://github.com/Tencent/tdesign-miniprogram/pull/2208)) -- `Overlay`: 支持 `duration` 属性,用于调整背景色过渡时间 @betavs ([#2179](https://github.com/Tencent/tdesign-miniprogram/pull/2179)) -### 🐞 Bug Fixes -- `Popup`: 解决自动聚焦的问题 @LeeJim ([#2209](https://github.com/Tencent/tdesign-miniprogram/pull/2209)) -- `Slider`: 修复无法滑动的问题 @LeeJim ([#2211](https://github.com/Tencent/tdesign-miniprogram/pull/2211)) -- `Sticky`: 当组件销毁时,正常移除滚动函数 @LeeJim ([#2215](https://github.com/Tencent/tdesign-miniprogram/pull/2215)) -### 🚧 Others -- 修复 utils.wxs 的语法错误 @LeeJim ([#2217](https://github.com/Tencent/tdesign-miniprogram/pull/2217)) - -## 🌈 1.1.13 `2023-07-18` -### 🚀 Features -- `ActionSheet`: 新增 `show-overlay` 属性 @betavs ([#2194](https://github.com/Tencent/tdesign-miniprogram/pull/2194)) -### 🐞 Bug Fixes -- `Toast`: 修复 `close` 方法类型声明错误 @betavs ([#2191](https://github.com/Tencent/tdesign-miniprogram/pull/2191)) -- `Message`: 修复 `__text-nowrap` 类名前缀错误的问题 @hwaphon ([#2195](https://github.com/Tencent/tdesign-miniprogram/pull/2195)) -- `Slider`: 移除错误的 `wxml` @hwaphon ([#2195](https://github.com/Tencent/tdesign-miniprogram/pull/2195)) -- `DateTimePicker`: 修复动态传入 mode 时无法正确渲染的问题 @betavs ([#2188](https://github.com/Tencent/tdesign-miniprogram/pull/2188)) -### 🚧 Others -- `docs`: 在 `API` 模块展示所有的 `CSS Variables` @anlyyao ([#2182](https://github.com/Tencent/tdesign-miniprogram/pull/2182)) -- `docs`: 将外部样式类的内容独立展示 @ccccpj ([#2200](https://github.com/Tencent/tdesign-miniprogram/pull/2200)) -- 修复一些示例/文档中的拼写错误 @anlyyao ([#2197](https://github.com/Tencent/tdesign-miniprogram/pull/2197)) - -## 🌈 1.1.12 `2023-07-11` -### 🚀 Features -- `PullDownRefresh`: 增加 `show-scrollbar` 属性 @lolhezihehe ([#2163](https://github.com/Tencent/tdesign-miniprogram/pull/2163)) -### 🐞 Bug Fixes -- `Rate`: - - 修复无法点击的问题 @AntzyMo ([#2158](https://github.com/Tencent/tdesign-miniprogram/pull/2158)) - - 使事件冒泡至上层元素 @LeeJim ([#2168](https://github.com/Tencent/tdesign-miniprogram/pull/2168)) -- `DateTimePicker`: 修复无法选择的问题 @betavs ([#2169](https://github.com/Tencent/tdesign-miniprogram/pull/2169)) -- `Tabs`: 修复超出时滚动不流畅的问题 @LeeJim ([#2170](https://github.com/Tencent/tdesign-miniprogram/pull/2170)) -- `TreeSelect`: 修复多选时 `value` 使用空数组报错的问题 @LeeJim ([#2173](https://github.com/Tencent/tdesign-miniprogram/pull/2173)) -### 🚧 Others -- 移除开启 `virtual-host` 场景的 `snapshot` 测试 @LeeJim ([#2161](https://github.com/Tencent/tdesign-miniprogram/pull/2161)) -- 修复控制台告警 @betavs ([#2164](https://github.com/Tencent/tdesign-miniprogram/pull/2164)) - -## 🌈 1.1.11 `2023-07-04` -### 🚀 Features -- `CheckboxGroup`: 新增 `borderless` 属性 @betavs ([#2124](https://github.com/Tencent/tdesign-miniprogram/pull/2124)) -- `Radio`: 允许取消选中 @betavs ([#2141](https://github.com/Tencent/tdesign-miniprogram/pull/2141)) -- `DropdownItem`: 新增 `close` 事件 @LeeJim ([#2147](https://github.com/Tencent/tdesign-miniprogram/pull/2147)) -### 🐞 Bug Fixes -- `Tabs`: 解决选项过多时样式错误的问题 @betavs ([#2123](https://github.com/Tencent/tdesign-miniprogram/pull/2123)) -- `Picker`: 修复默认值无效 @betavs ([#2126](https://github.com/Tencent/tdesign-miniprogram/pull/2126)) -- `Stepper`: 修复精度缺失问题 @anlyyao ([#2130](https://github.com/Tencent/tdesign-miniprogram/pull/2130)) -- `Radio`: 修复自定义图标大小之后的垂直对齐问题 @betavs ([#2135](https://github.com/Tencent/tdesign-miniprogram/pull/2135)) -- `Checkbox`: - - 修复自定义图标尺寸后的垂直对齐问题 @LeeJim ([#2136](https://github.com/Tencent/tdesign-miniprogram/pull/2136)) - - 修复 disabled 优先级的问题 @LeeJim ([#2137](https://github.com/Tencent/tdesign-miniprogram/pull/2137)) -- `CheckboxGroup`: 修复使用 `options` 时,disabled 不生效的问题 @LeeJim ([#2137](https://github.com/Tencent/tdesign-miniprogram/pull/2137)) -- `Search`: 截获点击 `clear` 触发的 tap 事件 @LeeJim ([#2139](https://github.com/Tencent/tdesign-miniprogram/pull/2139)) -- `Divider`: 修复外部样式类的位置 @LeeJim ([#2140](https://github.com/Tencent/tdesign-miniprogram/pull/2140)) -- `Toast`: 解决 `close` 事件重复触发 @LeeJim ([#2146](https://github.com/Tencent/tdesign-miniprogram/pull/2146)) -- `Popup`: 修复底部弹出时的宽度问题 @LeeJim ([#2152](https://github.com/Tencent/tdesign-miniprogram/pull/2152)) -### 🚧 Others -- `IDE`: 解决控制台报警的问题 @LeeJim ([#2149](https://github.com/Tencent/tdesign-miniprogram/pull/2149)) - -## 🌈 1.1.10 `2023-06-20` -### 🚀 Features -- `Tabs`: 新增 `split` 属性 @LeeJim ([#2113](https://github.com/Tencent/tdesign-miniprogram/pull/2113)) -- `NoticeBar`: 新增 `interval` 属性 @betavs ([#2097](https://github.com/Tencent/tdesign-miniprogram/pull/2097)) -### 🐞 Bug Fixes -- `Grid`: 修复 `align=left` 无效的问题 @anlyyao ([#2110](https://github.com/Tencent/tdesign-miniprogram/pull/2110)) -- `Fab`: 修复 `buttonProps` 中的 `hoverClass`属性透传至 `button` 无效 @anlyyao ([#2093](https://github.com/Tencent/tdesign-miniprogram/pull/2093)) -- `Upload`: 修复图片尺寸超出的问题 @betavs ([#2098](https://github.com/Tencent/tdesign-miniprogram/pull/2098)) -- `Slider`: - - 修复使用 `max` 之后刻度展示错误的问题 @betavs ([#2114](https://github.com/Tencent/tdesign-miniprogram/pull/2114)) - - 修复异步展示时导致刻度渲染错误的问题 @LeeJim ([#2115](https://github.com/Tencent/tdesign-miniprogram/pull/2115)) -- `Input`: 修复 `type=number` 时,`value=0` 无效的问题 @anlyyao ([#2108](https://github.com/Tencent/tdesign-miniprogram/pull/2108)) -- `ActionSheet`: 修复点击 `disabled` 的选项仍触发 `close`、`visible-change` 事件 @LeeJim ([#2117](https://github.com/Tencent/tdesign-miniprogram/pull/2117)) -- `Stepper`: 保证值发生变化才触发 `change` 事件 @LeeJim ([#2118](https://github.com/Tencent/tdesign-miniprogram/pull/2118)) - -## 🌈 1.1.9 `2023-06-13` -### 🚀 Features -- `CheckBox`: 自定义图标增加半选中态 @lolhezihehe ([#2056](https://github.com/Tencent/tdesign-miniprogram/pull/2056)) -- `Search`: 新增 `cursor-spacing` 属性 @anlyyao ([#2065](https://github.com/Tencent/tdesign-miniprogram/pull/2065)) -### 🐞 Bug Fixes -- `Indexes`: 索引导航无法选中问题 @lolhezihehe ([#2036](https://github.com/Tencent/tdesign-miniprogram/pull/2036)) -- `Switch`: - - 修复加载态时仍能点击的问题 @betavs ([#2061](https://github.com/Tencent/tdesign-miniprogram/pull/2061)) - - 修复 `loading` 态背景色错误 @anlyyao ([#2074](https://github.com/Tencent/tdesign-miniprogram/pull/2074)) -- `Icon`: 修复命名错误的问题 @anlyyao ([#2076](https://github.com/Tencent/tdesign-miniprogram/pull/2076)) -- `TreeSelect`: 修复使用 `keys` 之后无法正常使用的问题 @LeeJim ([#2085](https://github.com/Tencent/tdesign-miniprogram/pull/2085)) -- `RadioGroup`: 修复使用 `options` 时值为 `falsy` 时异常的问题 @betavs ([#2082](https://github.com/Tencent/tdesign-miniprogram/pull/2082)) -- `CellGroup`: 修复 `bordered` 属性无效的问题 @anlyyao ([#2089](https://github.com/Tencent/tdesign-miniprogram/pull/2089)) - -## 🌈 1.1.8 `2023-05-30` -### 🚀 Features -- `Textarea`: 属性 `autoSize` 支持控制最大最小高度 @anlyyao ([#2035](https://github.com/Tencent/tdesign-miniprogram/pull/2035)) -- `Sticky`: 补充外部样式类 `t-class-content` @anlyyao ([#2047](https://github.com/Tencent/tdesign-miniprogram/pull/2047)) -### 🐞 Bug Fixes -- `DropdownMenu`: 修复基础调试版本低于 `2.19.2` 时无法使用的问题 @anlyyao ([#2043](https://github.com/Tencent/tdesign-miniprogram/pull/2043)) -- `Sticky`: 解决 `fixed` 定位时宽度错误 @anlyyao ([#2047](https://github.com/Tencent/tdesign-miniprogram/pull/2047)) -- `NavBar`: 修复背景色支持渐变色 @LeeJim ([#2049](https://github.com/Tencent/tdesign-miniprogram/pull/2049)) -- `Drawer`: 修复 `item-click` 参数返回错误的问题 @ElanYoung ([#2039](https://github.com/Tencent/tdesign-miniprogram/pull/2039)) -- `Image`: 修复 width 和 height 无动态响应的问题 @LeeJim ([#2050](https://github.com/Tencent/tdesign-miniprogram/pull/2050)) -### 🚧 Others -- 修复 `babel` 报错的问题 @zhangpaopao0609 ([#2046](https://github.com/Tencent/tdesign-miniprogram/pull/2046)) - -## 🌈 1.1.7 `2023-05-23` -### 🚀 Features -- `ActionSheet`: 新增 `CSS Variable `用于控制取消按钮颜色 @favouredddd ([#2007](https://github.com/Tencent/tdesign-miniprogram/pull/2007)) -### 🐞 Bug Fixes -- `ActionSheet`: 解决 `ActionSheet` 引入报错 @anlyyao ([#2008](https://github.com/Tencent/tdesign-miniprogram/pull/2008)) -- `Sticky`: 处理在锁定的情况下,宽度计算错误的问题 @LeeJim ([#2012](https://github.com/Tencent/tdesign-miniprogram/pull/2012)) -- `SideBarItem`: 修复选中态样式问题 @betavs ([#2011](https://github.com/Tencent/tdesign-miniprogram/pull/2011)) -- `TabBar`: 修正 `virtualHost` 不可用时的宽度 @LeeJim ([#2013](https://github.com/Tencent/tdesign-miniprogram/pull/2013)) -- `Icon`: 更正图标命名 @anlyyao ([#2020](https://github.com/Tencent/tdesign-miniprogram/pull/2020)) - -## 🌈 1.1.6 `2023-05-15` -### 🚀 Features -- `Icon`: 更新版本至 `0.1.4` @anlyyao ([#1979](https://github.com/Tencent/tdesign-miniprogram/pull/1979)) -- `DropdownMenu`: 选项过多时自动滚动到已选项 @jarmywang ([#1981](https://github.com/Tencent/tdesign-miniprogram/pull/1981)) -- `Slider`: 属性 `step` 支持传入小数 @anlyyao ([#1990](https://github.com/Tencent/tdesign-miniprogram/pull/1990)) -- `GridItem`: 新增 `click` 事件 @anlyyao ([#1993](https://github.com/Tencent/tdesign-miniprogram/pull/1993)) -- `Picker`: 新增 `popupProps` 属性,透传至 `Popup` @favouredddd ([#1985](https://github.com/Tencent/tdesign-miniprogram/pull/1985)) -- `DateTimePikcer`: 新增支持 `popupProps` 属性,透传至 `Popup` @favouredddd ([#1991](https://github.com/Tencent/tdesign-miniprogram/pull/1991)) -- `ActionSheet`: 新增 `PopupProps` 属性,透传至 `Popup` @favouredddd ([#2002](https://github.com/Tencent/tdesign-miniprogram/pull/2002)) -### 🐞 Bug Fixes -- `NavBar`: 修复 `fixed` 定位 @betavs ([#1982](https://github.com/Tencent/tdesign-miniprogram/pull/1982)) -- `Slider`: 修复 `change` 事件重复触发相同值的问题 @anlyyao ([#1990](https://github.com/Tencent/tdesign-miniprogram/pull/1990)) -- `Input`: 修复 `label` 为英文时无法换行 @anlyyao ([#1994](https://github.com/Tencent/tdesign-miniprogram/pull/1994)) -- `PullDownRefresh`: - - 解决 `refresh` 事件触发时机错误的问题 @LeeJim ([#1998](https://github.com/Tencent/tdesign-miniprogram/pull/1998)) - - 修复 `value` 不可控的问题 @LeeJim ([#1998](https://github.com/Tencent/tdesign-miniprogram/pull/1998)) -- `Button`: 修复 `variant` 无法动态响应的问题 @favouredddd ([#2000](https://github.com/Tencent/tdesign-miniprogram/pull/2000)) -- `DropdownMenu`: 单选选项行高不一致 @bitjian ([#1992](https://github.com/Tencent/tdesign-miniprogram/pull/1992)) -- `Layout`: 修复 `col` 组件不换行的问题,移除 `flex` 布局 @wuping97 ([#1996](https://github.com/Tencent/tdesign-miniprogram/pull/1996)) -- `Dialog`: 修复无法动态移除按钮的问题 @yuchumian ([#1986](https://github.com/Tencent/tdesign-miniprogram/pull/1986)) -- `Calendar`: 修复 `type` 属性失效的问题 @LeeJim ([#2003](https://github.com/Tencent/tdesign-miniprogram/pull/2003)) -### 🚧 Others -- `Steps`: 移除文档中无效的 `API` @anlyyao ([#1995](https://github.com/Tencent/tdesign-miniprogram/pull/1995)) - -## 🌈 1.1.5 `2023-05-08` -### 🚀 Features -- `PulldownRefresh`: 支持透传更多属性至 `scroll-view` 组件 @LeeJim ([#1959](https://github.com/Tencent/tdesign-miniprogram/pull/1959)) -- `DateTimePicker`: 新增 `steps` 属性,用于调整时间间隔步数 @LeeJim ([#1961](https://github.com/Tencent/tdesign-miniprogram/pull/1961)) -- `Steps`: 新增 `sequence` 属性,支持逆序展示 @LeeJim ([#1962](https://github.com/Tencent/tdesign-miniprogram/pull/1962)) -- `DropdownMenu`: 新增 `CSS Variable` 用于调整边框宽度 @LeeJim ([#1967](https://github.com/Tencent/tdesign-miniprogram/pull/1967)) -### 🐞 Bug Fixes -- `Tabs`: 修复 `track` 位置计算错误的问题 @LeeJim ([#1958](https://github.com/Tencent/tdesign-miniprogram/pull/1958)) -- `PulldownRefresh`: 解决 `value = true` 时无法触发加载状态的问题 @LeeJim ([#1960](https://github.com/Tencent/tdesign-miniprogram/pull/1960)) -- `Steps`: 修复 `icon` 插槽无法使用的问题 @LeeJim ([#1962](https://github.com/Tencent/tdesign-miniprogram/pull/1962)) -- `Stepper`: 修复无法输入空值的问题 @anlyyao ([#1971](https://github.com/Tencent/tdesign-miniprogram/pull/1971)) -- `Calendar`: 解决 `usePopup = false` 时,没有自动定位到当前值的问题 @LeeJim ([#1969](https://github.com/Tencent/tdesign-miniprogram/pull/1969)) -- `ActionSheet`: 修复使用命令行方式点击取消按钮无法关闭的问题 @LeeJim ([#1968](https://github.com/Tencent/tdesign-miniprogram/pull/1968)) -### 🚧 Others -- `Picker`: 完善文档,增加 `TS` 定义的关联链接。 @LeeJim ([#1956](https://github.com/Tencent/tdesign-miniprogram/pull/1956)) - - -## 1.1.4 `2023-05-01` -### 🚀 Features -- `ImageViewer`: 新增 `usingCustomNavigation` 属性,处理使用自定义导航栏时被遮挡的问题 @LeeJim ([#1944](https://github.com/Tencent/tdesign-miniprogram/pull/1944)) -- `Swiper`: 新增 `image-load` 事件 @LeeJim ([#1949](https://github.com/Tencent/tdesign-miniprogram/pull/1949)) -### 🐞 Bug Fixes -- `Slider`: 修复 `dragstart`、`dragend` 事件没反应的问题 @LeeJim ([#1940](https://github.com/Tencent/tdesign-miniprogram/pull/1940)) -- `Picker`: 解决使用 `falsy` 值导致无法正确选择的问题 @LeeJim ([#1948](https://github.com/Tencent/tdesign-miniprogram/pull/1948)) -- `Toast`: 页面隐藏的时候自动关闭 @LeeJim ([#1947](https://github.com/Tencent/tdesign-miniprogram/pull/1947)) -### 🚧 Others -- `Swiper`: 更新 `API` 文档 @anlyyao ([#1945](https://github.com/Tencent/tdesign-miniprogram/pull/1945)) - -## 🌈 1.1.3 `2023-04-26` -### 🚀 Features -- `Rate`: 支持无障碍访问 @byq1213 ([#1574](https://github.com/Tencent/tdesign-miniprogram/pull/1574)) -- `Tabs`: - - 新增外部样式类 `t-class-content` @LeeJim ([#1931](https://github.com/Tencent/tdesign-miniprogram/pull/1931)) - - 新增 middle 插槽 @LeeJim ([#1936](https://github.com/Tencent/tdesign-miniprogram/pull/1936)) -- `CollapsePanel`: 新增 `headerLeftIcon` 属性,支持面板头左侧使用图标 @LeeJim ([#1933](https://github.com/Tencent/tdesign-miniprogram/pull/1933)) -### 🐞 Bug Fixes -- `Upload`: 修复 `max` 属性相关的问题 @LeeJim ([#1914](https://github.com/Tencent/tdesign-miniprogram/pull/1914)) -- `NavBar`: - - 修复胶囊边框层级过高,遮挡内容点击事件的问题 @LeeJim ([#1920](https://github.com/Tencent/tdesign-miniprogram/pull/1920)) - - 解决内容垂直居中的问题 @LeeJim ([#1926](https://github.com/Tencent/tdesign-miniprogram/pull/1926)) -- `Button`: 修复 `variant = outline` 状态下 `loading` 不展示的问题 @lolhezihehe ([#1922](https://github.com/Tencent/tdesign-miniprogram/pull/1922)) -- `DropdownMenu`: 修复单选情况下无法使用多列的问题 @LeeJim ([#1927](https://github.com/Tencent/tdesign-miniprogram/pull/1927)) -- `Link`: 修复 `disabled` 态下仍能跳转的问题 @anlyyao ([#1928](https://github.com/Tencent/tdesign-miniprogram/pull/1928)) -- `Calendar`: 修复 `format` 报错的问题 @LeeJim ([#1930](https://github.com/Tencent/tdesign-miniprogram/pull/1930)) -- `Input`: 修复垂直布局时样式错误 @anlyyao ([#1934](https://github.com/Tencent/tdesign-miniprogram/pull/1934)) - -## 🌈 1.1.2 `2023-04-17` -### 🚀 Features -- `Swiper`: - - 支持无障碍访问 @zhangpaopao0609 ([#1598](https://github.com/Tencent/tdesign-miniprogram/pull/1598)) - - `list` 属性支持 `SwiperList[]` 类型 @zhangpaopao0609 ([#1598](https://github.com/Tencent/tdesign-miniprogram/pull/1598)) -- `Divider`: 新增 `CSS Variables` 用于控制分割线样式 @favouredddd ([#1890](https://github.com/Tencent/tdesign-miniprogram/pull/1890)) -- `Grid`: 补充 `CSS Variables` 以修改不同列数下的图片尺寸和文字大小 @lolhezihehe ([#1903](https://github.com/Tencent/tdesign-miniprogram/pull/1903)) -- `Radio`: 新增 `CSS Variables` 用于控制内容字体大小 @favouredddd ([#1895](https://github.com/Tencent/tdesign-miniprogram/pull/1895)) -### 🐞 Bug Fixes -- `Loading`: 修复 `inheritColor = true` 时,因样式问题导致组件一直处于加载状态 @Cyrus97 ([#1873](https://github.com/Tencent/tdesign-miniprogram/pull/1873)) -- `Empty`: 支持描述内容超出自动换行 @favouredddd ([#1870](https://github.com/Tencent/tdesign-miniprogram/pull/1870)) -- `Row`: 增加默认样式实现垂直居中 @tomcat-hz ([#1866](https://github.com/Tencent/tdesign-miniprogram/pull/1866)) -- `Progress`: 优化无障碍访问体验 @yaogengzhu ([#1354](https://github.com/Tencent/tdesign-miniprogram/pull/1354)) -- `Radio`: 优化样式,新增 `CSS Variables` 控制文字激活态颜色 @LeeJim ([#1889](https://github.com/Tencent/tdesign-miniprogram/pull/1889)) -- `ActionSheet`: 解决 `show` 方法的 `TS` 报错 @LeeJim ([#1907](https://github.com/Tencent/tdesign-miniprogram/pull/1907)) -- `Radio`: 修复图标尺寸无法调整的问题 @bitjian ([#1909](https://github.com/Tencent/tdesign-miniprogram/pull/1909)) -- `Button`: 修复 `type = submit `时,disabled 未生效的问题 @bitjian ([#1878](https://github.com/Tencent/tdesign-miniprogram/pull/1878)) - -## 🌈 1.1.1 `2023-04-03` -### 🚀 Features -- `Button`: 新增 `hover-class` 属性 @anlyyao ([#1847](https://github.com/Tencent/tdesign-miniprogram/pull/1847)) -### 🐞 Bug Fixes -- `Tabs`: 解决内容重叠的问题 @LeeJim ([#1853](https://github.com/Tencent/tdesign-miniprogram/pull/1853)) -- `Message`: 处理 `loop` 产生的控制台告警 @anlyyao ([#1856](https://github.com/Tencent/tdesign-miniprogram/pull/1856)) -- `Message`: 修复 `marquee = true` 时,滚动动画错误 @anlyyao ([#1856](https://github.com/Tencent/tdesign-miniprogram/pull/1856)) -- `Avatar`: 修复控制台报错 @jarmywang ([#1858](https://github.com/Tencent/tdesign-miniprogram/pull/1858)) -- `Drawer`: 修复 destroyOnClose 属性不生效 @jarmywang ([#1864](https://github.com/Tencent/tdesign-miniprogram/pull/1864)) - -## 🌈 1.1.0 `2023-03-27` -### 🚀 Features -- `Layout`: 新增布局组件,包含 `row` 和 `col` 组件 @wuping97 ([#1821](https://github.com/Tencent/tdesign-miniprogram/pull/1821)) -- `Search`: 新增 `type` 属性透传至 `input`,默认为 `text` @haochenli ([#1828](https://github.com/Tencent/tdesign-miniprogram/pull/1828)) -### 🐞 Bug Fixes -- `Button`: 修复 `disabled = true` 仍触发 `tap` 事件的问题 @wuping97 ([#1833](https://github.com/Tencent/tdesign-miniprogram/pull/1833)) -- `NoticeBar`: - - 修复二轮滚动初始位置不正确 @anlyyao ([#1835](https://github.com/Tencent/tdesign-miniprogram/pull/1835)) - - 修复 `loop` 为 `0` 时还会循环播放的问题 @haochenli ([#1826](https://github.com/Tencent/tdesign-miniprogram/pull/1826)) -- `PullDownRefresh`: - - 修复 `loading-texts` 默认值缺失的问题 @haochenli ([#1837](https://github.com/Tencent/tdesign-miniprogram/pull/1837)) - - 解决外部样式类 `t-class-text` 拼写错误的问题 @LeeJim ([#1839](https://github.com/Tencent/tdesign-miniprogram/pull/1839)) -- `Grid`: 修复 `t-class-image` 无法赋予 `image` 样式的问题 @LeeJim ([#1842](https://github.com/Tencent/tdesign-miniprogram/pull/1842)) -- `Cascader`: 修复当 `value` 发生变更时,`options` 没有更新的问题 @LeeJim ([#1841](https://github.com/Tencent/tdesign-miniprogram/pull/1841)) -- `Tabs`: - - 修复设置 `animation` 导致 `panel` 内容无法切换的问题 @LeeJim ([#1843](https://github.com/Tencent/tdesign-miniprogram/pull/1843)) - - 修复 `theme` 不等于 `line` 时,获取 track 报错的问题 @LeeJim ([#1843](https://github.com/Tencent/tdesign-miniprogram/pull/1843)) - - 移除滚动条 @LeeJim ([#1844](https://github.com/Tencent/tdesign-miniprogram/pull/1844)) - -## 🌈 1.0.4 `2023-03-20` -### 🚀 Features -- `PullDownRefresh`: 支持无障碍访问支持 @shinyina ([#1241](https://github.com/Tencent/tdesign-miniprogram/pull/1241)) -- `Steps`: 支持无障碍访问 @tangzixuan ([#1783](https://github.com/Tencent/tdesign-miniprogram/pull/1783)) -### 🐞 Bug Fixes -- `Textarea`: 修复 `autosize` 为 `true` 时,`placeholder` 上移问题 @anlyyao ([#1781](https://github.com/Tencent/tdesign-miniprogram/pull/1781)) -- `Switch`: 修复 `label` 和 `icon` 渲染顺序错误的问题 @LeeJim ([#1809](https://github.com/Tencent/tdesign-miniprogram/pull/1809)) -- `Loading`: 修复错误的 `style` 导致 `wxs` 报错 @LeeJim ([#1810](https://github.com/Tencent/tdesign-miniprogram/pull/1810)) -- `Radio`: 修复 `placement` 优先级的问题 @LeeJim ([#1812](https://github.com/Tencent/tdesign-miniprogram/pull/1812)) -- `Button`: 解决多个插槽的渲染问题 @LeeJim ([#1813](https://github.com/Tencent/tdesign-miniprogram/pull/1813)) -- `Link`: 解决多个插槽无法渲染的问题 @LeeJim ([#1816](https://github.com/Tencent/tdesign-miniprogram/pull/1816)) -- `TabPanel`: 解决多个插槽无法渲染的问题 @LeeJim ([#1816](https://github.com/Tencent/tdesign-miniprogram/pull/1816)) -- `Upload`: - - 修复点击事件失效问题 @yaogengzhu ([#1802](https://github.com/Tencent/tdesign-miniprogram/pull/1802)) - - 修复 limit 限制的问题 @yaogengzhu ([#1800](https://github.com/Tencent/tdesign-miniprogram/pull/1800)) - -## 🌈 1.0.3 `2023-03-14` -### 🚀 Features -- `Picker`: 新增支持 `keys` 属性 @LeeJim ([#1759](https://github.com/Tencent/tdesign-miniprogram/pull/1759)) -- `Input`: 支持 `nicknamereview` 事件 @anlyyao ([#1755](https://github.com/Tencent/tdesign-miniprogram/pull/1755)) -- `Popup`: 增加默认圆角、默认背景色、安全底边距 @jarmywang ([#1758](https://github.com/Tencent/tdesign-miniprogram/pull/1758)) -### 🐞 Bug Fixes -- `DropdownMenu`: - - 修复 `label` 的展示逻辑 @LeeJim ([#1748](https://github.com/Tencent/tdesign-miniprogram/pull/1748)) - - 修复 `radio` 图标的展示位置 @LeeJim ([#1748](https://github.com/Tencent/tdesign-miniprogram/pull/1748)) -- `Popup`: 修复关闭按钮无法点击的问题 @jarmywang ([#1754](https://github.com/Tencent/tdesign-miniprogram/pull/1754)) -- `Calendar`: 修复 `format` 属性不是响应式的问题 @LeeJim ([#1753](https://github.com/Tencent/tdesign-miniprogram/pull/1753)) -- `Checkbox`: 修复存在 `disabled` 选项时,全选出错的问题 @LeeJim ([#1766](https://github.com/Tencent/tdesign-miniprogram/pull/1766)) -- `Badge`: - - 修复 `shape = ribbon` 时,修改 `color` 不能改变全部颜色的问题 @LeeJim ([#1764](https://github.com/Tencent/tdesign-miniprogram/pull/1764)) - - 优化和不同组件组合的无障碍访问 @yaogengzhu ([#1428](https://github.com/Tencent/tdesign-miniprogram/pull/1428)) -- `Upload`: - - 修复 `sizelimit` 不支持对象传参的问题 @LeeJim ([#1763](https://github.com/Tencent/tdesign-miniprogram/pull/1763)) - - 修复 `sizelimit` 默认单位和文档不一致的问题,从 `B` 改成 `KB` @LeeJim ([#1763](https://github.com/Tencent/tdesign-miniprogram/pull/1763)) -- `Button`: - - 取消 `loading` 态下的 `hover` 效果 @anlyyao ([#1739](https://github.com/Tencent/tdesign-miniprogram/pull/1739)) - - 事件 `tap` 仅在非加载或禁用状态时触发 @anlyyao ([#1739](https://github.com/Tencent/tdesign-miniprogram/pull/1739)) -- `Cell`: 修复 `note` 内容超出被遮挡问题 @anlyyao ([#1769](https://github.com/Tencent/tdesign-miniprogram/pull/1769)) -- `Progress`: 修复 `label` 插槽无效 @anlyyao ([#1771](https://github.com/Tencent/tdesign-miniprogram/pull/1771)) -- `GridItem`: 修复 `image` 插槽不可用的问题,需传入 `image = slot` 才可使用插槽 @LeeJim ([#1772](https://github.com/Tencent/tdesign-miniprogram/pull/1772)) -### 🚧 Others -- `Picker`: 文档中移除 `render-label`、`columns `还不支持的属性 @LeeJim ([#1759](https://github.com/Tencent/tdesign-miniprogram/pull/1759)) - -## 🌈 1.0.2 `2023-03-07` -### 🐞 Bug Fixes -- `Radio`: 修复使用 `options` 时可传入的属性不齐的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) -- `Checkbox`: 修复使用 `options` 时可传入的属性不齐的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) -- `RadioGroup`: - - 修复 `placement` 默认值错误的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) - - 修复 `icon` 消失的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) -- `ActionSheet`: 修复点击报错的问题 @LeeJim ([#1726](https://github.com/Tencent/tdesign-miniprogram/pull/1726)) -- `Swiper`: - - 修复在真机上圆角无效问题 @anlyyao ([#1733](https://github.com/Tencent/tdesign-miniprogram/pull/1733)) - - 修复基础调试库低于 `2.19.2` 时,图片不显示问题 @anlyyao ([#1736](https://github.com/Tencent/tdesign-miniprogram/pull/1736)) -- `NavBar`: 修复外部样式类不可用的问题 @LeeJim ([#1735](https://github.com/Tencent/tdesign-miniprogram/pull/1735)) -- `Footer`: 补齐 `API` 文档描述 @anlyyao ([#1737](https://github.com/Tencent/tdesign-miniprogram/pull/1737)) -- `ImageViewer`: 修复图片显示不全的问题 @anlyyao ([#1656](https://github.com/Tencent/tdesign-miniprogram/pull/1656)) -- `Input`: - - 修复 `maxLength` 无效问题,并将默认值变更为 `-1` @anlyyao ([#1732](https://github.com/Tencent/tdesign-miniprogram/pull/1732)) - - 修复键盘弹起时,点击 `clear` 没反应的问题 @anlyyao ([#1732](https://github.com/Tencent/tdesign-miniprogram/pull/1732)) - -## 🌈 1.0.1 `2023-03-01` -### 🚀 Features -- `Cascader`: 新增 `close` 事件 @LeeJim ([#1685](https://github.com/Tencent/tdesign-miniprogram/pull/1685)) -- `Picker`: 新增 `close` 事件 @LeeJim ([#1687](https://github.com/Tencent/tdesign-miniprogram/pull/1687)) -- `DateTimePicker`: 新增 `close` 事件 @LeeJim ([#1687](https://github.com/Tencent/tdesign-miniprogram/pull/1687)) -- `Upload`: 支持无障碍访问 @zhangpaopao0609 ([#1238](https://github.com/Tencent/tdesign-miniprogram/pull/1238)) -### 🐞 Bug Fixes -- `ActionSheet`: 补充 `close` 事件,增加 `trigger` 参数 @LeeJim ([#1683](https://github.com/Tencent/tdesign-miniprogram/pull/1683)) -- `Cascader`: - - 修复 pick 事件的参数 @LeeJim ([#1685](https://github.com/Tencent/tdesign-miniprogram/pull/1685)) - - 修复 radio 图标显示位置不正确的问题 @LeeJim ([#1693](https://github.com/Tencent/tdesign-miniprogram/pull/1693)) -- `Drawer`: 修复 `close` 事件不生效的问题 @LeeJim ([#1686](https://github.com/Tencent/tdesign-miniprogram/pull/1686)) -- `Message`: - - 修复外部样式类 `t-class-link` 无效问题 @anlyyao ([#1690](https://github.com/Tencent/tdesign-miniprogram/pull/1690)) - - 更新内嵌 `link` 组件的属性 @anlyyao ([#1694](https://github.com/Tencent/tdesign-miniprogram/pull/1694)) -- `DropdownMenu`: 修复 `radio` 图标显示位置不正确的问题 @LeeJim ([#1693](https://github.com/Tencent/tdesign-miniprogram/pull/1693)) -- `TreeSelect`: 修复 `radio` 图标显示位置不正确的问题 @LeeJim ([#1693](https://github.com/Tencent/tdesign-miniprogram/pull/1693)) - -## 🌈 1.0.0 `2023-02-27` -### 🚨 Breaking Changes -- 主题色 `CSS Variables` 命名从 `--td-primary-color` 改成 `--td-brand-color` @LeeJim ([#1623](https://github.com/Tencent/tdesign-miniprogram/pull/1623)) -- `Cell`: 调整 `hover` 状态对应的类名 @anlyyao ([#1635](https://github.com/Tencent/tdesign-miniprogram/pull/1635)) -- `Checkbox`: 属性 `align` 更名为 `placement` @anlyyao ([#1629](https://github.com/Tencent/tdesign-miniprogram/pull/1629)) -- `Toast`: 属性 `theme` 的枚举值 `fail` 替换成 `error` @LeeJim ([#1647](https://github.com/Tencent/tdesign-miniprogram/pull/1647)) -- `Slider`: 移除 `colors` 和 disabledColor,建议使用 `CSS Variables` 修改 @LeeJim ([#1676](https://github.com/Tencent/tdesign-miniprogram/pull/1676)) -- `Loading`: 移除 `theme = error` 以及 `theme = bar`,以及调整 `DOM` @LeeJim ([#1626](https://github.com/Tencent/tdesign-miniprogram/pull/1626)) -- `Picker`: 移除 `footer` 插槽 @anlyyao ([#1631](https://github.com/Tencent/tdesign-miniprogram/pull/1631)) -- `DateTimePicker`: 移除 `footer` 插槽 @anlyyao ([#1631](https://github.com/Tencent/tdesign-miniprogram/pull/1631)) -- `Radio`: 属性 `align` 更名为 `placement` @anlyyao ([#1630](https://github.com/Tencent/tdesign-miniprogram/pull/1630)) -- `RadioGroup`: 属性 `align` 更名为 `placement` @anlyyao ([#1630](https://github.com/Tencent/tdesign-miniprogram/pull/1630)) -- `Search`: 移除 `right-icon` 属性相关 @anlyyao ([#1628](https://github.com/Tencent/tdesign-miniprogram/pull/1628)) -- `Avatar`: 移除 `bordered` 属性 @anlyyao ([#1632](https://github.com/Tencent/tdesign-miniprogram/pull/1632)) -- `AvatarGroup`: `cascading` 属性默认值变更为 `left-up` @anlyyao ([#1632](https://github.com/Tencent/tdesign-miniprogram/pull/1632)) -- `Message`: 移除 `action` 属性相关,使用 `link` 代替 @anlyyao ([#1637](https://github.com/Tencent/tdesign-miniprogram/pull/1637)) -- `Footer`: - - `copyright` 更名为 `text` @anlyyao ([#1642](https://github.com/Tencent/tdesign-miniprogram/pull/1642)) - - `textLinkList` 更名为 `links` @anlyyao ([#1642](https://github.com/Tencent/tdesign-miniprogram/pull/1642)) - - 移除 `theme` 属性 @anlyyao ([#1642](https://github.com/Tencent/tdesign-miniprogram/pull/1642)) -- `CountDown`: `theme` 属性移除 `hightlight` @anlyyao ([#1645](https://github.com/Tencent/tdesign-miniprogram/pull/1645)) -- `Link`: 移除 `status` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) -- `Rate`: 移除 `variant` 属性,完全依赖 `icon` 属性来控制图标 @LeeJim ([#1674](https://github.com/Tencent/tdesign-miniprogram/pull/1674)) -- `NoticeBar`: `extra` 属性更名为 `operation` @anlyyao ([#1638](https://github.com/Tencent/tdesign-miniprogram/pull/1638)) -### 🚀 Features -- `Search`: 新增 `clearable`,用于启用清除控件 @anlyyao ([#1628](https://github.com/Tencent/tdesign-miniprogram/pull/1628)) -- `Button`: 新增支持 `suffix` 插槽 @LeeJim ([#1624](https://github.com/Tencent/tdesign-miniprogram/pull/1624)) -- `Message`: 新增 `link` 属性 @anlyyao ([#1637](https://github.com/Tencent/tdesign-miniprogram/pull/1637)) -- `Link`: - - 新增 `disabled` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) - - 新增 `hover` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) - - 新增 `externalClasses` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) -- `Drawer`: 补充 `hover` 态样式 @anlyyao ([#1673](https://github.com/Tencent/tdesign-miniprogram/pull/1673)) -- `AvatarGroup`: 头像组中默认带边框 @anlyyao ([#1678](https://github.com/Tencent/tdesign-miniprogram/pull/1678)) -### 🐞 Bug Fixes -- `Fab`: 修复丢失 `style` 默认值的问题 @LeeJim ([#1625](https://github.com/Tencent/tdesign-miniprogram/pull/1625)) -- `Dialog`: 修复文字按钮`hover`态圆角不正确 @anlyyao ([#1633](https://github.com/Tencent/tdesign-miniprogram/pull/1633)) -- `Switch`: 优化禁用态下 `loading` 的颜色 @LeeJim ([#1627](https://github.com/Tencent/tdesign-miniprogram/pull/1627)) -- `Message`: 修复主题图标不正确 @anlyyao ([#1637](https://github.com/Tencent/tdesign-miniprogram/pull/1637)) -- `NavBar`: 修复胶囊内部点击事件没反应的问题 @LeeJim ([#1641](https://github.com/Tencent/tdesign-miniprogram/pull/1641)) -- `Dialog`: - - 修复 `confirm` 的拼写错误 @zzzimooo ([#1644](https://github.com/Tencent/tdesign-miniprogram/pull/1644)) - - 修复命令行方式没法调整按钮布局的问题 @zzzimooo ([#1655](https://github.com/Tencent/tdesign-miniprogram/pull/1655)) -- `CountDown`: 修复默认风格下时间单位分割的问题 @anlyyao ([#1645](https://github.com/Tencent/tdesign-miniprogram/pull/1645)) -- `Slider`: 优化无障碍访问支持 @byq1213 ([#1388](https://github.com/Tencent/tdesign-miniprogram/pull/1388)) -- `Collapse`: 修复 `disabled` 状态下标题颜色错误的问题 @LeeJim ([#1648](https://github.com/Tencent/tdesign-miniprogram/pull/1648)) -- `Cell`: 修复外部样式类 `t-class-title` 放置位置错误的问题 @LeeJim ([#1648](https://github.com/Tencent/tdesign-miniprogram/pull/1648)) -- `Tag`: 修复 `close` 与 `click` 事件一并触发的问题 @anlyyao ([#1669](https://github.com/Tencent/tdesign-miniprogram/pull/1669)) -- `Rate`: 修复 tips 偶尔会不消失的问题 @LeeJim ([#1674](https://github.com/Tencent/tdesign-miniprogram/pull/1674)) -- `BackTop`: 修复 `icon` 不显示问题 @anlyyao ([#1660](https://github.com/Tencent/tdesign-miniprogram/pull/1660)) -- `NoticeBar`: 修复主题图标不正确 @anlyyao ([#1638](https://github.com/Tencent/tdesign-miniprogram/pull/1638)) -- `Badge`: 调整 `display` 使用 block 替换 inline-block @anlyyao ([#1679](https://github.com/Tencent/tdesign-miniprogram/pull/1679)) - -## 🌈 1.0.0-rc.3 `2023-02-20` -### 🚨 Breaking Changes -- `Image`: 插槽的渲染需要传入对应 `slot` 的字符串 @LeeJim ([#1609](https://github.com/Tencent/tdesign-miniprogram/pull/1609)) -- `Input`: 调整 `DOM` 以及类名 @anlyyao ([#1585](https://github.com/Tencent/tdesign-miniprogram/pull/1585)) -### 🚀 Features -- 所有组件新增支持 `class` 外部样式类,仅在开启 `virtualHost` 的情况下生效 @anlyyao ([#1587](https://github.com/Tencent/tdesign-miniprogram/pull/1587)) -- `Input`: 支持 `tips` 文本方向与 `align` 属性值一致 @anlyyao ([#1585](https://github.com/Tencent/tdesign-miniprogram/pull/1585)) -- `CellGroup`: 默认最后一项 `cell` 无底部边框线 @anlyyao ([#1607](https://github.com/Tencent/tdesign-miniprogram/pull/1607)) -- `Image`: 补充外部样式类名 `class` @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) -- `DropdownMenu`: 新增 `reset` 事件 @LeeJim ([#1617](https://github.com/Tencent/tdesign-miniprogram/pull/1617)) -- `Drawer`: 支持无障碍访问 @zhangpaopao0609 ([#1552](https://github.com/Tencent/tdesign-miniprogram/pull/1552)) -### 🐞 Bug Fixes -- `Input`: 修复 `layout = 'vertical'` 时,样式不正确 @anlyyao ([#1585](https://github.com/Tencent/tdesign-miniprogram/pull/1585)) -- `Swiper`: 修复图片压缩变形问题 @anlyyao ([#1607](https://github.com/Tencent/tdesign-miniprogram/pull/1607)) -- `Navbar`: 修复左侧胶囊按钮在真机上上边框线消失问题 @anlyyao ([#1607](https://github.com/Tencent/tdesign-miniprogram/pull/1607)) -- `Upload`: 解决因无备用值产生的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) -- `Picker`: 解决因无备用值产生的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) -- `PullDownRefresh`: 解决因无备用值产生的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) -- `NoticeBar`: 解决 `SelectorQuery` 带来的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) -- `Link`: 修复 `API` 文档错误 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) -- `Tabs`: 修复属性不支持响应式变化的问题 @LeeJim ([#1616](https://github.com/Tencent/tdesign-miniprogram/pull/1616)) -- `DropdownMenu`: 修复下拉菜单遮罩层无法点击 @RoseyW ([#1615](https://github.com/Tencent/tdesign-miniprogram/pull/1615)) -- `Message`: 修复事件名称,以符合文档 @LeeJim ([#1618](https://github.com/Tencent/tdesign-miniprogram/pull/1618)) -- `Dialog`: 修复事件名,从 `overlayClick` 改成 `overlay-click` @LeeJim ([#1619](https://github.com/Tencent/tdesign-miniprogram/pull/1619)) -- `SwiperNav`: 修复事件名,从 `navBtnChange` 改成 `nav-btn-change` @LeeJim ([#1619](https://github.com/Tencent/tdesign-miniprogram/pull/1619)) -- `TextArea`: 修复事件名,从 `lineChange` 改成 `line-change` @LeeJim ([#1619](https://github.com/Tencent/tdesign-miniprogram/pull/1619)) - -## 🌈 1.0.0-rc.2 `2023-02-13` -### 🚨 Breaking Changes -- `Icon`: `size` 和 `color` 属性默认值变更为 `''` @anlyyao ([#1553](https://github.com/Tencent/tdesign-miniprogram/pull/1553)) -### 🚀 Features -- 所有组件同时支持 `style` 和 `customStyle` 属性 @LeeJim ([#1532](https://github.com/Tencent/tdesign-miniprogram/pull/1532)) -- `Button`: 支持点击态边框颜色 CSS Variable @anlyyao ([#1530](https://github.com/Tencent/tdesign-miniprogram/pull/1530)) -- `Result`: 属性 `icon` 支持对象类型,透传至图标组件 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `TabBar`: 属性 `icon` 支持对象类型,透传至图标组件 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Toast`: 属性 `icon` 支持对象类型,透传至图标组件 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Input`: 支持名为 `tips` 的插槽 @anlyyao ([#1572](https://github.com/Tencent/tdesign-miniprogram/pull/1572)) -### 🐞 Bug Fixes -- 修复因 `template` 引起的控制台告警 @anlyyao ([#1548](https://github.com/Tencent/tdesign-miniprogram/pull/1548)) -- 修复控制台告警 @LeeJim ([#1586](https://github.com/Tencent/tdesign-miniprogram/pull/1586)) -- `NavBar`: 补充根元素缺失的高度 @LeeJim ([#1526](https://github.com/Tencent/tdesign-miniprogram/pull/1526)) -- `Search`: 修复插槽命名错误 @anlyyao ([#1529](https://github.com/Tencent/tdesign-miniprogram/pull/1529)) -- `Loading`: 支持无障碍访问 @yaogengzhu ([#1534](https://github.com/Tencent/tdesign-miniprogram/pull/1534)) -- `Checkbox`: 修复 `--td-checkbox-icon-size` 对未选中态复选框不生效问题 @anlyyao ([#1530](https://github.com/Tencent/tdesign-miniprogram/pull/1530)) -- `BackTop`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Badge`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Grid`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Image`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Input`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Link`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Loading`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Message`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `BackTop`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `CountDown`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `TabBar`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `TextArea`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Toast`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `CountDown`: 补充 `content` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Drawer`: 补充 `title` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `Radio`: 补充 `label`、`content` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `TabPanel`: 补充 `panel` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) -- `ImageViewer`: - - 优化插槽渲染逻辑,不再需要传入 `slot` 字符串 @LeeJim ([#1544](https://github.com/Tencent/tdesign-miniprogram/pull/1544)) - - 修复关闭点击不生效的问题,以及 trigger 参数不对的问题 @LeeJim ([#1544](https://github.com/Tencent/tdesign-miniprogram/pull/1544)) -- `Calendar`: - - 移除 `tabindex` 元素 的 `outline` 样式 @anlyyao ([#1573](https://github.com/Tencent/tdesign-miniprogram/pull/1573)) - - 优化 `title` 插槽,不再需要传入 `slot` 字符串 @LeeJim ([#1588](https://github.com/Tencent/tdesign-miniprogram/pull/1588)) -- `Button`: 修复 `CSS Variable` 变量命名错误 @anlyyao ([#1563](https://github.com/Tencent/tdesign-miniprogram/pull/1563)) - -## 🌈 1.0.0-rc.1 `2023-01-18` -### 🚨 Breaking Changes -- `Dialog`: 移除内置的 `input` 样式 @LeeJim ([#1516](https://github.com/Tencent/tdesign-miniprogram/pull/1516)) -- `Input`: 优化 `DOM`,移除外置的 `wapper` 元素 @LeeJim ([#1516](https://github.com/Tencent/tdesign-miniprogram/pull/1516)) -### 🚀 Features -- `Cell`: - - 新增底边框左右边距 `CSS Variables` @anlyyao ([#1515](https://github.com/Tencent/tdesign-miniprogram/pull/1515)) - - 补充 `CSS Variables` @anlyyao ([#1517](https://github.com/Tencent/tdesign-miniprogram/pull/1517)) -- `SideBar`: 支持传入 `Icon` @LeeJim ([#1520](https://github.com/Tencent/tdesign-miniprogram/pull/1520)) -- `Tabs`: 支持传入 `Icon` @LeeJim ([#1519](https://github.com/Tencent/tdesign-miniprogram/pull/1519)) -### 🐞 Bug Fixes -- `Upload`: 修复 `add-content` 不生效,并优化插槽渲染,不再需要传入 `add-content = 'slot'` @LeeJim ([#1507](https://github.com/Tencent/tdesign-miniprogram/pull/1507)) -- `Cascader`: 修复 `slot` 无法使用的问题 @LeeJim ([#1508](https://github.com/Tencent/tdesign-miniprogram/pull/1508)) -- `Picker`: 修复样式、优化布局以及交互体验 @LeeJim ([#1513](https://github.com/Tencent/tdesign-miniprogram/pull/1513)) -- `Swiper`: 修复 `autoplay` 状态下,`swiper` 偶现左右抖动问题 @anlyyao ([#1494](https://github.com/Tencent/tdesign-miniprogram/pull/1494)) - -## 🌈 1.0.0-rc `2023-01-12` -### 🚨 Breaking Changes -- 全部组件开启 `vritualHost`,当基础库版本低于 `2.19.2` 自动关闭 @LeeJim ([#1495](https://github.com/Tencent/tdesign-miniprogram/pull/1495)) -- 全部组件使用 `style` 属性替代 `customStyle` @LeeJim ([#1495](https://github.com/Tencent/tdesign-miniprogram/pull/1495)) -- `Tabs`: 废弃 `placement` 属性,左右布局请使用 SideBar 组件 @LeeJim ([#1492](https://github.com/Tencent/tdesign-miniprogram/pull/1492)) -### 🚀 Features -- `Cell`: 新增 `CSS Variables` 用于控制高度 @LeeJim ([#1482](https://github.com/Tencent/tdesign-miniprogram/pull/1482)) -- `Indexes`: 新增支持 `stickyOffset` 属性,用于调整吸顶时的距离 @LeeJim ([#1485](https://github.com/Tencent/tdesign-miniprogram/pull/1485)) -- `Button`: 支持` 0.5px` 边框 @anlyyao ([#1474](https://github.com/Tencent/tdesign-miniprogram/pull/1474)) -### 🐞 Bug Fixes -- `Button`: 修复 `shape = 'round'` 或 `‘circle’` 时,`border`样式错误 @anlyyao ([#1491](https://github.com/Tencent/tdesign-miniprogram/pull/1491)) -- `Calendar`: 修复视觉问题 @LeeJim ([#1473](https://github.com/Tencent/tdesign-miniprogram/pull/1473)) -- `Collapse`: - - 当 panel 内容为动态内容时,支持展开 @LeeJim ([#1477](https://github.com/Tencent/tdesign-miniprogram/pull/1477)) - - 面板收起时,隐藏 `header` 的边框 @LeeJim ([#1493](https://github.com/Tencent/tdesign-miniprogram/pull/1493)) -- `Textarea`: 支持自适应父容器高度 @anlyyao ([#1484](https://github.com/Tencent/tdesign-miniprogram/pull/1484)) -- `Dialog`: 修复 `confirmBtn` 为 `string` 类型时,样式错误 @anlyyao ([#1474](https://github.com/Tencent/tdesign-miniprogram/pull/1474)) -- `Stepper`: 修复 `theme='normal'`时禁用态视觉错误 @anlyyao ([#1487](https://github.com/Tencent/tdesign-miniprogram/pull/1487)) -- `Rate`: 修复半选时 tips 的图标 @LeeJim ([#1490](https://github.com/Tencent/tdesign-miniprogram/pull/1490)) - -## 🌈 0.x `2021-11-25 - 2023-01-09` -前往 [GitHub](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/tdesign-miniprogram/CHANGELOG-0.x.md) 查看 `0.x` 更新日志 +- `QRCode`: 修复中心二维码位置偏移 @SinzoL ([#3899](https://github.com/Tencent/tdesign-miniprogram/pull/3899)) + + +## 🌈 1.10.1 `2025-08-22` +### 🚀 Features +- `Textarea`: 新增 `cursorColor` 属性,仅在 `Skyline` 下有效 @anlyyao ([#3832](https://github.com/Tencent/tdesign-miniprogram/pull/3832)) +- `Button`: + - 新增 `getrealtimephonenumber` 事件 @novlan1 ([#3845](https://github.com/Tencent/tdesign-miniprogram/pull/3845)) + - 新增 `createliveactivity` 事件 @anlyyao ([#3845](https://github.com/Tencent/tdesign-miniprogram/pull/3845)) +### 🐞 Bug Fixes +- `ImageViewer`: 移除 `backgroundColor` 属性默认值,导航背景色固定为 `#000`,遮罩背景色使用 `@mask-active` @anlyyao ([#3843](https://github.com/Tencent/tdesign-miniprogram/pull/3843)) +- `Toast`: 修复即将关闭时再次触发显示导致之后的触发无效的问题 @betavs ([#3841](https://github.com/Tencent/tdesign-miniprogram/pull/3841)) +- `Stepper`: 结合 `dialog` 组件使用时,输入值后键盘弹起状态下点击弹窗确认按钮关闭弹窗后 `change` 事件才触发的问题 @betavs ([#3804](https://github.com/Tencent/tdesign-miniprogram/pull/3804)) +- `Collapse`: 修复 `--td-collapse-border-color` 无效的问题 @SinzoL ([#3862](https://github.com/Tencent/tdesign-miniprogram/pull/3862)) +- `PullDownRefresh`: 处理容器隐藏状态下高度计算异常的问题 @betavs ([#3863](https://github.com/Tencent/tdesign-miniprogram/pull/3863)) +- `Skeleton`: 骨架屏动画`animation-delay` 属性修改为 `0s` @anlyyao ([#3853](https://github.com/Tencent/tdesign-miniprogram/pull/3853)) +### 🚧 Others +- `Cell`: 组件边框样式新增 `.t-cell--bordered` 移除 `.t-cell--borderless` 类名 @SinzoL ([#3862](https://github.com/Tencent/tdesign-miniprogram/pull/3862)) + + +## 🌈 1.10.0 `2025-08-01` +### 🚀 Features +- `QRCode`: 新增`QRCode`组件 @SinzoL ([#3780](https://github.com/Tencent/tdesign-miniprogram/pull/3780)) ⚡ +### 🐞 Bug Fixes +- `Calendar`: 修复 `value` 更新后翻页模式日历面板数据不更新的问题 @anlyyao ([#3800](https://github.com/Tencent/tdesign-miniprogram/pull/3800)) +- `Skeleton`: 修复 `delay` 设置较大时组件未按预期消失的问题 @betavs ([#3793](https://github.com/Tencent/tdesign-miniprogram/pull/3793)) +- `Switch`: 修复 `loading` 颜色、`dot` 滑块禁用态/深色模式背景色错误 @anlyyao ([#3802](https://github.com/Tencent/tdesign-miniprogram/pull/3802)) +- `ActionSheet`: 修复页面跳转返回后再点击不显示问题 @Boomkaa ([#3796](https://github.com/Tencent/tdesign-miniprogram/pull/3796)) +- `Toast`: 修复 `Toast` 已隐藏,页面无法点击问题 @Boomkaa ([#3796](https://github.com/Tencent/tdesign-miniprogram/pull/3796)) +- `NoticeBar`: 修正警告主题图标 @liweijie0812 ([#3812](https://github.com/Tencent/tdesign-miniprogram/pull/3812)) +### 🚧 Others +- `CSS`: 重命名圆角与字体部分 `CSS Vars` ,如 `--td-radius-extra-large` 变更为 `--td-radius-extraLarge` @anlyyao ([#3809](https://github.com/Tencent/tdesign-miniprogram/pull/3809)) + + +## 🌈 1.9.7 `2025-07-10` +### 🚀 Features +- `Calendar`: 新增 `readonly` 属性 @anlyyao ([#3752](https://github.com/Tencent/tdesign-miniprogram/pull/3752)) +- `Indexes`: + - 新增 `current` 属性,支持非受控模式,用于自定义索引列表激活项 @anlyyao ([#3761](https://github.com/Tencent/tdesign-miniprogram/pull/3761)) + - 丰富组件 `CSS Variables` @anlyyao ([#3760](https://github.com/Tencent/tdesign-miniprogram/pull/3760)) +- `Popup`: 新增 `--td-popup-transition` 样式变量 @betavs ([#3775](https://github.com/Tencent/tdesign-miniprogram/pull/3775)) +- `Navbar`: 新增 `--td-navbar-background` 样式变量 @anlyyao ([#3764](https://github.com/Tencent/tdesign-miniprogram/pull/3764)) +### 🐞 Bug Fixes +- `PickerItem`: 解决 `options` 数据源更新后点击确认按钮 `Picker` 组件的 `change` 事件返回值不正确 @anlyyao ([#3759](https://github.com/Tencent/tdesign-miniprogram/pull/3759)) +- `Calendar`: 修复因 `class` 关键字导致在 `Mpx` 框架中编译报错 @anlyyao ([#3781](https://github.com/Tencent/tdesign-miniprogram/pull/3781)) +### 🚧 Others +- `site`: 修复官网组件预览二维码路径错误 @anlyyao ([#3751](https://github.com/Tencent/tdesign-miniprogram/pull/3751)) + + +## 🌈 1.9.6 `2025-06-25` +### 🚀 Features +- `Upload`: 支持视频预览 @anlyyao ([#3741](https://github.com/Tencent/tdesign-miniprogram/pull/3741)) +- `Icon`: 自定义 `icon`名称支持使用下划线 @zhonghuipro ([#3744](https://github.com/Tencent/tdesign-miniprogram/pull/3744)) +### 🐞 Bug Fixes +- `CollapsePanel`: 修复部分 `css` 变量无效的问题 @betavs ([#3731](https://github.com/Tencent/tdesign-miniprogram/pull/3731)) +- `Grid`: 修复 `GridItem` 项数是 `columns` 列数的非整数倍时边框样式错误 @anlyyao ([#3740](https://github.com/Tencent/tdesign-miniprogram/pull/3740)) +### 🚧 Others +- `build`: 修复 `1.9.0` 版本在 `Windows` 环境下 `WXSS` 文件编译错误 @anlyyao ([#3719](https://github.com/Tencent/tdesign-miniprogram/pull/3719)) +- `site`: 官网支持单组件 `Changelog` @RylanBot ([#3725](https://github.com/Tencent/tdesign-miniprogram/pull/3725)) + + +## 🌈 1.9.5 `2025-06-13` +### 🚀 Features +- `Picker`: + - 新增 `content` 插槽,用于处理空数据场景 @anlyyao ([#3711](https://github.com/Tencent/tdesign-miniprogram/pull/3711)) + - 支持点击选中 @anlyyao ([#3712](https://github.com/Tencent/tdesign-miniprogram/pull/3712)) +- `Fab`: 未显示传入 `icon` 和 `text` 时将启用默认插槽,用于自定义悬浮按钮内容,此时 `buttonProps` 将失效 @novlan1 ([#3684](https://github.com/Tencent/tdesign-miniprogram/pull/3684)) +- `Upload`: 新增 `preview` 属性,用于关闭/开启图片预览 @anlyyao ([#3714](https://github.com/Tencent/tdesign-miniprogram/pull/3714)) +### 🐞 Bug Fixes +- `Toast`: 使用 `flex` 替换 `fit-content`,兼容 `skyline` 场景 @anlyyao ([#3710](https://github.com/Tencent/tdesign-miniprogram/pull/3710)) +- `TreeSelect`: 修复传入非标准 `options` 数据源时组件控制台报错 @anlyyao ([#3708](https://github.com/Tencent/tdesign-miniprogram/pull/3708)) +- `Rate`: 修复点选全星时弹框不显示 @Boomkaa ([#3715](https://github.com/Tencent/tdesign-miniprogram/pull/3715)) + +## 🌈 1.9.4 `2025-05-29` +### 🚀 Features +- `Input`: `cursor` 属性默认值取 `-1`,确保光标在 `value` 值末尾 @anlyyao ([#3672](https://github.com/Tencent/tdesign-miniprogram/pull/3672)) +- `Search`: `cursor` 属性默认值取 `-1`,确保光标在 `value` 值末尾 @anlyyao ([#3672](https://github.com/Tencent/tdesign-miniprogram/pull/3672)) +- `TreeSelect`: 允许 `options` 的 `children` 未定义,同时增强 `keys` 属性,支持为 `disabled / children` 字段自定义别名 @anlyyao ([#3671](https://github.com/Tencent/tdesign-miniprogram/pull/3671)) +### 🐞 Bug Fixes +- `Calendar`: 修复当 `switchMode !== 'none'` 时,重置空值后选中的状态未更新的问题 @betavs ([#3676](https://github.com/Tencent/tdesign-miniprogram/pull/3676)) +- `Tabs`: 修复 `1.8.8` 中 `bottomLineMode` 为 `auto/full` 时线宽计算错误 @anlyyao ([#3668](https://github.com/Tencent/tdesign-miniprogram/pull/3668)) +- `ImageViewer`: 修复图片懒加载无效 。同时新增 `lazy` 属性,开启后会预加载当前图片、相邻图片 @anlyyao ([#3674](https://github.com/Tencent/tdesign-miniprogram/pull/3674)) +- `Upload`: 修复 `max = 0` 时上传数量仍受限,以及 `max = 0 和 source="messageFile"` 时无法上传的问题 @anlyyao ([#3679](https://github.com/Tencent/tdesign-miniprogram/pull/3679)) + +## 🌈 1.9.3 `2025-05-23` +### 🐞 Bug Fixes +- `Slider`: 修复设置 `min` 值后 `marks` 刻度对应位置错误的问题 @betavs ([#3653](https://github.com/Tencent/tdesign-miniprogram/pull/3653)) +- `DateTimePicker`: 修复勾选 `SWC` 编译脚本文件时组件功能异常 @Boomkaa ([#3654](https://github.com/Tencent/tdesign-miniprogram/pull/3654)) +- `ColorPicker`: 修复勾选 `SWC` 编译脚本文件时组件功能异常 @betavs ([#3654](https://github.com/Tencent/tdesign-miniprogram/pull/3654)) +- `Link`: 修复在 `navigatorProps` 中只指定 `appId` 或者 `shortLink` 且 `target="miniProgram"` 时样式为禁用状态的问题 @CrazyOrr @betavs ([#3643](https://github.com/Tencent/tdesign-miniprogram/pull/3643)) +- `TreeSelect`: 修复 `customValue` 为空数组时多选报错 @anlyyao ([#3662](https://github.com/Tencent/tdesign-miniprogram/pull/3662)) +### 🚧 Others +- `fix`: 修复 `1.9.0` 导致的组件类型丢失问题 @anlyyao ([#3661](https://github.com/Tencent/tdesign-miniprogram/pull/3661)) + +## 🌈 1.9.2 `2025-05-09` +### 🐞 Bug Fixes +- `PullDownRefresh`: 修复配置 `scroll-into-view` 不生效问题 @Boomkaa ([#3633](https://github.com/Tencent/tdesign-miniprogram/pull/3633)) +- `DropdownItem`: 修复 `1.9.1` 带来的高度塌陷问题 @betavs ([#3635](https://github.com/Tencent/tdesign-miniprogram/pull/3635)) +- `Dialog`: 修复命令式调用时`wxml` 模版中组件属性不生效 @Boomkaa ([#3622](https://github.com/Tencent/tdesign-miniprogram/pull/3622)) + +## 🌈 1.9.1 `2025-04-27` +### 🚀 Features +- `Icon`: 新增 `logo-miniprogram`、`logo-cnb`、`seal`、`quote` 图标 @taowensheng1997 @uyarn ([#3608](https://github.com/Tencent/tdesign-miniprogram/pull/3608)) +- `Input`: 新增 `extra` 插槽,用于自定义右侧额外的信息 @Boomkaa ([#3614](https://github.com/Tencent/tdesign-miniprogram/pull/3614)) +- `Cascader`: 新增 `header` 插槽,用于自定义内容头部 @anlyyao ([#3617](https://github.com/Tencent/tdesign-miniprogram/pull/3617)) +### 🐞 Bug Fixes +- `Icon`: 优化多个文件相关图标的绘制效果,修复 `gesture-right-slip` 的绘制问题 @uyarn([#3608](https://github.com/Tencent/tdesign-miniprogram/pull/3608)) +- `DropdownItem`: 修复动态修改 `disabled` 属性样式未更新 @Boomkaa ([#3612](https://github.com/Tencent/tdesign-miniprogram/pull/3612)) + +## 🌈 1.9.0 `2025-04-23` +### 🚀 Features +- `DateTimePicker`: 支持 `showWeek` 属性 @anlyyao ([#3565](https://github.com/Tencent/tdesign-miniprogram/pull/3565) [#3570](https://github.com/Tencent/tdesign-miniprogram/pull/3570)) +- `Dialog`: 命令式调用返回触发器数据 @betavs ([#3579](https://github.com/Tencent/tdesign-miniprogram/pull/3579)) +- `Progress`: 新增 `size` 属性,支持自定义环形进度条尺寸 @anlyyao ([#3604](https://github.com/Tencent/tdesign-miniprogram/pull/3604)) +- `Divider`: 丰富 `css vars`,支持自定义分割线高度 @anlyyao ([#3603](https://github.com/Tencent/tdesign-miniprogram/pull/3603)) +- `Upload`: 组件新增 `addBtn` 和 `removeBtn` 属性,并支持在文件中设置单个图片的 `removeBtn` 属性 @anlyyao ([#3605](https://github.com/Tencent/tdesign-miniprogram/pull/3605)) +### 🐞 Bug Fixes +- `RadioGroup`: 修复无法在 `form` 中获取数据的问题 @Boomkaa ([#3558](https://github.com/Tencent/tdesign-miniprogram/pull/3558)) +- `Switch`: 修复深色模式下禁用态背景色错误 @anlyyao ([#3564](https://github.com/Tencent/tdesign-miniprogram/pull/3564)) +- `CountDown`: 异步获取 `time` 导致触发 `finish` 事件 @anlyyao ([#3580](https://github.com/Tencent/tdesign-miniprogram/pull/3580)) +- `Steps`: 修复 `theme` 和 `sequence` 属性值动态更新后组件未重新渲染的问题 @betavs ([#3584](https://github.com/Tencent/tdesign-miniprogram/pull/3584)) +- `Picker`: 修复 `keys` 属性无效的问题 @anlyyao ([#3585](https://github.com/Tencent/tdesign-miniprogram/pull/3585)) +- `Popup`: 当 `placement` 为 `'left' | 'right'` 配合 `usingCustomNavbar` 时,容器高度溢出的问题 @betavs ([#3586](https://github.com/Tencent/tdesign-miniprogram/pull/3586)) +- `DateTimePicker`: 修复 `start` 和 `end` 属性默认值错误,以系统当前时间为基准 @anlyyao ([#3594](https://github.com/Tencent/tdesign-miniprogram/pull/3594)) +- `PullDownRefresh`: 动态设置容器最大高度错误的问题 @betavs ([#3592](https://github.com/Tencent/tdesign-miniprogram/pull/3592)) +- `TreeSelect`: 修复多选场景下跨分支点选时选中值不完整 @anlyyao ([#3600](https://github.com/Tencent/tdesign-miniprogram/pull/3600)) +### 🚧 Others +- `chore`: 移除组件对 `lodash` 的依赖,调整样式引入方式,编译产物移除 `md` 文档并加入文件压缩 @anlyyao ([#3555](https://github.com/Tencent/tdesign-miniprogram/pull/3555)) +- `site`: 站点接入主题生成器 @RylanBot ([#3527](https://github.com/Tencent/tdesign-miniprogram/pull/3527)) + +## 🌈 1.8.8 `2025-03-23` +### 🐞 Bug Fixes +- `StepItem`: 移除页面中多余的字符内容 @runoob-coder ([#3528](https://github.com/Tencent/tdesign-miniprogram/pull/3528)) +- `Tabs`: 优化指示器初始显示 @jarmywang ([#3525](https://github.com/Tencent/tdesign-miniprogram/pull/3525)) +- `Picker`: 修复 `API` 文档错误,`confirmBtn` 和 `cancelBtn` 属性仅支持 `string` 和 `boolean` 类型 @anlyyao ([#3540](https://github.com/Tencent/tdesign-miniprogram/pull/3540)) +- `Cascader`: 允许 `children` 为空数组,便于支持数据异步场景 @liuffff ([#3542](https://github.com/Tencent/tdesign-miniprogram/pull/3542)) +### 🚧 Others +- `other(theme)`: 补充 `--td-brand-color-x` 系列色板 @anlyyao ([#3531](https://github.com/Tencent/tdesign-miniprogram/pull/3531)) + +## 🌈 1.8.7 `2025-03-14` +### 🚀 Features +- `Link`: 支持 `disabled` 动态变更 @anlyyao ([#3496](https://github.com/Tencent/tdesign-miniprogram/pull/3496)) +- `DateTimePicker`: 新增 `formatter` 属性 @anlyyao ([#3500](https://github.com/Tencent/tdesign-miniprogram/pull/3500)) +- `Tabs`: 新增 `bottomLineMode` 属性;`TabPanel` 新增 `lazy` 属性 @SkylerXie ([#3428](https://github.com/Tencent/tdesign-miniprogram/pull/3428)) +### 🐞 Bug Fixes +- `Radio`: 修复横向单选框样式错误 @anlyyao ([#3497](https://github.com/Tencent/tdesign-miniprogram/pull/3497)) +- `Guide`: 修复多个场景组件定位错误 @anlyyao ([#3499](https://github.com/Tencent/tdesign-miniprogram/pull/3499)) +- `Picker`: 修复 `format` 属性无效 @anlyyao ([#3500](https://github.com/Tencent/tdesign-miniprogram/pull/3500)) +- `StepItem`: 修复 `title` 插槽在 `skyline` 渲染下展示偏右的问题 @runoob-coder ([#3519](https://github.com/Tencent/tdesign-miniprogram/pull/3519)) +- `Toast`: 新增 `warning` 主题类型 @theEfrain08 ([#3517](https://github.com/Tencent/tdesign-miniprogram/pull/3517)) +### 🚧 Others +- `other`: 修复因 `button` 模版带来的控制台告警 @anlyyao ([#3523](https://github.com/Tencent/tdesign-miniprogram/pull/3523)) + +## 🌈 1.8.6 `2025-02-21` +### 🚀 Features +- `Textarea`: + - 新增 `placeholderClass` 属性 @anlyyao ([#3468](https://github.com/Tencent/tdesign-miniprogram/pull/3468)) + - 新增 `readonly` 与 `allowInputOverMax` 属性 @richardji202 ([#3474](https://github.com/Tencent/tdesign-miniprogram/pull/3474)) +- `Input`: 新增 `allowInputOverMax` 属性 @yangbai1991 ([#3473](https://github.com/Tencent/tdesign-miniprogram/pull/3473)) +- `RadioGroup`: 新增 `readonly` 属性 @yangbai1991 ([#3470](https://github.com/Tencent/tdesign-miniprogram/pull/3470)) +### 🐞 Bug Fixes +- `Dialog`: 修复圆角样式错误,并新增 `--td-dialog-border-radius` @anlyyao ([#3469](https://github.com/Tencent/tdesign-miniprogram/pull/3469)) +- `Calendar`: 修复 `confirm-btn` 透传缺失部分参数的问题 @betavs ([#3464](https://github.com/Tencent/tdesign-miniprogram/pull/3464)) +- `Cell`: 修复部分样式错误,并更新 `align` 属性描述 @anlyyao ([#3466](https://github.com/Tencent/tdesign-miniprogram/pull/3466)) +- `Input`: 移除 `--td-input-border-radius` @betavs ([#3463](https://github.com/Tencent/tdesign-miniprogram/pull/3463)) +### 🚧 Others +- `WXS`: 所有 `wxs` 文件模块命名 `this` 改为 `_this` @jarmywang ([#3488](https://github.com/Tencent/tdesign-miniprogram/pull/3488)) + +## 🌈 1.8.5 `2025-01-16` +### 🚀 Features +- `TreeSelect`: 新增 `customValue` 属性,自定义选中值,用于弥补 `value` 为空数组场景 @anlyyao ([#3400](https://github.com/Tencent/tdesign-miniprogram/pull/3400)) +- `Loading`: 新增 `fullscreen` 属性,支持全屏加载 @TeacherDingTing ([#3427](https://github.com/Tencent/tdesign-miniprogram/pull/3427)) +- `ColorPicker`: 新增 `fixed` 属性, @anlyyao ([#3426](https://github.com/Tencent/tdesign-miniprogram/pull/3426)) +- `Guide`: 支持自定义计数器 @demoadminjie ([#3439](https://github.com/Tencent/tdesign-miniprogram/pull/3439)) +- `Icon`: 新增 `logo-alipay`、`logo-behance-filled` 等图标,修改 `logo-wecom` 图标,移除不合理的 `logo-wecom-filled` 图标 @anlyyao ([#3434](https://github.com/Tencent/tdesign-miniprogram/pull/3434)) +### 🐞 Bug Fixes +- `Guide`: 修正返回按钮出现时机,并新增 `hideBack` 属性 @anlyyao ([#3403](https://github.com/Tencent/tdesign-miniprogram/pull/3403)) +- `Message`: `link` 参数类型申明缺失的问题 @betavs ([#3412](https://github.com/Tencent/tdesign-miniprogram/pull/3412)) +- `SwipeCell`: 修复在 `iOS` 手机中导致 `scroll-view` 无法滚动问题 @jarmywang ([#3425](https://github.com/Tencent/tdesign-miniprogram/pull/3425)) +- `Tabs`: 修复徽标激活态颜色错误 @anlyyao ([#3429](https://github.com/Tencent/tdesign-miniprogram/pull/3429)) +- `TabBar`: 修复子项数量大于 3 时子项未按预期调整内边距 @anlyyao ([#3436](https://github.com/Tencent/tdesign-miniprogram/pull/3436)) +- `Search`: 修复禁用态样式错误 @anlyyao ([#3437](https://github.com/Tencent/tdesign-miniprogram/pull/3437)) +- `Image`: 未正确触发组件数据更新的问题 @betavs ([#3443](https://github.com/Tencent/tdesign-miniprogram/pull/3443)) +- `Picker`: + - 修复 `PickerItem` 项 `label` 超出未省略问题 @anlyyao ([#3415](https://github.com/Tencent/tdesign-miniprogram/pull/3415)) + - 规避 Skyline render 下深/浅模式透明色渲染不一致问题 @betavs ([#3449](https://github.com/Tencent/tdesign-miniprogram/pull/3449)) +- `Stepper`: 修复 `Skyline` 中增加和减少按钮动态更新时禁用态样式错误 @anlyyao ([#3454](https://github.com/Tencent/tdesign-miniprogram/pull/3454)) +- `ActionSheet`: 数据更新后未更新视图的问题 @betavs ([#3438](https://github.com/Tencent/tdesign-miniprogram/pull/3438)) +- `Calendar`: 修复 `value` 不在 `[minDate, maxDate ]` 内时带翻页功能的日历面板空白问题 @anlyyao ([#3457](https://github.com/Tencent/tdesign-miniprogram/pull/3457)) +- `Input`: `cursorColor` 属性默认值设 `#0052d9`,修复安卓在 Skyline 下光标消失的问题 @anlyyao ([#3453](https://github.com/Tencent/tdesign-miniprogram/pull/3453)) +- `ColorPicker`: 修复动态设置 `value` 值无效的问题 @anlyyao ([#3426](https://github.com/Tencent/tdesign-miniprogram/pull/3426)) +### 🚧 Others +- `Mpx`: 修复在 `Mpx` 框架中编译报错问题 @anlyyao ([#3416](https://github.com/Tencent/tdesign-miniprogram/pull/3416)) + +## 🌈 1.8.4 `2024-12-25` +### 🚀 Features +- `Calendar`: 新增 `panel-change` 事件,切换月或年时触发(`switch-mode` 不为 `none` 时有效) @anlyyao ([#3385](https://github.com/Tencent/tdesign-miniprogram/pull/3385)) +- `Avatar`: `size` 属性支持 `rpx` 单位 @anlyyao ([#3387](https://github.com/Tencent/tdesign-miniprogram/pull/3387)) +- `Fab`: 新增 `dragStart` 和 `dragEnd` 事件 @anlyyao ([#3388](https://github.com/Tencent/tdesign-miniprogram/pull/3388)) +### 🐞 Bug Fixes +- `ColorPicker`: 修复 `alpha` 滑轨精度丢失的问题 @novlan1 ([#3390](https://github.com/Tencent/tdesign-miniprogram/pull/3390)) +- `Calendar`: 修复使用 `glass-easel` 渲染框架后,组件年月日起不显示 @anlyyao ([#3392](https://github.com/Tencent/tdesign-miniprogram/pull/3392)) +- `SwipeCell`: 解决 `PullDownRefresh` 包裹 `SwipeCell` 时手势冲突 @jarmywang ([#3393](https://github.com/Tencent/tdesign-miniprogram/pull/3393)) +- `PullDownRefresh`: 新增 `usingCustomNavbar` 属性,修复与 `Navbar` 同用遮挡底部问题 @jarmywang ([#3394](https://github.com/Tencent/tdesign-miniprogram/pull/3394)) +- `TreeSelect`: 修复 `value` 为空数组时组件未渲染,同时补齐外部样式类 @anlyyao ([#3395](https://github.com/Tencent/tdesign-miniprogram/pull/3395)) + +## 🌈 1.8.3 `2024-12-19` +### 🚀 Features +- `TreeSelect`: 优化组件交互,支持首次渲染时滚动到选中项位置 @anlyyao ([#3364](https://github.com/Tencent/tdesign-miniprogram/pull/3364)) +### 🐞 Bug Fixes +- `Dialog`: 部分参数类型声明缺失 @betavs ([#3357](https://github.com/Tencent/tdesign-miniprogram/pull/3357)) +- `SideBar`: 修复激活项图标/文本色值错误 @anlyyao ([#3364](https://github.com/Tencent/tdesign-miniprogram/pull/3364)) +- `Calendar`: 修复 `switchMode` 和 `maxDate` 同时使用时,翻页按钮状态错误 @anlyyao ([#3366](https://github.com/Tencent/tdesign-miniprogram/pull/3366)) +- `Icon`: 补充异常捕获,修复开发工具控制台报错 @anlyyao ([#3370](https://github.com/Tencent/tdesign-miniprogram/pull/3370)) +- `Guide`: 修复 `hideSkip` 属性无效 @anlyyao ([#3371](https://github.com/Tencent/tdesign-miniprogram/pull/3371)) + +## 🌈 1.8.2 `2024-12-11` +### 🚀 Features +- `DropdownItem`: 新增 `placement` 属性,用于调整复选框和内容相对位置,仅单选菜单栏有效 @anlyyao ([#3327](https://github.com/Tencent/tdesign-miniprogram/pull/3327)) +- `Cascader`: 新增 `checkStrictly` 属性,父子节点选中状态不再关联,可各自选中或取消 @hkaikai ([#3333](https://github.com/Tencent/tdesign-miniprogram/pull/3333)) +- `Calendar`: 支持 `switchMode` 属性,支持按年/月翻页 @anlyyao ([#3326](https://github.com/Tencent/tdesign-miniprogram/pull/3326)) +### 🐞 Bug Fixes +- `DropdownMenu`: 修复部分 `css vars` 命名错误 @anlyyao ([#3338](https://github.com/Tencent/tdesign-miniprogram/pull/3338)) +- `TabBar`: 修复文本 + 徽标使用场景时,文本被挤压问题 @anlyyao ([#3340](https://github.com/Tencent/tdesign-miniprogram/pull/3340)) +- `Rate`: 修复禁用态下组件无法向上冒泡的问题 @anlyyao ([#3329](https://github.com/Tencent/tdesign-miniprogram/pull/3329)) +- `Popup`: 处理`Skyline` 模式下微信开发者工具控制台报错 @betavs ([#3315](https://github.com/Tencent/tdesign-miniprogram/pull/3315)) +- `Picker`: 在 `Skyline` 模式下样式异常 @betavs ([#3317](https://github.com/Tencent/tdesign-miniprogram/pull/3317)) +- `NoticeBar`: 修复重复进入页面时出现非预期动画 @anlyyao ([#3346](https://github.com/Tencent/tdesign-miniprogram/pull/3346)) + +## 🌈 1.8.1 `2024-11-29` +### 🚀 Features +- `Progress`: 新增环形进度条相关的 `css vars` @betavs ([#3301](https://github.com/Tencent/tdesign-miniprogram/pull/3301)) +- `Input`: 新增 `--td-input-align-items` 变量,支持自定义组件内容对齐方式 @anlyyao ([#3308](https://github.com/Tencent/tdesign-miniprogram/pull/3308)) +- `ColorPicker`: 新增 `header` 和 `footer` 插槽,仅在 `usePopup` 为 `true` 时有效 @anlyyao ([#3310](https://github.com/Tencent/tdesign-miniprogram/pull/3310)) +### 🐞 Bug Fixes +- `DropdownItem`: 修复默认插槽无效,并补充 `footer` 具名插槽 @anlyyao ([#3309](https://github.com/Tencent/tdesign-miniprogram/pull/3309)) +- `Navbar`: 修复 `getRect` 耗时过长导致 `navbar` 位置不准确问题,并兼容部分机型因精度问题导致的翻译功能完成后标题仍然隐藏的问题 @jarmywang @anlyyao @betavs ([#3286](https://github.com/Tencent/tdesign-miniprogram/pull/3286)) + +## 🌈 1.8.0 `2024-11-13` +### 🚀 Features +- `Icon`: 新增 907 个新图标⚡ 另外: `blockchain` 重命名为 `transform-1` , `gesture-pray-1` 重命名为 `gesture-open` , `gesture-ranslation-1` 重命名为 `wave-bye` , `gesture-up-1` 重命名为 `gesture-typing` , `gesture-up-2` 重命名为 `gesture-right-slip` , `logo-wechat` 重命名为 `logo-wechat-stroke-filled` ; 移除`tree-list`、`logo-adobe-photoshop-1` 图标 @anlyyao ([#3279](https://github.com/Tencent/tdesign-miniprogram/pull/3279)) +- `TabPanel`: 面板高度仅由其内容决定 @anlyyao ([#3280](https://github.com/Tencent/tdesign-miniprogram/pull/3280)) +- `Calendar`: 新增 `localText` 属性,支持组件国际化 @anlyyao ([#3278](https://github.com/Tencent/tdesign-miniprogram/pull/3278)) +### 🐞 Bug Fixes +- `Input`: 修复 `cursorColor` 属性无默认值的问题 @anlyyao ([#3272](https://github.com/Tencent/tdesign-miniprogram/pull/3272)) +- `Progress`: 修复在 `skyline` 中标签右侧间距错误 @anlyyao ([#3283](https://github.com/Tencent/tdesign-miniprogram/pull/3283)) +### 🚧 Others +- `other`: `getWindowInfo` 、 `getAppBaseInfo` 、 `getDeviceInfo` 等方法兼容单页模式使用 @anlyyao ([#3281](https://github.com/Tencent/tdesign-miniprogram/pull/3281)) + +## 🌈 1.7.1 `2024-11-08` +### 🚀 Features +- `Stepper`: 新增 `integer` 属性,支持输入小数 @anlyyao ([#3230](https://github.com/Tencent/tdesign-miniprogram/pull/3230)) +- `DropdownItem`: 优化组件样式,当 `option` 为空时选项区域不占位 @anlyyao ([#3235](https://github.com/Tencent/tdesign-miniprogram/pull/3235)) +- `Input`: 支持 `readonly` 属性 @anlyyao ([#3255](https://github.com/Tencent/tdesign-miniprogram/pull/3255)) +- `ColorPicker`: 新增 `usePopup`、`visible`、`autoClose`、`style` 与 `customStyle` 等属性,新增 `close` 事件 @anlyyao ([#3260](https://github.com/Tencent/tdesign-miniprogram/pull/3260)) +- `DateTimePicker`: 新增 `autoClose` 属性 @anlyyao ([#3263](https://github.com/Tencent/tdesign-miniprogram/pull/3263)) +### 🐞 Bug Fixes +- `Icon`: 修复动态计算图片高度异常 @betavs ([#3228](https://github.com/Tencent/tdesign-miniprogram/pull/3228)) +- `ActionSheet`: 为 `cancelText` 补充默认值 @anlyyao ([#3231](https://github.com/Tencent/tdesign-miniprogram/pull/3231)) +- `Stepper`: 增加输入校验,修复使用第三方键盘时带来的格式问题,并修复禁用输入框样式 @anlyyao ([#3230](https://github.com/Tencent/tdesign-miniprogram/pull/3230)) +- `Search`: 修复外部样式类 `t-class-clear` 及 `t-class-left` 无法修改图标大小的问题,并丰富 `css vars` @anlyyao ([#3238](https://github.com/Tencent/tdesign-miniprogram/pull/3238)) ([#3264](https://github.com/Tencent/tdesign-miniprogram/pull/3264)) +- `Cascader`: 修复动态设置 `value` 而选项内容未更新问题 @jarmywang ([#3242](https://github.com/Tencent/tdesign-miniprogram/pull/3242)) +- `PullDownRefresh`: 修复在 `iOS` 部分低系统中(如15.4、14.2、14.1等 ),提示语隐藏不完整的问题 @anlyyao ([#3239](https://github.com/Tencent/tdesign-miniprogram/pull/3239)) +- `DateTimePicker`: 支持通过 `popupProps` 透传 `usingCustomNavbar` 属性,避免遮罩层挡住自定义导航栏 @anlyyao ([#3254](https://github.com/Tencent/tdesign-miniprogram/pull/3254)) +- `Button`: 修复 `danger` + `disable` 时,文本颜色错误 @anlyyao ([#3261](https://github.com/Tencent/tdesign-miniprogram/pull/3261)) +- `Rate`: 修复 `gap` 单位处理异常 @jarmywang ([#3259](https://github.com/Tencent/tdesign-miniprogram/pull/3259)) + +## 🌈 1.7.0 `2024-10-25` +### 🚀 Features +- `ColorPicker`: 新增 `ColorPicker` 组件 @novlan1 ([#3176](https://github.com/Tencent/tdesign-miniprogram/pull/3176))⚡ +- `Fab`: 新增默认插槽 @anlyyao ([#3204](https://github.com/Tencent/tdesign-miniprogram/pull/3204)) +- `Input`: + - 新增 `cursorColor` 属性 @anlyyao ([#3211](https://github.com/Tencent/tdesign-miniprogram/pull/3211)) + - 支持 `format` 属性 @anlyyao ([#3213](https://github.com/Tencent/tdesign-miniprogram/pull/3213)) +- `DateTimePicker`: 新增 `filter` 属性,支持自定义列选项内容 @anlyyao ([#3220](https://github.com/Tencent/tdesign-miniprogram/pull/3220)) +- `Indexeds`: 优化交互样式,索引仅展示首字符,气泡支持展示索引内容 @anlyyao ([#3222](https://github.com/Tencent/tdesign-miniprogram/pull/3222)) +- `Cascader`: `pick` 事件补充 `label` 参数 @anlyyao ([#3223](https://github.com/Tencent/tdesign-miniprogram/pull/3223)) +### 🐞 Bug Fixes +- `Button`: 修复深色模式的默认幽灵按钮的边框色错误 @anlyyao ([#3200](https://github.com/Tencent/tdesign-miniprogram/pull/3200)) +- `Icon`: 修复使用图片链接时偶发性出现字体图标的问题 @anlyyao ([#3216](https://github.com/Tencent/tdesign-miniprogram/pull/3216)) +- `Upload`: 修复 `loading` 内容未居中问题 @anlyyao ([#3219](https://github.com/Tencent/tdesign-miniprogram/pull/3219)) +- `Navbar`: 修复安卓中因精度带来的标题宽度计算错误,并优化标题左侧间距 @anlyyao ([#3217](https://github.com/Tencent/tdesign-miniprogram/pull/3217)) +### 📝 Documentation +- `Fab`: 文档补充 `FAQ` 部分 @anlyyao ([#3215](https://github.com/Tencent/tdesign-miniprogram/pull/3215)) +### 🚧 Others +- `WX`: 更新部分不在维护的`wx`接口,并兼容低版本 @anlyyao ([#3192](https://github.com/Tencent/tdesign-miniprogram/pull/3192)) + +## 🌈 1.6.2 `2024-10-12` +### 🚀 Features +- `Checkbox`: 新增keys可配置options的value和label的别名 @huxinhai ([#3154](https://github.com/Tencent/tdesign-miniprogram/pull/3154)) +### 🐞 Bug Fixes +- `Button`: 修复文字按钮样式错误 @anlyyao ([#3163](https://github.com/Tencent/tdesign-miniprogram/pull/3163)) +- `Checkbox`: 修复 `change` 事件中参数缺失的问题 @betavs ([#3157](https://github.com/Tencent/tdesign-miniprogram/pull/3157)) +- `Dialog`: 修复更新按钮属性 `openType` 未重置问题 @jarmywang ([#3178](https://github.com/Tencent/tdesign-miniprogram/pull/3178)) +- `Tabs`: + - 修复开启 `animation` 时导致的面板滚动位置不准确问题 @anlyyao ([#3188](https://github.com/Tencent/tdesign-miniprogram/pull/3188)) + - 修复在 `skyline` 中无法滚动的问题 @anlyyao ([#3187](https://github.com/Tencent/tdesign-miniprogram/pull/3187)) +- `Collapse`: 修复禁用+面板展开场景下面板展开态不正确,并处理多个样式问题 @anlyyao ([#3186](https://github.com/Tencent/tdesign-miniprogram/pull/3186)) +- `Cell`: 修复 `arrow` 动态变更无效的问题 @anlyyao ([#3184](https://github.com/Tencent/tdesign-miniprogram/pull/3184)) +- `Switch`: 修复深色模式下文本颜色错误 @anlyyao ([#3183](https://github.com/Tencent/tdesign-miniprogram/pull/3183)) +- `PullDownRefresh`: 修复禁用下拉刷新导致的滑动事件无效 @anlyyao ([#3182](https://github.com/Tencent/tdesign-miniprogram/pull/3182)) + +## 🌈 1.6.1 `2024-09-14` +### 🚀 Features +- `Fab`: 新增 `yEdge` 属性,支持设置垂直方向边界限制 @anlyyao ([#3125](https://github.com/Tencent/tdesign-miniprogram/pull/3125)) +- `PickerItem`: 支持插槽,自定义 `label` 后缀内容 @anlyyao ([#3127](https://github.com/Tencent/tdesign-miniprogram/pull/3127)) +- `AvatarGroup`: 新增 `shape` 属性,新增 `collapsed-item-click` 事件 @anlyyao ([#3134](https://github.com/Tencent/tdesign-miniprogram/pull/3134)) +- `RadioGroup`: 新增 `allowUncheck` 属性 @anlyyao ([#3140](https://github.com/Tencent/tdesign-miniprogram/pull/3140)) +### 🐞 Bug Fixes +- `Slider`: `dragend` 事件增加返回 `value` @jarmywang ([#3112](https://github.com/Tencent/tdesign-miniprogram/pull/3112)) +- `ImageViewer`: + - 修复 `images` 长度更新导致 `index` 显示异常 @jarmywang ([#3111](https://github.com/Tencent/tdesign-miniprogram/pull/3111)) + - 修复滚动穿透问题 @dadtakesmefly ([#3146](https://github.com/Tencent/tdesign-miniprogram/pull/3146)) +- `Tabs`: 使用 `hidden` 隐藏后显示仍能够正常显示指示器;移除文档中未实现的 `destroyOnHide` 属性 @jarmywang ([#3132](https://github.com/Tencent/tdesign-miniprogram/pull/3132)) +- `AvatarGroup`: 修复 `size` 属性无效的问题,优化 `zIndex` 处理 @anlyyao ([#3134](https://github.com/Tencent/tdesign-miniprogram/pull/3134)) +- `Image`: 修复图片在 `loading` 态时,加载错位 @huxinhai ([#3128](https://github.com/Tencent/tdesign-miniprogram/pull/3128)) +- `Progress`: 修复环形进度条首次加载时,`strokeWidth` 线宽延迟显示的问题 @huxinhai ([#3139](https://github.com/Tencent/tdesign-miniprogram/pull/3139)) +- `Radio`: 修复 `allowUncheck` 属性无效 @anlyyao ([#3140](https://github.com/Tencent/tdesign-miniprogram/pull/3140)) +- `Badge`: 修复 `skyline` 下角标样式异常,`ribbon` 类型徽标改用伪元素实现 @anlyyao ([#3144](https://github.com/Tencent/tdesign-miniprogram/pull/3144)) +- `Cascader`: 修复 `value` 动态变更时,`options ` 选项内容未更新的问题 @huxinhai ([#3142](https://github.com/Tencent/tdesign-miniprogram/pull/3142)) +- `CollapsePanel`: 修复 `expandIcon` 属性不生效问题,并支持动态设置 `disabled` 属性 @blankqwq ([#3093](https://github.com/Tencent/tdesign-miniprogram/pull/3093)) + +## 🌈 1.6.0 `2024-08-23` +### 🚀 Features +- `DropdownMenu`: 新增 `--td-dropdown-menu-height` @anlyyao ([#3094](https://github.com/Tencent/tdesign-miniprogram/pull/3094)) +### 🐞 Bug Fixes +- `Badge`: 修复角标样式溢出,移除`t-badge__ribbon--before`元素与`t-badge__ribbon--after`元素,改用`clip-path`样式实现 @jby0107 ([#3074](https://github.com/Tencent/tdesign-miniprogram/pull/3074)) +- `Dialog`: 修复命令行调用`closeOnOverlayClick`无效问题 @jarmywang ([#3066](https://github.com/Tencent/tdesign-miniprogram/pull/3066)) +- `Checkbox`: 修复选中态和未选中态直径/边长大小不一致问题 @anlyyao ([#3069](https://github.com/Tencent/tdesign-miniprogram/pull/3069)) +- `Dialog`: `close` 方法参数类型定义异常 @betavs ([#3071](https://github.com/Tencent/tdesign-miniprogram/pull/3071)) +- `Picker`: 兼容 `Skyline` 在深色模式下遮罩显示 @jarmywang ([#3077](https://github.com/Tencent/tdesign-miniprogram/pull/3077)) +- `Progress`: 修复 `label` 插槽重复 @anlyyao ([#3080](https://github.com/Tencent/tdesign-miniprogram/pull/3080)) +- `Slider`: 修复 `hidden` 为 `false` 场景下,调用 `init()` 函数更新组件时点位置错误 @jby0107 ([#3085](https://github.com/Tencent/tdesign-miniprogram/pull/3085)) + +## 🌈 1.5.1 `2024-08-09` +### 🚀 Features +- `Input`: 新增 `--td-input-placeholder-text-font-size` 变量 @betavs ([#3018](https://github.com/Tencent/tdesign-miniprogram/pull/3018)) +- `Popup`: 新增 `--td-popup-close-btn-color` @anlyyao ([#3035](https://github.com/Tencent/tdesign-miniprogram/pull/3035)) +- `Message`: 支持组件通过 `visible` 属性调用 @novlan1 ([#3058](https://github.com/Tencent/tdesign-miniprogram/pull/3058)) +### 🐞 Bug Fixes +- `NoticeBar`: 修复 `content` 插槽内容的底边距异常 @anlyyao ([#3025](https://github.com/Tencent/tdesign-miniprogram/pull/3025)) +- `Cascader`: 修复组件高度设置错误,交互有调整 @anlyyao ([#3027](https://github.com/Tencent/tdesign-miniprogram/pull/3027)) +- `Image`: 修复懒加载无效的问题 @huxinhai ([#3036](https://github.com/Tencent/tdesign-miniprogram/pull/3036)) +- `Message`: 修复 `duration-end` 事件未回调 @jarmywang ([#3051](https://github.com/Tencent/tdesign-miniprogram/pull/3051)) +- `Tabs`: + - 修复 `card` 主题下`label` 显示不全 @anlyyao ([#3059](https://github.com/Tencent/tdesign-miniprogram/pull/3059)) + - 修复 `TabPanel`面板内容快速滚动时,点击tab切换出现偶发性页面空白 @hkaikai ([#3055](https://github.com/Tencent/tdesign-miniprogram/pull/3055)) +- `PullDownRefresh`: 修复 `skyline` 下提示语占位高度计算错误 @richardji202 ([#3014](https://github.com/Tencent/tdesign-miniprogram/pull/3014)) + +## 🌈 1.5.0 `2024-07-26` +### 🚀 Features +- `Guide`: 新增`Guide`组件 @hkaikai ([#2998](https://github.com/Tencent/tdesign-miniprogram/pull/2998)) ⚡ +- `Icon`: 新增 `list-numbered`、`lock-off-filled`、`lock-on-filled` 等 3 个图标 @anlyyao ([#2962](https://github.com/Tencent/tdesign-miniprogram/pull/2962)) +- `Calendar`: 新增 `scroll` 事件 @jarmywang ([#2974](https://github.com/Tencent/tdesign-miniprogram/pull/2974)) +- `Rate`: `placement` 属性可选项新增 `''`,表示不显示评分弹窗 @anlyyao ([#2980](https://github.com/Tencent/tdesign-miniprogram/pull/2980)) +### 🐞 Bug Fixes +- `Icon`: 修复图标 `chart-column` 的命名错误问题 @anlyyao ([#2962](https://github.com/Tencent/tdesign-miniprogram/pull/2962)) +- `Cell`: 修复动态添加 `cell` 时底部 `border` 不显示的问题 @jarmywang ([#2977](https://github.com/Tencent/tdesign-miniprogram/pull/2977)) +- `Button`: 修复`skyline`渲染模式下 `hover` 态失效 @jarmywang ([#2973](https://github.com/Tencent/tdesign-miniprogram/pull/2973)) +- `Grid`: 监听数据变化后未更新子组件样式 @betavs ([#2991](https://github.com/Tencent/tdesign-miniprogram/pull/2991)) +- `Input`: 修复占位符禁用态样式错误 @anlyyao ([#3005](https://github.com/Tencent/tdesign-miniprogram/pull/3005)) +- `Noticebar`: 移除未依赖的组件引用,修复代码质量告警 @anlyyao ([#3006](https://github.com/Tencent/tdesign-miniprogram/pull/3006)) +- `Indexes`: 修复位置错乱和滑动卡顿 @jarmywang ([#3000](https://github.com/Tencent/tdesign-miniprogram/pull/3000)) +### 🚧 Others +- `site`: 项目案例更新 @anlyyao ([#2964](https://github.com/Tencent/tdesign-miniprogram/pull/2964)) +- `TabBarItem`: `wx:key` 从 `index` 更换为`value`属性值作为标识符 @jarmywang ([#3002](https://github.com/Tencent/tdesign-miniprogram/pull/3002)) +- `Search`: `skyline` 适配 @byq1213 ([#2971](https://github.com/Tencent/tdesign-miniprogram/pull/2971)) +- `Switch`: `skyline` 适配 @byq1213 ([#2967](https://github.com/Tencent/tdesign-miniprogram/pull/2967)) + +## 🌈 1.4.5 `2024-07-05` +### 🚀 Features +- `Progress`: `circle` 风格进度条支持自定义起始角度 @jarmywang ([#2903](https://github.com/Tencent/tdesign-miniprogram/pull/2903)) +- `SwipeCell`: 新增 `dragstart` 和 `dragend` 事件 @Lyan-u ([#2904](https://github.com/Tencent/tdesign-miniprogram/pull/2904)) +- `PullDownRefresh`: 新增 `disabled` 属性 @Lyan-u ([#2904](https://github.com/Tencent/tdesign-miniprogram/pull/2904)) +- `Search`: 新增 `resultList` 属性,支持预览列表 @byq1213 @anlyyao ([#2520](https://github.com/Tencent/tdesign-miniprogram/pull/2520)) +- `Picker`: 新增 `itemHeight` 属性,支持自定义 `PickerItem` 子项高度 @anlyyao ([#2953](https://github.com/Tencent/tdesign-miniprogram/pull/2953)) +### 🐞 Bug Fixes +- `Popup`: 修复右侧弹层未适配自定义标题栏高度 @jarmywang ([#2921](https://github.com/Tencent/tdesign-miniprogram/pull/2921)) +- `Navbar`: 组件内部适配 `wx.onMenuButtonBoundingClientRectWeightChange()` @jby0107 ([#2922](https://github.com/Tencent/tdesign-miniprogram/pull/2922)) +- `Input`: 修复`Skyline`下点击清除图标时页面上 `bindtap` 无效 @anlyyao ([#2946](https://github.com/Tencent/tdesign-miniprogram/pull/2946)) +### 🚧 Others +- `site`: 全量组件补充示例代码片段,支持导入开发者工具预览 @anlyyao ([#2939](https://github.com/Tencent/tdesign-miniprogram/pull/2939)) +- `Picker`: 废弃无实际意义的 `--td-picker-item-height` @anlyyao ([#2953](https://github.com/Tencent/tdesign-miniprogram/pull/2953)) + +## 🌈 1.4.4 `2024-06-24` +### 🐞 Bug Fixes +- `Overlay`: 修复遮罩失效 @anlyyao ([#2887](https://github.com/Tencent/tdesign-miniprogram/pull/2887)) + +## 🌈 1.4.3 `2024-06-21` +### 🚀 Features +- `TabPanel`: 支持动态 `label` @anlyyao ([#2872](https://github.com/Tencent/tdesign-miniprogram/pull/2872)) +### 🐞 Bug Fixes +- `Calendar`: 优化 `title` 默认值 @anlyyao ([#2858](https://github.com/Tencent/tdesign-miniprogram/pull/2858)) +- `Swiper`: 修复 `navigation` 插槽无效的问题 @jarmywang ([#2859](https://github.com/Tencent/tdesign-miniprogram/pull/2859)) +- `TabBar`: 修复自定义 `tabbar` 中深色模式颜色错误 @anlyyao ([#2861](https://github.com/Tencent/tdesign-miniprogram/pull/2861)) +- `CheckTag`: 更正组件内部 `checked`属性类型 @anlyyao ([#2871](https://github.com/Tencent/tdesign-miniprogram/pull/2871)) +- `Navbar`: 修复占位区高度错误 @jby0107 ([#2877](https://github.com/Tencent/tdesign-miniprogram/pull/2877)) +- `Radio`: 修复禁用态样式错误 @anlyyao ([#2875](https://github.com/Tencent/tdesign-miniprogram/pull/2875)) +- `Dialog`: `close-on-overlay-click`属性默认值从 `undefined` 改为 `false` @jarmywang ([#2874](https://github.com/Tencent/tdesign-miniprogram/pull/2874)) +- `Cascader`: 优化组件性能,支持4级地址 @novlan1 ([#2866](https://github.com/Tencent/tdesign-miniprogram/pull/2866)) +### 🚧 Others +- `site(Button)`: 支持示例代码导入开发者工具 @anlyyao ([#2883](https://github.com/Tencent/tdesign-miniprogram/pull/2883)) + +## 🌈 1.4.2 `2024-06-07` +### 🐞 Bug Fixes +- `Skeleton`: 修复深色模式渐变动画颜色错误 @anlyyao ([#2818](https://github.com/Tencent/tdesign-miniprogram/pull/2818)) +- `Slider`: 修复禁用态样式错误 @anlyyao ([#2814](https://github.com/Tencent/tdesign-miniprogram/pull/2814)) +- `TabBar`: 修复 `icon` 插槽不显示问题 @jarmywang ([#2821](https://github.com/Tencent/tdesign-miniprogram/pull/2821)) +- `Tabs`: + - 修复当改变文本大小时下划线滑动位置错误 @anlyyao ([#2822](https://github.com/Tencent/tdesign-miniprogram/pull/2822)) + - 修复部分 `css` 变量无效 @betavs ([#2843](https://github.com/Tencent/tdesign-miniprogram/pull/2843)) +- `ActionSheet`: 修复控制台告警 @anlyyao ([#2838](https://github.com/Tencent/tdesign-miniprogram/pull/2838)) +### 🚧 Others +- `CountDown`: 示例添加 `TCloudNumber` 字体的 `Base64` 转码 @ArcticFoxPro ([#2836](https://github.com/Tencent/tdesign-miniprogram/pull/2836)) +- `Message`: 修复官网 `Message` 组件示例页面白屏 @anlyyao ([#2841](https://github.com/Tencent/tdesign-miniprogram/pull/2841)) + +## 🌈 1.4.1 `2024-05-28` +### 🚀 Features +- `Picker`: 新增 `use-popup` 属性 @anlyyao ([#2770](https://github.com/Tencent/tdesign-miniprogram/pull/2770)) +- `DateTimePicker`: 新增 `use-popup` 属性 @anlyyao ([#2770](https://github.com/Tencent/tdesign-miniprogram/pull/2770)) + +### 🐞 Bug Fixes +- `Calendar`: 修复页面层无法修改组件样式的问题 @anlyyao ([#2767](https://github.com/Tencent/tdesign-miniprogram/pull/2767)) +- `Layout`: 支持拆行 @anlyyao ([#2773](https://github.com/Tencent/tdesign-miniprogram/pull/2773)) +- `Navbar`: 为适配右侧胶囊尺寸,恢复使用 `px` 单位 @anlyyao ([#2781](https://github.com/Tencent/tdesign-miniprogram/pull/2781)) +- `Picker`: 修复子项文本尺寸自适应问题 @anlyyao ([#2782](https://github.com/Tencent/tdesign-miniprogram/pull/2782)) +- `Tabs`: + - 修复在 `Skyline` 模式下组件不能正常使用的问题 @narukeu ([#2788](https://github.com/Tencent/tdesign-miniprogram/pull/2788)) + - 修复示例文案错误 @ArcticFoxPro ([#2801](https://github.com/Tencent/tdesign-miniprogram/pull/2801)) +- `CellGroup`: 修复深色模式下外边框颜色错误 @anlyyao ([#2790](https://github.com/Tencent/tdesign-miniprogram/pull/2790)) +- `Slider`: + - 优化垂直方向胶囊滑轨样式 @anlyyao ([#2796](https://github.com/Tencent/tdesign-miniprogram/pull/2796))、 + - 示例增加边距,避免与手势返回冲突 @novlan1 ([#2807](https://github.com/Tencent/tdesign-miniprogram/pull/2807)) +- `Progress`: 修复环状进度条深色模式颜色错误 @anlyyao ([#2794](https://github.com/Tencent/tdesign-miniprogram/pull/2794)) +- `Icon`: 修复图片资源无法正常显示的问题 @betavs ([#2806](https://github.com/Tencent/tdesign-miniprogram/pull/2806)) +- `CountDown`: 改用 `TCloudNumber` 字体 @anlyyao ([#2765](https://github.com/Tencent/tdesign-miniprogram/pull/2765)) +- `Button`: 更新示例,对齐视觉 @anlyyao ([#2811](https://github.com/Tencent/tdesign-miniprogram/pull/2811)) +### 🚧 Others +- `site`: 修复预览窗口内部切换时不更随颜色模式问题 @zuiaiwanqian ([#2768](https://github.com/Tencent/tdesign-miniprogram/pull/2768)) + +## 🌈 1.4.0 `2024-05-09` +### 🚀 Features +- `TDesign`: Button、Fab等 33 个组件完成 Skyline 适配,并新增 Skyline Page 示例页 @jin0209 @anlyyao @jarmywang ([#2659](https://github.com/Tencent/tdesign-miniprogram/pull/2659)) +- `Input`: 新增 `default-value` 属性 @betavs ([#2738](https://github.com/Tencent/tdesign-miniprogram/pull/2738)) +- `Textarea`: 新增 `default-value` 属性 @betavs ([#2737](https://github.com/Tencent/tdesign-miniprogram/pull/2737)) +### 🐞 Bug Fixes +- `Layout`: 修复 `Col` 和 `Row` 的 `style` 与 `customStyle` 属性无效的问题 @anlyyao ([#2745](https://github.com/Tencent/tdesign-miniprogram/pull/2745)) + +## 🌈 1.3.1 `2024-04-29` +### 🚀 Features +- `Fab`: 新增 `using-custom-navbar` 属性 @anlyyao ([#2725](https://github.com/Tencent/tdesign-miniprogram/pull/2725)) +### 🐞 Bug Fixes +- `Message`: 修复 `message` 重复进入位置异常并修正 `single` 属性值默认取 `true` @jarmywang ([#2719](https://github.com/Tencent/tdesign-miniprogram/pull/2719)) +- `MessageItem`: 逻辑容错异常处理 @betavs ([#2704](https://github.com/Tencent/tdesign-miniprogram/pull/2704)) +- `Skeleton`: 修复 `loading` 属性默认值无效的问题 @anlyyao ([#2714](https://github.com/Tencent/tdesign-miniprogram/pull/2714)) +- `Progress`: 修复 `circle` 主题背景色缺失的问题 @anlyyao ([#2722](https://github.com/Tencent/tdesign-miniprogram/pull/2722)) +- `BackTop`: 修复 `round/half-round` 主题文本和背景 `design token` 错误 @anlyyao ([#2722](https://github.com/Tencent/tdesign-miniprogram/pull/2722)) +- `CheckboxGroup`: `options` 对象中 `value` 不支持 `number` 类型 @betavs ([#2731](https://github.com/Tencent/tdesign-miniprogram/pull/2731)) +### 🚧 Others +- `chore`: `styleIsolation` 配置项从 `options` 迁移到 `JSON` @anlyyao ([#2718](https://github.com/Tencent/tdesign-miniprogram/pull/2718)) +- `chore`: 修正包名 @betavs ([#2734](https://github.com/Tencent/tdesign-miniprogram/pull/2734)) + +## 🌈 1.3.0 `2024-04-19` +### 🚀 Features +- `TDesign` 微信小程序组件库提供原生深色模式适配 @zuiaiwanqian ([#2636](https://github.com/Tencent/tdesign-miniprogram/pull/2636)) +- `PullDownRefresh`: + - 新增 `header` 插槽 @betavs ([#2652](https://github.com/Tencent/tdesign-miniprogram/pull/2652)) + - 新增 `drag` 等事件 @betavs ([#2649](https://github.com/Tencent/tdesign-miniprogram/pull/2649)) +- `Picker`: 新增 `footer` 插槽 @anlyyao ([#2632](https://github.com/Tencent/tdesign-miniprogram/pull/2632)) +- `DateTimePicker`: 新增 `footer` 插槽 @anlyyao ([#2632](https://github.com/Tencent/tdesign-miniprogram/pull/2632)) +- `CheckTag`: 新增 `shape` 和 `closable` 属性 @betavs ([#2365](https://github.com/Tencent/tdesign-miniprogram/pull/2365)) +- `Image`: 新增 `t-id` 属性 @catiwang ([#2658](https://github.com/Tencent/tdesign-miniprogram/pull/2658)) +- `upload`: 支持自定义上传图片后的略缩图 @dexterBo ([#2690](https://github.com/Tencent/tdesign-miniprogram/pull/2690)) +- `Skeleton`: 新增 `delay` 属性 @anlyyao ([#2698](https://github.com/Tencent/tdesign-miniprogram/pull/2698)) +- `Message`: 支持同时显示多条消息并自动垂直排版 @zh-huan ([#2639](https://github.com/Tencent/tdesign-miniprogram/pull/2639)) +### 🐞 Bug Fixes +- `RadioGroup`: 修复 `disabled` 动态修改无效 @catiwang ([#2643](https://github.com/Tencent/tdesign-miniprogram/pull/2643)) +- `Calendar`: 动态设置 `format` 无效 @betavs ([#2670](https://github.com/Tencent/tdesign-miniprogram/pull/2670)) +- `CheckboxGroup`: 处理 `disabled` 动态修改无效的问题 @betavs ([#2647](https://github.com/Tencent/tdesign-miniprogram/pull/2647)) +- `Slider`: 修复组件宽度失效 @anlyyao ([#2699](https://github.com/Tencent/tdesign-miniprogram/pull/2699)) +- `Drawer`: 修复 `--td-drawer-item-icon-color` 名称错误 @anlyyao ([#2697](https://github.com/Tencent/tdesign-miniprogram/pull/2697)) +- `TabBarItem`: 当 `tab-bar` 组件 `split` 属性为真时,样式异常 @betavs ([#2696](https://github.com/Tencent/tdesign-miniprogram/pull/2696)) +### 🚧 Others +- `Footer`: 同步 `API` 文档 @liweijie0812 ([#2683](https://github.com/Tencent/tdesign-miniprogram/pull/2683)) +- `Tag`: 同步 `API` 文档 @liweijie0812 ([#2684](https://github.com/Tencent/tdesign-miniprogram/pull/2684)) +- `Result`: 同步 `API` 文档 @liweijie0812 ([#2685](https://github.com/Tencent/tdesign-miniprogram/pull/2685)) + +## 🌈 1.2.9 `2024-03-07` +### 🚀 Features +- `Cascader`: 新增 `placeholder` 属性,支持自定义未选中时的提示文案 @anlyyao ([#2597](https://github.com/Tencent/tdesign-miniprogram/pull/2597)) +### 🐞 Bug Fixes +- `DropdownMenu`: 修复菜单栏展开状态向上滚动时菜单栏和内容面板分离的问题 @maureenwanmy ([#2606](https://github.com/Tencent/tdesign-miniprogram/pull/2606)) +- `Swiper`: 修复意外的高频左右抖动 @betavs ([#2603](https://github.com/Tencent/tdesign-miniprogram/pull/2603)) +- `Layout`: 改用 `flex` 布局,修复 `col` 高度塌陷问题 @dexterBo ([#2616](https://github.com/Tencent/tdesign-miniprogram/pull/2616)) +- `Slider`: + - 修复 `slider` 在多点触控时无法滑动的问题 @xieyushansun ([#2619](https://github.com/Tencent/tdesign-miniprogram/pull/2619)) + - 修复滑块点击偏移和点击位置定位不准确的问题 @dexterBo ([#2627](https://github.com/Tencent/tdesign-miniprogram/pull/2627)) +- `Fab`: 修复拖拽模式点击不触发 @jarmywang ([#2631](https://github.com/Tencent/tdesign-miniprogram/pull/2631)) +- `Navbar`: `px` 转 `rpx` 换算错误 @betavs ([#2626](https://github.com/Tencent/tdesign-miniprogram/pull/2626)) +### 🚧 Others +- `TabBar`: 移除重复样式类 @Moonofweisheng ([#2630](https://github.com/Tencent/tdesign-miniprogram/pull/2630)) +- `DropdownItem`: 采用 [BEM](http://getbem.com/) 命名规范优化类名 @betavs ([#2611](https://github.com/Tencent/tdesign-miniprogram/pull/2611)) + +## 🌈 1.2.8 `2024-02-06` +### 🚀 Features +- `Slider`: 新增 `vertical`属性 @zuiaiwanqian ([#2592](https://github.com/Tencent/tdesign-miniprogram/pull/2592)) +- `Tag`: `closable` 属性补充支持 `Object` 和 `Slot`类型 @anlyyao ([#2590](https://github.com/Tencent/tdesign-miniprogram/pull/2590)) +- `Cell`: `leftIcon`、 `rightIcon` 和 `arrow` 属性补充支持 `Object` 类型 @anlyyao ([#2589](https://github.com/Tencent/tdesign-miniprogram/pull/2589)) +### 🐞 Bug Fixes +- `Search`: 处理 `slot` 互斥问题 @betavs ([#2569](https://github.com/Tencent/tdesign-miniprogram/pull/2569)) +- `ImageViewer`: 修复图片未设置宽高时,图片预览被截断的问题 @azx1573 ([#2575](https://github.com/Tencent/tdesign-miniprogram/pull/2575)) +- `Cascader`: 修复 `value` 无法响应更新的问题 @catiwang ([#2578](https://github.com/Tencent/tdesign-miniprogram/pull/2578)) +- `PullDownRefresh`: 修复快速滚动时 `scrollTop` 不准确的问题 @yangbai1991 ([#2472](https://github.com/Tencent/tdesign-miniprogram/pull/2472)) +- `Dialog`: 处理基础调试库在 `3.3.3` ~ `3.3.4` 版本时控制台报错 @anlyyao ([#2587](https://github.com/Tencent/tdesign-miniprogram/pull/2587)) +### 🚧 Others +- `NoticeBar`: 声明 `NoticeBarTrigger` 类型 @betavs ([#2567](https://github.com/Tencent/tdesign-miniprogram/pull/2567)) + +## 🌈 1.2.7 `2024-01-17` +### 🚀 Features +- `Upload`: 支持拖拽排序 @zuiaiwanqian ([#2527](https://github.com/Tencent/tdesign-miniprogram/pull/2527)) +- `Textarea`: `change` 事件新增 `cursor` 参数 @betavs ([#2533](https://github.com/Tencent/tdesign-miniprogram/pull/2533)) +### 🐞 Bug Fixes +- `Swiper`: 修复当前项动态变化时,外部样式类 `t-class-prev-image` 和 `t-class-next-image` 无效的问题 @hkaikai ([#2540](https://github.com/Tencent/tdesign-miniprogram/pull/2540)) +- `Tabs`: + - `showBottomLine` 为 `false` 时,支持内容自动向中间滑动 @hkaikai ([#2550](https://github.com/Tencent/tdesign-miniprogram/pull/2550)) + - 修复最后一项 `disabled` 时卡死问题 @byq1213 ([#2523](https://github.com/Tencent/tdesign-miniprogram/pull/2523)) +- `Fab`: 修复滚动事件穿透的问题 @anlyyao ([#2553](https://github.com/Tencent/tdesign-miniprogram/pull/2553)) +- `Navbar`: 修复大屏适配问题 @anlyyao ([#2554](https://github.com/Tencent/tdesign-miniprogram/pull/2554)) +- `Calendar`: 处理 `use-popup` 值为 `false` 时,动态设置 `value` 未重新渲染的问题 @delgithub ([#2552](https://github.com/Tencent/tdesign-miniprogram/pull/2552)) +### 🚧 Others +- `Button`: 处理控制台警告的问题 @IronManman ([#2521](https://github.com/Tencent/tdesign-miniprogram/pull/2521)) +- `ActionSheet`: 文档更新 @jin0209 ([#2541](https://github.com/Tencent/tdesign-miniprogram/pull/2541)) + +## 🌈 1.2.6 `2023-12-22` +### 🚀 Features +- `Upload`: 新增 `disabled` 属性,首页补充服务声明 @anlyyao ([#2489](https://github.com/Tencent/tdesign-miniprogram/pull/2489)) +- `NoticeBar`: 新增 `change` 事件,仅在 `direction` 为 `vertical` 时有效 @betavs ([#2492](https://github.com/Tencent/tdesign-miniprogram/pull/2492)) +- `Fab`: 悬浮按钮支持拖拽 @hkaikai ([#2478](https://github.com/Tencent/tdesign-miniprogram/pull/2478)) +- `Checkbox`: `change` 事件新增参数 `context`,返回当前点击项内容 @gjl-0810 ([#2469](https://github.com/Tencent/tdesign-miniprogram/pull/2469)) +### 🐞 Bug Fixes +- `Calender`: 兼容 `glass-easel` 框架真机环境 `` 节点上不支持 `wx:` 指令 @jarmywang ([#2491](https://github.com/Tencent/tdesign-miniprogram/pull/2491)) +- `Step`: 修复 `status` 属性变更后子项未及时更新的问题 @betavs ([#2480](https://github.com/Tencent/tdesign-miniprogram/pull/2480)) +- `NoticeBar`: 处理基础库为 `3.x.x` 时控制台报错的问题 @betavs ([#2470](https://github.com/Tencent/tdesign-miniprogram/pull/2470)) +- `Input`: 修复 `type` 为 `digit`、`number`时,`maxlength` 和 `maxcharacter` 属性无效的问题 @zyqq ([#2497](https://github.com/Tencent/tdesign-miniprogram/pull/2497)) +- `Grid`: 修复 `hover` 属性无效的问题 @betavs ([#2508](https://github.com/Tencent/tdesign-miniprogram/pull/2508)) +- `TabBar`: 修复徽标遮挡底部内容的问题 @yangbai1991 ([#2456](https://github.com/Tencent/tdesign-miniprogram/pull/2456)) +### 🚧 Others +- `Icon`: 弃用 `wx.setClipboardData` 防止收集用户信息。 @anlyyao ([#2498](https://github.com/Tencent/tdesign-miniprogram/pull/2498)) +- `Textarea`: 更新文档默认值 @betavs ([#2507](https://github.com/Tencent/tdesign-miniprogram/pull/2507)) + +## 🌈 1.2.5 `2023-12-08` +### 🚀 Features +- `Cell`: 新增外部样式类 `t-class-center` @anlyyao ([#2439](https://github.com/Tencent/tdesign-miniprogram/pull/2439)) +- `Input`: 新增 `clearTrigger` 属性 @betavs ([#2372](https://github.com/Tencent/tdesign-miniprogram/pull/2372)) +### 🐞 Bug Fixes +- `Calendar`: 修复 `use-popup` 为 `false` 时,组件未适应父容器宽度的问题 @yangbai1991 ([#2458](https://github.com/Tencent/tdesign-miniprogram/pull/2458)) +- `Checkbox`: 修复 `checked` 属性无效的问题 @Nightmare1664 ([#2455](https://github.com/Tencent/tdesign-miniprogram/pull/2455)) +- `Upload`: 处理关闭按钮溢出问题 @betavs ([#2449](https://github.com/Tencent/tdesign-miniprogram/pull/2449)) +- `DateTimePicker`: 组件支持国际化。目前支持简体中文(zh)、 (tc)、 英文(en)、日语(ja)、 韩语(ko)、俄语(ru) 等六种语言 @eric-lua ([#2464](https://github.com/Tencent/tdesign-miniprogram/pull/2464)) +### 🚧 Others +- `Textarea`: 修复文档 `confirm-type` 属性默认值描述错误 @betavs ([#2475](https://github.com/Tencent/tdesign-miniprogram/pull/2475)) +- `BackTop`: 返回顶部按钮,增加 `iphone` 底部安全区 @leozeli ([#2457](https://github.com/Tencent/tdesign-miniprogram/pull/2457)) + +## 🌈 1.2.4 `2023-11-15` +### 🚀 Features +- `Rate`: 新增 `placement` 属性 @betavs ([#2359](https://github.com/Tencent/tdesign-miniprogram/pull/2359)) +- `DropdownMenu`: 新增 `open` 和 `close` 事件 @betavs ([#2361](https://github.com/Tencent/tdesign-miniprogram/pull/2361)) +- `Cell`: 新增css变量 `--td-cell-border-width` @betavs ([#2399](https://github.com/Tencent/tdesign-miniprogram/pull/2399)) +- `BackTop`: 新增 `scrollTop` 和 `visibilityHeight` 属性 @betavs ([#2177](https://github.com/Tencent/tdesign-miniprogram/pull/2177)) +### 🐞 Bug Fixes +- `Search`: 修复因 `input` 未设置最小高度导致异常的问题 @betavs ([#2340](https://github.com/Tencent/tdesign-miniprogram/pull/2340)) +- `Picker`: 兼容 `keys` 为 `null` 的情况 @betavs ([#2358](https://github.com/Tencent/tdesign-miniprogram/pull/2358)) +- `Image`: 优化组件内部函数重复执行的问题 @betavs ([#2362](https://github.com/Tencent/tdesign-miniprogram/pull/2362)) +- `Checkbox`: 移除未使用的组件 `Cell` @eehhh ([#2404](https://github.com/Tencent/tdesign-miniprogram/pull/2404)) +- `Radio`: 移除未使用的组件 `Cell` @eehhh ([#2405](https://github.com/Tencent/tdesign-miniprogram/pull/2405)) +- `Link`: 修复跳转方式为返回或退出时链接样式为禁用的问题 @qianxuu ([#2226](https://github.com/Tencent/tdesign-miniprogram/pull/2226)) +- `SideBar`: 修复子项激活态时 `prefix`与`suffix` 内容遮挡相邻项的点击热区问题 @Moonofweisheng ([#2431](https://github.com/Tencent/tdesign-miniprogram/pull/2431)) +### 🚧 Others +- `Tabs`: 更新示例 @Xcyq ([#2386](https://github.com/Tencent/tdesign-miniprogram/pull/2386)) + +## 🌈 1.2.3 `2023-09-14` +### 🚀 Features +- `ImageViewer`:支持无障碍访问 +### 🐞 Bug Fixes +- `Button`: `t-id`属性没有默认值导致控制台警告问题 @betavs ([#2337](https://github.com/Tencent/tdesign-miniprogram/pull/2337)) +- `Dialog`: 修复隐私协议接口 bindagreeprivacyauthorization 回调信息丢失问题 @ElanYoung ([#2342](https://github.com/Tencent/tdesign-miniprogram/pull/2342)) + +## 🌈 1.2.2 `2023-08-29` +### 🚀 Features +- `Rate`: 支持第三方图标 @lixingdecai ([#2328](https://github.com/Tencent/tdesign-miniprogram/pull/2328)) +- `Button`: + - 新增 `t-id` 属性,相等于 `id` @HellyW ([#2320](https://github.com/Tencent/tdesign-miniprogram/pull/2320)) + - 属性 `open-type` 新增支持 `agreePrivacyAuthorization` @HellyW ([#2320](https://github.com/Tencent/tdesign-miniprogram/pull/2320)) +### 🐞 Bug Fixes +- `Stepper`: + - 修复无法输出小数的问题 @LeeJim ([#2314](https://github.com/Tencent/tdesign-miniprogram/pull/2314)) + - 修复输入小数后增减的精度问题 @LeeJim ([#2314](https://github.com/Tencent/tdesign-miniprogram/pull/2314)) +- `TreeSelect`: + - 解决异步 `options` 导致无法渲染的问题 @LeeJim ([#2315](https://github.com/Tencent/tdesign-miniprogram/pull/2315)) + - 解决异步数据导致的报错问题 @LeeJim ([#2315](https://github.com/Tencent/tdesign-miniprogram/pull/2315)) +- `ActionSheet`: 移除未使用的组件 @betavs ([#2318](https://github.com/Tencent/tdesign-miniprogram/pull/2318)) +- `SideBar`: 修复示例滚动问题 @betavs ([#2325](https://github.com/Tencent/tdesign-miniprogram/pull/2325)) + +## 🌈 1.2.1 `2023-08-22` +### 🚀 Features +- `Radio`: 新增 `readonly` 属性 @betavs ([#2292](https://github.com/Tencent/tdesign-miniprogram/pull/2292)) +### 🐞 Bug Fixes +- `CellGroup`: 修复 `updateLastChid` 事件被多次触发的问题 @anlyyao ([#2302](https://github.com/Tencent/tdesign-miniprogram/pull/2302)) +- `Popup`: 修复 `visibleChange` 事件参数错误的问题 @anlyyao ([#2303](https://github.com/Tencent/tdesign-miniprogram/pull/2303)) +- `Rate`: 修复 `value = 0` 且半选时图标错误的问题 @betavs ([#2307](https://github.com/Tencent/tdesign-miniprogram/pull/2307)) +- `Radio`: 修复 `tap` 事件无法冒泡的问题 @LeeJim ([#2309](https://github.com/Tencent/tdesign-miniprogram/pull/2309)) +- `Checkbox`: 修复 `tap` 事件无法冒泡的问题 @LeeJim ([#2309](https://github.com/Tencent/tdesign-miniprogram/pull/2309)) + +## 🌈 1.2.0 `2023-08-16` +### 🚀 Features +- `Search`: 支持透传更多 `Input` 的属性 @betavs ([#2229](https://github.com/Tencent/tdesign-miniprogram/pull/2229)) +- `Icon`: 图标更新,新增 `960` 个图标 @anlyyao ([#2254](https://github.com/Tencent/tdesign-miniprogram/pull/2254)) +- `Input`: 新增 `--td-input-label-max-width` 和 `--td-input-label-min-width` 两个样式变量 @anlyyao ([#2259](https://github.com/Tencent/tdesign-miniprogram/pull/2259)) +- `Loading`: 新增 `CSS Variable` 用于调整加载提示文案颜色 @ElanYoung ([#2273](https://github.com/Tencent/tdesign-miniprogram/pull/2273)) +### 🐞 Bug Fixes +- `Swiper`: 修复图片加载中/加载错误占位符未居中的问题 @anlyyao ([#2246](https://github.com/Tencent/tdesign-miniprogram/pull/2246)) +- `TabBar`: 修复示例代码展示错误 @anlyyao ([#2257](https://github.com/Tencent/tdesign-miniprogram/pull/2257)) +- `Input`: 修复 `t-class-label` 外部样式类无法修改 `label` 宽度 @anlyyao ([#2259](https://github.com/Tencent/tdesign-miniprogram/pull/2259)) +- `GridItem`: 修复无效的css变量 @betavs ([#2253](https://github.com/Tencent/tdesign-miniprogram/pull/2253)) +- `Radio`: 修复调整 placement 之后的渲染抖动的问题 @LeeJim ([#2271](https://github.com/Tencent/tdesign-miniprogram/pull/2271)) +- `SwipeCell`: + - 阻止默认的垂直滚动,优化交互体验 @LeeJim ([#2281](https://github.com/Tencent/tdesign-miniprogram/pull/2281)) + - 使用 hidden 隐藏后显示仍能够正常使用 @LeeJim ([#2283](https://github.com/Tencent/tdesign-miniprogram/pull/2283)) +- `Collapse`: 修复默认展开全部时,无法正常收起的问题 @LeeJim ([#2280](https://github.com/Tencent/tdesign-miniprogram/pull/2280)) +- `Checkbox`: 修复 `icon` 无法使用插槽的问题 @LeeJim ([#2285](https://github.com/Tencent/tdesign-miniprogram/pull/2285)) +- `Popup`: 修复滚动穿透的问题 @LeeJim ([#2290](https://github.com/Tencent/tdesign-miniprogram/pull/2290)) +### 🚧 Others +- `Swiper`: + - 修复示例错误 @anlyyao ([#2246](https://github.com/Tencent/tdesign-miniprogram/pull/2246)) + - 补充外部样式类信息 @LeeJim ([#2256](https://github.com/Tencent/tdesign-miniprogram/pull/2256)) +- `Icon`: 更新图标展示UI组件至 0.2.0 版本 @uyarn ([#2269](https://github.com/Tencent/tdesign-miniprogram/pull/2269)) + +## 🌈 1.1.15 `2023-08-01` +### 🚀 Features +- `DropdownMenu`: 支持自定义箭头图标 @LeeJim ([#2240](https://github.com/Tencent/tdesign-miniprogram/pull/2240)) +### 🐞 Bug Fixes +- `ActionSheet`: 修复宫格模式下无法调整选项颜色的问题 @LeeJim ([#2231](https://github.com/Tencent/tdesign-miniprogram/pull/2231)) +- `SwipeCell`: 修复 `left`、`right` 没有动态响应的问题 @LeeJim ([#2239](https://github.com/Tencent/tdesign-miniprogram/pull/2239)) +### 🚧 Others +- `Link`: 补充使用说明,修复文档中句号导致的链接跳转错误 @qianxuu ([#2227](https://github.com/Tencent/tdesign-miniprogram/pull/2227)) + +## 🌈 1.1.14 `2023-07-25` +### 🚀 Features +- `ActionSheet`: 新增 `suffixIcon`,仅在 `theme = list` 时展示 @LeeJim ([#2210](https://github.com/Tencent/tdesign-miniprogram/pull/2210)) +- `TreeSelect`: `label` 内容支持文本超长省略 @anlyyao ([#2208](https://github.com/Tencent/tdesign-miniprogram/pull/2208)) +- `Overlay`: 支持 `duration` 属性,用于调整背景色过渡时间 @betavs ([#2179](https://github.com/Tencent/tdesign-miniprogram/pull/2179)) +### 🐞 Bug Fixes +- `Popup`: 解决自动聚焦的问题 @LeeJim ([#2209](https://github.com/Tencent/tdesign-miniprogram/pull/2209)) +- `Slider`: 修复无法滑动的问题 @LeeJim ([#2211](https://github.com/Tencent/tdesign-miniprogram/pull/2211)) +- `Sticky`: 当组件销毁时,正常移除滚动函数 @LeeJim ([#2215](https://github.com/Tencent/tdesign-miniprogram/pull/2215)) +### 🚧 Others +- 修复 utils.wxs 的语法错误 @LeeJim ([#2217](https://github.com/Tencent/tdesign-miniprogram/pull/2217)) + +## 🌈 1.1.13 `2023-07-18` +### 🚀 Features +- `ActionSheet`: 新增 `show-overlay` 属性 @betavs ([#2194](https://github.com/Tencent/tdesign-miniprogram/pull/2194)) +### 🐞 Bug Fixes +- `Toast`: 修复 `close` 方法类型声明错误 @betavs ([#2191](https://github.com/Tencent/tdesign-miniprogram/pull/2191)) +- `Message`: 修复 `__text-nowrap` 类名前缀错误的问题 @hwaphon ([#2195](https://github.com/Tencent/tdesign-miniprogram/pull/2195)) +- `Slider`: 移除错误的 `wxml` @hwaphon ([#2195](https://github.com/Tencent/tdesign-miniprogram/pull/2195)) +- `DateTimePicker`: 修复动态传入 mode 时无法正确渲染的问题 @betavs ([#2188](https://github.com/Tencent/tdesign-miniprogram/pull/2188)) +### 🚧 Others +- `docs`: 在 `API` 模块展示所有的 `CSS Variables` @anlyyao ([#2182](https://github.com/Tencent/tdesign-miniprogram/pull/2182)) +- `docs`: 将外部样式类的内容独立展示 @ccccpj ([#2200](https://github.com/Tencent/tdesign-miniprogram/pull/2200)) +- 修复一些示例/文档中的拼写错误 @anlyyao ([#2197](https://github.com/Tencent/tdesign-miniprogram/pull/2197)) + +## 🌈 1.1.12 `2023-07-11` +### 🚀 Features +- `PullDownRefresh`: 增加 `show-scrollbar` 属性 @lolhezihehe ([#2163](https://github.com/Tencent/tdesign-miniprogram/pull/2163)) +### 🐞 Bug Fixes +- `Rate`: + - 修复无法点击的问题 @AntzyMo ([#2158](https://github.com/Tencent/tdesign-miniprogram/pull/2158)) + - 使事件冒泡至上层元素 @LeeJim ([#2168](https://github.com/Tencent/tdesign-miniprogram/pull/2168)) +- `DateTimePicker`: 修复无法选择的问题 @betavs ([#2169](https://github.com/Tencent/tdesign-miniprogram/pull/2169)) +- `Tabs`: 修复超出时滚动不流畅的问题 @LeeJim ([#2170](https://github.com/Tencent/tdesign-miniprogram/pull/2170)) +- `TreeSelect`: 修复多选时 `value` 使用空数组报错的问题 @LeeJim ([#2173](https://github.com/Tencent/tdesign-miniprogram/pull/2173)) +### 🚧 Others +- 移除开启 `virtual-host` 场景的 `snapshot` 测试 @LeeJim ([#2161](https://github.com/Tencent/tdesign-miniprogram/pull/2161)) +- 修复控制台告警 @betavs ([#2164](https://github.com/Tencent/tdesign-miniprogram/pull/2164)) + +## 🌈 1.1.11 `2023-07-04` +### 🚀 Features +- `CheckboxGroup`: 新增 `borderless` 属性 @betavs ([#2124](https://github.com/Tencent/tdesign-miniprogram/pull/2124)) +- `Radio`: 允许取消选中 @betavs ([#2141](https://github.com/Tencent/tdesign-miniprogram/pull/2141)) +- `DropdownItem`: 新增 `close` 事件 @LeeJim ([#2147](https://github.com/Tencent/tdesign-miniprogram/pull/2147)) +### 🐞 Bug Fixes +- `Tabs`: 解决选项过多时样式错误的问题 @betavs ([#2123](https://github.com/Tencent/tdesign-miniprogram/pull/2123)) +- `Picker`: 修复默认值无效 @betavs ([#2126](https://github.com/Tencent/tdesign-miniprogram/pull/2126)) +- `Stepper`: 修复精度缺失问题 @anlyyao ([#2130](https://github.com/Tencent/tdesign-miniprogram/pull/2130)) +- `Radio`: 修复自定义图标大小之后的垂直对齐问题 @betavs ([#2135](https://github.com/Tencent/tdesign-miniprogram/pull/2135)) +- `Checkbox`: + - 修复自定义图标尺寸后的垂直对齐问题 @LeeJim ([#2136](https://github.com/Tencent/tdesign-miniprogram/pull/2136)) + - 修复 disabled 优先级的问题 @LeeJim ([#2137](https://github.com/Tencent/tdesign-miniprogram/pull/2137)) +- `CheckboxGroup`: 修复使用 `options` 时,disabled 不生效的问题 @LeeJim ([#2137](https://github.com/Tencent/tdesign-miniprogram/pull/2137)) +- `Search`: 截获点击 `clear` 触发的 tap 事件 @LeeJim ([#2139](https://github.com/Tencent/tdesign-miniprogram/pull/2139)) +- `Divider`: 修复外部样式类的位置 @LeeJim ([#2140](https://github.com/Tencent/tdesign-miniprogram/pull/2140)) +- `Toast`: 解决 `close` 事件重复触发 @LeeJim ([#2146](https://github.com/Tencent/tdesign-miniprogram/pull/2146)) +- `Popup`: 修复底部弹出时的宽度问题 @LeeJim ([#2152](https://github.com/Tencent/tdesign-miniprogram/pull/2152)) +### 🚧 Others +- `IDE`: 解决控制台报警的问题 @LeeJim ([#2149](https://github.com/Tencent/tdesign-miniprogram/pull/2149)) + +## 🌈 1.1.10 `2023-06-20` +### 🚀 Features +- `Tabs`: 新增 `split` 属性 @LeeJim ([#2113](https://github.com/Tencent/tdesign-miniprogram/pull/2113)) +- `NoticeBar`: 新增 `interval` 属性 @betavs ([#2097](https://github.com/Tencent/tdesign-miniprogram/pull/2097)) +### 🐞 Bug Fixes +- `Grid`: 修复 `align=left` 无效的问题 @anlyyao ([#2110](https://github.com/Tencent/tdesign-miniprogram/pull/2110)) +- `Fab`: 修复 `buttonProps` 中的 `hoverClass`属性透传至 `button` 无效 @anlyyao ([#2093](https://github.com/Tencent/tdesign-miniprogram/pull/2093)) +- `Upload`: 修复图片尺寸超出的问题 @betavs ([#2098](https://github.com/Tencent/tdesign-miniprogram/pull/2098)) +- `Slider`: + - 修复使用 `max` 之后刻度展示错误的问题 @betavs ([#2114](https://github.com/Tencent/tdesign-miniprogram/pull/2114)) + - 修复异步展示时导致刻度渲染错误的问题 @LeeJim ([#2115](https://github.com/Tencent/tdesign-miniprogram/pull/2115)) +- `Input`: 修复 `type=number` 时,`value=0` 无效的问题 @anlyyao ([#2108](https://github.com/Tencent/tdesign-miniprogram/pull/2108)) +- `ActionSheet`: 修复点击 `disabled` 的选项仍触发 `close`、`visible-change` 事件 @LeeJim ([#2117](https://github.com/Tencent/tdesign-miniprogram/pull/2117)) +- `Stepper`: 保证值发生变化才触发 `change` 事件 @LeeJim ([#2118](https://github.com/Tencent/tdesign-miniprogram/pull/2118)) + +## 🌈 1.1.9 `2023-06-13` +### 🚀 Features +- `CheckBox`: 自定义图标增加半选中态 @lolhezihehe ([#2056](https://github.com/Tencent/tdesign-miniprogram/pull/2056)) +- `Search`: 新增 `cursor-spacing` 属性 @anlyyao ([#2065](https://github.com/Tencent/tdesign-miniprogram/pull/2065)) +### 🐞 Bug Fixes +- `Indexes`: 索引导航无法选中问题 @lolhezihehe ([#2036](https://github.com/Tencent/tdesign-miniprogram/pull/2036)) +- `Switch`: + - 修复加载态时仍能点击的问题 @betavs ([#2061](https://github.com/Tencent/tdesign-miniprogram/pull/2061)) + - 修复 `loading` 态背景色错误 @anlyyao ([#2074](https://github.com/Tencent/tdesign-miniprogram/pull/2074)) +- `Icon`: 修复命名错误的问题 @anlyyao ([#2076](https://github.com/Tencent/tdesign-miniprogram/pull/2076)) +- `TreeSelect`: 修复使用 `keys` 之后无法正常使用的问题 @LeeJim ([#2085](https://github.com/Tencent/tdesign-miniprogram/pull/2085)) +- `RadioGroup`: 修复使用 `options` 时值为 `falsy` 时异常的问题 @betavs ([#2082](https://github.com/Tencent/tdesign-miniprogram/pull/2082)) +- `CellGroup`: 修复 `bordered` 属性无效的问题 @anlyyao ([#2089](https://github.com/Tencent/tdesign-miniprogram/pull/2089)) + +## 🌈 1.1.8 `2023-05-30` +### 🚀 Features +- `Textarea`: 属性 `autoSize` 支持控制最大最小高度 @anlyyao ([#2035](https://github.com/Tencent/tdesign-miniprogram/pull/2035)) +- `Sticky`: 补充外部样式类 `t-class-content` @anlyyao ([#2047](https://github.com/Tencent/tdesign-miniprogram/pull/2047)) +### 🐞 Bug Fixes +- `DropdownMenu`: 修复基础调试版本低于 `2.19.2` 时无法使用的问题 @anlyyao ([#2043](https://github.com/Tencent/tdesign-miniprogram/pull/2043)) +- `Sticky`: 解决 `fixed` 定位时宽度错误 @anlyyao ([#2047](https://github.com/Tencent/tdesign-miniprogram/pull/2047)) +- `NavBar`: 修复背景色支持渐变色 @LeeJim ([#2049](https://github.com/Tencent/tdesign-miniprogram/pull/2049)) +- `Drawer`: 修复 `item-click` 参数返回错误的问题 @ElanYoung ([#2039](https://github.com/Tencent/tdesign-miniprogram/pull/2039)) +- `Image`: 修复 width 和 height 无动态响应的问题 @LeeJim ([#2050](https://github.com/Tencent/tdesign-miniprogram/pull/2050)) +### 🚧 Others +- 修复 `babel` 报错的问题 @zhangpaopao0609 ([#2046](https://github.com/Tencent/tdesign-miniprogram/pull/2046)) + +## 🌈 1.1.7 `2023-05-23` +### 🚀 Features +- `ActionSheet`: 新增 `CSS Variable `用于控制取消按钮颜色 @favouredddd ([#2007](https://github.com/Tencent/tdesign-miniprogram/pull/2007)) +### 🐞 Bug Fixes +- `ActionSheet`: 解决 `ActionSheet` 引入报错 @anlyyao ([#2008](https://github.com/Tencent/tdesign-miniprogram/pull/2008)) +- `Sticky`: 处理在锁定的情况下,宽度计算错误的问题 @LeeJim ([#2012](https://github.com/Tencent/tdesign-miniprogram/pull/2012)) +- `SideBarItem`: 修复选中态样式问题 @betavs ([#2011](https://github.com/Tencent/tdesign-miniprogram/pull/2011)) +- `TabBar`: 修正 `virtualHost` 不可用时的宽度 @LeeJim ([#2013](https://github.com/Tencent/tdesign-miniprogram/pull/2013)) +- `Icon`: 更正图标命名 @anlyyao ([#2020](https://github.com/Tencent/tdesign-miniprogram/pull/2020)) + +## 🌈 1.1.6 `2023-05-15` +### 🚀 Features +- `Icon`: 更新版本至 `0.1.4` @anlyyao ([#1979](https://github.com/Tencent/tdesign-miniprogram/pull/1979)) +- `DropdownMenu`: 选项过多时自动滚动到已选项 @jarmywang ([#1981](https://github.com/Tencent/tdesign-miniprogram/pull/1981)) +- `Slider`: 属性 `step` 支持传入小数 @anlyyao ([#1990](https://github.com/Tencent/tdesign-miniprogram/pull/1990)) +- `GridItem`: 新增 `click` 事件 @anlyyao ([#1993](https://github.com/Tencent/tdesign-miniprogram/pull/1993)) +- `Picker`: 新增 `popupProps` 属性,透传至 `Popup` @favouredddd ([#1985](https://github.com/Tencent/tdesign-miniprogram/pull/1985)) +- `DateTimePikcer`: 新增支持 `popupProps` 属性,透传至 `Popup` @favouredddd ([#1991](https://github.com/Tencent/tdesign-miniprogram/pull/1991)) +- `ActionSheet`: 新增 `PopupProps` 属性,透传至 `Popup` @favouredddd ([#2002](https://github.com/Tencent/tdesign-miniprogram/pull/2002)) +### 🐞 Bug Fixes +- `NavBar`: 修复 `fixed` 定位 @betavs ([#1982](https://github.com/Tencent/tdesign-miniprogram/pull/1982)) +- `Slider`: 修复 `change` 事件重复触发相同值的问题 @anlyyao ([#1990](https://github.com/Tencent/tdesign-miniprogram/pull/1990)) +- `Input`: 修复 `label` 为英文时无法换行 @anlyyao ([#1994](https://github.com/Tencent/tdesign-miniprogram/pull/1994)) +- `PullDownRefresh`: + - 解决 `refresh` 事件触发时机错误的问题 @LeeJim ([#1998](https://github.com/Tencent/tdesign-miniprogram/pull/1998)) + - 修复 `value` 不可控的问题 @LeeJim ([#1998](https://github.com/Tencent/tdesign-miniprogram/pull/1998)) +- `Button`: 修复 `variant` 无法动态响应的问题 @favouredddd ([#2000](https://github.com/Tencent/tdesign-miniprogram/pull/2000)) +- `DropdownMenu`: 单选选项行高不一致 @bitjian ([#1992](https://github.com/Tencent/tdesign-miniprogram/pull/1992)) +- `Layout`: 修复 `col` 组件不换行的问题,移除 `flex` 布局 @wuping97 ([#1996](https://github.com/Tencent/tdesign-miniprogram/pull/1996)) +- `Dialog`: 修复无法动态移除按钮的问题 @yuchumian ([#1986](https://github.com/Tencent/tdesign-miniprogram/pull/1986)) +- `Calendar`: 修复 `type` 属性失效的问题 @LeeJim ([#2003](https://github.com/Tencent/tdesign-miniprogram/pull/2003)) +### 🚧 Others +- `Steps`: 移除文档中无效的 `API` @anlyyao ([#1995](https://github.com/Tencent/tdesign-miniprogram/pull/1995)) + +## 🌈 1.1.5 `2023-05-08` +### 🚀 Features +- `PulldownRefresh`: 支持透传更多属性至 `scroll-view` 组件 @LeeJim ([#1959](https://github.com/Tencent/tdesign-miniprogram/pull/1959)) +- `DateTimePicker`: 新增 `steps` 属性,用于调整时间间隔步数 @LeeJim ([#1961](https://github.com/Tencent/tdesign-miniprogram/pull/1961)) +- `Steps`: 新增 `sequence` 属性,支持逆序展示 @LeeJim ([#1962](https://github.com/Tencent/tdesign-miniprogram/pull/1962)) +- `DropdownMenu`: 新增 `CSS Variable` 用于调整边框宽度 @LeeJim ([#1967](https://github.com/Tencent/tdesign-miniprogram/pull/1967)) +### 🐞 Bug Fixes +- `Tabs`: 修复 `track` 位置计算错误的问题 @LeeJim ([#1958](https://github.com/Tencent/tdesign-miniprogram/pull/1958)) +- `PulldownRefresh`: 解决 `value = true` 时无法触发加载状态的问题 @LeeJim ([#1960](https://github.com/Tencent/tdesign-miniprogram/pull/1960)) +- `Steps`: 修复 `icon` 插槽无法使用的问题 @LeeJim ([#1962](https://github.com/Tencent/tdesign-miniprogram/pull/1962)) +- `Stepper`: 修复无法输入空值的问题 @anlyyao ([#1971](https://github.com/Tencent/tdesign-miniprogram/pull/1971)) +- `Calendar`: 解决 `usePopup = false` 时,没有自动定位到当前值的问题 @LeeJim ([#1969](https://github.com/Tencent/tdesign-miniprogram/pull/1969)) +- `ActionSheet`: 修复使用命令行方式点击取消按钮无法关闭的问题 @LeeJim ([#1968](https://github.com/Tencent/tdesign-miniprogram/pull/1968)) +### 🚧 Others +- `Picker`: 完善文档,增加 `TS` 定义的关联链接。 @LeeJim ([#1956](https://github.com/Tencent/tdesign-miniprogram/pull/1956)) + + +## 1.1.4 `2023-05-01` +### 🚀 Features +- `ImageViewer`: 新增 `usingCustomNavigation` 属性,处理使用自定义导航栏时被遮挡的问题 @LeeJim ([#1944](https://github.com/Tencent/tdesign-miniprogram/pull/1944)) +- `Swiper`: 新增 `image-load` 事件 @LeeJim ([#1949](https://github.com/Tencent/tdesign-miniprogram/pull/1949)) +### 🐞 Bug Fixes +- `Slider`: 修复 `dragstart`、`dragend` 事件没反应的问题 @LeeJim ([#1940](https://github.com/Tencent/tdesign-miniprogram/pull/1940)) +- `Picker`: 解决使用 `falsy` 值导致无法正确选择的问题 @LeeJim ([#1948](https://github.com/Tencent/tdesign-miniprogram/pull/1948)) +- `Toast`: 页面隐藏的时候自动关闭 @LeeJim ([#1947](https://github.com/Tencent/tdesign-miniprogram/pull/1947)) +### 🚧 Others +- `Swiper`: 更新 `API` 文档 @anlyyao ([#1945](https://github.com/Tencent/tdesign-miniprogram/pull/1945)) + +## 🌈 1.1.3 `2023-04-26` +### 🚀 Features +- `Rate`: 支持无障碍访问 @byq1213 ([#1574](https://github.com/Tencent/tdesign-miniprogram/pull/1574)) +- `Tabs`: + - 新增外部样式类 `t-class-content` @LeeJim ([#1931](https://github.com/Tencent/tdesign-miniprogram/pull/1931)) + - 新增 middle 插槽 @LeeJim ([#1936](https://github.com/Tencent/tdesign-miniprogram/pull/1936)) +- `CollapsePanel`: 新增 `headerLeftIcon` 属性,支持面板头左侧使用图标 @LeeJim ([#1933](https://github.com/Tencent/tdesign-miniprogram/pull/1933)) +### 🐞 Bug Fixes +- `Upload`: 修复 `max` 属性相关的问题 @LeeJim ([#1914](https://github.com/Tencent/tdesign-miniprogram/pull/1914)) +- `NavBar`: + - 修复胶囊边框层级过高,遮挡内容点击事件的问题 @LeeJim ([#1920](https://github.com/Tencent/tdesign-miniprogram/pull/1920)) + - 解决内容垂直居中的问题 @LeeJim ([#1926](https://github.com/Tencent/tdesign-miniprogram/pull/1926)) +- `Button`: 修复 `variant = outline` 状态下 `loading` 不展示的问题 @lolhezihehe ([#1922](https://github.com/Tencent/tdesign-miniprogram/pull/1922)) +- `DropdownMenu`: 修复单选情况下无法使用多列的问题 @LeeJim ([#1927](https://github.com/Tencent/tdesign-miniprogram/pull/1927)) +- `Link`: 修复 `disabled` 态下仍能跳转的问题 @anlyyao ([#1928](https://github.com/Tencent/tdesign-miniprogram/pull/1928)) +- `Calendar`: 修复 `format` 报错的问题 @LeeJim ([#1930](https://github.com/Tencent/tdesign-miniprogram/pull/1930)) +- `Input`: 修复垂直布局时样式错误 @anlyyao ([#1934](https://github.com/Tencent/tdesign-miniprogram/pull/1934)) + +## 🌈 1.1.2 `2023-04-17` +### 🚀 Features +- `Swiper`: + - 支持无障碍访问 @zhangpaopao0609 ([#1598](https://github.com/Tencent/tdesign-miniprogram/pull/1598)) + - `list` 属性支持 `SwiperList[]` 类型 @zhangpaopao0609 ([#1598](https://github.com/Tencent/tdesign-miniprogram/pull/1598)) +- `Divider`: 新增 `CSS Variables` 用于控制分割线样式 @favouredddd ([#1890](https://github.com/Tencent/tdesign-miniprogram/pull/1890)) +- `Grid`: 补充 `CSS Variables` 以修改不同列数下的图片尺寸和文字大小 @lolhezihehe ([#1903](https://github.com/Tencent/tdesign-miniprogram/pull/1903)) +- `Radio`: 新增 `CSS Variables` 用于控制内容字体大小 @favouredddd ([#1895](https://github.com/Tencent/tdesign-miniprogram/pull/1895)) +### 🐞 Bug Fixes +- `Loading`: 修复 `inheritColor = true` 时,因样式问题导致组件一直处于加载状态 @Cyrus97 ([#1873](https://github.com/Tencent/tdesign-miniprogram/pull/1873)) +- `Empty`: 支持描述内容超出自动换行 @favouredddd ([#1870](https://github.com/Tencent/tdesign-miniprogram/pull/1870)) +- `Row`: 增加默认样式实现垂直居中 @tomcat-hz ([#1866](https://github.com/Tencent/tdesign-miniprogram/pull/1866)) +- `Progress`: 优化无障碍访问体验 @yaogengzhu ([#1354](https://github.com/Tencent/tdesign-miniprogram/pull/1354)) +- `Radio`: 优化样式,新增 `CSS Variables` 控制文字激活态颜色 @LeeJim ([#1889](https://github.com/Tencent/tdesign-miniprogram/pull/1889)) +- `ActionSheet`: 解决 `show` 方法的 `TS` 报错 @LeeJim ([#1907](https://github.com/Tencent/tdesign-miniprogram/pull/1907)) +- `Radio`: 修复图标尺寸无法调整的问题 @bitjian ([#1909](https://github.com/Tencent/tdesign-miniprogram/pull/1909)) +- `Button`: 修复 `type = submit `时,disabled 未生效的问题 @bitjian ([#1878](https://github.com/Tencent/tdesign-miniprogram/pull/1878)) + +## 🌈 1.1.1 `2023-04-03` +### 🚀 Features +- `Button`: 新增 `hover-class` 属性 @anlyyao ([#1847](https://github.com/Tencent/tdesign-miniprogram/pull/1847)) +### 🐞 Bug Fixes +- `Tabs`: 解决内容重叠的问题 @LeeJim ([#1853](https://github.com/Tencent/tdesign-miniprogram/pull/1853)) +- `Message`: 处理 `loop` 产生的控制台告警 @anlyyao ([#1856](https://github.com/Tencent/tdesign-miniprogram/pull/1856)) +- `Message`: 修复 `marquee = true` 时,滚动动画错误 @anlyyao ([#1856](https://github.com/Tencent/tdesign-miniprogram/pull/1856)) +- `Avatar`: 修复控制台报错 @jarmywang ([#1858](https://github.com/Tencent/tdesign-miniprogram/pull/1858)) +- `Drawer`: 修复 destroyOnClose 属性不生效 @jarmywang ([#1864](https://github.com/Tencent/tdesign-miniprogram/pull/1864)) + +## 🌈 1.1.0 `2023-03-27` +### 🚀 Features +- `Layout`: 新增布局组件,包含 `row` 和 `col` 组件 @wuping97 ([#1821](https://github.com/Tencent/tdesign-miniprogram/pull/1821)) +- `Search`: 新增 `type` 属性透传至 `input`,默认为 `text` @haochenli ([#1828](https://github.com/Tencent/tdesign-miniprogram/pull/1828)) +### 🐞 Bug Fixes +- `Button`: 修复 `disabled = true` 仍触发 `tap` 事件的问题 @wuping97 ([#1833](https://github.com/Tencent/tdesign-miniprogram/pull/1833)) +- `NoticeBar`: + - 修复二轮滚动初始位置不正确 @anlyyao ([#1835](https://github.com/Tencent/tdesign-miniprogram/pull/1835)) + - 修复 `loop` 为 `0` 时还会循环播放的问题 @haochenli ([#1826](https://github.com/Tencent/tdesign-miniprogram/pull/1826)) +- `PullDownRefresh`: + - 修复 `loading-texts` 默认值缺失的问题 @haochenli ([#1837](https://github.com/Tencent/tdesign-miniprogram/pull/1837)) + - 解决外部样式类 `t-class-text` 拼写错误的问题 @LeeJim ([#1839](https://github.com/Tencent/tdesign-miniprogram/pull/1839)) +- `Grid`: 修复 `t-class-image` 无法赋予 `image` 样式的问题 @LeeJim ([#1842](https://github.com/Tencent/tdesign-miniprogram/pull/1842)) +- `Cascader`: 修复当 `value` 发生变更时,`options` 没有更新的问题 @LeeJim ([#1841](https://github.com/Tencent/tdesign-miniprogram/pull/1841)) +- `Tabs`: + - 修复设置 `animation` 导致 `panel` 内容无法切换的问题 @LeeJim ([#1843](https://github.com/Tencent/tdesign-miniprogram/pull/1843)) + - 修复 `theme` 不等于 `line` 时,获取 track 报错的问题 @LeeJim ([#1843](https://github.com/Tencent/tdesign-miniprogram/pull/1843)) + - 移除滚动条 @LeeJim ([#1844](https://github.com/Tencent/tdesign-miniprogram/pull/1844)) + +## 🌈 1.0.4 `2023-03-20` +### 🚀 Features +- `PullDownRefresh`: 支持无障碍访问支持 @shinyina ([#1241](https://github.com/Tencent/tdesign-miniprogram/pull/1241)) +- `Steps`: 支持无障碍访问 @tangzixuan ([#1783](https://github.com/Tencent/tdesign-miniprogram/pull/1783)) +### 🐞 Bug Fixes +- `Textarea`: 修复 `autosize` 为 `true` 时,`placeholder` 上移问题 @anlyyao ([#1781](https://github.com/Tencent/tdesign-miniprogram/pull/1781)) +- `Switch`: 修复 `label` 和 `icon` 渲染顺序错误的问题 @LeeJim ([#1809](https://github.com/Tencent/tdesign-miniprogram/pull/1809)) +- `Loading`: 修复错误的 `style` 导致 `wxs` 报错 @LeeJim ([#1810](https://github.com/Tencent/tdesign-miniprogram/pull/1810)) +- `Radio`: 修复 `placement` 优先级的问题 @LeeJim ([#1812](https://github.com/Tencent/tdesign-miniprogram/pull/1812)) +- `Button`: 解决多个插槽的渲染问题 @LeeJim ([#1813](https://github.com/Tencent/tdesign-miniprogram/pull/1813)) +- `Link`: 解决多个插槽无法渲染的问题 @LeeJim ([#1816](https://github.com/Tencent/tdesign-miniprogram/pull/1816)) +- `TabPanel`: 解决多个插槽无法渲染的问题 @LeeJim ([#1816](https://github.com/Tencent/tdesign-miniprogram/pull/1816)) +- `Upload`: + - 修复点击事件失效问题 @yaogengzhu ([#1802](https://github.com/Tencent/tdesign-miniprogram/pull/1802)) + - 修复 limit 限制的问题 @yaogengzhu ([#1800](https://github.com/Tencent/tdesign-miniprogram/pull/1800)) + +## 🌈 1.0.3 `2023-03-14` +### 🚀 Features +- `Picker`: 新增支持 `keys` 属性 @LeeJim ([#1759](https://github.com/Tencent/tdesign-miniprogram/pull/1759)) +- `Input`: 支持 `nicknamereview` 事件 @anlyyao ([#1755](https://github.com/Tencent/tdesign-miniprogram/pull/1755)) +- `Popup`: 增加默认圆角、默认背景色、安全底边距 @jarmywang ([#1758](https://github.com/Tencent/tdesign-miniprogram/pull/1758)) +### 🐞 Bug Fixes +- `DropdownMenu`: + - 修复 `label` 的展示逻辑 @LeeJim ([#1748](https://github.com/Tencent/tdesign-miniprogram/pull/1748)) + - 修复 `radio` 图标的展示位置 @LeeJim ([#1748](https://github.com/Tencent/tdesign-miniprogram/pull/1748)) +- `Popup`: 修复关闭按钮无法点击的问题 @jarmywang ([#1754](https://github.com/Tencent/tdesign-miniprogram/pull/1754)) +- `Calendar`: 修复 `format` 属性不是响应式的问题 @LeeJim ([#1753](https://github.com/Tencent/tdesign-miniprogram/pull/1753)) +- `Checkbox`: 修复存在 `disabled` 选项时,全选出错的问题 @LeeJim ([#1766](https://github.com/Tencent/tdesign-miniprogram/pull/1766)) +- `Badge`: + - 修复 `shape = ribbon` 时,修改 `color` 不能改变全部颜色的问题 @LeeJim ([#1764](https://github.com/Tencent/tdesign-miniprogram/pull/1764)) + - 优化和不同组件组合的无障碍访问 @yaogengzhu ([#1428](https://github.com/Tencent/tdesign-miniprogram/pull/1428)) +- `Upload`: + - 修复 `sizelimit` 不支持对象传参的问题 @LeeJim ([#1763](https://github.com/Tencent/tdesign-miniprogram/pull/1763)) + - 修复 `sizelimit` 默认单位和文档不一致的问题,从 `B` 改成 `KB` @LeeJim ([#1763](https://github.com/Tencent/tdesign-miniprogram/pull/1763)) +- `Button`: + - 取消 `loading` 态下的 `hover` 效果 @anlyyao ([#1739](https://github.com/Tencent/tdesign-miniprogram/pull/1739)) + - 事件 `tap` 仅在非加载或禁用状态时触发 @anlyyao ([#1739](https://github.com/Tencent/tdesign-miniprogram/pull/1739)) +- `Cell`: 修复 `note` 内容超出被遮挡问题 @anlyyao ([#1769](https://github.com/Tencent/tdesign-miniprogram/pull/1769)) +- `Progress`: 修复 `label` 插槽无效 @anlyyao ([#1771](https://github.com/Tencent/tdesign-miniprogram/pull/1771)) +- `GridItem`: 修复 `image` 插槽不可用的问题,需传入 `image = slot` 才可使用插槽 @LeeJim ([#1772](https://github.com/Tencent/tdesign-miniprogram/pull/1772)) +### 🚧 Others +- `Picker`: 文档中移除 `render-label`、`columns `还不支持的属性 @LeeJim ([#1759](https://github.com/Tencent/tdesign-miniprogram/pull/1759)) + +## 🌈 1.0.2 `2023-03-07` +### 🐞 Bug Fixes +- `Radio`: 修复使用 `options` 时可传入的属性不齐的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) +- `Checkbox`: 修复使用 `options` 时可传入的属性不齐的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) +- `RadioGroup`: + - 修复 `placement` 默认值错误的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) + - 修复 `icon` 消失的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707)) +- `ActionSheet`: 修复点击报错的问题 @LeeJim ([#1726](https://github.com/Tencent/tdesign-miniprogram/pull/1726)) +- `Swiper`: + - 修复在真机上圆角无效问题 @anlyyao ([#1733](https://github.com/Tencent/tdesign-miniprogram/pull/1733)) + - 修复基础调试库低于 `2.19.2` 时,图片不显示问题 @anlyyao ([#1736](https://github.com/Tencent/tdesign-miniprogram/pull/1736)) +- `NavBar`: 修复外部样式类不可用的问题 @LeeJim ([#1735](https://github.com/Tencent/tdesign-miniprogram/pull/1735)) +- `Footer`: 补齐 `API` 文档描述 @anlyyao ([#1737](https://github.com/Tencent/tdesign-miniprogram/pull/1737)) +- `ImageViewer`: 修复图片显示不全的问题 @anlyyao ([#1656](https://github.com/Tencent/tdesign-miniprogram/pull/1656)) +- `Input`: + - 修复 `maxLength` 无效问题,并将默认值变更为 `-1` @anlyyao ([#1732](https://github.com/Tencent/tdesign-miniprogram/pull/1732)) + - 修复键盘弹起时,点击 `clear` 没反应的问题 @anlyyao ([#1732](https://github.com/Tencent/tdesign-miniprogram/pull/1732)) + +## 🌈 1.0.1 `2023-03-01` +### 🚀 Features +- `Cascader`: 新增 `close` 事件 @LeeJim ([#1685](https://github.com/Tencent/tdesign-miniprogram/pull/1685)) +- `Picker`: 新增 `close` 事件 @LeeJim ([#1687](https://github.com/Tencent/tdesign-miniprogram/pull/1687)) +- `DateTimePicker`: 新增 `close` 事件 @LeeJim ([#1687](https://github.com/Tencent/tdesign-miniprogram/pull/1687)) +- `Upload`: 支持无障碍访问 @zhangpaopao0609 ([#1238](https://github.com/Tencent/tdesign-miniprogram/pull/1238)) +### 🐞 Bug Fixes +- `ActionSheet`: 补充 `close` 事件,增加 `trigger` 参数 @LeeJim ([#1683](https://github.com/Tencent/tdesign-miniprogram/pull/1683)) +- `Cascader`: + - 修复 pick 事件的参数 @LeeJim ([#1685](https://github.com/Tencent/tdesign-miniprogram/pull/1685)) + - 修复 radio 图标显示位置不正确的问题 @LeeJim ([#1693](https://github.com/Tencent/tdesign-miniprogram/pull/1693)) +- `Drawer`: 修复 `close` 事件不生效的问题 @LeeJim ([#1686](https://github.com/Tencent/tdesign-miniprogram/pull/1686)) +- `Message`: + - 修复外部样式类 `t-class-link` 无效问题 @anlyyao ([#1690](https://github.com/Tencent/tdesign-miniprogram/pull/1690)) + - 更新内嵌 `link` 组件的属性 @anlyyao ([#1694](https://github.com/Tencent/tdesign-miniprogram/pull/1694)) +- `DropdownMenu`: 修复 `radio` 图标显示位置不正确的问题 @LeeJim ([#1693](https://github.com/Tencent/tdesign-miniprogram/pull/1693)) +- `TreeSelect`: 修复 `radio` 图标显示位置不正确的问题 @LeeJim ([#1693](https://github.com/Tencent/tdesign-miniprogram/pull/1693)) + +## 🌈 1.0.0 `2023-02-27` +### 🚨 Breaking Changes +- 主题色 `CSS Variables` 命名从 `--td-primary-color` 改成 `--td-brand-color` @LeeJim ([#1623](https://github.com/Tencent/tdesign-miniprogram/pull/1623)) +- `Cell`: 调整 `hover` 状态对应的类名 @anlyyao ([#1635](https://github.com/Tencent/tdesign-miniprogram/pull/1635)) +- `Checkbox`: 属性 `align` 更名为 `placement` @anlyyao ([#1629](https://github.com/Tencent/tdesign-miniprogram/pull/1629)) +- `Toast`: 属性 `theme` 的枚举值 `fail` 替换成 `error` @LeeJim ([#1647](https://github.com/Tencent/tdesign-miniprogram/pull/1647)) +- `Slider`: 移除 `colors` 和 disabledColor,建议使用 `CSS Variables` 修改 @LeeJim ([#1676](https://github.com/Tencent/tdesign-miniprogram/pull/1676)) +- `Loading`: 移除 `theme = error` 以及 `theme = bar`,以及调整 `DOM` @LeeJim ([#1626](https://github.com/Tencent/tdesign-miniprogram/pull/1626)) +- `Picker`: 移除 `footer` 插槽 @anlyyao ([#1631](https://github.com/Tencent/tdesign-miniprogram/pull/1631)) +- `DateTimePicker`: 移除 `footer` 插槽 @anlyyao ([#1631](https://github.com/Tencent/tdesign-miniprogram/pull/1631)) +- `Radio`: 属性 `align` 更名为 `placement` @anlyyao ([#1630](https://github.com/Tencent/tdesign-miniprogram/pull/1630)) +- `RadioGroup`: 属性 `align` 更名为 `placement` @anlyyao ([#1630](https://github.com/Tencent/tdesign-miniprogram/pull/1630)) +- `Search`: 移除 `right-icon` 属性相关 @anlyyao ([#1628](https://github.com/Tencent/tdesign-miniprogram/pull/1628)) +- `Avatar`: 移除 `bordered` 属性 @anlyyao ([#1632](https://github.com/Tencent/tdesign-miniprogram/pull/1632)) +- `AvatarGroup`: `cascading` 属性默认值变更为 `left-up` @anlyyao ([#1632](https://github.com/Tencent/tdesign-miniprogram/pull/1632)) +- `Message`: 移除 `action` 属性相关,使用 `link` 代替 @anlyyao ([#1637](https://github.com/Tencent/tdesign-miniprogram/pull/1637)) +- `Footer`: + - `copyright` 更名为 `text` @anlyyao ([#1642](https://github.com/Tencent/tdesign-miniprogram/pull/1642)) + - `textLinkList` 更名为 `links` @anlyyao ([#1642](https://github.com/Tencent/tdesign-miniprogram/pull/1642)) + - 移除 `theme` 属性 @anlyyao ([#1642](https://github.com/Tencent/tdesign-miniprogram/pull/1642)) +- `CountDown`: `theme` 属性移除 `hightlight` @anlyyao ([#1645](https://github.com/Tencent/tdesign-miniprogram/pull/1645)) +- `Link`: 移除 `status` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) +- `Rate`: 移除 `variant` 属性,完全依赖 `icon` 属性来控制图标 @LeeJim ([#1674](https://github.com/Tencent/tdesign-miniprogram/pull/1674)) +- `NoticeBar`: `extra` 属性更名为 `operation` @anlyyao ([#1638](https://github.com/Tencent/tdesign-miniprogram/pull/1638)) +### 🚀 Features +- `Search`: 新增 `clearable`,用于启用清除控件 @anlyyao ([#1628](https://github.com/Tencent/tdesign-miniprogram/pull/1628)) +- `Button`: 新增支持 `suffix` 插槽 @LeeJim ([#1624](https://github.com/Tencent/tdesign-miniprogram/pull/1624)) +- `Message`: 新增 `link` 属性 @anlyyao ([#1637](https://github.com/Tencent/tdesign-miniprogram/pull/1637)) +- `Link`: + - 新增 `disabled` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) + - 新增 `hover` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) + - 新增 `externalClasses` 属性 @anlyyao ([#1652](https://github.com/Tencent/tdesign-miniprogram/pull/1652)) +- `Drawer`: 补充 `hover` 态样式 @anlyyao ([#1673](https://github.com/Tencent/tdesign-miniprogram/pull/1673)) +- `AvatarGroup`: 头像组中默认带边框 @anlyyao ([#1678](https://github.com/Tencent/tdesign-miniprogram/pull/1678)) +### 🐞 Bug Fixes +- `Fab`: 修复丢失 `style` 默认值的问题 @LeeJim ([#1625](https://github.com/Tencent/tdesign-miniprogram/pull/1625)) +- `Dialog`: 修复文字按钮`hover`态圆角不正确 @anlyyao ([#1633](https://github.com/Tencent/tdesign-miniprogram/pull/1633)) +- `Switch`: 优化禁用态下 `loading` 的颜色 @LeeJim ([#1627](https://github.com/Tencent/tdesign-miniprogram/pull/1627)) +- `Message`: 修复主题图标不正确 @anlyyao ([#1637](https://github.com/Tencent/tdesign-miniprogram/pull/1637)) +- `NavBar`: 修复胶囊内部点击事件没反应的问题 @LeeJim ([#1641](https://github.com/Tencent/tdesign-miniprogram/pull/1641)) +- `Dialog`: + - 修复 `confirm` 的拼写错误 @zzzimooo ([#1644](https://github.com/Tencent/tdesign-miniprogram/pull/1644)) + - 修复命令行方式没法调整按钮布局的问题 @zzzimooo ([#1655](https://github.com/Tencent/tdesign-miniprogram/pull/1655)) +- `CountDown`: 修复默认风格下时间单位分割的问题 @anlyyao ([#1645](https://github.com/Tencent/tdesign-miniprogram/pull/1645)) +- `Slider`: 优化无障碍访问支持 @byq1213 ([#1388](https://github.com/Tencent/tdesign-miniprogram/pull/1388)) +- `Collapse`: 修复 `disabled` 状态下标题颜色错误的问题 @LeeJim ([#1648](https://github.com/Tencent/tdesign-miniprogram/pull/1648)) +- `Cell`: 修复外部样式类 `t-class-title` 放置位置错误的问题 @LeeJim ([#1648](https://github.com/Tencent/tdesign-miniprogram/pull/1648)) +- `Tag`: 修复 `close` 与 `click` 事件一并触发的问题 @anlyyao ([#1669](https://github.com/Tencent/tdesign-miniprogram/pull/1669)) +- `Rate`: 修复 tips 偶尔会不消失的问题 @LeeJim ([#1674](https://github.com/Tencent/tdesign-miniprogram/pull/1674)) +- `BackTop`: 修复 `icon` 不显示问题 @anlyyao ([#1660](https://github.com/Tencent/tdesign-miniprogram/pull/1660)) +- `NoticeBar`: 修复主题图标不正确 @anlyyao ([#1638](https://github.com/Tencent/tdesign-miniprogram/pull/1638)) +- `Badge`: 调整 `display` 使用 block 替换 inline-block @anlyyao ([#1679](https://github.com/Tencent/tdesign-miniprogram/pull/1679)) + +## 🌈 1.0.0-rc.3 `2023-02-20` +### 🚨 Breaking Changes +- `Image`: 插槽的渲染需要传入对应 `slot` 的字符串 @LeeJim ([#1609](https://github.com/Tencent/tdesign-miniprogram/pull/1609)) +- `Input`: 调整 `DOM` 以及类名 @anlyyao ([#1585](https://github.com/Tencent/tdesign-miniprogram/pull/1585)) +### 🚀 Features +- 所有组件新增支持 `class` 外部样式类,仅在开启 `virtualHost` 的情况下生效 @anlyyao ([#1587](https://github.com/Tencent/tdesign-miniprogram/pull/1587)) +- `Input`: 支持 `tips` 文本方向与 `align` 属性值一致 @anlyyao ([#1585](https://github.com/Tencent/tdesign-miniprogram/pull/1585)) +- `CellGroup`: 默认最后一项 `cell` 无底部边框线 @anlyyao ([#1607](https://github.com/Tencent/tdesign-miniprogram/pull/1607)) +- `Image`: 补充外部样式类名 `class` @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) +- `DropdownMenu`: 新增 `reset` 事件 @LeeJim ([#1617](https://github.com/Tencent/tdesign-miniprogram/pull/1617)) +- `Drawer`: 支持无障碍访问 @zhangpaopao0609 ([#1552](https://github.com/Tencent/tdesign-miniprogram/pull/1552)) +### 🐞 Bug Fixes +- `Input`: 修复 `layout = 'vertical'` 时,样式不正确 @anlyyao ([#1585](https://github.com/Tencent/tdesign-miniprogram/pull/1585)) +- `Swiper`: 修复图片压缩变形问题 @anlyyao ([#1607](https://github.com/Tencent/tdesign-miniprogram/pull/1607)) +- `Navbar`: 修复左侧胶囊按钮在真机上上边框线消失问题 @anlyyao ([#1607](https://github.com/Tencent/tdesign-miniprogram/pull/1607)) +- `Upload`: 解决因无备用值产生的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) +- `Picker`: 解决因无备用值产生的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) +- `PullDownRefresh`: 解决因无备用值产生的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) +- `NoticeBar`: 解决 `SelectorQuery` 带来的告警 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) +- `Link`: 修复 `API` 文档错误 @anlyyao ([#1611](https://github.com/Tencent/tdesign-miniprogram/pull/1611)) +- `Tabs`: 修复属性不支持响应式变化的问题 @LeeJim ([#1616](https://github.com/Tencent/tdesign-miniprogram/pull/1616)) +- `DropdownMenu`: 修复下拉菜单遮罩层无法点击 @RoseyW ([#1615](https://github.com/Tencent/tdesign-miniprogram/pull/1615)) +- `Message`: 修复事件名称,以符合文档 @LeeJim ([#1618](https://github.com/Tencent/tdesign-miniprogram/pull/1618)) +- `Dialog`: 修复事件名,从 `overlayClick` 改成 `overlay-click` @LeeJim ([#1619](https://github.com/Tencent/tdesign-miniprogram/pull/1619)) +- `SwiperNav`: 修复事件名,从 `navBtnChange` 改成 `nav-btn-change` @LeeJim ([#1619](https://github.com/Tencent/tdesign-miniprogram/pull/1619)) +- `TextArea`: 修复事件名,从 `lineChange` 改成 `line-change` @LeeJim ([#1619](https://github.com/Tencent/tdesign-miniprogram/pull/1619)) + +## 🌈 1.0.0-rc.2 `2023-02-13` +### 🚨 Breaking Changes +- `Icon`: `size` 和 `color` 属性默认值变更为 `''` @anlyyao ([#1553](https://github.com/Tencent/tdesign-miniprogram/pull/1553)) +### 🚀 Features +- 所有组件同时支持 `style` 和 `customStyle` 属性 @LeeJim ([#1532](https://github.com/Tencent/tdesign-miniprogram/pull/1532)) +- `Button`: 支持点击态边框颜色 CSS Variable @anlyyao ([#1530](https://github.com/Tencent/tdesign-miniprogram/pull/1530)) +- `Result`: 属性 `icon` 支持对象类型,透传至图标组件 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `TabBar`: 属性 `icon` 支持对象类型,透传至图标组件 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Toast`: 属性 `icon` 支持对象类型,透传至图标组件 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Input`: 支持名为 `tips` 的插槽 @anlyyao ([#1572](https://github.com/Tencent/tdesign-miniprogram/pull/1572)) +### 🐞 Bug Fixes +- 修复因 `template` 引起的控制台告警 @anlyyao ([#1548](https://github.com/Tencent/tdesign-miniprogram/pull/1548)) +- 修复控制台告警 @LeeJim ([#1586](https://github.com/Tencent/tdesign-miniprogram/pull/1586)) +- `NavBar`: 补充根元素缺失的高度 @LeeJim ([#1526](https://github.com/Tencent/tdesign-miniprogram/pull/1526)) +- `Search`: 修复插槽命名错误 @anlyyao ([#1529](https://github.com/Tencent/tdesign-miniprogram/pull/1529)) +- `Loading`: 支持无障碍访问 @yaogengzhu ([#1534](https://github.com/Tencent/tdesign-miniprogram/pull/1534)) +- `Checkbox`: 修复 `--td-checkbox-icon-size` 对未选中态复选框不生效问题 @anlyyao ([#1530](https://github.com/Tencent/tdesign-miniprogram/pull/1530)) +- `BackTop`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Badge`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Grid`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Image`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Input`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Link`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Loading`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Message`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `BackTop`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `CountDown`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `TabBar`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `TextArea`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Toast`: 优化插槽渲染不再需要传入 `slot` 字符串 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `CountDown`: 补充 `content` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Drawer`: 补充 `title` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `Radio`: 补充 `label`、`content` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `TabPanel`: 补充 `panel` 插槽 @LeeJim ([#1539](https://github.com/Tencent/tdesign-miniprogram/pull/1539)) +- `ImageViewer`: + - 优化插槽渲染逻辑,不再需要传入 `slot` 字符串 @LeeJim ([#1544](https://github.com/Tencent/tdesign-miniprogram/pull/1544)) + - 修复关闭点击不生效的问题,以及 trigger 参数不对的问题 @LeeJim ([#1544](https://github.com/Tencent/tdesign-miniprogram/pull/1544)) +- `Calendar`: + - 移除 `tabindex` 元素 的 `outline` 样式 @anlyyao ([#1573](https://github.com/Tencent/tdesign-miniprogram/pull/1573)) + - 优化 `title` 插槽,不再需要传入 `slot` 字符串 @LeeJim ([#1588](https://github.com/Tencent/tdesign-miniprogram/pull/1588)) +- `Button`: 修复 `CSS Variable` 变量命名错误 @anlyyao ([#1563](https://github.com/Tencent/tdesign-miniprogram/pull/1563)) + +## 🌈 1.0.0-rc.1 `2023-01-18` +### 🚨 Breaking Changes +- `Dialog`: 移除内置的 `input` 样式 @LeeJim ([#1516](https://github.com/Tencent/tdesign-miniprogram/pull/1516)) +- `Input`: 优化 `DOM`,移除外置的 `wapper` 元素 @LeeJim ([#1516](https://github.com/Tencent/tdesign-miniprogram/pull/1516)) +### 🚀 Features +- `Cell`: + - 新增底边框左右边距 `CSS Variables` @anlyyao ([#1515](https://github.com/Tencent/tdesign-miniprogram/pull/1515)) + - 补充 `CSS Variables` @anlyyao ([#1517](https://github.com/Tencent/tdesign-miniprogram/pull/1517)) +- `SideBar`: 支持传入 `Icon` @LeeJim ([#1520](https://github.com/Tencent/tdesign-miniprogram/pull/1520)) +- `Tabs`: 支持传入 `Icon` @LeeJim ([#1519](https://github.com/Tencent/tdesign-miniprogram/pull/1519)) +### 🐞 Bug Fixes +- `Upload`: 修复 `add-content` 不生效,并优化插槽渲染,不再需要传入 `add-content = 'slot'` @LeeJim ([#1507](https://github.com/Tencent/tdesign-miniprogram/pull/1507)) +- `Cascader`: 修复 `slot` 无法使用的问题 @LeeJim ([#1508](https://github.com/Tencent/tdesign-miniprogram/pull/1508)) +- `Picker`: 修复样式、优化布局以及交互体验 @LeeJim ([#1513](https://github.com/Tencent/tdesign-miniprogram/pull/1513)) +- `Swiper`: 修复 `autoplay` 状态下,`swiper` 偶现左右抖动问题 @anlyyao ([#1494](https://github.com/Tencent/tdesign-miniprogram/pull/1494)) + +## 🌈 1.0.0-rc `2023-01-12` +### 🚨 Breaking Changes +- 全部组件开启 `vritualHost`,当基础库版本低于 `2.19.2` 自动关闭 @LeeJim ([#1495](https://github.com/Tencent/tdesign-miniprogram/pull/1495)) +- 全部组件使用 `style` 属性替代 `customStyle` @LeeJim ([#1495](https://github.com/Tencent/tdesign-miniprogram/pull/1495)) +- `Tabs`: 废弃 `placement` 属性,左右布局请使用 SideBar 组件 @LeeJim ([#1492](https://github.com/Tencent/tdesign-miniprogram/pull/1492)) +### 🚀 Features +- `Cell`: 新增 `CSS Variables` 用于控制高度 @LeeJim ([#1482](https://github.com/Tencent/tdesign-miniprogram/pull/1482)) +- `Indexes`: 新增支持 `stickyOffset` 属性,用于调整吸顶时的距离 @LeeJim ([#1485](https://github.com/Tencent/tdesign-miniprogram/pull/1485)) +- `Button`: 支持` 0.5px` 边框 @anlyyao ([#1474](https://github.com/Tencent/tdesign-miniprogram/pull/1474)) +### 🐞 Bug Fixes +- `Button`: 修复 `shape = 'round'` 或 `‘circle’` 时,`border`样式错误 @anlyyao ([#1491](https://github.com/Tencent/tdesign-miniprogram/pull/1491)) +- `Calendar`: 修复视觉问题 @LeeJim ([#1473](https://github.com/Tencent/tdesign-miniprogram/pull/1473)) +- `Collapse`: + - 当 panel 内容为动态内容时,支持展开 @LeeJim ([#1477](https://github.com/Tencent/tdesign-miniprogram/pull/1477)) + - 面板收起时,隐藏 `header` 的边框 @LeeJim ([#1493](https://github.com/Tencent/tdesign-miniprogram/pull/1493)) +- `Textarea`: 支持自适应父容器高度 @anlyyao ([#1484](https://github.com/Tencent/tdesign-miniprogram/pull/1484)) +- `Dialog`: 修复 `confirmBtn` 为 `string` 类型时,样式错误 @anlyyao ([#1474](https://github.com/Tencent/tdesign-miniprogram/pull/1474)) +- `Stepper`: 修复 `theme='normal'`时禁用态视觉错误 @anlyyao ([#1487](https://github.com/Tencent/tdesign-miniprogram/pull/1487)) +- `Rate`: 修复半选时 tips 的图标 @LeeJim ([#1490](https://github.com/Tencent/tdesign-miniprogram/pull/1490)) + +## 🌈 0.x `2021-11-25 - 2023-01-09` +前往 [GitHub](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/tdesign-miniprogram/CHANGELOG-0.x.md) 查看 `0.x` 更新日志 diff --git a/packages/tdesign-miniprogram/package.json b/packages/tdesign-miniprogram/package.json index 7dea1fa2a..a73a4bffa 100644 --- a/packages/tdesign-miniprogram/package.json +++ b/packages/tdesign-miniprogram/package.json @@ -1,6 +1,6 @@ { "name": "tdesign-miniprogram", - "version": "1.11.0", + "version": "1.11.1", "title": "tdesign-miniprogram", "description": "TDesign Component for miniprogram", "main": "miniprogram_dist/index.js", @@ -13,6 +13,9 @@ "miniprogram_dist", "CHANGELOG.md" ], + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, "repository": { "type": "git", "url": "https://github.com/Tencent/tdesign-miniprogram" @@ -24,4 +27,4 @@ "author": "tdesign", "license": "MIT", "devDependencies": {} -} +} \ No newline at end of file diff --git a/packages/tdesign-miniprogram/site/public/assets/qrcode/watermark.png b/packages/tdesign-miniprogram/site/public/assets/qrcode/watermark.png new file mode 100644 index 000000000..30f9c4f05 Binary files /dev/null and b/packages/tdesign-miniprogram/site/public/assets/qrcode/watermark.png differ