feat(ChatRecord): add new component#4474
Open
zydemail wants to merge 52 commits into
Open
Conversation
* feat: add chat-record component 新增chat-record 语音输入组件 * feat: 新增语音书输入插件 BREAKING CHANGE: 新增语音输入组件 * feat: 新增语音输入组件 * feat(chat-record 组件样式调整): chat-record 组件样式调整 * feat(chat-record 组件样式优化): chat-record 组件样式优化 * feat: 更新chat-record 组件文档 * feat: 更新chat-record 组件文档
…tdesign-miniprogram into feature/add-chat-record
* feat: tdesign-uniapp-chat 新增 chat-record 组件 tdesign-uniapp-chat 新增 chat-record 组件 * feat: chat-record 组件demo 补充 * feat: chat-record demo 样式调整 * feat(还原setting.json 文件配置,删除快码插件配置): 还原setting文件,删除快码插件配置 --------- Co-authored-by: Miya <1054055589@qq.com>
…tdesign-miniprogram into feature/add-chat-record
* feat: add chat-record component 新增chat-record 语音输入组件 * feat: 新增语音书输入插件 BREAKING CHANGE: 新增语音输入组件 * feat: 新增语音输入组件 * feat(chat-record 组件样式调整): chat-record 组件样式调整 * feat(chat-record 组件样式优化): chat-record 组件样式优化 * feat: 更新chat-record 组件文档 * feat: 更新chat-record 组件文档 * feat: chat-record 组件交互更改 * feat: chat-record 组件demo调整 * feat: chat-record 组件,麦克风权限相关问题修改 * feat: chat-record bug 修复 * feat(chat-record demo bug修复): chat-record demo 修复 * feat: chat-record 组件bug修复 * feat: 删除快码插件配置 * feat: 还原setting.json文件
…ent/tdesign-miniprogram into feature/add-chat-record-new
…ent/tdesign-miniprogram into feature/add-chat-record-new
Contributor
|
Size Change: +4.06 kB (+0.71%) Total Size: 580 kB 📦 View Changed
ℹ️ View Unchanged
|
Contributor
|
Size Change: +9 kB (+12.94%) Total Size: 78.6 kB 📦 View Changed
ℹ️ View Unchanged
|
Contributor
|
Size Change: +7.97 kB (+2.91%) Total Size: 281 kB 📦 View Changed
ℹ️ View Unchanged
|
commit: |
Collaborator
TDesign Component Site Preview Open
|
anlyyao
reviewed
Jul 13, 2026
| }; | ||
|
|
||
| manager.onRecognize = (res: any) => { | ||
| console.error('输出语音识别结果================:', res); |
| this.cancelRecord(); | ||
| }, | ||
|
|
||
| onTranslateInput(e: WechatMiniprogram.Input) { |
Collaborator
There was a problem hiding this comment.
activeBtnCancel / activeBtnSend / translateResult 相关状态值只有赋值,没有被使用
| voiceText, | ||
| }, | ||
| }); | ||
| if (this.data.interactStatus === 'release_convert') { |
Collaborator
There was a problem hiding this comment.
interactStatus 的类型联合是 'normal' | 'release_cancel',不存在 'release_convert' 类型
| clearInterval(recordTimer); | ||
| recordTimer = null; | ||
| } | ||
| recordTimer = setInterval(() => { |
| created() { | ||
| // 确保 bottomHeight 有初始值 | ||
| if (typeof this.properties.bottomHeight === 'undefined') { | ||
| this.setData({ bottomHeight: 0 }); |
Collaborator
There was a problem hiding this comment.
bottomHeight 是已声明的 property(默认值 0),if 应该恒为假
| }, 100); | ||
| }; | ||
|
|
||
| manager.onError = (err: any) => { |
Collaborator
There was a problem hiding this comment.
manager.onError 阶段没有清理定时器
| </button> | ||
|
|
||
| <!-- 遮罩 + 录音面板 --> | ||
| <view class="cover-ng-bar {{classPrefix}}-audio-input {{showMask ? 'show' : ''}}"> |
anlyyao
force-pushed
the
feature/add-chat-record-new
branch
from
July 13, 2026 12:22
d923b8f to
1901c6a
Compare
anlyyao
force-pushed
the
feature/add-chat-record-new
branch
from
July 13, 2026 12:25
1901c6a to
f125b42
Compare
…ign-miniprogram into feature/add-chat-record-new
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
相关 PRs
TDesignOteam/tdesign-api#934
Tencent/tdesign-common#2630
TDesignOteam/tdesign-api#935
💡 需求背景和解决方案
新增chat-record语音输入组件
tdesign-miniprogram
allowSpeech属性,表示是否允许语音输入@tdesign/uniapp
@tdesign/uniapp-chat
allowSpeech属性,表示是否允许语音输入☑️ 请求合并前的自查清单