Replies: 5 comments 10 replies
-
antd 的命名风格一般 editable 会是一个聚合属性: type editable = boolean | {
editing?: boolean;
onEditChange?: ...
...
}; 当然了,Bubble 估计不会非受控。不需要 |
Beta Was this translation helpful? Give feedback.
-
感觉 |
Beta Was this translation helpful? Give feedback.
-
感觉要默认处理文本编辑态,不需要传 Input ,然后能够支持用户自定义这个编辑器 |
Beta Was this translation helpful? Give feedback.
-
取消了二次修改 |
Beta Was this translation helpful? Give feedback.
-
第二版定稿的API及Base使用如上🥳新增允许使用语义化 class 或 style 调整 |
Beta Was this translation helpful? Give feedback.
-
Summary
为
Bubble
组件添加支持用户对已发送消息进行二次编辑的功能,满足用户在输入后修改内容的需求Motivation
许多流行的ai应用都支持用户对已发送的message进行二次编辑,以下是一些例子:
二次编辑的作用/优势:
API
Base Example
基础使用:
Detailed Design
尽可能遵循:#296
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions