Skip to content

Commit 0037049

Browse files
tomasyu985yangyu.1
andauthored
feat: chatsdk card node (#334)
* fix: 修复 taro 版本的 chatsdk 没有输出问答节点的 bug * chore: Publish release/20260326-7d4161 --------- Co-authored-by: yangyu.1 <yangyu.1@bytedance.com>
1 parent cabc1ec commit 0037049

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/chat-sdk",
5+
"comment": "修复 taro 版本的 chatsdk 没有输出问答节点的 bug",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze/chat-sdk",
10+
"email": "yangyu.1@bytedance.com"
11+
}

packages/chat-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coze/chat-sdk",
3-
"version": "0.1.11-beta.19",
3+
"version": "0.1.11-alpha.7d4161",
44
"description": "Coze chat components for taro",
55
"license": "MIT",
66
"author": "gaoding.devingao@bytedance.com",

packages/chat-sdk/src/libs/ui-kit/message/components/chatflow-node/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export interface ChatflowNodeData {
1919
name: string;
2020
}[];
2121
question_card_data?: {
22-
Title: string;
23-
Options: { name: string }[];
22+
title: string;
23+
options: { name: string }[];
2424
};
2525
}
2626

@@ -98,10 +98,10 @@ const SwitchNode: FC<{
9898
})}
9999
>
100100
<Text className={styles['switch-node-text']}>
101-
{data?.question_card_data?.Title}
101+
{data?.question_card_data?.title}
102102
</Text>
103103
<Spacing vertical gap={6}>
104-
{data?.question_card_data?.Options?.map((item, index) => (
104+
{data?.question_card_data?.options?.map((item, index) => (
105105
<View
106106
className={styles['switch-node-switch-item']}
107107
key={index}

0 commit comments

Comments
 (0)